Adding a USB wifi dongle on Pi as router
This has been shown several times on internet, but people are using different method.
http://blog.yam.com/cistychang/article/61517499
This one use Pi to have PPPoE connection, and hostapd as access point, so other device can access to the device.
Then he make wifi as fix IP, using following as IP forwarding.
dnsmasq (isc-dhcp-server seems to work as well) using apt-get install dnsmasq
ADAFruit has also a very good article:
https://learn.adafruit.com/setting-up-a-raspberry-pi-as-a-wifi-access-point
They also go through a lot of pages:
I used the following pages as a guide to create this tutorial, please note many of them will not work completely, but check them out if you are interested!
http://blog.yam.com/cistychang/article/61517499
This one use Pi to have PPPoE connection, and hostapd as access point, so other device can access to the device.
Then he make wifi as fix IP, using following as IP forwarding.
dnsmasq (isc-dhcp-server seems to work as well) using apt-get install dnsmasq
ADAFruit has also a very good article:
https://learn.adafruit.com/setting-up-a-raspberry-pi-as-a-wifi-access-point
They also go through a lot of pages:
I used the following pages as a guide to create this tutorial, please note many of them will not work completely, but check them out if you are interested!
- http://qcktech.blogspot.com/2012/08/raspberry-pi-as-router.html
- http://itsacleanmachine.blogspot.com/2013/02/wifi-access-point-with-raspberry-pi.html
- http://esrlabs.com/android-transporter-for-the-nexus-7-and-the-raspberry-pi/
- http://elinux.org/RPI-Wireless-Hotspot
So, they decide to tell us to do this:
sudo apt-get install hostapd isc-dhcp-server
the also mention that there is a chance thathostapd can't work, then need to complie your own hostapd...
Additional Note:
http://blog.thepihut.com/how-to-setup-wifi-on-the-raspberry-pi-raspbian/
If simply wish to use wifi to connect pi to an hotspot. here are 2 possibilities:
1. use the wpa gui, but you will need to do it every time after reboot.
2. using command line, will keep the last connection in file, and re connect on next connection.
http://blog.thepihut.com/how-to-setup-wifi-on-the-raspberry-pi-raspbian/
If simply wish to use wifi to connect pi to an hotspot. here are 2 possibilities:
1. use the wpa gui, but you will need to do it every time after reboot.
2. using command line, will keep the last connection in file, and re connect on next connection.
留言
張貼留言