Setting up a Raspberry PI for Automation
|
What can we help you find? |
Random | ||||||||||||||||
| Home | Testing | Automation | AI | IoT | OS | RF | Data | Development | References | Tools | Wisdom | Inspiration | Investing | History | Fun | POC | Help |
The following steps were used in a POC to setup a Raspberry Pi for automation purposes.
- Initial Setup
- Install Raspbian (Bullseye) on a 32 Gig Micro SD Card
- Boot the Raspberry Pi onto this new install
- Run the following command in a terminal
cat /etc/os-release
- Ensure you have Linux 11 (Debian) installed
- Setup Networking
- Join the wireless network
- Ensure apt is up to date.
- Update the package list to get information on the latest versions of packages and their dependencies:
sudo apt update
- Upgrade the installed packages to the latest versions:
sudo apt upgrade
- Remove any packages that were automatically installed to satisfy dependencies for other packages and are now no longer needed.
sudo apt autoremove
- And to clean up the local repository of retrieved package files that are no longer needed:
sudo apt autoclean
- Update the package list to get information on the latest versions of packages and their dependencies:
- Install RealVNC
sudo apt install realvnc-vnc-server- After installation, you can enable and start the VNC service using
sudo raspi-configtool or through the Raspberry Pi Configuration menu in the desktop environment. Remember to ensure that VNC is enabled in the Raspberry Pi Configuration settings if you’re using the desktop environment. - Select "Interface Options"
- Select "VNC"
- Select "Yes" for Would you like to VNC server enabled.
- Select "Finish" to exit Raspberry Pi Configuration menu.
- Configure RealVNC
- Click on the RVNC icon in the Raspberry Pi Toolbar (top right on screen)
- Go to the hamburger menu and select "Options"
- Security -> Encryption "Prefer Off"
- Security -> Authentication "VNC password"
- Specify Password
- Enable "Allow connections from legacy VNC Viewer"
- Click OK to accept changes.
- Connect to Raspberry Pi via VNC on Mac
- From the finder select the "Go" menu and choose "Connect to Server"
- Enter the address vnc://192.168.1.231
- Enter Password used in previous step
- Install git
sudo apt install git
- Install ZShell
sudo apt install zsh- Change default shell using
sudo chsh -s /usr/bin/zsh - Next time you reboot and open a terminal you should see a prompt to setup the .zshrc file. Select option 2.
- Install Oh-My-ZShell
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
- Install Chromium (open-source version of Google Chrome)
sudo apt-get install chromium-browser --yes
- Install Firefox
sudo apt install firefox-esr
- Install Java 17 (Hopefully soon to be version 21)
sudo apt install openjdk-17-jdk- Check installed version
java -version
- Install Maven 3
sudo apt install maven- Check installed version
mvn -version
- Install VSCode
sudo apt install code
- Install git
sudo apt install git