rgnet-wiki/pages/RaspberryPi.md
2020-07-04 14:48:24 -07:00

65 lines
1.2 KiB
Markdown

# Basic Raspberry Pi Set-up
Load the SD card
```
dd if=Desktop/Pi/2013-09-25-wheezy-raspbian.img of=/dev/disk2
```
Then I was able to boot the Pi from the SD card. It should DHCP, so you can find it on your DHCP server logs. Then log in
```
ssh pi@pi-2
```
Password is raspberry. Change it!
Then run
```
sudo raspi-config
```
and expand the root partition and reboot.
Then get current and add a few basic utilities
```
sudo apt-get update
sudo apt-get dist-upgrade
apt-get install rsync
```
As I like my normal environment, I brought stuff over from a Ubuntu
```
rsync randy@ran.psg.com:.bashrc .
rsync randy@ran.psg.com:.inputrc .
rsync -r randy@ran.psg.com:.ssh
chown -R root:root .
```
Something on my Mac's dhcp server and dns was broken, so I hacked /etc/dhcp/dhclient.conf to add
```
supersede domain-search "psg.com", "rg.net", "rpki.net";
lease {
interface eth0;
option domain-name-servers 8.8.8.8;
}
```
There seemed to be problems with ntpd starting, so I installed ntpdate
```
sudo apt-get install ntpdate
```
and created an /etc/rc.conf
```
DAEMONS=(!hwclock ntpdate ntpd)
```
I also followed the recipe for [Enable Auto-Upgrade](./UbuntuAutoUpgrade)