Installing a second copy of Opera under KDE
Saturday, February 5, 2011 3:31:30 PM
The following are instructions for installing a second copy of Opera under KDE. Use these instructions for Gnome or Unity and these instructions for Xfce.
Firstly, grab a XZ compressed tar package that matches your OS and architecture. So if you use 32-bit Linux you want a package that ends ".i386.linux.tar.xz" and if you use 64-bit Linux you want a package that ends ".x86_64.linux.tar.xz".
Save it some where convenient and it should look something like this in your file manager:

Right click on this file and choose 'Extract Acrhive Here':

You should now have the original file plus a similarly named directory, like this:

Enter the directory and you will find the following Opera files:

Click on 'Tools -> Open Terminal', like so:

A terminal (konsole) will now open at this location. At this stage you have two options.
Firstly you could run Opera 'in place' which will mean that you don't actually have to install it but rather just run it directly from this directory. It will even store its profile (settings) within this directory. This is a particularly good choice if you want to start with a clean profile for every snapshot, or if you want to have a portable version of Opera that you can carry around on a USB drive (just extract the directory to the USB drive).
To run Opera in place, type the following and press the 'Enter (Return)' key:
./opera &
That is it!
When you are finished with Opera shut it down as normal. If you want to start it again, just navigate back to the extracted directory, start a terminal and issue the above command again.Note: If you want your bookmarks and speeddials from your stable Opera install, the easiest way to copy them across is to enable Opera Link.
The second option is to install Opera alongside your stable version. The advantage here is that you could install one snapshot, configure it how you like and then upgrade it through all future snapshots, whilst retaining every one of your settings. You also get full desktop environment integration (e.g. a shortcut in the application menu). To start installation type the following in the konsole window that you opened from within this directory:
./install --user --unattended --suffix snapshot
This means install Opera for the current user only (--user), without prompting for further options (--unattended) and with a suffix of 'snapshot' (--suffix snapshot).
Suffixes are used to allow multiple side by side installations, which is exactly what we want. The suffix renames Opera's files slightly so they don't conflict with the main install (since it has no suffix). You could use any keyword as a suffix, but snapshot seems appropriate here.

The install script will start installation and display the following:

A second copy of Opera is now installed alongside the stable version!

You can confirm this by looking in your Applications menu:

Finally, if you ever want to uninstall the snapshot then start konsole (it doesn't matter from which directory when uninstalling) and issue the following command:
~/.local/bin/uninstall-opera-snapshot














hundredorzero # Thursday, December 1, 2011 8:39:29 PM
Q-1: Can't we run install script inside terminal under kde?
Q-2: Should I go back to gnome for installing second copy of Opera? or should I just follow this blogpost?
Ruarí Ødegaardruario # Friday, December 2, 2011 7:23:12 AM
Originally posted by hundredorzero:
Of course, that is what I tell you how to do above!Originally posted by hundredorzero:
Either will work but if you are already in KDE you can just follow this one as that is why I wrote it.If you want to see the same install interface you saw in Gnome, you can adjust these directions very slightly. After the step above where you open a terminal within the extracted directory, issue:
You can then follow the Gnome instructions from that point onwards.
Ruarí Ødegaardruario # Friday, December 2, 2011 7:23:21 AM
1. 2.
The reason I don't just provide these is because: I know that not everyone understands how to open a terminal (or is scared by the idea); not everyone would realise that they need to switch into the directory where the package was downloaded first (or how to do that); not everyone would adjust the commands to account for build number and system architecture (and then be confused when it fails); not everyone would pay careful attention to the options in the installer itself and may just accept defaults (which would be wrong for a side by side installation).
Hence these rather long blog posts.
Ruarí Ødegaardruario # Friday, December 2, 2011 7:28:37 AM
1. Unpack the tar.xz file
2. Navigate into the directory that was created using your graphical file manager.
3. Start a Gnome, Xfce or KDE terminal.
4. Drag the file called "install" from the extracted directory into the terminal (the result will be the full path to the install script).
5. Press the "Enter/Return" key in the terminal to start the install.
6. Follow the Gnome instructions from that point onwards.
hundredorzero # Friday, December 2, 2011 4:12:26 PM
From now onwards i will be using custom bash file to automate all this.
Ruarí Ødegaardruario # Friday, December 2, 2011 6:25:54 PM
hundredorzero # Wednesday, December 7, 2011 11:35:56 AM
I need it to use it with wget, because i want to use it in bash script which i am using for installing latest snapshots as second copy of Opera. The only problem with my script is that downloading link is not permanent.
In case you need to know the script i am using:
Ruarí Ødegaardruario # Wednesday, December 7, 2011 12:09:50 PM
http://my.opera.com/ruario/blog/show.dml/4392295#comment27409241
Ruarí Ødegaardruario # Wednesday, December 7, 2011 12:47:40 PM
#!/bin/bash PKGLNK=$(wget -qO- http://my.opera.com/desktopteam/blog/ | sed -rn 's,.*unix/(.*_[0-9][0-9]\.[0-9][0-9]-[0-9]+).*,\1,p' | head -1) wget -O- http://snapshot.opera.com/unix/${PKGLNK}/opera-next-${PKGLNK/*_/}.i386.linux.tar.xz | tar -xJf- -C /tmp /tmp/opera-next-${PKGLNK/*_/}.i386.linux/install --user --unattended --name opera-snapshot rm -fr /tmp/opera-next-${PKGLNK/*_/}.i386.linuxNote: There won't be more 11.60 builds and 12.00 is always Next. So you don't really need to set the 'snapshot' suffix at all, as it defaults to next in next builds. Remove '--name opera-snapshot' from the example above to use next instead.
Ruarí Ødegaardruario # Wednesday, December 7, 2011 12:59:23 PM
Originally posted by hundredorzero:
Originally posted by ruario:
Actually, if I am honest this link does already exist:http://snapshot.opera.com/unix/latest
However, I won't recommend that you base your script on that. Rather use one of my examples for parsing the latest download link from the Desktop Team blog. The reason I suggest this is because the latest link is manually updated (usually by me as it happens) after the blog post goes live. However we often forgot to do it right away and occasionally it has not updated it for a couple of days. Hence it is more reliable to parse the page if you actually want the latest link.
Ruarí Ødegaardruario # Wednesday, December 7, 2011 1:32:19 PM
hundredorzero # Wednesday, December 7, 2011 8:20:43 PM
Originally posted by ruario:
This script just runs and exits immediately. Does nothing that i could know.hundredorzero # Wednesday, December 7, 2011 8:27:45 PM
Originally posted by ruario:
Installed and run opupdate.
Ruarí Ødegaardruario # Wednesday, December 7, 2011 8:39:23 PM
Originally posted by hundredorzero:
You sure, my.opera.com wasn't just unresponsive at that time. Not much space for error checking in 4 lines!
You could find out what is going wrong by running it as:
P.S. There is always the following if you want to carry on working on your script:
hundredorzero # Wednesday, December 7, 2011 10:56:46 PM
Originally posted by ruario:
Yes sure.
In case it makes any difference, please note that i am doing all this under gnome (Ubuntu 11.10) and not under KDE.
Originally posted by ruario:
Everything runs fine with this, I didn't spot any error. Opera Next was successfully installed.
Originally posted by ruario:
Nice trick
Originally posted by ruario:
Thanks for this one. Works perfectly with my personal script.
Ruarí Ødegaardruario # Wednesday, December 7, 2011 11:02:29 PM
hundredorzero # Thursday, December 8, 2011 8:58:42 PM
Originally posted by ruario:
Tried it. No difference. But i think it's not needed anymore, since you have already solved my problem twice. Once by helping me with my personal script, and once by opupdate.
Landis Reedlandis # Monday, April 8, 2013 9:01:13 AM
Has to be # ./opera& , No space or the ampersand (&) is passed to opera as an argument (url), if run from launcher, run in console.
Landis.
Ruarí Ødegaardruario # Tuesday, April 9, 2013 11:12:17 AM