Setting Up Raspberry Pi in Headless Mode 6/18/2023
This post is part of a series of notes I originally recorded on a GitLab wiki for our QuitetThing project with can be found here:
https://gitlab.com/mccormjf/quietthing/-/wikis/home
We are going to use Raspberry Pi's as the initial development platform for the Audio Bonnet that will help perform the Active Noise Cancellation.
We are going to be communicating with the Pi's using SSH and maybe a virtual desktop application down the road.
To get the Pi to work in what they call "Headless Mode" you have two main options. If you have the ability to operate the Pi as a standalone computer, you can log in and make sure it is connected to the internet (you can also use Ethernet) and you need to make sure ssh is enabled.
If you do not have the ability to plug the Pi into its own monitor or you are starting/willing to start from scratch follow the instructions at this link: https://www.tomshardware.com/reviews/raspberry-pi-headless-setup-how-to,6028.html
The easiest method is the one titled "Installing Raspberry Pi OS on Your microSD card". The only difference from the steps is that you need to select the 64-bit version of Raspberry Pi OS if you are using a Raspberry Pi 4. This is because at the time of this writing (20230718) this is a bug that does not allow the Adafruit install scripts for the Audio Bonnet to run correctly on a fully updated Raspberry Pi 4 running the 32-bit version. See this link for a more in-depth reason why this is necessary: https://forums.adafruit.com/viewtopic.php?t=200461
Once the Pi is up and running you can use a program called Nutty to scan either your wifi network or your ethernet port(s) to find the IP address of the Pi you would like to connect to.
To connect to the Pi over SSH use the follwing command:
ssh [username]@[ip address of Pi]
Enter Yes if it asks you if want to add the device to the known hosts and then it will ask for the Pi's password. If you didnt change anything in the setup, the default username is "pi" and the default password is "raspberry".
Used the above headless setup article to setup VNC on the pi to be able to see the desktop from my laptop. The steps use windows but I downloaded for Fedora. I got it all setup, I used the IP address of the Pi to connect to it. It was very slow and the resolution wasnt the best. I may look into better solutions or just stick to using the terminal.
Comments
Post a Comment