¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Headless and Wireless from the Get-Go


 
Edited

HEADLESS AND WIRELESS FROM THE GET-GO


Hey all;
?
I decided to install BAP 3.0.2 this past weekend on a well-tested Pi4b-4gB *without*
needing to plug-in a monitor, keyboard, or mouse OR even a network (ethernet) cable.

Here are the steps;


1 - FLASH AN SD-CARD WITH LATEST RASPIOS/RASPBIAN:

There is an interminable number of instructions on how to do this on the internet. I
used rpi-imager, and the default selection(s) on my Manjaro-Linux-aarch64-RPi4b
-8gB
desktop. The sd-card was plugged into a sd-card-2-usb device. It showed up as
/dev/sda .


2 - ENABLE SSH LOGINS:

Add an empty file to the "first" (/boot) partition that is named ssh. This item is covered
in Jason's video;




3 - ENABLE FIRST LOGIN TO BE ¡°WIRELESS¡±:

Add a simple text file called wpa_supplicant.conf to the /boot partition. Enter the
following text into the file. (** Be sure to substitute your network name and password
between the quotes AND leave the quotes marks and the lack of any indents, blank-lines.) :

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=US
network={
ssid="Your-network-name/SSID"
psk="Your-network-password"
key_mgmt=WPA-PSK
}



4 - FIRST BOOT-UP:


Put the sd-card into your wireless RPi, apply power, and watch the blinking green led
while your new operating system boots up.

Use ssh on your regular "desktop" machine (which you probably used to create your
NEW RPi¡¯s sd-card) to log into your RPi-headless-&-wireless machine. Something like
this from a command line should "do-it":

ssh pi@your-rpi-ip-address

NOTE: You will need to replace your-rpi-ip-address with the ip number your local
network router assigned to your new RPi AND, when prompted, the default password
is raspberry.


5 - ENABLE VNC:

RUN the following command:

sudo raspi-config

You will **need** to make changes TWO changes to the default setup. You
must enable the VNC server AND set the screen resolution to something other than
the default, I find setting it to 1024x768 to be a good selection to start with.

NOTE: The arrow, tab, and enter keys are used to navigate and select items and settings
in raspi-config. You will find the VNC server enable under item number 5 and the screen
resolution under item number 7.):

(OPTIONAL STEP: You can also use raspi-config to enlarge the /root partition. This will
also be located under item number 7.)

Reboot the system using this command:

sudo reboot

LOGIN
again using ssh. Then execute the following;

sudo su
cd /root/.vnc/config.d
cp -a vncserver-x11 vncserver-x11.org
nano vncserver-x11

NEXT
add the following to the file, saving the result and exiting nano using ctrl+x
followed by a y and finally the enter keys:

Encryption=PreferOff
Authentication=VncAuth
Password=e0fd0472492935da
IdleTimeout=0

THEN reboot the system using this command:

sudo reboot



6 - USING THE ¡°HEADLESS AND WIRELESS¡± RPI:

LOGIN
by starting up using your desktop's vnc client (in my case tigervnc). The login
is the RPi¡¯s network ip-address and the password is foobar .

I am sure everything went well, so you will be greeted with a window containing a
¡°virtual-screen¡±. One or more ¡°pop-ups¡± will (almost immediately) appear AND will offer
you the option to update and eventually reboot your system, which you SHOULD do !

NEXT, after you login again, you should spend some time and play around. Among
other things you should learn how to open a terminal window.? Mouse (left) click the
icon to the **right** of the Raspberry Pi icon. These icons are located in the top left
corner. The one for the terminal looks a bit like a terminal window would. Hi Hi.


7 ¨C INSTALL AND USE BUILD-A-PI:

WHEN you are ready you can install Build-A-Pi (BAP) using this command from inside
of the terminal ¡°window¡± (which you learned how to use in the step immediately above):




**** I want to thank Jason - KM4ACK,? Mitch - N7USU, and Jerry - N5RKE for their
feedback on an earlier version of these instructions. I would NOT have made any
improvements without their input.



NOTES:

- After Build-A-Pi (BAP) is installed, you can run it from the Applications Menu. This
menu **is** the Raspberry-Pi icon in the top left corner.

- You can change the default user¡¯s (pi) password using raspi-config .

- You can change the default vnc password by left clicking the VNC icon. (It¡¯s along the
top in the ¡°panel¡±.)



es VY 73 om de ¡°baab¡± w9ya

Join [email protected] to automatically receive all group messages.