Category: Linux
Wifi hotspot in Ubuntu
In this post I will tell you how to make an access point for Internet distribution from a laptop running Ubuntu operating system. This post is suitable for any laptop in which the wireless network card supports the access point mode. The Internet is connected to the network card with eth0 interface. The broadcast will take place via the wlan0 interface.
Package installation:
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install ap-hotspot
Fox x64:
wget http://old-releases.ubuntu.com/ubuntu/pool/universe/w/wpa/hostapd_1.0-3ubuntu2.1_amd64.deb
For x32:
wget http://old-releases.ubuntu.com/ubuntu/pool/universe/w/wpa/hostapd_1.0-3ubuntu2.1_i386.deb
Install .deb package:
sudo dpkg -i hostapd*.deb
To prevent the system from updating to the latest version of this package:
sudo apt-mark hold hostapd
Start the configuration:
sudo ap-hotspot configure
Answer the questions that will ask the configurator and all.
You can use the editor for the next editing. The configuration file is stored at /etc/ap-hotspot.conf
My configuration file looks like this:
# WiFi Hotspot
interface=wlan0
driver=nl80211
#Access Point
ssid=YOUR_SSID
hw_mode=g
# WiFi Channel:
channel=1
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_passphrase=YOUR_PASSWORD
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
Starting and stopping the service:
sudo ap-hotspot start
sudo ap-hotspot stop
Posted: 2016-04-02
Comments