Difference between revisions of "Set up a hotspot with Linux"
From Linuxintro
imported>ThorstenStaerk |
imported>ThorstenStaerk |
||
Line 41: | Line 41: | ||
Config Status: cfg=new, avail=yes, need=no, active=unknown | Config Status: cfg=new, avail=yes, need=no, active=unknown | ||
Attached to: #12 (Hub) | Attached to: #12 (Hub) | ||
− | + | * Activate the driver | |
modprobe rt73usb | modprobe rt73usb | ||
+ | * Activate the NIC | ||
+ | ifup wlan0 |
Revision as of 18:48, 13 September 2010
This is an example how to turn your computer into an accesspoint for wireless networks. It is based on SUSE Linux 11.3 but should work same or similar for every distribution.
what you need
- a Linux kernel, greater than about 2.6.30
- a USB wireless adapter, in this example we use a Conceptronic device with a RaLink chipset
what you do
- Install HostAPD
yast -i HostAPD
- Do the following settings in /etc/hostapd.conf
driver=nl80211 bridge=br0 channel=3
- Activate the card
linux-noqb:~ # hwinfo --usb [...] 22: USB 00.0: 0000 Unclassified device [Created at usb.122] Unique ID: doL0.gHs6xlT8BAF Parent ID: FKGF.0j9+vWlqL56 SysFS ID: /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.0 SysFS BusID: 2-1.6:1.0 Hardware Class: unknown Model: "Ralink 802.11 bg WLAN" Hotplug: USB Vendor: usb 0x14b2 "Ralink" Device: usb 0x3c22 "802.11 bg WLAN" Revision: "0.01" Driver: "rt73usb" Driver Modules: "rt73usb" Device File: wlan1 Speed: 480 Mbps HW Address: 00:80:5a:4e:1a:eb Link detected: yes Module Alias: "usb:v14B2p3C22d0001dc00dsc00dp00icFFiscFFipFF" Driver Info #0: Driver Status: rt73usb is active Driver Activation Cmd: "modprobe rt73usb" Config Status: cfg=new, avail=yes, need=no, active=unknown Attached to: #12 (Hub)
- Activate the driver
modprobe rt73usb
- Activate the NIC
ifup wlan0