-
Notifications
You must be signed in to change notification settings - Fork 13
Raspberry Pi OS
reubenajohnston edited this page Mar 3, 2023
·
3 revisions
- Download images here
- Use dd to image the sdcard (e.g.,
# dd if=2020-02-13-raspbian-buster-full.img of=/dev/sdX status=progress; sync;
, where X is the number for your device)- Or, if it is compressed
- e.g.,
# unzip -p 2020-02-13-raspbian-buster-full.img | sudo dd of=/dev/sdX status=progress; sync;
, where X is the number for your device - e.g.,
# xzcat raspios_arm64-2023-02-22/2023-02-21-raspios-bullseye-arm64.img.xz | sudo dd of=/dev/sdX status=progress; sync;
, where X is the number for your device
- e.g.,
- Or, if it is compressed
- Default image needs editing of
config.txt
- Mount the boot partition (first volume) in the newly imaged sdcard
- Edit
config.txt
and add the line,enable_uart=1
- Attach the UART and connect your development VM using Minicom (see details on RPI4B and Kali-RPI4B)
- Insert the sdcard and power on the RPI
- Default credentials to login are:
pi, raspberry
- Enable vncserver using:
$ sudo raspi-config
Raspberry Pi 4 Model B Rev 1.2
�┌�─�─�─�─�─�─�┤ Raspberry Pi Software Configuration Tool (raspi-config) �──┐
�│ �│
�│ 1 Change User Password Change password for the 'pi' user �│
�│ 2 Network Options Configure network settings �│
�│ 3 Boot Options Configure options for start-up �│
�│ 4 Localisation Options Set up language and regional settings to match your �│
�│ 5 Interfacing Options Configure connections to peripherals �│
�│ 6 Overclock Configure overclocking for your Pi �│
�│ 7 Advanced Options Configure advanced settings �│
�│ 8 Update Update this tool to the latest version �│
�│ 9 About raspi-config Information about this configuration tool �│
�│ �│
�│ �│
�│ �│
�│ �│
�│ �│
�│ �│
�└�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─|
- select
5 Interfacing Options
�┌�─�─�─�─�─�─�┤ Raspberry Pi Software Configuration Tool (raspi-config) �──┐
�│ �│
�│ P1 Camera Enable/Disable connection to the Raspberry Pi Camera �│
�│ P2 SSH Enable/Disable remote command line access to your Pi using �│
�│ P3 VNC Enable/Disable graphical remote access to your Pi using Rea �│
�│ P4 SPI Enable/Disable automatic loading of SPI kernel module �│
�│ P5 I2C Enable/Disable automatic loading of I2C kernel module �│
�│ P6 Serial Enable/Disable shell and kernel messages on the serial conn �│
�│ P7 1-Wire Enable/Disable one-wire interface �│
�│ P8 Remote GPIO Enable/Disable remote access to GPIO pins �│
�│ �│
�│ �│
�│ �│
�│ �│
�│ �│
�│ �│
�│ �│
�└�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─|
- select
P3 VNC
�┌�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─┐
�│ �│
�│ Would you like the VNC Server to be enabled? �│
�│ �│
�│ �│
�│ �│
�│ �│
�│ �│
�│ �│
�│ �│
�│ �│
�│ �│
�│ �│
�│ �│
�│ �│
�│ �│
�│ �│
�│ �│
�│ �│
└�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�|
- select
Yes
�┌�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�────┐
�│ �│
�│ The VNC Server is enabled �│
�│ �│
�│ �│
�│ �│
�│ �│
�│ �│
�│ �│
�│ �│
�│ �│
�│ �│
�│ �│
�│ �│
�│ �│
�│ �│
�│ �│
�│ �│
�│ �│
�└�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─�─|
- connect to the network and get the ip address
- to determine the port that it is running on, use
$ sudo netstat -plnt
- now you can VNC into the device from your development VM using the ip address and port