Raspberry Pi headless setup

Started by fox, April 06, 2021, 01:01:38 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

fox

Here is a good, easy to follow article on how to set up your Raspberry Pi and run it headless.
Ubuntu 23.04 on 2019 5k iMac
Ubuntu 22.04 on Dell XPS 13

Jason

That's cool. Looks very beginner-friendly. One criticism though. For the love of God, don't use Putty. Linux already has a built-in SSH client and it's really not that hard to use. There's no need for putty. I believe Windows' Powershell also has ssh. Just type:

ssh pi@100.110.120.130

(substitute pi with whatever username you have if it's not the default and the actual IP address. You can also add an entry to /etc/hosts so that the IP address can be represented by something 'foxmulder' so you do:

ssh pi@foxmulder

The rest is fine although you can set up X-forwarding over ssh which may give you better performance than VNC. Somewhere there are presentation notes I gave on using ssh. You should also set up a static IP so that if your router is rebooted, you can still get into the Pi. I think my notes showed how to do this but you can google it. It's easy.

* openSUSE Tumbleweed on a quad-core i5 3.2 GHz Desktop PC, 12 GB of RAM, Geforce 1060 card
* Lenovo 300e Chromebook (2nd gen.) with Chrome OS 111 (inc. Android 11 emulation)
* Motorola Edge (2022) phone with Android 12

fox

Thanks, Jason. Now that you mention it, I think I did follow your instructions when I set up my Pi to work headless. I was only doing it to play around and my Pi isn't connected to anything right now. I put it aside, but I'll have to get back to it.
Ubuntu 23.04 on 2019 5k iMac
Ubuntu 22.04 on Dell XPS 13

ssfc72

Thanks Fox for the Link to the RPi headless article. I have bookmarked it on my computer.
Mint 19.1 on a Dell 14" Inspiron notebook, HP Pavilion X360, 11" k120ca notebook (Linux Lubuntu), Dell 13" XPS notebook computer (MX Linux)
Cellphone Samsung A50, PCMobile pay as you go

ssfc72

Thanks Jason for your tip about using SSH on the RPi. I will have to fire up my RPi and try those commands.

Quote from: Jason on April 06, 2021, 01:32:46 PM
That's cool. Looks very beginner-friendly. One criticism though. For the love of God, don't use Putty. Linux already has a built-in SSH client and it's really not that hard to use. There's no need for putty. I believe Windows' Powershell also has ssh. Just type:

ssh pi@100.110.120.130

(substitute pi with whatever username you have if it's not the default and the actual IP address. You can also add an entry to /etc/hosts so that the IP address can be represented by something 'foxmulder' so you do:

ssh pi@foxmulder

The rest is fine although you can set up X-forwarding over ssh which may give you better performance than VNC. Somewhere there are presentation notes I gave on using ssh. You should also set up a static IP so that if your router is rebooted, you can still get into the Pi. I think my notes showed how to do this but you can google it. It's easy.
Mint 19.1 on a Dell 14" Inspiron notebook, HP Pavilion X360, 11" k120ca notebook (Linux Lubuntu), Dell 13" XPS notebook computer (MX Linux)
Cellphone Samsung A50, PCMobile pay as you go

gmiller1977


Jason

* openSUSE Tumbleweed on a quad-core i5 3.2 GHz Desktop PC, 12 GB of RAM, Geforce 1060 card
* Lenovo 300e Chromebook (2nd gen.) with Chrome OS 111 (inc. Android 11 emulation)
* Motorola Edge (2022) phone with Android 12