Open phish108 opened 3 months ago
For Windows users:
If you generated your SSH key on the Windows Subsystem for Linux (WSL) or Ubuntu on Windows, you'll need to use the same environment to connect to your Raspberry Pi. This means using the WSL terminal or Ubuntu terminal for the SSH connection.
Some Windows systems come with SSH for Windows preinstalled. In this case, WSL is not needed.
Technical requirements
Laptop or PC with internet connection
RPI4
RPI compliant USB-C Power Supply
USB-3 Memory Stick or USB-3 SSD with USB-A Connetor.
USB-Keyboard
Ethernet Network Cable (conntected to a switch or router)
WIFI Password
Monitor or TV with HDMI connector
HDMI Cable with std. HDMI <-> Micro HDMI
SSH public key is configured for your user on github.com.
Steps
Other General Purpose OS
forUBUNTU XX.XX Server (64 bit)
and change the image settings according to your network and user requirements. For details see sectionImage Settings
.flash the USB stick. You may have to confirm to override the data on the drive with your password.
After flashing DO NOT remove the drive from your computer.
system-boot
partition on your computer.network-config
Networking
user-data
System
Image Settings
Tab
Common
:hostname
to something identifyable. E.g.adlsdlp-acronym
. This is the internal name of the raspbery.Tab
Services
:use password for authentication
(we change this later)Tab
Options
:Networking
The network configuration lack ethernet support by default. This should be included. The network-config should look as follows.
System
The user-config replicates most of the settings done in the raspberry-pi Imager. The file is in YAML format, so the indentation is significant.
Below the
apt
section add the following lines:Add to the
packages
section the following lines:User settings:
Add the field
ssh_import_id
to the user configuration and include your github user as follows.You need to replace
loginname
with your GitHub username.You MAY add the line
sudo: ALL=(ALL) NOPASSWD:ALL
to your user account. This is only recommended for testing and experimenting. For production systems the line should besudo: ALL=(ALL)
. This variation will ask for the configured password before granting root privileges.You may add additional users, if needed.
If the network connection is known to work, you may set
ssh_pwauth
tofalse
.Additional commands can be set in the
runcmd
section.