- I bought a RPI Model 4B 4GB
- I installed Raspberry Pi OS Lite 64 bit using
rpi-imagertool on USB drive.
sudo pacman -Syu rpi-imager- Bootable USB drive has two partitions -
/bootand/rootfs - Edit
/etc/dhcpcd.conf-
# Example static IP configuration:
interface eth0
static ip_address=192.168.1.120/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.1 8.8.8.8
-
I tried to connect rpi with ethernet to laptop directly to access it in headless mode but I failed to do so.
-
Then I connected rpi to my TP-Link WiFi extender with ethernet directly.
-
Use
nmap -sn 192.168.1.0/24to find the list of all connected clients from laptop. -
From terminal on laptop, I can login now - (default username: pi, default password: raspberry)
ssh pi@192.168.1.120-
On first ssh into rpi, I did -
passwdand changed the password forpiuser. -
Then I did
sudo raspi-configand changed Locale (country, time, language), enabled SSH (from Interfacing Options),sudo apt updateandsudo apt upgrade. Then enable VNC (raspi-config -> Interfacing Options). -
Since I downloaded a Lite version of RPI OS, so enabling VNC (raspi-config -> Interfacing Options) will first download and install VNC (server) related packages. On manjaro laptop, I installed generic script x86_64 vncviewer and libxcrypt-compact. Although I have enabled VNC on rpi, when I connect it from laptop (using vncviewer), it says "Cannot currently show the desktop" because the OS is Lite (would not have graphical environment).
-
neofetchis available from the raspberry pi os repos, but it takes about 22 MB install size because it downloads additional dependencies. However, neofetch mentions that it requires only bash as a mandatory dependency, therefore instead of installing neofetch from the repos, I just downloaded the shell file on rpi -
wget https://raw.githubusercontent.com/dylanaraps/neofetch/master/neofetchThen make this file executable and run.
