screen-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [screen-devel] using screen for connecting two machines via serial p


From: Elmar Stellnberger
Subject: Re: [screen-devel] using screen for connecting two machines via serial port
Date: Wed, 25 May 2022 13:26:33 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0

I have now installed mingetty and mgetty but I have no clue on how to use these programs. If I run mingetty from an X11-console it lets me enter characters but nothing else, no matter what I specify for --loginprog. If I do a mingetty /dev/tty7 I can enter a few characters on that terminal before mingetty terminates.

???

Am 25.05.22 um 07:27 schrieb david kerns:
Typically, you run getty on one computer (the host), then screen (or some other terminal emulator) on the second.
getty will prompt you for a login/password and then spawn a shell.
I suppose you could just spawn a shell directly (from systemctl), but that is, obviously, insecure.

Ultimately, what you're seeing is an issue with canonical processing. The "host" of the connection usually "echos" back each character sent to it.


On Tue, May 24, 2022 at 5:57 PM Elmar Stellnberger via screen-devel <screen-devel@gnu.org <mailto:screen-devel@gnu.org>> wrote:

    Dear maintainers of screen

        Today I wanted to connect two machines using screen:
    machine1> screen /dev/ttyS0
    machine2> screen /dev/ttyUSB0

        The problem about it is that \n does not go to the beginning of
    a new
    line but merely one line below without carriage return. I have tried to
    set onlcr with stty but that does not help. Also I have played with
    TERM=putty and screen.putty but could not resolve the issue.

        I have discovered the same issue with
    machine1> screen /dev/ttyS0
    machine2> echo hugo >/dev/ttyUSB0

        The goal would of course be to run bash on one computer and
    screen on
    the other:
    machine1> screen /dev/ttyS0
    machine2> TERM=screen.putty bash </dev/ttyUSB0 >/dev/ttyUSB0
    2>/dev/ttyUSB0 & echo $!

        Same problem here: '\n' does not do an additional carriage
    return as
    required.

    Anyone here who can help me?


    Elmar Stellnberger







reply via email to

[Prev in Thread] Current Thread [Next in Thread]