Setup
Notes for setting up a new Raspberry Pi.
Following this tutorial
Initial setup
do this part with Pi connected to monitor+keyboard+mouse
- Change username and password (Preferences > Raspberry Pi Config > System)
- Connect to wifi:
- You may need to set your location (Preferences > Raspberry Pi Config > Localisation)
sudo apt-get update
sudo apt-get upgrade
Note, if this is taking forever you might want to reduce the number of sources by modifying this file:
sudo nano /etc/apt/sources.list
and replacing it with,
deb http://archive.raspbian.org/raspbian jessie main contrib non-free
deb-src http://archive.raspbian.org/raspbian jessie main contrib non-free
and then run,
sudo apt-get dist-upgrade
sudo apt-get update
sudo apt-get upgrade
Remove wolfram to free up ~700 MB:
sudo apt-get purge wolfram-engine
wudo apt-get autoremove
SSH
Find ip address of Pi
ifconfig
Find the ip address (e.g. 10.0.0.108 or 192.168.xx.xxx).
Enable SSH on the Pi
- With GUI: (Preferences > Raspberry Pi Config > Interfaces > Enable SSH)
- Or:
sudo raspi-config
, #5 interfacing options, enable SSH
Now you can connect to pi with
ssh <username>@<ip-addr>
In my case that was sudo pi@10.0.0.108
. Say yes
and enter the password.
TODO: Set up ssh-key to do away with password...
Remote desktop
On the Pi: Install xrdp:
sudo apt-get remove xrdp vnc4server tightvncserver
sudo apt-get install tightvncserver
sudo apt-get install xrdp