Code Sample |
#!/bin/sh # # .start_opera - Checks to see if the Opera Web Browser is already installed # and starts it up. Otherwise, run the install script. # Rev 0 11/22/03 # Check to see if Opera is already installed if test -f '/usr/bin/opera' then /usr/bin/opera & exit fi # Otherwise, run the insall script as root cd /home/damnsmall rxvt -rv -T "installing Opera..." -e sudo -u root ./.install_opera /usr/bin/opera exit |
Code Sample |
#!/bin/sh # # .install_opera - Downloads and installs the Opera 6.12 Web Browser for a # Damn Small Linux user. # Rev 0 11/22/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 Opera 6.12 Linux Static binaries echo 'Grabbing Opera 6.12 Static Binaries...' wget -c http://arc.opera.com/pub/opera/linux/612/final/en/i386/static/opera-6.12-20030305.1-static-qt.i386.tar.gz tar -zxvf opera-6.12-20030305.1-static-qt.i386.tar.gz cd opera-6.12-20030305.1-static-qt.i386 echo $'yes\n' | sh ./install.sh -s cd /home/damnsmall # Next, download, unpack and install the Flash plugin. echo 'Grabbing Flash plugin...' wget -c http://download.macromedia.com/pub/shockwave/flash/english/linux/6.0r79/install_flash_player_6_linux.tar.gz tar -zxvf install_flash_player_6_linux.tar.gz cp install_flash_player_6_linux/libflashplayer.so /usr/lib/opera/plugins # Next, download, unpack and install the Slackware 8.1 OpenMotif libraries. echo 'Grabbing OpenMotif libraries...' wget -c http://distro.ibiblio.org/pub/Linux/distributions/slackware/slackware-8.1/extra/openmotif-2.2.1/openmotif-2.2.1-i386-1.tgz tar -zxvf openmotif-2.2.1-i386-1.tgz sh ./install/doinst.sh # Before running Opera, move the newly installed libraries into # the main /usr tree. cd /usr cp -r --reply=yes /home/damnsmall/usr ../ cd /home/damnsmall # Create symlink to shared library in /usr/lib cd /usr/lib ln -s /usr/X11R6/lib/libXm.so.2 cd /home/damnsmall # Create Desktop Icon for Opera echo 'table Icon' > /home/damnsmall/.xtdesktop/opera.lnk echo ' Type: Program' >> /home/damnsmall/.xtdesktop/opera.lnk echo ' Caption: Opera' >> /home/damnsmall/.xtdesktop/opera.lnk echo ' Command: opera' >> /home/damnsmall/.xtdesktop/opera.lnk echo ' Icon: /usr/share/opera/images/opera_32x32.png' >> /home/damnsmall/.xtdesktop/opera.lnk echo ' X: 295' >> /home/damnsmall/.xtdesktop/opera.lnk echo ' Y: 114' >> /home/damnsmall/.xtdesktop/opera.lnk echo 'end' >> /home/damnsmall/.xtdesktop/opera.lnk chown damnsmall:staff /home/damnsmall/.xtdesktop/opera.lnk # Clean up some junk in the /home/damnsmall directory rm -rf /home/damnsmall/install_flash_player_6_linux rm -rf /home/damnsmall/opera-6.12-20030305.1-static-qt.i386 rm -rf /home/damnsmall/usr rm -rf /home/damnsmall/install rm -rf /home/damnsmall/opera-6.12-20030305.1-static-qt.i386.tar.gz rm -rf /home/damnsmall/install_flash_player_6_linux.tar.gz rm -rf /home/damnsmall/openmotif-2.2.1-i386-1.tgz # Now tell the user how to start Opera echo 'Opera installation is complete' echo 'Please exit from the root shell and try it out.' echo 'To run it from the command prompt, type this on a blank line:' echo '' echo '# opera' echo '' echo 'Or if you use Enhance, click on the new Opera desktop icon' echo 'You may need to toggle between NO ICONS and ICONS to make' echo 'the new desktop icon appear.' |
Code Sample |
#!/bin/sh # # .install_opera - Downloads and installs the Opera 6.12 Web Browser for a # Damn Small Linux user. # Rev 1 11/24/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 Opera 6.12 Linux Static binaries echo 'Grabbing Opera 6.12 Static Binaries...' wget -c http://arc.opera.com/pub/opera/linux/612/final/en/i386/static/opera-6.12-20030305.1-static-qt.i386.tar.gz tar -zxvf opera-6.12-20030305.1-static-qt.i386.tar.gz cd opera-6.12-20030305.1-static-qt.i386 echo $'yes\n' | sh ./install.sh -s cd /home/damnsmall # Next, download, unpack and install the Flash plugin. echo 'Grabbing Flash plugin...' wget -c http://download.macromedia.com/pub/shockwave/flash/english/linux/6.0r79/install_flash_player_6_linux.tar.gz tar -zxvf install_flash_player_6_linux.tar.gz cp install_flash_player_6_linux/libflashplayer.so /usr/lib/opera/plugins # Next, download, unpack and install the Slackware 8.1 OpenMotif libraries. echo 'Grabbing OpenMotif libraries...' wget -c http://distro.ibiblio.org/pub/Linux/distributions/slackware/slackware-8.1/extra/openmotif-2.2.1/openmotif-2.2.1-i386-1.tgz tar -zxvf openmotif-2.2.1-i386-1.tgz sh ./install/doinst.sh # Before running Opera, move the newly installed libraries into # the main /usr tree. cd /usr cp -r --reply=yes /home/damnsmall/usr ../ cd /home/damnsmall # Create symlink to shared library in /usr/lib cd /usr/lib ln -s /usr/X11R6/lib/libXm.so.2 cd /home/damnsmall # Create Desktop Icon for Opera cp /usr/share/opera/images/opera_32x32.png /home/damnsmall/.xtdesktop/opera.png echo 'table Icon' > /home/damnsmall/.xtdesktop/opera.lnk echo ' Type: Program' >> /home/damnsmall/.xtdesktop/opera.lnk echo ' Caption: Opera' >> /home/damnsmall/.xtdesktop/opera.lnk echo ' Command: sh /home/damnsmall/.start_opera' >> /home/damnsmall/.xtdesktop/opera.lnk echo ' Icon: /home/damnsmall/.xtdesktop/opera.png' >> /home/damnsmall/.xtdesktop/opera.lnk echo ' X: 295' >> /home/damnsmall/.xtdesktop/opera.lnk echo ' Y: 114' >> /home/damnsmall/.xtdesktop/opera.lnk echo 'end' >> /home/damnsmall/.xtdesktop/opera.lnk chown damnsmall:staff /home/damnsmall/.xtdesktop/opera.lnk chown damnsmall:staff /home/damnsmall/.xtdesktop/opera.png # Clean up some junk in the /home/damnsmall directory rm -rf /home/damnsmall/install_flash_player_6_linux rm -rf /home/damnsmall/opera-6.12-20030305.1-static-qt.i386 rm -rf /home/damnsmall/usr rm -rf /home/damnsmall/install rm -rf /home/damnsmall/opera-6.12-20030305.1-static-qt.i386.tar.gz rm -rf /home/damnsmall/install_flash_player_6_linux.tar.gz rm -rf /home/damnsmall/openmotif-2.2.1-i386-1.tgz # Now tell the user how to start Opera echo 'Opera installation is complete' echo 'Please exit from the root shell and try it out.' echo 'To run it from the command prompt, type this on a blank line:' echo '' echo '# opera' echo '' echo 'Or if you use Enhance, click on the new Opera desktop icon' echo 'You may need to toggle between NO ICONS and ICONS to make' echo 'the new desktop icon appear.' |
Code Sample |
#!/bin/sh # # .install_opera - Downloads and installs the Opera 6.12 Web Browser for a # Damn Small Linux user. # Rev 2 11/24/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 Opera 6.12 Linux Static binaries echo 'Grabbing Opera 6.12 Static Binaries...' wget -c http://arc.opera.com/pub/opera/linux/612/final/en/i386/static/opera-6.12-20030305.1-static-qt.i386.tar.gz tar -zxvf opera-6.12-20030305.1-static-qt.i386.tar.gz cd opera-6.12-20030305.1-static-qt.i386 echo $'yes\n' | sh ./install.sh -s cd /home/damnsmall # Next, download, unpack and install the Flash plugin. echo 'Grabbing Flash plugin...' wget -c http://download.macromedia.com/pub/shockwave/flash/english/linux/6.0r79/install_flash_player_6_linux.tar.gz tar -zxvf install_flash_player_6_linux.tar.gz install_flash_player_6_linux/libflashplayer.so cp install_flash_player_6_linux/libflashplayer.so /usr/lib/opera/plugins # Next, download, unpack and install the Slackware 8.1 OpenMotif libraries. echo 'Grabbing OpenMotif libraries...' wget -c http://distro.ibiblio.org/pub/Linux/distributions/slackware/slackware-8.1/extra/openmotif-2.2.1/openmotif-2.2.1-i386-1.tgz tar -zxvf openmotif-2.2.1-i386-1.tgz usr/X11R6/lib/libXm.so.2.2.1 cd usr/X11R6/lib/ ln -s libXm.so.2.2.1 libXm.so ln -s libXm.so.2.2.1 libXm.so.2 # Before running Opera, move the newly installed libraries into # the main /usr tree. cd /usr cp -r --reply=yes /home/damnsmall/usr ../ cd /home/damnsmall # Create symlink to shared library in /usr/lib cd /usr/lib ln -s /usr/X11R6/lib/libXm.so.2 cd /home/damnsmall # Create Desktop Icon for Opera cp /usr/share/opera/images/opera_32x32.png /home/damnsmall/.xtdesktop/opera.png echo 'table Icon' > /home/damnsmall/.xtdesktop/opera.lnk echo ' Type: Program' >> /home/damnsmall/.xtdesktop/opera.lnk echo ' Caption: Opera' >> /home/damnsmall/.xtdesktop/opera.lnk echo ' Command: sh /home/damnsmall/.start_opera' >> /home/damnsmall/.xtdesktop/opera.lnk echo ' Icon: /home/damnsmall/.xtdesktop/opera.png' >> /home/damnsmall/.xtdesktop/opera.lnk echo ' X: 295' >> /home/damnsmall/.xtdesktop/opera.lnk echo ' Y: 114' >> /home/damnsmall/.xtdesktop/opera.lnk echo 'end' >> /home/damnsmall/.xtdesktop/opera.lnk chown damnsmall:staff /home/damnsmall/.xtdesktop/opera.lnk chown damnsmall:staff /home/damnsmall/.xtdesktop/opera.png # Clean up some junk in the /home/damnsmall directory rm -rf /home/damnsmall/install_flash_player_6_linux rm -rf /home/damnsmall/opera-6.12-20030305.1-static-qt.i386 rm -rf /home/damnsmall/usr rm -rf /home/damnsmall/opera-6.12-20030305.1-static-qt.i386.tar.gz rm -rf /home/damnsmall/install_flash_player_6_linux.tar.gz rm -rf /home/damnsmall/openmotif-2.2.1-i386-1.tgz # Now tell the user how to start Opera echo 'Opera installation is complete' echo 'Please exit from the root shell and try it out.' echo 'To run it from the command prompt, type this on a blank line:' echo '' echo '# opera' echo '' echo 'Or if you use Enhance, click on the new Opera desktop icon' echo 'You may need to toggle between NO ICONS and ICONS to make' echo 'the new desktop icon appear.' |