This script automates the installation of popular web browsers on various Linux distributions. It supports the latest versions of Google Chrome, Brave, Firefox, and Vivaldi, and has been designed to work on common Linux distributions such as Ubuntu, Debian, Fedora, CentOS, Red Hat Enterprise Linux (RHEL), and AlmaLinux.
- Google Chrome
- Brave Browser
- Firefox
- Vivaldi
- Ubuntu
- Debian
- Fedora
- CentOS Linux
- Red Hat Enterprise Linux (RHEL)
- AlmaLinux
- You must have
sudo
privileges on your system, as the script requires administrative permissions to install the browsers. bash
(usually installed by default on most Linux distributions)
- OS Detection: The script first checks your operating system to ensure it is supported.
- Install Dependencies: It then installs the required dependencies (such as
wget
,gnupg
, etc.) for the system to fetch and install browser packages. - Select Browser: You'll be prompted to choose a browser from the four options — Google Chrome, Brave, Firefox, or Vivaldi.
- Browser Installation: The script installs your selected browser, ensuring it's added to the appropriate repositories and properly configured.
To use the script, start by cloning this repository to your local machine:
git clone https://github.com/baxterblk/Linux-Browser-Auto-Install.git
cd Linux-Browser-Auto-Install
Run the script using the following command:
./browser-install.sh
You will be guided through the following steps:
-
Dependency Installation: The script will prompt you to install any necessary dependencies. It is highly recommended to type
yes
here to proceed. -
Browser Selection: A prompt will allow you to choose one of the following browsers to install:
- Google Chrome
- Brave Browser
- Firefox
- Vivaldi
-
Completion: Once the browser is installed, the script will print a confirmation message.
$ ./browser-install.sh
Detected OS: Ubuntu
Would you like to install the required dependencies for this script to run? (yes/no): yes
Installing dependencies...
Which browser would you like to install?
1) Google Chrome
2) Brave Browser
3) Firefox
4) Vivaldi
5) None
6) Quit
# Enter the number corresponding to your browser choice
-
The script supports popular browser repositories and download locations. If any of these sources change or are unavailable, the installation may fail, requiring updates to the script.
-
Use
sudo
carefully. This script installs packages with elevated privileges (viasudo
), so ensure you trust the source.
- Google Chrome: Installs the Chrome browser directly from the official Google repository.
- Brave Browser: Adds the Brave browser repository and installs it.
- Firefox: Uses the default package manager to install Firefox from your distribution's repository.
- Vivaldi: Configures the official Vivaldi repository and installs it.
If you encounter any issues or would like to contribute to this project:
- Open an issue on the GitHub repository.
- Feel free to submit a pull request if you've made an improvement to the script.
This project is licensed under the MIT License. See the LICENSE
file for details.
This script is provided as-is. While it has been tested on major Linux distributions, you should use it at your own risk. Always review script content before running on your system.
Enjoy seamless browser installation on your favorite Linux distribution! 😎