User Tools

Site Tools


projects:convertalinuxboxintowifirouter

ABANDONED PROJECT: Convert a Linux Box into a Wifi Router

Update 02/18/2013: it whould be a nice idea to retake this project to make it on the raspberry Pi…

Don't read furhter!!!! I've abandoned this project without reaching a solution for this. There are other places and other solutions more suitable than this.

The problem

In my fathers-in-law home there is a PC connected to the internet. However, there is no wifi router. I could do two things:

  • Spend from 60 to 100 euros in buying one or,
  • Convert his Ubuntu into a wifi hotspot

I will investigate how to do the latter, because I think that it could be useful in the future.

Making some searchs in internet

What I've done

I am using Ubuntu, so I've decided to install hostapd just out of the software center. The simpler, the better.

In the configuration file, I've changed the following lines:

ssid=Put_the_name_you_want

# in my case, the country code is Spain, in your case, choose what corresponds
country_code=ESP

hw_mode=g  # it were b by default

wpa = 3

wpa_passphrase=your_password_here

wpa_key_mgmt=WPA-PSK WPA-EAP

Just after saving the data, run hostapd in debug mode:

/usr/sbin/hostapd -dd /etc/hostapd/hostapd.conf

If there are problems

Appear the error "Unable to setup interface"

Of course, always there are problems.

I found an error Unable to setup interface. One of the things I've tried is to start/stop the device:

ifconfig wlan0 down
ifconfig wlan0 up

Appear the error "ioctl[PRISM2_IOCTL_PRISM2_PARAM]: Operation not supported"

I've researched this point, and it seems that there must be a wpa_supplicant command that probably is failing in Ubuntu.

Following the instructions here.

http://ubuntuforums.org/showthread.php?t=532921

It seems that the command wpa_supplicant must be run smoothly, but it doesn't.

projects/convertalinuxboxintowifirouter.txt · Last modified: 2022/12/02 22:02 by 127.0.0.1