Code Sample |
#!/bin/sh # # loadrox - Downloads and installs the Rox Filer file manager for a # Damn Small Linux user. # Rev 0 11/15/03 # # First, create a /usr tree on the ramdisk if the user is running from # the Damn Small Linux Live CD. Why? Because the default /usr tree is # linked to the read-only CDROM file system and new files are not allowed. # Lets create a REAL /usr tree structure on the ramdisk and add a bunch of # Symlinks back to the CDROM for all of the files inside the old /usr tree. ls -l /usr | grep 'KNOPPIX' > /tmp/loadrox.tmp if test -s '/tmp/loadrox.tmp' then echo 'System is running from a Live CD compressed image filesystem. ' echo 'Creating a writable /usr tree on the RAM Disk...' cp -srd /KNOPPIX/usr/ /ramdisk ln -sf --target-directory=/ /ramdisk/usr fi rm /tmp/loadrox.tmp # Next, download, unpack and install the Slackware 9.1 GDK pixbuf libraries echo 'Grabbing GDK pixbuf libraries...' wget -c http://distro.ibiblio.org/pub/Linux/distributions/slackware/slackware-9.1/slackware/l/gdk-pixbuf-0.22.0-i486-1.tgz tar -zxvf gdk-pixbuf-0.22.0-i486-1.tgz sh ./install/doinst.sh # Next, download, unpack and install the Slackware 9.1 PNG libraries. DSL comes # with libpng version 2.x and version 3.x or higher is needed by Rox Filer echo 'Grabbing newer PNG libraries...' wget -c http://distro.ibiblio.org/pub/Linux/distributions/slackware/slackware-9.1/slackware/l/libpng-1.2.5-i386-1.tgz tar -zxvf libpng-1.2.5-i386-1.tgz sh ./install/doinst.sh # Next, download, unpack and install the Slackware 8.1 XML2 libraries. echo 'Grabbing XML2 libraries...' wget -c http://distro.ibiblio.org/pub/Linux/distributions/slackware/slackware-8.1/slackware/l/libxml2-2.4.22-i386-1.tgz tar -zxvf libxml2-2.4.22-i386-1.tgz sh ./install/doinst.sh # Finally, download, unpack and install the Generic Linux Rox Filer 1.2 binaries echo 'Grabbing Rox Filer binaries...' echo 'Choose HOME install after the download completes' wget -c http://unc.dl.sourceforge.net/sourceforge/rox/rox-linux-x86-1.2.0.tgz tar -zxvf rox-linux-x86-1.2.0.tgz # Before running the install script, add symlinks to the newly installed # libraries in the main /usr tree cp -srd /home/damnsmall/usr /ramdisk sh ./rox-linux-x86-1.2.0/install.sh # After choosing HOME install, create a symlink in /usr/bin ln -s /home/root/bin/rox --target-directory=/usr/bin # Launch ROX-Filer for the first time as user damnsmall sudo -u damnsmall rox |