A simple Bash script to install Chromium and Firefox in Docker containers with customizable options.
This script automates the installation of Chromium and Firefox browsers inside Docker containers. It allows you to set custom usernames, passwords, proxy settings (HTTP/SOCKS5), and RAM limits, making it perfect for lightweight, isolated browser environments.
Created by: Crypton
Follow me on Twitter: @0xCrypton_
- Installs Chromium and Firefox with a single command.
- Optional HTTP and SOCKS5 proxy configuration for Chromium.
- Customizable RAM limits for each container.
- User-friendly prompts for usernames and passwords.
- Automatically installs Docker if itβs not present.
- Easy uninstallation option.
- A Linux-based system (e.g., Ubuntu, Debian).
curlinstalled (for Docker installation).- Root or sudo privileges (to run Docker commands).
- Run the Script
bash <(curl -fsSL https://raw.githubusercontent.com/cryptoneth/linux/main/browser.sh)Usage When you run the script, youβll see this menu:
Select an option:
- Install Chromium
- Uninstall Chromium
- Install Firefox
- Uninstall Firefox
- Exit
=================
Steps:
-
Enter a username.
-
Enter a password (hidden input).
-
Choose to configure an HTTP proxy (optional): Example: http://user:pass@proxy.example.com:8080
-
Choose to configure a SOCKS5 proxy (optional): Example: socks5://user:pass@proxy.example.com:1080
-
Set a RAM limit (e.g., 512m, 1g, 2g) or press Enter for default (1g).
Result: Chromium runs on http://:3010.
=================
Stops and removes the Chromium container.
=================
Steps:
-Enter a username.
-
Enter a password (hidden input).
-
Set a RAM limit (e.g., 512m, 1g, 2g) or press Enter for default (1g).
-
Result: Firefox runs on http://:4010.
=================
Stops and removes the Firefox container.
=================
Closes the script.
=================
Ensure your system has enough RAM if you set high limits.
Proxy URLs must be valid; the script doesnβt validate them.
Run as root or with sudo if Docker requires it.
ππππ