The Netbook Hotspot

Steps for creating a hotspot from a netbook running Ubuntu 12.04. Incomplete. DanRasmussen has been wanting to do this for months, finally inched forward at most recent PTP PlayDay with thanks to KeeganQuinn and TedBrunner. Following these steps, you wind up broadcasting an SSID that nothing can connect to (because your hotspot does not yet have a DCHP server, and maybe something-something about DNS...)

What's Needed

  1. Computer
  2. Network connection (perhaps provided by a Android device's mobile hotspot, Clearwire USB, etc.)
  3. Interface to acquire network connection from
  4. Wireless interface to share network connection to
    1. Device must be capable of doing this. Many aren't. Do your research.
    2. If you just want to share your connection over ethernet, it's easier than this, and you're reading the wrong document.

Do This

  1. Install the package hostapd

  2. Configure hostapd ( /etc/hostapd/hostapd.conf - change to your liking) :

    # /etc/hostapd/hostapd.conf
    # 2012-07-14 Dan Rasmussen ( dan.rasmussen@gmail.com )
    # for more information, see https://personaltelco.net/wiki/NetbookHotspot
    
    driver=nl80211
    
    # interface below is the connection being shared, as reported by `ifconfig` in the console
    interface=wlan1
    
    # ssid is the publicly visible network name. Use "www.personaltelco.net" to advance the concept of network sharing!
    ssid=www.personaltelco.net
    
    # Operation mode (a = IEEE 802.11a, b = IEEE 802.11b, g = IEEE 802.11g,
    # Default: IEEE 802.11b
    hw_mode=g
    
    # might want to change channel so it doesn't conflict with channels in your area
    channel=9
  3. run $ sudo hostapd -dd /etc/hostapd/hostapd.conf 

    • -dd shows lots of debugging info, which will be helpful in figuring this out
    • useful Linux commands: dmesg , lsmod , iwconfig , ifconfig , history, iw list

  4. Following lines are guesswork. They don't lead to anything useful. Uncharted territory. Your suggestions are welcome!

  5. Install dnsmasq-base
  6. Configure dns-masq-base. Lines that appear important (will require tweaking):

    interface=wlan1
    dhcp-range=wlan1,192.168.100.100,192.168.100.199,4h
    dhcp-host

That's it for now.

To Do

  1. Research dnsmasq: https://help.ubuntu.com/community/Dnsmasq

    • Note that the package "dnsmasq" interferes with Network Manager which can use "dnsmasq-base" to provide DHCP services when sharing an internet connection. Therefore, if you use network manager (fine in simple set-ups only), then install dnsmasq-base, but not dnsmasq. If you have a more complicated set-up, uninstall network manager, use dnsmasq, or similar software (bind9, dhcpd, etc), and configure things by hand.
  2. More resources: http://wiki.debian.org/HowTo/dnsmasq , http://thekelleys.org.uk/dnsmasq/docs/FAQ

  3. Figure out what, if anything, NetworkAllocations has to do with this

  4. Get it working
  5. Find places and events at which to deploy.
  6. Fun!