Note, these things work on Ubuntu Server, but some may not work on Raspberry Pi OS.
This can be done several different ways.
This is supposed to work on Ubuntu Server for Raspberry Pi, but I can’t test because I think my wifi card is broken.
Edit the network-config
file in the boot partition of a newly flashed SD card. It has an example configuration aleady in the file. First uncomment the block, then change the network name and passwords. The network name and password will always need to be enclosed in double quotes.
You will need to reboot the Pi twice for these changes to take effect.
This works on Raspberry Pi OS
Create a file called wpa_supplicant.conf
in the boot partition of a newly flashed SD card. The should contain the following:
country=US
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="YOURSSID"
scan_ssid=1
psk="YOURPASSWORD"
key_mgmt=WPA-PSK
}
Add a new user
Log out of the pi user and log into your new user account.
Delete the old pi
user
If after first boot dpkg is locked because there is an unattended-upgr
, then follow these steps:
sudo dpkg-reconfigure -plow unattended-upgrades
sudo apt update && sudo apt upgrade
sudo dpkg-reconfigure -plow unattended-upgrades
sudo reboot
Notes on Computers
AWS · Bash · C · C++ · Cyber Security · Git · LaTeX · Linux · Networking · Python · Raspberry Pi · Tools · Vim
Notes on Math & Physics
Information Theory · Linear Algebra · Solid State Physics
Copyright 2021 · Eric D. Weise