Author Archives: Simon

Ubuntu Upgrade to Hardy

I know i had been warned this software is still beta and so on. But i thought i would give it a try with 26 days more to wait. So here is my update story and this is what i did to update my gutsy install on my Dell Vostro 1500 to hardy

 1. Press Alt+F2 and enter update-manager –devel-release

 2. Click on the button for upgrade on my system the update manager needed to upgrade about 1200 packages.

 3. If you have any custom package sources they will get disabled by the update manager the ubuntu sources will be updated correctly

 4. wait and be patient

 5. the system will reboot when everything is finished here is where my problems started after the reboot my system was still using the old kernel 2.6.22 the new 2.6.24-12-generic would not boot

 6. So i rebooted into the 2.6.24-12-386 kernel which booted with no sound and no wireless

 7. Then i found out that during the update the module package was not installed so i installed it with  a :  aptitude install linux-ubuntu-modules-2.6.24-12-generic

 8. Then i rebooted again and this time i could boot the  2.6.24-12-generic kernel happy day wireless was up and running but still no sound

 9. Sound was a bit tricky because i didn’t really no where to look what was going wrong pulseaudio or alsa

 10. Thanks to the ubuntu forum for some help some other users where having the same problems  in this thread

Upgrade to Hardy..no sound

 11. The problem having no sound where resolved with the following commands:

aptitude remove linux-image-2.6.24-12-386
update-initramfs -k 2.6.24-12-generic -c

12. Thats it reboot and enjoy your sound and have fun with hardy. But remember before you complain about crashes this software is still beta.

 

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:

vmware Server /tmp is full and all vms are shutdown

One of our gentoo vmware servers crashed and stopped all running VMs on the server. After looking trough the logs i found out that vmware server had filled the /tmp partion which was 1GB. What i didn’t know is that vmware requires the /tmp partion to  be equivalent to 1.5 times the amount of memory on the host. Otherwise you will experience vm crashes. To change the tmp location edit

/etc/vmware/config

and add the following line tmpDirectory = “/<your>/<new>/<tmp>/<directory>”

Be sure that the specified directory is on a local hard drive and that the user running the VMware software has write permissions for that directory. For more infos check out

http://www.vmware.com/support/gsx3/doc/intro_sysreqs_host_gsx.html