{"id":13756217,"url":"https://github.com/wtjerry/setupRaspberryPi","last_synced_at":"2025-05-10T03:31:06.169Z","repository":{"id":73994990,"uuid":"110168894","full_name":"wtjerry/setupRaspberryPi","owner":"wtjerry","description":"steps and FAQ to setup a RaspberryPi","archived":false,"fork":false,"pushed_at":"2019-06-06T15:31:41.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-08-04T11:01:51.113Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wtjerry.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-11-09T21:36:35.000Z","updated_at":"2019-06-06T15:31:42.000Z","dependencies_parsed_at":"2023-04-28T11:46:59.926Z","dependency_job_id":null,"html_url":"https://github.com/wtjerry/setupRaspberryPi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtjerry%2FsetupRaspberryPi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtjerry%2FsetupRaspberryPi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtjerry%2FsetupRaspberryPi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtjerry%2FsetupRaspberryPi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wtjerry","download_url":"https://codeload.github.com/wtjerry/setupRaspberryPi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224911420,"owners_count":17390840,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T11:00:39.229Z","updated_at":"2024-11-16T11:31:18.413Z","avatar_url":"https://github.com/wtjerry.png","language":"Shell","funding_links":[],"categories":["HSLU Modules"],"sub_categories":["PREN2"],"readme":"# How to setup a RaspberryPi\nThis 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.\n\n\n## Setup\n1. install raspbian\n2. upgrade and restart:\n    ``` sh\n    sudo apt update; sudo apt dist-upgrade; sudo apt upgrade; sudo rpi-update; sudo init 6\n    ```\n3. Activate ssh in the raspberryPi config\n    ``` sh\n    sudo raspi config\n    ```\n4. Change your password\n    ``` sh\n    sudo passwd\n    ```\n5. install a vnc server to be able to connect to a GUI\n    ``` sh\n    sudo apt install tightvncserver\n    ```\n6. store script \"./scripts/vnc.sh\" somewhere on Rasperrypi.\n7. setup static ip in /etc/network/interfaces. See \"./configs/interfaces\".\n8. setup wlan in /etc/wpa_supplicant/wpa_supplicant.conf. See gist https://gist.github.com/wtjerry \n9. 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:\n    ``` sh\n    ssh-copy-id -i /path/to/ssh_pub_key user@host\n    ```\n\n\n## helpful commands\n| command | what is it used for |\n| --- | --- |\n| ssh user@host | ssh connection |\n| scp user@host:/path/to/file ./local/path/to/file | copy over ssh |\n| sftp | ftp over ssh |\n| service networking restart | restarts network service, usefull after interface changes etc. |\n| nmap -sP 192.168.1.0/24 | to search for hosts that are up in that subnet |\n| sudo arp-scan --interface=wlan --localnet \\| grep b8:27:eb | to search all raspberryPi's for a given interface |\n\n\n## FAQ\n1. I can't connect to my pi over wlan\n  \u003eConnect via lan and check if the pi system time is out of sync and set it accordingly with 'date --set='\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwtjerry%2FsetupRaspberryPi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwtjerry%2FsetupRaspberryPi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwtjerry%2FsetupRaspberryPi/lists"}