I have two computers that both have a RS-232 port on /dev/ttyS0 connect together with a null modem.
I am trying to understand bit by bit how an external terminal worked in the old days, and how that relates to how linux works today.
I have gotten it to work like this:
main computer:
$ sudo socat /dev/ttyS0,raw,echo=0 exec:"/bin/bash -i",pty,stderr,setsid,sigint,sane
terminal:
picocom -b 9600 /dev/ttyS0
However, that has pty in it - which is why I get this on the terminal:
# tty
/dev/pts/11
and you shouldn't need a pseudo tty if you have an actual real life tty should you? I mean they were connecting terminals in with wires before they had pseudo anything weren't they?
So I have been trying to mix and match socat options to make it with with no pty, but with no luck. If I can anything appears in my terminal computer, there are no carriage returns or job control and tty says "not a tty".
I have to admit I don't understand the socat syntax (or terminal settings) - I was hoping to see the correct answer, and understand the syntax from there.
Could somebody either tell me how to make a remote terminal with no pty, or help me accept that it's not possible?
getty. something likegetty -8 9600 ttyS0should do.