Linode.com Forum Forum Index Linode.com Forum
Linode Community Forums
 


Step-by-step Slackware 10.0 to Slackware 11.0

Click here to go to the original topic

 
       Linode.com Forum Forum Index -> Linux Tips, Tricks, Tutorials
Author Message
Deckert



Joined: 24 Mar 2007
Posts: 42
Location: South Africa

Posted: Thu Apr 26, 2007 3:30 pm    Post subject: Step-by-step Slackware 10.0 to Slackware 11.0  

Hi,

This upgrade is based loosely on the UPGRADE.TXT file provided by Pat, but it includes the steps you need specifically for a Linode. I tested it on a 4GB partition and it worked for me. It may not work for you -- backup all your data before you start!

Start with a clean install of Slackware 10 and select a 2.6.20 or later kernel. The double disk space should help with that :-)

Next, download the slackware 11.0 Disk 1 ISO to '/'.

Mount the ISO file on your local file-system:
Code: mount /slackware-11.0-install-d1.iso /mnt -t iso9660 -o ro,loop=/dev/loop0

Switch to single user mode. It will log you out, but just log in again as 'root'.
Code: telinit 1

Now, upgrade your glib shared libraries:
Code: upgradepkg /mnt/slackware/a/glibc-solibs-*.tgz

Upgrade your package tools:
Code: upgradepkg /mnt/slackware/a/pkgtools-*.tgz

Upgrade (or install) sed:
Code: upgradepkg --install-new /mnt/slackware/a/sed-*.tgz

Upgrade only what is already installed (you can add more packages later with slapt-get or whatever means you prefer):
Code: upgradepkg  /mnt/slackware/*/*.tgz

Before you reboot, you need to make a couple of changes so that your new config files and start-up scripts will work. Execute the following script to make 'live' all the new config files and start-up scripts. The script will make backups of the old configs:

Code:    #!/bin/sh
   cd /etc
   find . -name "*.new" | while read configfile ; do
     if [ ! "$configfile" = "./rc.d/rc.inet1.conf.new" \
       -a ! "$configfile" = "./group.new" \
       -a ! "$configfile" = "./passwd.new" \
       -a ! "$configfile" = "./shadow.new" ]; then
       cp -a $(echo $configfile | rev | cut -f 2- -d . | rev) \
         $(echo $configfile | rev | cut -f 2- -d . | rev).bak 2> /dev/null
       mv $configfile $(echo $configfile | rev | cut -f 2- -d . | rev)
     fi
   done


Now before you reboot, you have to enable your LISH console. Copy the original inittab and securetty files back, so that you can login using the LISH console if anythnig goes wrong:

Code: cp /etc/securetty.bak /etc/securetty
cp /etc/inittab.bak /etc/inittab


-- At this point you can reboot your Linode from the web management console and it should boot up as a Slackware 11.0 box.

To tie up a few loose ends, you can disable the udev daemon (since the Linode kernels have all the devices in anyway):
Code: chmod -x /etc/rc.d/rc.udev

I also hard-configured my IP address and gateway information so that I don't have to run the dhcp client daemon. Saves a small amount of RAM.

--deckert

Edit: fixed typo in the upgrade packages step
Back to top  
unixfool



Joined: 08 Apr 2004
Posts: 61
Location: VA

Posted: Fri Apr 27, 2007 10:21 am    Post subject:  

SWEET!!!!
Back to top  
wolfnix



Joined: 16 May 2007
Posts: 1

Posted: Thu May 17, 2007 9:28 pm    Post subject:  

Hey this worked for me too!!

root@host:~# cat /etc/slackware-version
Slackware 11.0.0
root@host:~# uname -a
Linux host 2.6.21.1-linode32 #1 Sun May 6 17:50:51 EDT 2007 i686 i686 i386 GNU/Linux
root@host:~#
Back to top  
 
       Linode.com Forum Forum Index -> Linux Tips, Tricks, Tutorials
Page 1 of 1