Raspberry Pi

From miki
Revision as of 09:41, 27 April 2015 by Mip (talk | contribs) (→‎Network: Wifi AP)
Jump to navigation Jump to search

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

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

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