You are here

Portable Mozilla Firefox and Thunderbird for Linux

6 posts / 0 new
Last post
stefanx
Offline
Last seen: 14 years 11 months ago
Joined: 2008-10-23 15:43
Portable Mozilla Firefox and Thunderbird for Linux

I use several Linux computers and therefore require a portable Thunderbird but also portable Firefox for Linux. Thus I wrote two simple scripts to create a portable Thunderbird and a portable Firefox.

Please download the latest version from the following project page https://wiki.privacyfoundation.de/PortableLinuxApps

This is download-thunderbird-portable.sh

#!/bin/sh
# Configure the following variables according to your requirements

version="2.0.0.17" # usually most recent version
language="en-US" # e.g. "de" or "en-US"

########################################################

application="thunderbird" # "thunderbird" or "firefox" but file extension, archive extraction, and binary execution needs to be adapted as well
file="${application}-${version}.tar.gz"
url="http://releases.mozilla.org/pub/mozilla.org/${application}/releases/latest/linux-i686/${language}/${file}"

mkdir "${application}-portable"
cd "${application}-portable"
wget $url
echo "Extracting archive, please wait..."
tar xfz $file
rm $file
mv $application app
mkdir data

echo '#!/bin/sh' > "${application}-portable"
echo 'dir=${0%/*}' >> "${application}-portable"
echo 'if [ "$dir" = "$0" ]; then' >> "${application}-portable"
echo '  dir="."' >> "${application}-portable"
echo 'fi' >> "${application}-portable"
echo 'cd "$dir/app"' >> "${application}-portable"
echo './thunderbird -profile ../data' >> "${application}-portable"

chmod +x "${application}-portable"

Here is download-firefox-portable.sh :

#!/bin/sh
# Configure the following variables according to your requirements

version="3.0.3" # usually most recent version
language="en-US" # e.g. "de" or "en-US"

########################################################

application="firefox" # "thunderbird" or "firefox" but file extension, archive extraction, and binary execution needs to be adapted as well
file="${application}-${version}.tar.bz2"
url="http://releases.mozilla.org/pub/mozilla.org/${application}/releases/latest/linux-i686/${language}/${file}"

mkdir "${application}-portable"
cd "${application}-portable"
wget $url
echo "Extracting archive, please wait..."
tar xfj $file
rm $file
mv $application app
mkdir data

echo '#!/bin/sh' > "${application}-portable"
echo 'dir=${0%/*}' >> "${application}-portable"
echo 'if [ "$dir" = "$0" ]; then' >> "${application}-portable"
echo '  dir="."' >> "${application}-portable"
echo 'fi' >> "${application}-portable"
echo 'cd "$dir/app"' >> "${application}-portable"
echo './firefox -profile ../data' >> "${application}-portable"

chmod +x "${application}-portable"

Simply use a texteditor to save the appropriate script. Don't forget to set it executable either by a right mouse click on the file and selecting preferences or by executing "chmod +x download-thunderbird-portable.sh" resp. "chmod +x download-firefox-portable.sh" in a shell.

Furthermore I see a demand for portable Linux apps in general. Thus it would be great if PortableApps.com would also include portable Linux applications.

Please download the latest version from the following project page https://wiki.privacyfoundation.de/PortableLinuxApps

José Pedro Arvela
Offline
Last seen: 5 years 11 months ago
Joined: 2007-07-10 07:29
I love it!

I love it and I would like to see PortableApps for Linux here too. I tried the Firefox install script and it worked greatly.

Keep up the good work (damn I really need to learn how to make scripts Blum ).

Blue is everything.

Bahamut
Bahamut's picture
Offline
Last seen: 12 years 12 months ago
Joined: 2006-04-07 08:44
"$application-portable" If I

"$application-portable"
If I remember shell scripting correctly, that would have to be "${application}-portable" so that the correct variable is used.

Vintage!

stefanx
Offline
Last seen: 14 years 11 months ago
Joined: 2008-10-23 15:43
$application

Thanks for the feedback. With Bash also $application works for me. Anyhow, I will incorporate your improvement.

stefanx
Offline
Last seen: 14 years 11 months ago
Joined: 2008-10-23 15:43
New project page

There is a new project page started. Please download always the latest version from this page: https://wiki.privacyfoundation.de/PortableLinuxApps

rubo77
Offline
Last seen: 10 years 6 months ago
Joined: 2014-06-04 06:22
Update

The source for the bzip files has changed and the privacyfoundation wiki douesn't work either any more.

I created an updated version here: https://gist.github.com/rubo77/b999c1bc6d10ab802536

Log in or register to post comments