Does it happen to you that you that whenever you want to install a piece of software you're give either a
.deb file or a
.tar file. Installing
.deb files is easy, it's just like how you do in windows, but
.tar files are a pain specially for beginners.
In this simple tutorial we'll learn how to download and install
.tar file. I'll use Ubuntu but it should work in most Linux distros. I'll install *waterfox web browser * but the process is similar for all the tarball (.tar) installation files.
- download the tar file
- extract it to some location
- create a desktop entry for running the application
After downloading the file open the terminal in current directory to move the file to
/opt directory using the following command.
you can change the filename and target directory accordingly.
sudo mv waterfox-G4.0.5.en-US.linux-x86_64.tar.bz2 /opt
first goto the directory where you moved the
To extract the
.tar file present in the current directory to use the following command
sudo tar xjf waterfox-G4.0.5.en-US.linux-x86_64.tar.bz2
you can replace the
.tar filename i.e.
waterfox-G4.0.5.en-US.linux-x86_64.tar.bz2 as per your filename.
make yourself owner of the extracted repository
sudo chown -R $USER /opt/waterfox
Create a desktop entry so that you don't need to come to this directory to launch the application.
run the following command
it'll open gedit text editor where you need to insert the specifications of the desktop entry.
paste the following in the editor and save.
[Desktop Entry] Name=Waterfox Exec=/opt/waterfox/waterfox %u Terminal=false Icon=/opt/waterfox/browser/chrome/icons/default/default128.png Type=Application Categories=Application;Network;X-Developer;
Again, change the various parameters and paths according to your setup.
The path can be directly under the first directory or inside bin directory, make sure you specify correct path.
Desktop entry has many parameters but only a few are required but you should add at least these. You can read more at Desktop Entry Standard
Finally you need to make your desktop entry executable using the following command.
chmod +x ~/.local/share/applications/waterfox.desktop
you can change the name of desktop entry accordingly.
finally you can remove the
.tar file using the following command
sudo rm -rf waterfox*.tar.bz2