headless pi zero 2w setup

January 16, 2025, 19:58

89ms

hello does anyone know if you can setup a headless raspberry pi setup on a pc with a non-wifi motherboard?

k9t33n

its a good question to put in here

k9t33n

dw

k9t33n

so you just want to be able to connect the pi to your pc? do you not want the pi to have internet access its self?

89ms

i would prefer if it does

k9t33n

then does your pc have internet access?

k9t33n

im assuming it does through ethernet

89ms

ethernet to router yes

k9t33n

then you dont need to mention your non wifi motherboard

k9t33n

you access your pi through the router, not specifically wifi

k9t33n

89ms

well its not like the direct router idk how to put it its like a box thats makes you have a stronger connection that you can just put in the wall and that has a ethernet port

k9t33n

a switch.

89ms

wait i can send a picture if u want

k9t33n

the pi zero does not have ethernet though so unless you have a access point attached to the switch it would just connect to your router if that has wifi

k9t33n

sure

89ms


k9t33n

okay

k9t33n

whatever that is it has wifi apparently

89ms

dont you need to configure some stuff with the ssh too thats not in the tutorial

89ms

?

k9t33n

that is in the tutorial

k9t33n

"enable ssh by going into the services tab"

k9t33n

i didnt include screenshots of that because the tutorial is already too much of a scroll

89ms

oh alr im trying rn

k9t33n

oh wait and btw

k9t33n

instead of 32 bit desktop choose 32 bit lite

k9t33n

this is the headless version

89ms

lol i was so confused y it didnt work only read it now

89ms

i got a 64 gigs sd i thought i heard that was a problem do u know anything abt it

k9t33n

no

k9t33n

64 gigs is great

k9t33n

sd cards are generally less reliable but apart from that i havent no

89ms

do u know if i did something wrong?

k9t33n

yes

k9t33n

change it to raspberrypi.local

k9t33n

and if that doesnt work check you router for the ip associated with that hostname

89ms

oh lol

89ms

it works now

k9t33n

ye

k9t33n

you can ssh the same way'

89ms

lol srry i got another question if i fill in my password it say its wrong and if i do crtl shift x again the password is 60 characters long

k9t33n

ssh username@raspberrypi.local

k9t33n

where does it say its 60 characters long?

89ms

i counted it

89ms


k9t33n

oh yes

k9t33n

thats because its encrypted i think

89ms

oh wait that should be my username looool

k9t33n

im not sure why it happens but thats my hypothesis

89ms

i was following a tutorial on yt and it said pi@... so i thought i had to put in that

k9t33n

thats outdated

89ms

lets go it works now

k9t33n

the default username used to be pi now there is no default

k9t33n

it would be whatever you set it to, in this case you seem to have set it to sjijn

89ms

ye stijn thats just my name

k9t33n

nice name

89ms

ye its dutch

89ms

do u know what this is i cant find it online anywhere

89ms


k9t33n

Yeah you can't run vnc in a headless setup

89ms

huh so i can only use a terminal

89ms

https://www.youtube.com/watch?v=9fEnvDgxwbI lol in this video they say they are

k9t33n

Vnc is so you can access the pi via gui but by definition headless os's do not have a gui

k9t33n

Yep

k9t33n

Their functially wrong then. If you want a gui you would need to install one but I wouldn't suggest that on a zero

k9t33n

Just too much ram and computing power used up

89ms

but like does it work the same as the terminal on linux like a can still acces the web etc?

k9t33n

If you use lynx yes you can have a terminal based browser but you typically don't do that, and any applications you run on it will be able to yes

k9t33n

You can do everything you can on a full os except use the gui. This just means doing everything via the commands rather than a mouse

k9t33n

You'll learn more this way anyway

89ms

i alr use ubuntu linux so i know pretty much of the commands alr so that isnt a issue

89ms

luckily

k9t33n

Then this will be easy

89ms

but like that means you cant open a file explorer or something right?

89ms

btw why tf isnt it possible to use vnc i dont get it

k9t33n

No but you can use cd and ls

k9t33n

And mv or cp

89ms

oh alr

k9t33n

You can't stream a gui which you don't have

k9t33n

Imagine trying to record the view of a telescope with your phone except you don't have a telescope

89ms

oh ye lol that makes sense

thunder07337

https://discord.com/channels/818384379197784084/818384379197784087/1329540993284051066 What exactly do you want to achieve? Pi with GUI that you can control remotely? Incidentally, the Pi Zero 2 is too weak for this. You won't be able to open a browser with it. I tried it myself because I wanted to use it as a display. Firefox and Chrome complain because there is less than 1 GB RAM.

k9t33n

Some lightweight browser will probably be able to work but at that point lynx is your best option gui or not