Automatically download and install thunderbird from tar.
- Open your favorite terminal, usually
ctrl + atl + T
- Make sure open the terminal opened at this project location. Something like
this
user@computer:~/.../ThunderbirdInstall/thunderbird_install$
. If it's not:- either use
cd ~/.../ThunderbirdInstall/
replace...
with path to where you safed folder or - use your preferred file explorer to go project folder and open the terminal there usually by clicking
RMB
🖰>
open in terminal
.
- either use
- Run
python3 linux64_tar.py
- Wait and enter your
[sudo] password for user:
when promted
Uses standard terminal commands like mv
and doesn't clear terminal. It can be seen what is happening during a script
run.
All used terminal commands can be found in corresponding *.py
file. I try to keep it short and readable.
Tested on Linux Mint 21.1 Vera base: Ubuntu 22.04 jammy, Python 3.10.6.
It should work on ubuntu based distros.
- Tool downloads tar from Thunderbird's download link specified in
config.ini
todownload_path
. - Extracts
*.tar
archive - Checks for existing
Thunderbird
folder already located atopt_path
- if
Thunderbird exists
it will move existing folder to theThunderbird_backu
folder and proceed.
- if
- Moves the uncompressed Thunderbird folder
opt_path
- Creates a symlink to the Thunderbird executable
- Check if the desktop file has been installed using this script before
- if yes, Move the current desktop file to a backup folder
- Download an official Thunderbird copy of the desktop file and puts it into
applications_path
← Currently
not pointing to the latest stable release.thunderbird_latest
= https://download.mozilla.org/?product=thunderbird-latest&os=linux64&lang=en-US
thunderbird_latest
= https://download-installer.cdn.mozilla.net/pub/thunderbird/releases/115.0/linux-x86_64/en-US/thunderbird-115.0.tar.bz2
desktop_file
= https://raw.githubusercontent.com/mozilla/sumo-kb/main/installing-thunderbird-linux/thunderbird.desktop
download_path
= ~/Downloads
opt_path
= /opt
bin_path
= /usr/local/bin
applications_path
= /usr/local/share/applications
Python 3.X.X (Often preinstalled on many distros).
- automate installation of TB 115 from
*.tar
. - uninstall script
- one script to rule them all (main.py can now prompt y/n to run subscript