Monthly Archives: February 2008

Howto migrate a confixx server

You can perform a complete backup or a restore of all confixx data with the confixx scripts backup.pl/restore.pl and transfer them to a new server.

Important you need the same confixx version on both servers otherwise the restore is guaranteed to fail due to different tables in mysql

1. Start the backup on your source server. This command will create the backup files they will be automatically split into 2GB files.

# ./backup.pl –dump migration.tgz -dbg

2. Transfer the backed up files to the target server with scp use the following command (please change the IP to your target server) make sure you have enough space on the /root partition or change the path

# scp migration.tgz.a* root@213.99.99.99:/root

3. Start the restore process and create the map file. Warning only use -–clean on a fresh install otherwise you will delete you database and your webs. Issue the following command

# ./restore.pl –mapping –dump migration.tgz –map restore.txt –clean –debug

4. Edit the file restore.txt and make you changes check the following link

http://kb.swsoft.com/en/579

5. Now you can start the restore

# ./restore.pl –restore –dump migration.tgz –map restore.txt –clean –debug

For further information please check the following links to the swsoft knowledge database

http://kb.swsoft.com/en/578

http://kb.swsoft.com/en/580

PS: you must register confixx with a valid key before you can begin the restore

How to install grub on a HP Proliant Server

This on took me a while to solve. I got a new server from HP a Proliant DL 380 G5. So i went about installing my favorite distro on it gentoo. So far so good until i reached the step to install grub. Grub would not recognize the hard drives on the smart array controller. This is what i did to fix the problem

E dit the file /boot/grub/device.map to look like this

(fd0) /dev/fd0
(hd0) /dev/cciss/c0d0

Run grub like this:

/sbin/grub --batch --device-map=/boot/grub/device.map --config-file=/boot/grub/grub.conf --no-floppy

grub shell:

grub> root (hd0,0)
grub> setup (hd0)
grub> quit

That’s it your done go compile your kernel or something 🙂

Gentoo gnome automatic keyring loading

When you log onto a gnome session in ubuntu your gnome keyring automatically gets loaded. So that you can use your WPA or ssh keys in your gnome session. On a gentoo install you get prompted to type in your password to unlock you keyring. So you have to type in your password twice this about how to stop this behavior and pass on your login from gdm to the keyring manager. You must edit a few files in /etc/pam.d

On a gentoo ~x86 system i had to edit the following files all changes i had to make are highlighted in bold text. Please follow the exact order of the statements they are important to make this work.

/etc/pam.d/system-auth

#%PAM-1.0
auth required pam_env.so
auth optional pam_gnome_keyring.so
auth sufficient pam_unix.so try_first_pass likeauth nullok
auth required pam_deny.so

account required pam_unix.so

password required pam_cracklib.so difok=2 minlen=8 dcredit=2 ocredit=2 try_first_pass retry=3
password optional pam_gnome_keyring.so
password sufficient pam_unix.so nullok md5 shadow use_authtok
password required pam_deny.so

session required pam_limits.so
session optional pam_gnome_keyring.so auto_start
session required pam_unix.so

/etc/pam.d/gdm

#%PAM-1.0
auth optional pam_env.so
auth optional pam_gnome_keyring.so
auth include system-auth
auth required pam_nologin.so
session optional pam_gnome_keyring.so auto_start
account include system-auth
password include system-auth
session include system-auth

/etc/pam.d/passwd

#%PAM-1.0
password optional pam_gnome_keyring.so
auth include system-auth
account include system-auth
password include system-auth

/etc/pam.d/gnome-screensaver

#%PAM-1.0
# Fedora Core
auth optional pam_gnome_keyring.so
auth include system-auth
account include system-auth
password include system-auth
session include system-auth

# SuSE/Novell
#auth include common-auth
#account include common-account
#password include common-password
#session include common-session

Source Gentoo forum: