Using PiPDP8 with a terminal

  1. Copy the file serial-getty@.service from /lib/systemd/system to /etc/systemd/system

  2. The file must be renamed, so that it points to your serial terminal which will be ttyUSB0. The filename becomes:
    serial-getty@ttyUSB0.service

  3. The file may need to be edited with the parameters of your serial terminal, or the default setting may work.
    In my case I changed the first line in the [Service] section to read: ExecStart=-/sbin/agetty ttyUSB0 9600 vt100

  4. Now, enable the service with:

sudo systemctl enable serial-getty@ttyUSB0.service

You should get a Creating sim link …​. message. The service will now start up at every boot.

Note
The serial-getty@service file is a generic template for setting up a serial terminal with a log-in prompt.


Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.