On 6/10/20 1:10 PM, Steve Williams wrote: > On 10/06/2020 10:31 a.m., Aisha Tammy wrote: >> On 6/10/20 10:46 AM, Steve Williams wrote: >>> Hi, >>> >>> Do you have the proper ioctls to set baud rate, parity, start bits, stop >>> bits so that the serial port is configured correctly? >>> >>> What about flow control? rts/cts, xon/xoff. >>> >>> Dealing with a serial port is it's own art. >>> >> Wow, this is really interesting. >> I'm curious, do the display managers like gdm/xdm, etc also have >> to handle this? >> I'm asking cuz I'm porting a display manager for linux (nothing to >> do with openbsd, but this discussion was very related). >> I'm in a very similar position where the simplest answer would be >> to disable a getty at one of the tty's and start the login prompt >> there (its a visual prompt). >> >> link to display manager, if my writing wasn't clear >> https://git.sr.ht/~kennylevinsen/greetd >> >> Aisha > The baud rate, etc is only applicable to things running over serial RS-232 > (and 422) ports. The original poster specified it is running on "com0". > > A display manager would not (typically) be talking over a serial port > natively. In the old days, X might be talking over a serial port using SLIP > or some such technology, but that has all gone the way of the dodo bird. > Cool, got it. Thanks a lot!
Aisha > Cheers, > Steve W. > > > >> >>> Cheers, >>> Steve W. >>> >>> On 10/06/2020 3:03 a.m., Valdrin MUJA wrote: >>>> Hi Misc, >>>> >>>> I want to disable OpenBSD Login prompt at startup -and also after logging >>>> out-. Because I want to run my external program instead of ksh. There is >>>> an login prompt also in my program and I want to use it. >>>> >>>> I updated the /etc/ttys ; >>>> >>>> valdrin# cat /etc/ttys >>>> # >>>> # $OpenBSD: ttys,v 1.2 2008/01/09 17:39:42 miod Exp $ >>>> # >>>> # name getty type status comments >>>> # >>>> console "/usr/libexec/getty std.9600" vt220 off secure >>>> ttyC0 "/usr/libexec/getty std.9600" vt220 on secure >>>> ttyC1 "/usr/libexec/getty std.9600" vt220 on secure >>>> ttyC2 "/usr/libexec/getty std.9600" vt220 on secure >>>> ttyC3 "/usr/libexec/getty std.9600" vt220 on secure >>>> ttyC4 "/usr/libexec/getty std.9600" vt220 off secure >>>> ttyC5 "/usr/libexec/getty std.9600" vt220 on secure >>>> ttyC6 "/usr/libexec/getty std.9600" vt220 off secure >>>> ttyC7 "/usr/libexec/getty std.9600" vt220 off secure >>>> ttyC8 "/usr/libexec/getty std.9600" vt220 off secure >>>> ttyC9 "/usr/libexec/getty std.9600" vt220 off secure >>>> ttyCa "/usr/libexec/getty std.9600" vt220 off secure >>>> ttyCb "/usr/libexec/getty std.9600" vt220 off secure >>>> tty00 "/root/myprogram" vt220 on secure >>>> tty01 "/usr/libexec/getty std.9600" unknown off >>>> tty02 "/usr/libexec/getty std.9600" unknown off >>>> tty03 "/usr/libexec/getty std.9600" unknown off >>>> tty04 "/usr/libexec/getty std.9600" unknown off >>>> tty05 "/usr/libexec/getty std.9600" unknown off >>>> tty06 "/usr/libexec/getty std.9600" unknown off >>>> tty07 "/usr/libexec/getty std.9600" unknown off >>>> >>>> I'm connected the device with com0 port so I updated the tty00 to run my >>>> external program. However; system is stucking after date appears on >>>> startup. >>>> >>>> >>>> starting network >>>> reordering libraries: done. >>>> starting early daemons: syslogd ntpd. >>>> starting RPC daemons:. >>>> savecore: no core dump >>>> checking quotas: done. >>>> clearing /tmp >>>> kern.securelevel: 0 -> 1 >>>> creating runtime link editor directory cache. >>>> preserving editor files. >>>> starting network daemons: sshd. >>>> starting local daemons: cron. >>>> Wed Jun 10 10:27:04 +03 2020 >>>> >>>> >>>> Also, I tried "chsh" and "chpass" , but still OpenBSD login prompt >>>> appears.. How can I overcome this issue? >>>> >>>> Thanks.. >>>> >