This README contains all the steps and FAQ to get to the point where one can connect via ssh to the RaspberryPi and start playing with it.
- install raspbian
- upgrade and restart:
sudo apt update; sudo apt dist-upgrade; sudo apt upgrade; sudo rpi-update; sudo init 6
- Activate ssh in the raspberryPi config
sudo raspi config
- Change your password
sudo passwd
- install a vnc server to be able to connect to a GUI
sudo apt install tightvncserver
- store script "./scripts/vnc.sh" somewhere on Rasperrypi.
- setup static ip in /etc/network/interfaces. See "./configs/interfaces".
- setup wlan in /etc/wpa_supplicant/wpa_supplicant.conf. See gist https://gist.github.com/wtjerry
- follow https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/ to create ssh keys. Then to install the ssh public key:
ssh-copy-id -i /path/to/ssh_pub_key user@host
command | what is it used for |
---|---|
ssh user@host | ssh connection |
scp user@host:/path/to/file ./local/path/to/file | copy over ssh |
sftp | ftp over ssh |
service networking restart | restarts network service, usefull after interface changes etc. |
nmap -sP 192.168.1.0/24 | to search for hosts that are up in that subnet |
sudo arp-scan --interface=wlan --localnet | grep b8:27:eb | to search all raspberryPi's for a given interface |
- I can't connect to my pi over wlan
Connect via lan and check if the pi system time is out of sync and set it accordingly with 'date --set='