1

I am trying to install Ubuntu Core 18 on my Raspberry Pi 4 by following this guide. I don't have an extra keyboard or a USB-C connector to a screen. The guide says:

Attach the monitor and keyboard to the board. You can alternatively use a serial cable.

However I can't find any instructions on how to do it via serial cable anywhere. How do I connect my PC to the raspberry pi via a serial cable (which I do have)?

Edit: I just want to say again that I've seen other posts that essentially state that I need a keyboard and screen no matter what. But if that is the case then why does the above mentioned guide say otherwise?

4
  • Connect my laptop to the raspberry pi. As I said, I don't have an extra keyboard or a monitor which I can connect to the pi. Other Raspberry Pi OSs can be installed headless, but not Ubuntu Core as far as I understand. Edit: I don't want to buy any adapters. The guide states that it is possible with a serial cable but it doesn't say how. Hence the question.
    – EVARATE
    May 30, 2020 at 18:56
  • Does this answer your question? How to login ubuntu core 18 raspberry pi 3 in headless startup
    – Nmath
    May 30, 2020 at 18:59
  • @Nmath Yes I saw that question and it basically says that I need a keyboard and a Screen. But if that is really the only way then why does the guide say that it is possible via a serial cable? Or am I misunderstanding something?
    – EVARATE
    May 30, 2020 at 19:01
  • So the statement "You can alternatively use a serial cable" doesn't really mean anything?
    – EVARATE
    May 30, 2020 at 19:08

1 Answer 1

2

You can use your laptop as a serial console fairly easily...if you have the right serial connection hardware: Serial port, USB-to-serial adapter, serial cable, serial-to-GPIO adapter, etc.

On any Linux-based system, the plain old screen application will work. Connect it to the serial port. You may need to tweak a bit (like serial port or baud settings).

Example: screen /dev/ttyS0

Example with baud setting: screen /dev/ttyS0 115200

Example with a Serial-to-USB adapter: screen /dev/ttyUSB0 115200

Ubuntu Core requires BOTH a local console AND a working network connection during it's first boot. It will keep repeating the first boot until both are satisfied. The local connection is needed so you can input your Ubuntu One username. The network connection is needed so the system can download your SSH Key from Ubuntu One. Then the Core system will reboot to apply the new settings. You can remove the serial connection during the reboot.

Subsequent boots will merely display the Ubuntu Core system's IP address; a convenience so you can connect using ssh. You won't be able to login using the local console by default (you can enable that feature).

One super-easy way to learn about Ubuntu Core first boot is to try it in a disposable KVM Virtual Machine.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .