Set up a headless Raspberry Pi, all from the line of some other computer

There are differences between setting up a Raspberry Pi and installing an operational formula on any other computer, but one thing that is not unusual is that if you do enough, you should automate the procedure in each and every possible way. This is the scenario in which [Peter Lorenzen] was found, and its solution is a shell script to install and configure the Raspberry Pi to work headless, without connecting a keyboard or monitor in the procedure.

The [Peter’] tool is a script called rpido, and with it the procedure of setting up a new Raspberry Pi for headless operation is greatly simplified. To set up a new Pi, all [Peter] wants to do is:

The [Peter’] script has apparent benefits over navigating a list of tasks for setting up and installing operational formulas, not to mention the benefits of not having to connect a keyboard and monitor. Part of the magic is that [Peter] mounts the SD card registration formula in a chroot environment. With the right tools, THE ARM binaries for Pi paints on your Ubuntu (Intel) computer. It is much more convenient to make adjustments to the SD card content this way, before you go to your new home in a Pi.

However, not everything has to revolve around an SD card. [Jonathan Bennet] has demonstrated that it is imaginable to run a Raspberry Pi without an SD card using pxE’s startup function, allowing you to start and load your registration formula from a server on the same network, rather than a memory card.

Ordered. I have to go back to my task to install Steam and run the half-life on a raspi. multiarch/qemu can do it, but I think chroot/qemu can do it.

The first technique allowed me to install Steam, but failed after downloading the updates, due to library tracking issues. Obviously, it didn’t join a multi-arched environment.

With DietPi Image, I don’t want a keyboard or a screen. I put the initial configuration (wlan, lan, ssh, password) on the dietpi.txt and start the symbol with the lan connected and configure the rest via ssh. It’s also imaginable to set up a serial console, so I don’t see the need for that. If you configure smooth raspating over LAN smoothly.

You speak Latin too.

I put them headless all the time with Windows, I create a symbol with Win32DiskImager, I put an empty record called “ssh” on the partition “boot” on the SD card (it is the only visual image on Windows), starts RPi, now you can and ssh and turn on VNC raspi-config, also configure the IP (if you do not want DHCP) dhcpcd. Use the TFTPD64 program if you want a local DHCP server on your laptop/computer.

What merit does this have about simply flashing an SD card with a poison, defining the ssh.txt in the root folder and then just doing it headless on the network?

I agree, that’s what I did. It’s unfortunate that the rpi doesn’t have other features like that either. The ability to configure it with a static IP to deal with or register on a wireless network, for example. Have a network record such as the ssh record.

Have you tried PiBakery? (https://www.pibakery.org/index.html)

To set it on first startup, place your wpa_supplicant.conf record at the root of the boot partition and it will be copied to /etc/wpa_supplicant/on the first boot.

A harmful way to do things, if you don’t worry about reading the script first.. effective, however, though he did not. 1 use case is not resolved with this approach (i.e. configure wpa_supplicant with rasps-config …)

Passwords, groups, users, wifi, keyboard, ssh, sudo is configured – the files in the model, which were all the interest of this script.

If I had included the contents of the files in the model, it would have been harmful to my network.

But I will argue that the configuration of my rpido systems is probably more secure, because no password circulates on the network, from the beginning.

As I point out in the article, any use of “sudo” is dangerous, from a script. That’s why I show all the sudo commands when they are executed.

“There are differences between setting up a Raspberry Pi and installing an operational formula on any other computer, however, one thing that is not unusual is that if you do enough, you must automate the procedure in each and every possible way.”

There’s going to have to be a lot of them.

“There are differences between setting up a Raspberry Pi and installing an operational formula on any other computer, however, one thing that is not unusual is that if you do enough, you must automate the procedure in each and every possible way.”

Strange, all you have to do is one of them, then just clone the uSD into another dd uSD.

If you are satisfied with interrupting a running Pi just to clone your micro SD card, of course. Even if you already had a symbol provided, you still had to outline the host call one way or another, and if you had to let go and make a chroot on the micro SD, that turns out to be what the tool does anyway.

Leave a Comment

Your email address will not be published. Required fields are marked *