Saturday, March 25. 2006
Today I finished migrating my server to a new system. The LAMP-site consisting of 3 domains, which also runs an MTA and mailing list software, has been moved from Debian ‘woody’ to Debian ‘testing’ (alias ‘etch’). Insiders know that this is quite a big jump, leaving out the ‘sarge’ release. The main reason for this move was dying hardware: I expect either the graphics board or the SCSI-controller to be the cause, as they both are from 1998. Once in a while some system processes ended up in a segmentation fault, so I looked for a new (used) PC, which should become the successor.
It was a good opportunity to clean up the system, as the old one had its roots in a time when I made my first steps with Debian and wanted to maintain everything using ./configure && make && make install. Now, I want to avoid this and use the original Debian packages, because these days some commonly used additions are now officially available. Also, with Debian ‘testing’, there won’t be so gigantic delays between new releases of packages.
The interesting increments in the version numbers are: MySQL 4.0.20→5.0.18, Postfix 1.1.11→2.2.9, Courier-IMAP 1.4.3→3.0.8, Apache 1.3.31→2.0.55 and PHP 4.3.8→5.1.2.
Wednesday, March 1. 2006
I don’t have an iPod. I don’t need one. If I had one, I wouldn’t know what to do with it, except selling it. I don’t listen to music regularly anymore, for me, that time has been more than 10 years ago. I used a simple Sony Walkman, and all CDs I bought got copied over to music cassettes.
And I really don’t understand what’s the hype with podcasting. While I still understand high interest in music, I can’t imagine replacing music by spoken text in everyday life. People in underground trains and streetcars surely give their brains a rest and let their thoughts flow while listening to their favorite music. But can they really relax while following a (maybe even scientific) “radio broadcast” consisting of spoken text? Or have I misunderstood what a podcast is?
But, I have a weblog. And I’m on Linux. I’m still cool.
Wednesday, February 15. 2006
_Weed := @Text(@Today) + “ ” + @Text(@Time(@Now));
_Cannabis := @HashPassword(_Weed);
_Tobacco := @LowerCase(_Cannabis);
_Hand := @ReplaceSubstring(_Tobacco; “(”:“)”:“/”:“+”:“o”:“l”; “”);
_Side := 7;
_Pass_The_Cutchie_On_The := @Left(_Hand; _Side);
Friday, December 16. 2005
I do testing in web development in that way, that the public website is stored in the public_html subdirectory, and the test site is located in develop_html. To see whether there are differences between those two sites, I use the following aliases:
alias changes=’dir=$(pwd|sed -e s:develop:public:); echo diff with $(echo $dir|sed -e s:$HOME:\~:); for file in $(for rcsfile in RCS/.??* RCS/*; do echo $rcsfile|cut -d, -f1; done); do echo “>>> $(basename $file):”; colordiff --no-banner $(basename $file) $dir; done’
That way only files I manage with RCS are checked, and I can do that call from any subdirectory of develop_html.
Thursday, December 1. 2005
I got myself a “Super Multi DVD ReWriter”, namely the LG Electronics GSA-2166D, an external DVD burner using a USB 2.0 interface. I plugged it in and could use it immediately with GNU/Linux thanks to udev and the kernel modules scsi_mod, sr_mod (for SCSI CD-ROM drives) and usb_storage.
I want to use DVD-RAM as backup media, and it really works like a charm: I could create an ext2 filesystem on it by simply issuing the command
# mke2fs /dev/dvdrw
after which I could mount it and use it like a harddisk. The only drawback is when a large amount of data is written, the kernel is still busily writing data for up to 15(!) minutes after the copy process has finished in the user space!
Be careful when using such media with autofs. I experienced that when I simply began to copy data to /misc/dvdram without explicitly mounting the media before, autofs reaches its timeout during the transfer, which leads to a currupt filesystem. The manually executed e2fsck failed, all files went into lost+found!
Tuesday, November 15. 2005
# screen -r
Suddenly the Dungeon collapses!! - You die...
#
# strings $(which screen) | egrep [Yy]ou
getpwuid() can’t identify your account!
Cannot open your terminal ‘%s’ - please check.
You are not the owner of %s.
Unfortunatelly you are not its owner.
You feel dead inside.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version.
You should have received a copy of the GNU General Public License along with this program (see the file COPYING); if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
You can’t run screen on a hardcopy terminal.
You can’t run screen on a terminal that overstrikes.
Suddenly the Dungeon collapses!! - You die...
Really quit and kill all your windows [y/n]
Your termcap does not specify how to change the terminal’s width to %d.
Your termcap does not specify how to change the terminal’s height to %d.
Your termcap does not specify how to change the terminal’s resolution to %dx%d.
Sorry, too late now. Place that in your .screenrc file.
You are %s logging.
’%s’ tries to touch your session, but fails.
The dead screen%s touch%s you. Try ‘screen -wipe’.
You hear %d distant explosion%s.
You may wish for a screen, what do you want?
You see here a good looking screen:
Your inventory:
You regain consciousness.
You must play from a terminal.
The Keystone Kops are after you!
getpwuid() can’t identify your account!
KAABLAMM!!! You triggered a land mine!
[ Passwords don’t match - your armor crumbles away ]
The blast of disintegration whizzes by you!
You add to your scroll of logging named “%s”.
You start writing on your scroll of logging named “%s”.
You don’t seem to have a scroll of logging named “%s”.
You put away your scroll of logging named “%s”.
You cannot escape from window %d!
You no longer sense the watcher’s silence.
You feel like someone is waiting for %d sec. silence...
Your bell is no longer invisible.
Suddenly you can’t see your bell!
You no longer sense the watcher’s presence.
You feel like someone is watching you...
You destroy poor window %d (%s).
You have a sad feeling for a moment...
You escaped the dungeon.
You drop a magic marker - Column %d Line %d
You choke on your food: %d bytes from %s
#
Wednesday, November 2. 2005
Since I stuck two more PCI cards into my PC, stability problems aroused with my TV card: When the system load raised while watching TV in fullscreen, the system froze randomly. In addition, after resetting my PC, the 150GB Software-RAID-5 array had to resynchronize itself. As I restarted the TV app while the sync was running, the system froze a second time. Resetting again, two of the three RAID-5 partitions had been marked as failed, such that the automatic reassembling at boot time failed - I couldn’t even do the assembling by hand! My whole data was lost!!
Continue reading "Hardware sucks!"
Tuesday, October 18. 2005
Taken from the Gentoo Weekly Newsletter, 17 October 2005:
ext2/3 are the main filesystems for a large amount of users but what a lot of people don’t know is that you can get almost Reiser4 speed out of it without any of the instability they’d associated with Reiser4. One of the great features of ext2/3 is the ability to tune it by adjusting various parameters.
Let’s take some precautions, first of all by finding out if some of those parameter are already enabled, by running
# tune2fs -l /dev/hdXX
(replacing XX with your drive and partition your ext2/3 filesystem resides in). If you don’t see tune2fs in the list then we can enable it, and just in case you do see ‘dir_index’ in ‘Filesystem features’ then you have either enabled it already or it was automatically enabled for you.
You are going to need a Gentoo LiveCD because changing parameters on mounted filesystems can cause problems, so in the interest of safety we are booting off the CD. At the start phase the Gentoo install system is booted into what’s called a “ramdisk” which is where the files needed are put into RAM to be used. mke2fs, tune2fs and other parts of the e2fsprogs package will be present at this stage.
Now let’s turn on the feature with
# tune2fs -O dir_index /dev/hdXX
Do a filesystem check with
# e2fsck -D /dev/hdXX
Do that on any ext2 or ext3 partition and then reboot. You should notice the difference straight away.
|