Comment 4 for bug 1186688

Revision history for this message
Yannick Defais (sevmek) wrote :

I confirm this bug.

Upstream report (debian)
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=690536

You can work this out like this :

# howto use Access Point with networkManager in Ubuntu 13.04
$ sudo apt-get install build-essential dpkg-dev fakeroot
$ mkdir sources
$ cd sources/
$ apt-get source wpasupplicant
$ sudo apt-get build-dep wpasupplicant
$ gedit wpa-1.0/debian/config/wpasupplicant/linux
#add those lines at the end of the file
# AP mode
CONFIG_AP=y

$ cd wpa-1.0/
$ fakeroot debian/rules binary
$ cd ..
$ sudo dpkg -i hostapd_1.0-3ubuntu1_i386.deb wpagui_1.0-3ubuntu1_i386.deb wpasupplicant_1.0-3ubuntu1_i386.deb

"At the moment, neither nm-applet or the connection editor support
setting real AP mode from the GUI; that's work-in-progress because it
requires some rather extensive changes to the way that the editor
validates its UI so that you don't end up with incompatible options.

here's a sample "keyfile" connection
for /etc/NetworkManager/system-connections; name it "Hotspot".
you can start it with
"nmcli con up id Hotspot":

[connection]
id=Hotspot
uuid=3e13073d-6d7a-440d-ab2b-4f42c9fdacaf
type=802-11-wireless
autoconnect=false

[802-11-wireless]
ssid=my Hotspot
mode=ap
security=802-11-wireless-security

[802-11-wireless-security]
key-mgmt=wpa-psk
psk=really secure password

[ipv4]
method=shared

[ipv6]
method=auto

cf.
https://mail.gnome.org/archives/networkmanager-list/2013-April/msg00100.html

You need to chmod 600 the keyfile to make network manager to use it.

Unfortunately, even if I get the hotspot running and an android phone connect to it, it seems I can't reach the internet (well maybe an issue with my usb wifi stick)

If you try this, please let me know if it works for you.