- Initial Setup
- Remove Bloatware on the Raspberry Pi
- Update packages to the latest version
- Install git
- Replace bash with zsh
- Install Python 3
- Install Node.js and NPM using NVM
- Install Speedtest-CLI
- Install Scripts
- Create Passwordless login
- Use Raspberry Pi Imager to burn the image to an SD card. You probably want the “Raspberry Pi OS Lite” image.
- On the image (which will be in /Volumes/boot on macOS):
- touch ssh to allow SSH access.
- create wpa_supplicant.conf:
country=IN
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="Wifi-SSID"
psk="Password"
}
- Boot rPi.
ssh pi@raspberrypi.local-- default password israspberrysudo raspi-configin system settings,- Update hostname and password
- Select “Localisation Options”
- Change Locale as appropriate
- Select “Change Timezone” and set your timezone
- Advanced options
- Select first option - A1 Expand File System
- Update config
- then reboot.
# https://github.com/JoaquimLey/raspberrypi-headless-setup
sudo curl -fsSL https://raw.githubusercontent.com/wadhwakamal/headless-raspberrypi/refs/heads/main/pi_bloat_remove.sh | sudo bash
sudo apt-get update && sudo apt full-upgrade
sudo apt-get install git
sudo apt update
sudo apt install python3 idle3
Remove default Python2 so we can make Python3 default
sudo rm /usr/bin/python
Link Python3 dir to original python dir
sudo ln -s /usr/bin/python3 /usr/bin/python
Check if it worked!
python --version
NVM (Node Version Manager) is a bash script that allows you to install and manage multiple Node.js versions. Use this method if you need to install a specific Node.js version or if you need to have more than one Node.js versions installed on your Raspberry Pi.
# Use the latest from here --> https://github.com/nvm-sh/nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38/install.sh | bash
The installation script will clone the nvm repository from Github to the ~/.nvm directory and also attempts to add the nvm path to your Bash profile.
# No need to add this just verify if it was already added to your bash or not, otherwise add it
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
source shell or Terminate your shell for shell to refresh
nvm --version
nvm install node
node --version
Install node development tools
sudo apt install build-essential
sudo apt install speedtest-cli
Run below command to perform speedtest
speedtest
