Table of contents
- Upgrade installed applications
- Upgrade system (kernel)
- Upgrade to latest release
- Default character encoding in gnome-terminal
- Default size on gnome-terminal
- Disable service auto start
- How to add FiSH encryption to irssi
- How to get some perl addons working
- Reboot while file system is read-only
- Reboot via crontab at 3:05 if the file /etc/reboot exists
Upgrade installed applications
apt-get update apt-get upgrade
Upgrade system (kernel)
apt-get update apt-get dist-upgrade
Upgrade to latest release
Use -d for latest devel-release
Default character encoding in gnome-terminal
env LC_CTYPE=en_DK.ISO-8859-1 gnome-terminal
And/or use this, too - but I haven't investigated the difference, yet.
env LC_CTYPE=en_DK.ISO-8859-15 gnome-terminal
Also see https://bugs.launchpad.net/gnome-terminal/+bug/3923
Default size on gnome-terminal
gnome-terminal --geometry 160x48
Also see "man gnome-terminal"
Disable service auto startIn order to make a service NOT start on boot, do one of the following...
If the service is Upstart based (check with "status varnish")
echo 'manual' > /etc/init/varnish.override
If not, use the old fashion update-rc.d method:
update-rc.d varnish disable
Also see http://askubuntu.com/questions/19320/whats-the-recommended-way-to-enable-disable-services
How to add FiSH encryption to irssiFirst, get this and unpack it:
This has some prerequisites:
apt-get install build-essential dpkg-dev intltool-debian libglib2.0-dev libgmp3-dev libglib2.0-0 irssi-dev libssl-dev
Next, compile the thing and copy it in place:
./regen.sh ./configure --with-irssi-source=/usr/include/irssi make cp src/.libs/libfish.so /usr/lib/irssi/modules/
Start irssi and load it like this: /load fish
How to get some perl addons working
apt-get install liblocal-lib-perl
Reboot while file system is read-only
# reboot -f bash: /sbin/reboot: Input/output error
You get this if your file system had failed and goes into read-only mode.
You could try and remount it read/write but I think rebooting is better since a dirty file system will be checked in single user mode.
You can reboot forcefully like this:
echo 1 > /proc/sys/kernel/sysrq # Enable SysRq echo b > /proc/sysrq-trigger # Reboot with no questions asked!
Reboot via crontab at 3:05 if the file /etc/reboot exists
0 3 * * * if [ -f /etc/reboot ] ; then rm /etc/reboot && /sbin/shutdown -r +5 ; fi