Skip to content

Raspberry Pi Setup Guide

Amos Yu edited this page Nov 4, 2022 · 3 revisions

If the Raspberry Pi card ever corrupts, we may have to clean install the Raspbian image. We will then have to set up the environment to restore it to how it was.

Setting up Raspberry Pi Configuration

  • With a monitor plugged in, open Applications Menu > Preferences > Raspberry Pi Configuration
  • Under System, change Hostname to capstone
  • Change Password to Capstone123!

Setting up VNC

From Pi My Life Up

  • In terminal, run sudo apt install tightvncserver
  • Run vncserver :1
  • Follow the prompts in the terminal to set up the password
  • Run sudo nano /etc/systemd/system/vncserver.service
  • In the editor, paste the following:
[Unit]
Description=TightVNC remote desktop server
After=network.target
 
[Service]
User=capstone
Type=forking
ExecStart=/usr/bin/vncserver :1
ExecStop=/usr/bin/vncserver -kill :1
 
[Install]
WantedBy=multi-user.target
  • Test that it is properly set up by running sudo systemctl start vncserver and sudo systemctl status vncserver

From Stack Exchange

  • Run sudo apt remove lxplug-volumepulse

Setting up Git

From GitHub Docs

  • In terminal, run ssh-keygen -t ed25519 -C "your_email@example.com" to generate a new SSH key
  • Run clip < ~/.ssh/id_ed25519.pub to copy the public SSH key to your clipboard
  • Add the key to your GitHub profile under SSH and GPG keys

Setting up Python

  • In terminal, run pip install --user pipenv

Clone this wiki locally