Re: USB serial local getty terminal re-prompts for login on any input

2023-10-27 Thread Morgan Aldridge
On Thu, Oct 26, 2023 at 9:03 PM Theo de Raadt wrote: > > Crystal Kolipe wrote: > > > On Thu, Oct 26, 2023 at 12:20:08PM -0400, Morgan Aldridge wrote: > > > Yes, your assumption was correct, every keypress acts as if I had > pressed > > > enter. Thanks for c

Re: USB serial local getty terminal re-prompts for login on any input

2023-10-26 Thread Theo de Raadt
ktrace -di of the process will show what is going on Crystal Kolipe wrote: > On Thu, Oct 26, 2023 at 12:20:08PM -0400, Morgan Aldridge wrote: > > Yes, your assumption was correct, every keypress acts as if I had pressed > > enter. Thanks for confirming! > > Getty re-disp

Re: USB serial local getty terminal re-prompts for login on any input

2023-10-26 Thread Crystal Kolipe
On Thu, Oct 26, 2023 at 12:20:08PM -0400, Morgan Aldridge wrote: > Yes, your assumption was correct, every keypress acts as if I had pressed > enter. Thanks for confirming! Getty re-displays the login prompt when it sees either 0x00 or 0x80 on the serial line. In fact, you can do i

Re: USB serial local getty terminal re-prompts for login on any input

2023-10-26 Thread Morgan Aldridge
characters or breaks (AFAICT). > > > > On the OpenBSD side (with getty disabled on the tty, of course), I ran > `cu > > dr -l ttyU1 -s 9600` and jumped the TX/RX pins, and confirmed that the > > characters entered were received back without any breaks or odd > charact

Re: USB serial local getty terminal re-prompts for login on any input

2023-10-26 Thread Crystal Kolipe
On Wed, Oct 25, 2023 at 01:35:39PM -0400, Morgan Aldridge wrote: > On the terminal, keeping the same 9600 8N1 settings, but enabling local > echo, and shorting the TX/RX pins gets me duplicated input with no odd > characters or breaks (AFAICT). > > On the OpenBSD side (with

Re: USB serial local getty terminal re-prompts for login on any input

2023-10-25 Thread Morgan Aldridge
no shorts to ground or other pins, and no odd > resistance on any of the connections. That's a good start. > > On the terminal, keeping the same 9600 8N1 settings, but enabling local > echo, and shorting the TX/RX pins gets me duplicated input with no odd > characters or breaks (AFAICT)

Re: USB serial local getty terminal re-prompts for login on any input

2023-10-25 Thread Morgan Aldridge
9600 8N1 settings, but enabling local echo, and shorting the TX/RX pins gets me duplicated input with no odd characters or breaks (AFAICT). On the OpenBSD side (with getty disabled on the tty, of course), I ran `cu dr -l ttyU1 -s 9600` and jumped the TX/RX pins, and confirmed that the characters ent

Re: USB serial local getty terminal re-prompts for login on any input

2023-10-24 Thread Crystal Kolipe
On Mon, Oct 23, 2023 at 11:37:10PM -0400, Morgan Aldridge wrote: > I have experimented with the following with no change in the underlying > issue of the terminal showing the login prompt, but each character input > causing the login prompt to be resent: If you short the tx/rx lines at the DE-9

USB serial local getty terminal re-prompts for login on any input

2023-10-23 Thread Morgan Aldridge
) (more specifics below), have the terminal configured for 9600 8N1 with no flow control, and the terminal does display the login prompt generated by getty(8). Unfortunately, regardless of what input is provided on the terminal, getty(8) just sends a new login prompt. I only have the one USA-19HS, one

Re: getty vs. ttyU0

2019-02-12 Thread Edd Barrett
On Sat, Feb 09, 2019 at 06:28:04PM +, Edd Barrett wrote: > ttyU0 "/usr/libexec/getty std.9600" vt220 on For the archives, sthen@ guessed it. You have to add the 'softcar' flag to your ttyU0 entry in /etc/ttys. Works a charm. -- Best Regards Edd Barrett http://www.theunixzoo.co.uk

getty vs. ttyU0

2019-02-09 Thread Edd Barrett
Hi all, I'm trying to get a USB->serial adapter serving a login prompt via getty. Here's the converter in question: ---8<--- uftdi0 at uhub3 port 3 configuration 1 interface 0 "FTDI FT232R USB UART" rev 2.00/6.00 addr 2 ucom0 at uftdi0 portno 1 --->8--- The following line

getty doesn't work on serial ports which aren't the boot console

2017-04-25 Thread Andrew Daugherity
I was setting up a new server where I wasn't sure whether com0 or com1 was the port I wanted, so I turned on both tty00 and tty01 in /etc/ttys to see which one to use in boot.conf. Edited the file, did the 'kill -HUP 1', and... nothing. getty processes are listening on tty00 and tty01, but both

Re: OT: shell / terminal / console / tty / cua / getty

2016-10-21 Thread Martin Schröder
2016-10-21 12:04 GMT+02:00 Mihai Popescu : > terminal: physical stuff, keyboard + screen + serial port for > mainframe connection Relevant: https://www.jwz.org/blog/2016/10/export-termaaa-60/ > enough. Also a link or a book indication for all this stuff will be > fine. We have

OT: shell / terminal / console / tty / cua / getty

2016-10-21 Thread Mihai Popescu
connection console: ? stdout, stderr, xconsole? have no idea yet! tty: software, but that's all i know! maybe to manage a terminal at server side? cua: software, device for interraction with serial port of the computer getty: software to manage tty? Don't bother with OS implementation details, a relation

Re: getty

2012-08-07 Thread Christian Weisgerber
Miod Vallat m...@online.fr wrote: ttyC3 /usr/libexec/getty std.192600 vt220 on secure As long as you are using a baud rate recognized by getty, things will still work and you won't notice a change, because wsdisplay(4) ttys ignore the terminal speed you try to configure them

Re: getty

2012-08-06 Thread Stuart Henderson
On 2012-08-05, Ben Calvert flying_wal...@me.com wrote: you must read really fast! I prefer to set mine to 300 so I don't need to pipe things to more :) Seriously though, what are you trying to achieve with this setting? just because the text will scroll faster doesn't mean the machine

Re: getty

2012-08-06 Thread Miod Vallat
I would like to change /etc/ttys to get, for instance: ttyC3 /usr/libexec/getty std.192600 vt220 on secure instead of : ttyC3 /usr/libexec/getty std.9600 vt220 on secure Do you think i could run into problems ? As long as you are using a baud rate recognized by getty

getty

2012-08-05 Thread Friedrich Locke
I would like to change /etc/ttys to get, for instance: ttyC3 /usr/libexec/getty std.192600 vt220 on secure instead of : ttyC3 /usr/libexec/getty std.9600 vt220 on secure Do you think i could run into problems ? Thanks in advance.

Re: getty

2012-08-05 Thread Dan Shechter
-net.com Bring order to your Private VLAN network: http://marathon-networks.com On Sun, Aug 5, 2012 at 2:14 PM, Friedrich Locke friedrich.lo...@gmail.com wrote: I would like to change /etc/ttys to get, for instance: ttyC3 /usr/libexec/getty std.192600 vt220 on secure instead of : ttyC3

Re: getty

2012-08-05 Thread Friedrich Locke
, Friedrich Locke friedrich.lo...@gmail.com wrote: I would like to change /etc/ttys to get, for instance: ttyC3 /usr/libexec/getty std.192600 vt220 on secure instead of : ttyC3 /usr/libexec/getty std.9600 vt220 on secure Do you think i could run into problems ? Thanks

Re: getty

2012-08-05 Thread Ben Calvert
/libexec/getty std.192600 vt220 on secure instead of : ttyC3 /usr/libexec/getty std.9600 vt220 on secure Do you think i could run into problems ? Thanks in advance.

Re: getty

2012-08-05 Thread Nick Holland
On 08/05/12 07:14, Friedrich Locke wrote: I would like to change /etc/ttys to get, for instance: ttyC3 /usr/libexec/getty std.192600 vt220 on secure instead of : ttyC3 /usr/libexec/getty std.9600 vt220 on secure Why? This is not a serial console. (for those that missed

Re: Something other than getty/login on console?

2012-06-25 Thread MERIGHI Marcus
put something like yes. #!/bin/sh I recommend the use of ``#!/bin/sh -e'', see ksh(1). while [ ! ]; do I use ``while :; do'' in such cases; BUT: please read init(8), it will respawn your process anyways; read DIAGNOSTICS section carefully, especially the ``getty repeating too quickly'' part

Re: Something other than getty/login on console?

2012-06-24 Thread David Diggles
Thanks Marcus! I have been sidetracked with a few things, but will give this technique a try soon. I take it dostuff.sh is where I could put something like #!/bin/sh while [ ! ]; do /usr/local/bin/ttyplay kickassci.demo done ? On Fri, Jun 15, 2012 at 09:36:43AM +0200, MERIGHI Marcus wrote:

Re: Something other than getty/login on console?

2012-06-15 Thread MERIGHI Marcus
da...@elven.com.au (David Diggles), 2012.06.15 (Fri) 00:20 (CEST): I want the default login console to run something like /usr/games/worms -n100 or rsh host /opt/local/bin/xaos -driver aa -autopilot the way I do it... $ grep ttyC0 /etc/ttys ttyC0 /usr/local/libexec/getty.sh vt220 on $ ls

Something other than getty/login on console?

2012-06-14 Thread David Diggles
I want the default login console to run something like /usr/games/worms -n100 or rsh host /opt/local/bin/xaos -driver aa -autopilot Instead of /usr/libexec/getty std.9600 I have tried changing it in /etc/ttys but this is not working. How can I go about doing this? It's for a mac68k ascii art

Re: Problem with setting up dial-up server with getty and ppp

2009-05-09 Thread Stuart Henderson
are static. use MAKEDEV or mknod to give you more. Thanks, guys! Your help is great. I see incoming calls. Now I have in /etc/gettytab: std.38400|38400-baud:\ :pp=/etc/ppp/ppplogin:\ :sp#38400: # ps ax|grep getty 25750 ?? I 0:00.01 /usr/libexec/getty std.38400 tty04

Re: Problem with setting up dial-up server with getty and ppp

2009-05-08 Thread Alexander Shikoff
On Thu, May 07, 2009 at 02:27:51PM -0400, Brynet wrote: Hi Alexander, Hello, before we continue I'd like to tell that I'm a kind of newbie in OpenBSD. I was using FreeBSD for last 5 years, many things in OpenBSD are almost the same as in FreeBSD (and vice versa) but also there are many

Re: Problem with setting up dial-up server with getty and ppp

2009-05-08 Thread Stuart Henderson
On 2009-05-08, Alexander Shikoff minot...@crete.org.ua wrote: I only have two serial ports on motherboard, I see them in dmesg: com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo But if I understand correctly they are named as

Re: Problem with setting up dial-up server with getty and ppp

2009-05-08 Thread Alexander Shikoff
Hi Stuart, On Fri, May 08, 2009 at 10:35:35AM +, Stuart Henderson wrote: On 2009-05-08, Alexander Shikoff minot...@crete.org.ua wrote: I only have two serial ports on motherboard, I see them in dmesg: com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo com1 at isa0 port 0x2f8/8 irq

Re: Problem with setting up dial-up server with getty and ppp

2009-05-08 Thread Henning Brauer
* Alexander Shikoff minot...@crete.org.ua [2009-05-08 13:39]: Well, I have no any cy-like card. Why I'm getting cuac# devices in /dev ? they are always there There are no tty04..tty10 devices in /dev cd /dev; sh MAKEDEV tty04 etc for the others -- Henning Brauer, h...@bsws.de,

Re: Problem with setting up dial-up server with getty and ppp

2009-05-08 Thread Stuart Henderson
On 2009/05/08 14:20, Alexander Shikoff wrote: Hi Stuart, On Fri, May 08, 2009 at 10:35:35AM +, Stuart Henderson wrote: On 2009-05-08, Alexander Shikoff minot...@crete.org.ua wrote: I only have two serial ports on motherboard, I see them in dmesg: com0 at isa0 port 0x3f8/8 irq 4:

Re: Problem with setting up dial-up server with getty and ppp

2009-05-08 Thread Alexander Shikoff
! Your help is great. I see incoming calls. Now I have in /etc/gettytab: std.38400|38400-baud:\ :pp=/etc/ppp/ppplogin:\ :sp#38400: # ps ax|grep getty 25750 ?? I 0:00.01 /usr/libexec/getty std.38400 tty04 12105 ?? I 0:00.01 /usr/libexec/getty std.38400 tty05

Problem with setting up dial-up server with getty and ppp

2009-05-07 Thread Alexander Shikoff
Hello, I have a box with serial 8-port Digi Neo card installed. It was detected normally, e.g. I see that in dmesg and all devices (cuac[0-7] and ttyc[0-7] are present in /dev directory. Now I'm trying to setup dial-up server with getty and ppp. I have added to /etc/ttys: ttyc0 /usr/libexec

Re: Problem with setting up dial-up server with getty and ppp

2009-05-07 Thread Brynet
Hi Alexander, Can you tell us how you came up with those device names? I think it'll be more like /dev/{cua,tty}[0-7], though that range might be different if you have any other com(4) devices. PCI serial cards typically attach as puc(4), meaning com(4) devices should appear.. or pccom(4).. if

getty problem

2007-07-29 Thread Toni Mueller
Hi, I've managed to have an OpenBSD4.0 box connected to another box via serial cable, with a getty running on both ends. I killed one getty and connected to the serial port with a terminal program. But the other getty was already gone, having spawned login. Now I have two login processes

problems running getty on tty00

2006-11-09 Thread Robert Urban
Hi Folks, I'm trying to configure the serial port (COM1) on a ProLiant DL380-G2 for logins running OpenBSD 3.9. In /etc/ttys: tty00 /usr/libexec/getty std.9600 vt220 on secure # dmesg | grep com pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo I've HUP'ed init, and getty