Headless Pi5 Ubuntu Setup

April 11, 2024, 16:23

thetysonator

I've just got a Pi 5 used the imager to put Ubuntu on the SD card, I've set a username and password, entered my wifi details, set my timezone and enabled SSH. After I plugged it in I connected to my router and it hasn't connected to the network. I'm not sure on what to try, any ideas?

thetysonator

I've tried both the default image on the raspberry pi imager and the LTS version I got from the ubuntu website.

thunder07337

How did you check that it is not connected to the network?

thetysonator

I signed into my router and looked at the devices connected to it.

thunder07337

Do you connect power first and then Ethernet? Have you tried it with the raspberry pi OS? Because if it then appears in the router, something is wrong with Ubuntu. If it doesn't show up, something is wrong with the cable or the Pi.

oops.se

If you are 100% sure that you have created the SD card correctly, the SD card is in working order and you can't connect to it then is the only option is to connect a display and see where the issue is.

thetysonator

No I haven't tried ethernet

thetysonator

or raspberry pi OS

thetysonator

<a:CryingManAnimated:1168899213170581576> ok I just ordered a cable for that

thunder07337

How is your WiFi set up? Some routers have the option to only allow "Known devices" into the WLAN.

thetysonator

Sorry for the shit quality

thetysonator

Is the error to do with the Pi or SD card?

thetysonator

Both are brand new

oops.se

Probably the SD card

oops.se

Crop the picture before posting

thetysonator

rip time to order a new one ig

oops.se

Or a SSD or a NVMe HAT, SD card isn't that reliable as computer storage?

thetysonator

I mean those would be better but I've had Pi's running for years on SD cars with no issues at all

oops.se

And what I try to say a SD card has a limited write operation and if you run a system you will encounter this and experience strange behaviour. It depends on your use case, my latest crash was a Pi 4 at home run flawless for 4 years with docker and then it crashed with a SD card that has write/read failures.

coldxd

<@796000224690307072>, I dont have the same problem, but you can maybe help me get this sorted out?

oops.se

Why do you ping me in a thread that belongs to another? Thats not gonna give you any creds.

thetysonator

Yes swapping in a new one did the job perfectly, thank you!

thetysonator

Oh that’s true, I don’t think I should be writing that much data so it should be fine.

oops.se

Well you have for example logs that is quite write intensive. To prevent this I create a RAM disk that I use for logging.

thetysonator

that's a pretty good idea actually I might give that a go

oops.se

Check Log2RAM

coldxd

I meant it diff, i meant i have the same kind of problem but with noobs not starting headless

coldxd

but okay

thetysonator

I've just taken a look now it looks awesome, thanks! I'll get it set up tomorrow.