Add a virtual serial port.
Install the following packages:
run socat with: <source lang="bash"> socat -d -d /tmp/serial PTY: </source> Look out for which tty the output has been redirected to, eg /dev/pts/0
Connect the terminal emulator with: <source lang="bash"> cu -l /dev/pts/0 -s 38400 </source>