Running headless on a raspberry pi4

February 3, 2024, 19:54

masterchief2416

im trying to learn how to use one of these but i cant for the life of me figure out how to get it to connect to my computer <:confusedblob:1053364681575776276>

k9t33n

for ssh?

masterchief2416

yes

k9t33n

get the ip in your routers config then type ssh <user>@<ip> in your computers terminal

masterchief2416

what is the terminal for windows 10?

k9t33n

or my personal favourite, set a hostname in the imager and type ssh <hostname>.local in your computers terminal

k9t33n

press the windows button and type "cmd"

masterchief2416

ah

k9t33n

its the first suggsted app

masterchief2416

is this for wireless?

k9t33n

yes

masterchief2416

bc im trying to do ethernet over usb

k9t33n

thatd work fine too

masterchief2416

does a usbA->usbA work for this?

masterchief2416

or does it have to use a ethernet port

k9t33n

i dont think the pi would be connected to the network then

masterchief2416

so do i need a ethernet -> usbA?

k9t33n

the ethernet will be plugged into the pi and usb into the router?

masterchief2416

huh?

masterchief2416

no no

k9t33n

ssh works by your computer being connected to the same network as your pi

k9t33n

so both need to be conected to the same network for it to work

masterchief2416

ethernet in the pi usb in the computer

masterchief2416

can i not use a direct connection for a local network?

masterchief2416

im sorry im verry new to this stuff

masterchief2416

if you are helping someone else just help them for now i can wait

k9t33n

no sorrry

k9t33n

like into your laptop or something?

masterchief2416

to a desktop

masterchief2416

but yea

oops.se

Windows doesn't have a ssh client by default

masterchief2416

so you cant use cmd?

k9t33n

the terminal works no?

oops.se

There is no terminal in windows by default

k9t33n

the cmd line?

k9t33n

that works just fine in my experience

oops.se

Sorry, there seems to be one.... When did that one come in by defeault. Forget what I said

masterchief2416

?

oops.se

" ethernet over usb" will not work by default, you need to install a RNDIS driver in windows

masterchief2416

any suggestions?

oops.se

You wan't to connect the Pi directly to your computer ?

oops.se

With a ethernet or USB cable?

masterchief2416

usb

oops.se

Or do you have a router/firewall

oops.se

WiFi?

masterchief2416

i have a router

masterchief2416

i can use wifi

oops.se

Good, because a Raspberry Pi 3 can't do "USB Gadget", thats wwhat ethernet over USB and storage over USB is called

oops.se

Did you use Raspberry Pi Imager when you created the SD card?

masterchief2416

yes

oops.se

In Imager there is a WiFi section where you can add SSID and Password.

oops.se

Have you download Imager recently?

masterchief2416

yes

oops.se


oops.se

When you press NEXT you should get an question about adding user and adding Wi-Fi cfeddentials

oops.se

And hostname

oops.se

And you can also open it with a secret key press "Ctrl + Shift + X"

masterchief2416

every site ive went to said to put "dtoverlay=dwc2" in the config and "modules-load=dwc2,g_ether" in the cmdline

masterchief2416

should i be doing that?

oops.se

No, Raspberry Pi 3 doesnt support that

oops.se

Pi zero, Pi 4 and perhaps Pi 5, havent check that

masterchief2416

would it work if its a pi3b?

oops.se

No Pi 3 variants

masterchief2416

fuck

masterchief2416

ok so im suposed to be using this pi for a collage class and i think that i got the wrong pi moddel for the class

masterchief2416

so

masterchief2416

i think i fucked up

oops.se

Where you supposed to show USB gadget ?

masterchief2416

i think??

masterchief2416

the professer has nothing but pdfs but the requirements were: Raspberry Pi Zero 2 W (recommended for this course) • 512MB $15 Raspberry Pi 5 • 4GB $60 • 8GB $80 Raspberry Pi 4 Model B • 1GB $35 • 2GB $45 • 4GB $55 • 8GB $75 • Raspberry Pi 3 Model B+ (if you already have one use it)

masterchief2416

so im fucked

masterchief2416

thanks for the help anyway

oops.se

No no are not

masterchief2416

how so?

oops.se

~~If the professor recommend a Pi3B+ and the + model supports USB gadget, so sorry your toast~~

masterchief2416

ok thank you anyway

oops.se

Ask the professor if "USB gadget" is required for the labbs

minkleee

If it isn't then you could get away with a hotspot running on your computer or the pi

k9t33n

just checking is this the pi3b or pi3b+?

k9t33n

also does your laptop have a ethernet port?

masterchief2416

i got a rasperrry pi 4

k9t33n

nice