This repository contains two scripts designed to manage network settings and automate the process of handling captive portals. The scripts are divided into two parts: a root-level script (captiveportal.sh) and a user-level script (captiveportal_user.sh).
- Root Script (
captiveportal.sh): This script performs system-level network configuration tasks and should be executed withsudo. - User Script (
captiveportal_user.sh): This script handles user-level tasks, such as opening URLs in a web browser. It should be run withoutsudo.
Run the root script with superuser privileges to perform necessary system configurations:
sudo ./captiveportal.shAfter completion, the script will prompt you to run the user-level script.
Run the user script without superuser privileges to open required URLs in your default web browser:
./captiveportal_user.shThis script includes tasks such as managing network connections and firewall settings. It's run with sudo and does not require any arguments.
This script is responsible for opening URLs in your default web browser. It is run without sudo to ensure proper integration with the user's desktop environment.
Clone the repository or download the scripts directly. Ensure both scripts are executable:
chmod +x captiveportal.sh
chmod +x captiveportal_user.sh- These scripts are intended for use on Linux systems with NetworkManager and UFW (Uncomplicated Firewall).
- Ensure
xdg-utilsis installed for URL handling.
Contributions, issues, and feature requests are welcome. Feel free to check issues page if you want to contribute.
Distributed under the MIT License. See LICENSE for more information.
Project Link: https://github.com/dinnerisserved/captiveportal