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 1 11/26/03 # Add local user library path export LD_LIBRARY_PATH=/home/damnsmall/lib #Check to see if Opera is already installed if test -f '/home/damnsmall/bin/opera' then /home/damnsmall/bin/opera & exit fi # Otherwise, run the insall script cd /home/damnsmall rxvt -rv -T "installing Opera..." -e sh ./.install_opera /home/damnsmall/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 3 11/26/03 # First, 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 rm -rf /home/damnsmall/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 cd /home/damnsmall rm -rf /home/damnsmall/opera-6.12-20030305.1-static-qt.i386 # 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 rm -rf /home/damnsmall/install_flash_player_6_linux.tar.gz cp install_flash_player_6_linux/libflashplayer.so /home/damnsmall/lib/opera/plugins rm -rf /home/damnsmall/install_flash_player_6_linux # Next, download, unpack and install the Slackware 9.0 OpenMotif libraries. echo 'Grabbing OpenMotif libraries...' wget -c http://mirror.clarkson.edu/pub/distributions/slackware/slackware-9.0/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 rm -rf /home/damnsmall/openmotif-2.2.1-i386-1.tgz 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 damnsmall usr lib directory. cd /home/damnsmall cp --reply=yes /home/damnsmall/usr/X11R6/lib/* /home/damnsmall/lib rm -rf /home/damnsmall/usr # Create Desktop Icon for Opera cp /home/damnsmall/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 |