Hello how can I install ubuntu desktop 21.04 on raspberry pi 4 using serial console? I want to use the Raspberry Pi 4 UART pins to communicate using TTL to USB convert device to my windows 10 OS using PuTTY.

I tried configuring cmdline.txt and config.txt, I was able to communicate with the ubuntu 20.04 desktop installater, but I get stuck at "login" and "password".

How do I prepare the SD card files to add a valid "login" and "password" credentials so that I can be able to install ubuntu 20.04 desktop via serial?

Here is a pic:



Edit: I solved the problem.

I had to edit the boot files of the installer and add a root hash password to "etc/shawdow". Since ubuntu does not supply a default root password on it's installers.

Here is a video on how to do it: https://www.youtube.com/watch?v=vyG1bMk522I

Here is a pic me finally logging into the Ubuntu 21.04 desktop release installer as root via UART TTL Serial communication from PuTTY:


All that is left is to finally install ubuntu 21.04 into the raspberry pi 4... all done heedlessly, thank goodness :)

  • What do you mean by "serial console"? Do you mean without using a monitor , keyboard and mouse? Do some Google searches and you'll find things like askubuntu.com/questions/1154768/… Put some effort in then come back here with specific questions...
    – mhaselup
    Jul 17, 2021 at 13:58
  • Enabling/disabling the serial console is done the same way regardless of distro, so the real question is how to enable the serial console. The answer you are looking for is actually in the question of the duplicate (settings in config.txt and cmdline.txt).
    – goldilocks
    Jul 17, 2021 at 15:33
  • I meant as "serial console" as in the using serial communication via the Raspberry Pi's UART pin connected to a TTL to USB converter device, I will use PuTTY as the serial console to communicate with the raspberry pi. I tried configuring the config.txt and cmdline.txt and in the serial console I am stuck with a login and password requirement. I tired all default password and login, none works. here is picture: preview.redd.it/…
    – Max Dax
    Jul 17, 2021 at 15:36
  • Max, the question is now substantially different than originally. It was about how to enable the serial console, and problem solved. "How to log in to ubuntu via the serial console?" is a completely separate question and should be asked as such -- ie., when you have a new question, ask a new question, do not edit it into a previous one. We do not have a run-on discussion format here. Please take the tour to understand better how the site works.
    – goldilocks
    Jul 17, 2021 at 17:46
  • it is unclear what you mean by install ... the picture you attached shows boot messages and a login prompt
    – jsotola
    Jul 17, 2021 at 18:59


Browse other questions tagged or ask your own question.