Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Ali-Raza-Arain/b4900c6b7359998cdafeb4ff6140262f to your computer and use it in GitHub Desktop.
Save Ali-Raza-Arain/b4900c6b7359998cdafeb4ff6140262f to your computer and use it in GitHub Desktop.
Simultaneously Enable WiFi and Hotspot in Ubuntu

Simultaneously Enable WiFi and Hotspot in Ubuntu:

Introduction:

In professional settings, efficiently managing network connectivity is crucial. Ubuntu, being a popular Linux distribution, provides powerful tools for networking. This guide will walk you through the process of enabling both WiFi and a hotspot simultaneously on Ubuntu, enhancing your network capabilities.

Requirements:

Ensure that you have administrative privileges on your Ubuntu system. Additionally, an active internet connection is necessary to download and install the required packages.

Step 1: Add Repository and Install Linux WiFi Hotspot:

Open the terminal and execute the following commands to add the repository and install the Linux WiFi Hotspot package:

sudo add-apt-repository ppa:lakinduakash/lwh
sudo apt update
sudo apt install linux-wifi-hotspot

Step 2: Install Dependencies:

Install the necessary dependencies for the Linux WiFi Hotspot package:

sudo apt install -y libgtk-3-dev build-essential gcc g++ pkg-config make hostapd libqrencode-dev libpng-dev

Step 3: Run WiFi Hotspot through GUI:

To use the graphical user interface (GUI), simply run the following command in the terminal:

wihotspot

This command launches the WiFi Hotspot application, providing an intuitive interface for managing both WiFi and hotspot settings.

Alternative Method: Open via Applications Menu:

If you prefer using the Applications menu, follow these steps:

  1. Open the Applications menu.
  2. Search for 'wifiHotspot' and click on the corresponding icon.

This will launch the WiFi Hotspot application through the graphical interface.

Additional Instructions for GUI Configuration:

  1. SSID and Password Configuration: Upon opening the GUI (as shown in the attached image), locate the 'SSID' field. This field represents the name of your hotspot, which may default to 'MyAccessPoint.' Modify this field to your preferred hotspot name, which will be visible to other devices.

    Next, set the 'Password' field. You can either provide a password for secured access or leave it open by checking the 'Open' checkbox if no password is required.

    GUI Image

  2. WiFi Interface and Internet Interface Configuration: In the following lines, you'll find 'WiFi Interface' and 'Internet Interface' options.

    • For 'WiFi Interface,' select the network card from which the hotspot will broadcast. Choose the network interface card that corresponds to your wireless adapter.

    • For 'Internet Interface,' choose the network card that connects to the internet. This is the interface that will share the internet traffic with the devices connected to the hotspot. If both the hotspot and internet traffic share the same network card, select the same card in both options.

  3. Creating the Hotspot: After configuring the SSID, password, WiFi interface, and Internet interface, locate the 'Create Hotspot' button at the bottom. Click this button to initiate the hotspot creation process. If successful, your hotspot will be activated, and devices can connect to it.

  4. Error Handling: In case an error occurs during the hotspot creation process, consider opening the GUI through the terminal/command line. This will provide an error console, helping you identify and troubleshoot any issues. Execute the following command in the terminal:

    wihotspot

    Check the console for error messages, which can guide you in resolving any configuration problems.

  5. Stopping the Hotspot: To turn off the WiFi hotspot, use the 'Stop' button provided in the GUI. Clicking this button will deactivate the hotspot, disconnecting connected devices.

For a more comprehensive guide and troubleshooting tips, you can refer to the official Git repository: Comprehensive Guide. This repository contains in-depth documentation, community support, and the latest updates related to the Linux WiFi Hotspot application. Explore the repository for a deeper understanding of the tool's functionalities.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment