Testing new css

Test test

Command (m for help): t
Partition number (1-4): 1
Hex code (type L to list codes): L

 0  Empty           1e  Hidden W95 FAT1 75  PC/IX           be  Solaris boot
 1  FAT12           24  NEC DOS         80  Old Minix       bf  Solaris
 2  XENIX root      39  Plan 9          81  Minix / old Lin c1  DRDOS/sec (FAT-
 3  XENIX usr       3c  PartitionMagic  82  Linux swap      c4  DRDOS/sec (FAT-
 4  FAT16 <32M      40  Venix 80286     83  Linux           c6  DRDOS/sec (FAT-
 5  Extended        41  PPC PReP Boot   84  OS/2 hidden C:  c7  Syrinx
 6  FAT16           42  SFS             85  Linux extended  da  Non-FS data
 7  HPFS/NTFS       4d  QNX4.x          86  NTFS volume set db  CP/M / CTOS / .
 8  AIX             4e  QNX4.x 2nd part 87  NTFS volume set de  Dell Utility
 9  AIX bootable    4f  QNX4.x 3rd part 8e  Linux LVM       df  BootIt
 a  OS/2 Boot Manag 50  OnTrack DM      93  Amoeba          e1  DOS access
 b  W95 FAT32       51  OnTrack DM6 Aux 94  Amoeba BBT      e3  DOS R/O
 c  W95 FAT32 (LBA) 52  CP/M            9f  BSD/OS          e4  SpeedStor
 e  W95 FAT16 (LBA) 53  OnTrack DM6 Aux a0  IBM Thinkpad hi eb  BeOS fs
 f  W95 Ext'd (LBA) 54  OnTrackDM6      a5  FreeBSD         ee  EFI GPT
10  OPUS            55  EZ-Drive        a6  OpenBSD         ef  EFI (FAT-12/16/
11  Hidden FAT12    56  Golden Bow      a7  NeXTSTEP        f0  Linux/PA-RISC b
12  Compaq diagnost 5c  Priam Edisk     a8  Darwin UFS      f1  SpeedStor
14  Hidden FAT16 <3 61  SpeedStor       a9  NetBSD          f4  SpeedStor
16  Hidden FAT16    63  GNU HURD or Sys ab  Darwin boot     f2  DOS secondary
17  Hidden HPFS/NTF 64  Novell Netware  b7  BSDI fs         fd  Linux raid auto
18  AST SmartSleep  65  Novell Netware  b8  BSDI swap       fe  LANstep
1b  Hidden W95 FAT3 70  DiskSecure Mult bb  Boot Wizard hid ff  BBT
1c  Hidden W95 FAT3

Change web hosting

My previous web hosting gone out of business, I guess. Their frontpage shows that "This account has been suspended". WTF. Luckily, I still have all my web files and database. So, after reading some forum, I decided to move to GoDaddy. The plan is good. I got $60 for two years.

The only backstep is that they don’t provide ssh access for shared hosting. So I have to transfer all the files using FTP. What a pain in the ***. It took me 8 hours to transfer 50MB of my web. Furthermore, they limit their phpMyAdmin to 2MB only, so I (again) have to transfer my sql file and let them install it for me.

Well, at least they have a good support personnel.

Migrating Mailserver

My new mailserver experienced hardware problems related to harddisks and/or motherboard. The problem first occured in /var/log/messages as command timed out on the ata disk.

Then later, Ext3 was experiencing aborted journal, which then make the filesystem read-only. This promptly caused problem with the mailserver activity since people couldn’t send/receive mails anymore.

At first, rebooting the machine would temporarily solve the problem, but it became more often everyday and worsened, I couldn’t even log into the machine anymore.

So, we decided to move back the mailserver to the old machine temporarily. We need to backup this:

  1. The vpopmail database in mysql.
  2. /var/qmail/
  3. /home/vpopmail/
  4. /var/log/qmail/
  5. /var/log/maildrop/
  6. /etc/mail/
  7. /.spamassassin/
  8. /etc/tcprules.d/
  9. /usr/share/toaster/mrtg/
  10. /etc/httpd/conf/httpd.conf, along with any htaccess password file.

The cause of the problem is still unknown, but I suspect these:

  1. Electrical surge from an old UPS used by the mailserver.
  2. The temperature of the server room is too cold. 18 degree celcius? I need to check the operational temperature for the harddisk.

Note on Installing Kannel on Centos4.2

I encountered a problem when tried to install kannel on centos4.2. The kannel package is available from dag repository.

This is my dag.repo:
#dag
[dag] name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
enabled=1

When I yum install kannel, it got error:
Setting up Install Process
Setting up repositories
dag                       100% |=========================| 1.1 kB    00:00
update                    100% |=========================|  951 B    00:00
base                      100% |=========================| 1.1 kB    00:00
addons                    100% |=========================|  951 B    00:00
extras                    100% |=========================| 1.1 kB    00:00
Reading repository metadata in from local files
primary.xml.gz            100% |=========================| 1.4 MB    05:06
dag       : ################################################## 3871/3871
Added 3871 new packages, deleted 0 old in 87.35 seconds
Parsing package install arguments
Resolving Dependencies
–> Populating transaction set with selected packages. Please wait.
—> Downloading header for kannel to pack into transaction set.
kannel-1.4.0-3.2.el4.rf.i 100% |=========================| 6.5 kB    00:00
—> Package kannel.i386 0:1.4.0-3.2.el4.rf set to be updated
–> Running transaction check
–> Processing Dependency: libsqlite.so.0 for package: kannel
–> Finished Dependency Resolution
Error: Missing Dependency: libsqlite.so.0 is needed by package kannel

From the Centos list, someone encountered similar problem, but he got it when he wanted to upgrade from centos4.1 to 4.2. Mine is installing on 4.2.

So, since the error is only regarding missing library, and since he said that sqlite from different version can be installed along side, I made a decision to force install sqlite from dag:
rpm -ivh –force sqlite-2.8.16-1.2.el4.rf.i386.rpm
Preparing…                ########################################### [100%]
   1:sqlite                 ########################################### [100%]

In /usr/lib, now there is the needed library: libsqlite.so.0.

And then I used yum to install kannel:
Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 kannel                  i386       1.4.0-3.2.el4.rf  dag               1.1 M

Transaction Summary
=============================================================================
Install      1 Package(s)
Update       0 Package(s)
Remove       0 Package(s)
Total download size: 1.1 M
Is this ok [y/N]: y
Downloading Packages:
(1/1): kannel-1.4.0-3.2.e 100% |=========================| 1.1 MB    01:26
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: kannel                       ######################### [1/1]

Installed: kannel.i386 0:1.4.0-3.2.el4.rf
Complete!

Then I plugged the gsm modem in:

Mar 20 17:12:43 server-mail kernel: usb 3-1: new full speed USB device using address 2
Mar 20 17:12:44 server-mail kernel: drivers/usb/serial/usb-serial.c: USB Serial support registered for Generic
Mar 20 17:12:44 server-mail kernel: usbcore: registered new driver usbserial_generic
Mar 20 17:12:44 server-mail kernel: usbcore: registered new driver usbserial
Mar 20 17:12:44 server-mail kernel: drivers/usb/serial/usb-serial.c: USB Serial Driver core v2.0
Mar 20 17:12:44 server-mail kernel: drivers/usb/serial/usb-serial.c: USB Serial support registered for PL-2303
Mar 20 17:12:44 server-mail kernel: pl2303 3-1:1.0: PL-2303 converter detected
Mar 20 17:12:44 server-mail kernel: usb 3-1: PL-2303 converter now attached to ttyUSB0
Mar 20 17:12:44 server-mail kernel: usbcore: registered new driver pl2303
Mar 20 17:12:44 server-mail kernel: drivers/usb/serial/pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.11

So far so good….