Raspberry Pi: Difference between revisions

From miki
Jump to navigation Jump to search
(→‎Network: Wifi AP)
Line 14: Line 14:
where <code>192.168.1.*</code> will be your local network mask.
where <code>192.168.1.*</code> will be your local network mask.


=== Setup Pi as WiFi HotSpot ===
=== Setup Pi as WiFi HotSpot (router) ===
This setup the Pi has a WiFi access point (AP) in router mode (NAT).
This setup the Pi has a WiFi access point (AP) in router mode (NAT).


References:
References:
* https://learn.adafruit.com/downloads/pdf/setting-up-a-raspberry-pi-as-a-wifi-access-point.pdf
* https://learn.adafruit.com/downloads/pdf/setting-up-a-raspberry-pi-as-a-wifi-access-point.pdf &mdash; THIS METHOD WORKS
* https://learn.adafruit.com/setting-up-a-raspberry-pi-as-a-wifi-access-point/overview
* https://learn.adafruit.com/setting-up-a-raspberry-pi-as-a-wifi-access-point/overview
* http://blog.sip2serve.com/post/48420162196/howto-setup-rtl8188cus-on-rpi-as-an-access-point
* http://blog.sip2serve.com/post/48420162196/howto-setup-rtl8188cus-on-rpi-as-an-access-point
* http://blog.sip2serve.com/post/48899893167/rtl8188-access-point-install-script
* http://blog.sip2serve.com/post/48899893167/rtl8188-access-point-install-script

=== Setup Pi as WiFi HotSpot (bridge) ===
References:
* http://www.daveconroy.com/turn-your-raspberry-pi-into-a-wifi-hotspot-with-edimax-nano-usb-ew-7811un-rtl8188cus-chipset/


== Troubleshoot ==
== Troubleshoot ==

Revision as of 09:42, 27 April 2015

Network

Detect all Raspberry Pi on local network

From [1].

sudo nmap -sP 192.168.1.0/24 | awk '/^Nmap/{ip=$NF}/B8:27:EB/{print ip}'

where 192.168.1.* will be your local network mask.

We can also simply look for string Raspberry since nmap correctly identifies pi mac address:

sudo nmap -sP 192.168.1.0/24 | grep -B2 Raspberry

where 192.168.1.* will be your local network mask.

Setup Pi as WiFi HotSpot (router)

This setup the Pi has a WiFi access point (AP) in router mode (NAT).

References:

Setup Pi as WiFi HotSpot (bridge)

References:

Troubleshoot

403 Forbidden when apt-get upgrade

From [2]:

Err http://mirrordirector.raspbian.org/raspbian/ wheezy/main libc-dev-bin armhf 2.13-38+rpi2+deb7u8           
  403  Forbidden
Err http://mirrordirector.raspbian.org/raspbian/ wheezy/main libc6-dev armhf 2.13-38+rpi2+deb7u8              
  403  Forbidden

Edit /etc/apt/apt.conf:

-deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi
+#deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi
+deb http://archive.raspbian.org/raspbian wheezy main contrib non-free
+deb-src http://archive.raspbian.org/raspbian wheezy main contrib non-free