Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wtjerry/setupRaspberryPi
steps and FAQ to setup a RaspberryPi
https://github.com/wtjerry/setupRaspberryPi
Last synced: about 1 month ago
JSON representation
steps and FAQ to setup a RaspberryPi
- Host: GitHub
- URL: https://github.com/wtjerry/setupRaspberryPi
- Owner: wtjerry
- License: gpl-3.0
- Created: 2017-11-09T21:36:35.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-06T15:31:41.000Z (over 5 years ago)
- Last Synced: 2024-08-04T11:01:51.113Z (5 months ago)
- Language: Shell
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-hslu - wtjerry/setupRaspberryPi - RaspberryPi setup help (HSLU Modules / PREN2)
README
# How to setup a RaspberryPi
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.## Setup
1. install raspbian
2. upgrade and restart:
``` sh
sudo apt update; sudo apt dist-upgrade; sudo apt upgrade; sudo rpi-update; sudo init 6
```
3. Activate ssh in the raspberryPi config
``` sh
sudo raspi config
```
4. Change your password
``` sh
sudo passwd
```
5. install a vnc server to be able to connect to a GUI
``` sh
sudo apt install tightvncserver
```
6. store script "./scripts/vnc.sh" somewhere on Rasperrypi.
7. setup static ip in /etc/network/interfaces. See "./configs/interfaces".
8. setup wlan in /etc/wpa_supplicant/wpa_supplicant.conf. See gist https://gist.github.com/wtjerry
9. 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:
``` sh
ssh-copy-id -i /path/to/ssh_pub_key user@host
```## helpful commands
| 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 |## FAQ
1. 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='