home · contact · privacy
Merge branch 'master' of plomlompom.com:/var/repos/config
[config] / bullseye / setup_scripts / setup_firefox.sh
1 #!/bin/sh
2 set -e
3
4 # Set up system without user environment.
5 config_tree_prefix="${HOME}/config/bullseye"
6
7 # Install Firefox directly from Mozilla.
8 firefox_release="91.5.1esr"
9 firefox_filename="firefox-${firefox_release}.tar.bz2"
10 url_firefox="https://ftp.mozilla.org/pub/firefox/releases/${firefox_release}/linux-x86_64/en-US/${firefox_filename}"
11 wget "${url_firefox}"
12 mv "${firefox_filename}" /opt/
13 cd /opt/
14 tar xf "${firefox_filename}"
15 rm "${firefox_filename}"
16 ln -f -s /opt/firefox/firefox /usr/local/bin/
17 update-alternatives --install /usr/bin/x-www-browser x-www-browser /opt/firefox/firefox 200
18 update-alternatives --set x-www-browser /opt/firefox/firefox
19
20 # as default new tab content for tridactyl 
21 cp "${config_tree_prefix}/other_files/blank.html" /opt/firefox/
22
23 echo "TODO: Install uBlock Origin and tridactyl plugins, run :installnative and :source."
24