projects:convertalinuxboxintowifirouter
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| projects:convertalinuxboxintowifirouter [2011/06/05 15:16] – rlunaro | projects:convertalinuxboxintowifirouter [2022/12/02 21:02] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== 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' | ||
| + | |||
| + | ===== 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 ===== | ||
| + | |||
| + | Most promising link: | ||
| + | |||
| + | https:// | ||
| + | |||
| + | http:// | ||
| + | |||
| + | http:// | ||
| + | |||
| + | http:// | ||
| + | |||
| + | http:// | ||
| + | |||
| + | http:// | ||
| + | |||
| + | ===== 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 | ||
| + | |||
| + | wpa = 3 | ||
| + | |||
| + | wpa_passphrase=your_password_here | ||
| + | |||
| + | wpa_key_mgmt=WPA-PSK WPA-EAP | ||
| + | |||
| + | </ | ||
| + | |||
| + | Just after saving the data, run hostapd in debug mode: | ||
| + | |||
| + | < | ||
| + | |||
| + | / | ||
| + | |||
| + | </ | ||
| + | |||
| + | ===== If there are problems ===== | ||
| + | |||
| + | ==== Appear the error " | ||
| + | |||
| + | Of course, always there are problems. | ||
| + | |||
| + | I found an error '' | ||
| + | |||
| + | < | ||
| + | ifconfig wlan0 down | ||
| + | ifconfig wlan0 up | ||
| + | </ | ||
| + | |||
| + | ==== Appear the error " | ||
| + | |||
| + | 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:// | ||
| + | |||
| + | It seems that the command wpa_supplicant must be run smoothly, but it doesn' | ||
| + | |||
| + | |||
