Enable serial console with systemd

If you need to enable a serial console on a systemd machine like Fedora 16, you have two possibilities.

Start it immediately with: systemctl start getty@ttyS0.service

or start it at every boot with:

ln -s /usr/lib/systemd/system/getty@.service   /etc/systemd/system/getty.target.wants/getty@ttyS0.service

This entry was posted in Fedora, Linux and tagged . Bookmark the permalink.

3 Responses to Enable serial console with systemd

  1. Nick says:

    Wouldn’t “systemctl enable getty@ttyS0.service” do the same as “ln -s /usr/lib/systemd/system/getty@.service /etc/systemd/system/getty.target.wants/getty@ttyS0.service” ?

  2. Jens Kuehnel says:

    @Nick: I had the same idea. But all I get is “Failed to issue method call: No such file or directory”.

  3. Nick Gooneratne says:

    Worked for me fedora 32 vm running on fedora 31

Leave a Reply

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