DSL Ideas and Suggestions :: Install scripts for Opera 6.12



So here are the 2 new scripts that I mentioned below.  They work correctly on a Pentium 60 with 40MB of RAM running from the liveCD. They MAY not work correctly from liveCD with only 32MB of RAM. The only way to find out is to try it out:

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

Great script, I'm actually very impressed, the opera browser seems lighter than gLinks. I'm running dsl on an old IBM Cyrix 166mhz with 24mb of ram so you really feel the difference.

Great Job man, thanks!

I tried a couple of times to get this to work. Finally decided to do some rewriting on the
.install_opera script. I can boot opera with #opera, but even though I added lines to my
filetool.lst, I cannot restore opera on reboot, the restore cannot write to the directories, or cannot find them, etc.
----
Do we have new scripts being prepared? I know Opera is not a good, really, as
MozillaFirebird, so it might get left out, but I just wanted to see if I could work
with it.
----
One small advantage to opera, you can get it to view the source of a web page
(some of mine, of course) in Scite. In other Linux distros I work with, I use
Opera 6.03 and Gnotepad+ for this, and it works well.
----
Other downside to adding another browser to one's backup.tar.gz
Takes too long to pack and unpack. MozillaFirebird is enough, really for the
next distro.

:)

The compressed Opera download file is actually smaller than the compressed Mozilla Firebird download file.

A good idea may be to clear out your Opera Cache before doing the backup process. This will save some space.

Refer to my reply in your other post (tl/tk) for the list of files that should be backed up. I have not tested this process, but I believe that it will work properly.

Last, but not least, you should start Opera from the command prompt by typing in:

#/home/damnsmall/.start_opera

This is important because the .start_opera script supplies a new path for the Opera Libraries (export LD_LIBRARY_PATH=/home/damnsmall/lib)

I would expect errors if you just typed #opera on the command line without the statement listed above.

Good Luck.

I got Opera downloaded and was able to run it with:
#./.start_opera
I added all these to my filetool.lst, and ran backup:
----
/home/damnsmall/.opera
/home/damnsmall/bin   < this one
/home/damnsmall/lib     < this one
/home/damnsmall/share   < this one
/home/damnsmall/.start_opera
/home/damnsmall/.install_opera
----
I have marked the ones Backup could not find.
It did find .opera, and backed that up, and also .start_opera and
.install_opera.
Here is the .install_opera script that I am using:
---
http://www.angelfire.com/ms/telegram/install_opera
---
I commented out the flash and the icon areas to shorten my debug process.
-----
As you can imagine, when I rebooted, and restored, I got back the .opera
directory, but did not get Opera back itself. When I ran .start_opera, it
went to .install_opera, and wanted to download Opera again.
Also, I note that in my /home/damnsmall directory, I find
libXm.so
libXm.so.2
both in red, if that means anything.
----
Opera does work just fine after download, etc., I'm just not able to get it
to back itself up so I can restore after a reboot.
----

???

Next Page...
original here.