A few months ago we discussed about using your Ubuntu laptop as a wifi router. In other words, creating a hotspot with your Ubuntu Linux. Default Ubuntu Wifi network is not visible for Android devices, specially for devices using Android 4.1.2 versions like Samsung Galaxy etc. In that case you may give a try to
ap-hotspot from the
webupd8 repository for creating an infrastructure AP but here a much better universal solution who need creating detectable hotspot with Ubuntu Linux.
- First you will be needing to install hostapd. Open your terminal and use the following command:
sudo apt-get install hostapd
- Now open a text editor program like default Ubuntu text editor,
geditand use the following into it and remember to fill in the name of your network after
ssid=, as well as a password after
interface=wlan0 driver=nl80211 ssid=MyAP hw_mode=g channel=11 wpa=1 wpa_passphrase=MyPasswordHere wpa_key_mgmt=WPA-PSK wpa_pairwise=TKIP CCMP wpa_ptk_rekey=600
- Now save the file as
hostapd.confin home directory.
- Create a normal ad-hoc network using Ubuntu wireless menu from the top bar and click on “Create New Wireless Network“
- After creating new network successfully, again open your terminal and use the following command:
sudo hostapd hostapd.conf
- Turn on the wifi connection in your devices and enjoy the sharing of your network.
(If you are still facing any problem then ask us here)