2012年2月5日 星期日

Ubuntu wireless access point

Install hostaptd with command "sudo apt-get install -y hostapd"
Edit files as following.

File: /etc/default/hostapd
Content:
RUN_DAEMON="yes"
DAEMON_CONF="/etc/hostapd/hostapd.conf"
DAEMON_OPTS="-dd"

File: /etc/hostapd/hostapd.conf
Content:
interface=wlan0 # Please reference to your wireless device name.
driver=nl80211  # All support 802.11 spec. device can use the common driver.
hw_mode=g
channel=11
ssid=MySSID     # Please input SSID name that you would like to use.
wpa=1
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP CCMP
wpa_passphrase=MyPassword  # Please input your password for wireless access point.

Start service with one of the commands.
1. sudo service hostapd start
2. sudo hostapd -dd /etc/hostapd/hostapd.conf

沒有留言:

張貼留言