Archive for May, 2007

Helping Install Vista

Tuesday, May 15th, 2007

Yesterday I spend whole evening helping a client to install there new pc. It was a compaq preinstalled with Vista Basic Home and Microsoft Works. I needed to install it with Office and get there e-mail incl. addressbook from there old computer and put it in the new one. Also they wanted norton (bought in june 2006) and there ADSL to work.

First finishing the pre installed Vista, this took a lot of time. After it was finished it was easy to get adsl working. Just needed to plugin the usb cable from the dsl modem into the pc and install the drivers from the cdrom. It worked straight away however, windows started to download its updates automatically (I hate all the automatically security settings and warnings in windows) and the system was getting extremely slow.

After finishing when I open IE or FF and download something the system gets very slow. Taskmanager shows 100 procent cpu usage however it doesn’t show any process using 100 procent cpu usage so this was confusing. After struggling for a while I noticed that the adsl modem also has an ethernet connection. I decided to disconnect the usb and use ethernet instead. This fixed the problem and vista was very fast again. Conclusion, adsl modem driver was not compatible with vista.

The installation of Norton 2006 was not compatible with vista as well in such a way that it doesn’t allow you to install it. It gives a message that you need win2000 sp3, xp or higher.

Importing the old mail was a disaster, old version of Office and ended up with a outlook including all e-mails however, it didn’t save passwords, didn’t save the smtp require authentication setting and the contactbook was acting strange. In the end I installed thunderbird and imported the settings from outlook, that fixed the problem.

So my first impression of Vista is that it has a lot of compatibilty issues with old software/windows releases.

Writing Ruby Daemons

Wednesday, May 9th, 2007

We got some bash scripts running via a cronjob to set permissions of certain directories. To improve this process I wrote a very simple ruby daemon process to handle this.

First I installed the daemons gem (#gem install daemons), next I created the following:

#control.rb
require ‘rubygems’
require ‘daemons’

Daemons.run(’permissions.rb’)

———————————————————————-
#permissions.rb
loop do
system(’<some unix commands’>
system(’<some unix commands’>
sleep 15
end

As you can see, I use the standard unix tools by invoking the system(”) command. I am still trying to find out if it would be benefitial to use File.chmod and File.chown from the fileutils package.

Server Crash

Thursday, May 3rd, 2007

Have’nt written much in my blog lately because I have been to busy with work. The provider where we placed our 19″ rack and provides us with electriciy and bandwith for our hosting platform has decided to upgrade the power facilities. As a cause of this, they would take the power off our rack at the night from 24/25 April 2007, at 1.50AM.

After shutting down all servers at night and turning them back on again, a problem occured with one of our webservers. It halted at the boot loader screen (Actually just before the daemon drawing). It seems as if the screen was not showing anything from that moment on but the server was still booting (FreeBSD5.3). After a while everything seemed to be working but it appears as if the server was started in single user mode. All services where down accept ssh. After starting most manually we tried to dig into the problem.

My collegue bayu from Indonesia started recompiling userland and I waited for that, after it was recompilled and rebooted, the screen still did not show the startup procedure however, after a while I was getting a login prompt. I went home as it was already 6:00 AM and went straight to bed when I got home, 6:35 AM.

At 9.00 I got a wake up call from my boss saying that the server was not reachable anymore. I went downstairs to check from my home pc and it was correct, nothing was working anymore and we where not able to login to the server, however it was still pingable. I went to the datacenter
Again the screen stopped just before the daemon should appear and I couldn’t do much else then booting from the cd-rom. Bayu told me the last thing he did was reinstalling exim because of some problems we had earlier with it.

We where able to boot into fix-it mode however nothing really helped. We took out the 2nd HD (RAID1) so that we had a copy and did a fsck on the first disk. It fixed some errors, tried booting it but unsuccesfull. We tried copying back an old kernel, but none worked. We decided to make a spare backup and where able to mount a drive from our backupserver using NFS, from fixit mode.

One very annoying problem was that fixit mode keeps giving errors (Sudden commands stop working and give a segmentation fault, core dump) once in a while and then had to be rebooted again and again and again.

It took very long to fix this, I went back home the next morning arround 10 AM, straight for bed while our guys from indonesia keept working on restoring the backups that I made on a different machine (We had to switch to a spare machine with debian 3.1). The complexity is that the old machine was BSD and the new one Linux, which might cause some compatibility issues.

At night we had everything back up and running, after that I have been busy fixing small issues with mod_evasive, firehol etc.