Discussion:
Serial console
F Bax
2014-05-22 21:17:15 UTC
Permalink
It's been a year or two since I connected to OpenBSD via serial console.
I lost my original USB to serial cable; so I'm using a new one for the
first time.

On my OpenBSD 5.2 server (upgrade is planned):

$ cat /etc/boot.conf
stty com0 9600
set tty com0

$ grep tty00 /etc/ttys
tty00 "/usr/libexec/getty std.9600" vt220 on secure

On my OpenBSD 5.4 laptop

$ dmesg | tail
uchcom0 at uhub3 port 1 "QinHeng Electronics CH340 serial/parallel"
rev 1.10/2.54 addr 2
uchcom0: CH341
ucom0 at uchcom0

$ tip -9600 ttyU0
can't open log file /var/log/aculog.
connected


And then - - - nothing. Are there more steps required to make this work?
Marcus MERIGHI
2014-05-23 12:53:20 UTC
Permalink
Hello,
Post by F Bax
It's been a year or two since I connected to OpenBSD via serial console.
I lost my original USB to serial cable; so I'm using a new one for the
first time.
$ cat /etc/boot.conf
stty com0 9600
set tty com0
$ grep tty00 /etc/ttys
tty00 "/usr/libexec/getty std.9600" vt220 on secure
On my OpenBSD 5.4 laptop
$ dmesg | tail
uchcom0 at uhub3 port 1 "QinHeng Electronics CH340 serial/parallel"
rev 1.10/2.54 addr 2
uchcom0: CH341
ucom0 at uchcom0
$ tip -9600 ttyU0
can't open log file /var/log/aculog.
connected
my "console" alias says: ``sudo tip -9600 tty00''
(your ttyU0 looks right to me, it's just about the sudo...)
Post by F Bax
And then - - - nothing. Are there more steps required to make this work?
Sometimes I press Enter to get the login prompt.

Bye, Marcus
F Bax
2014-05-23 17:27:42 UTC
Permalink
It seems I forgot to mention that I did hit ENTER after connecting to
server. Screen remains blank.

Using sudo removes the ""can't open log ..." message. After I exit from tip:

$ cat /var/log/aculog
fbax (Fri May 23 13:18:10 2014) <ttyU0, /dev/ttyU0> call completed
fbax (Fri May 23 13:18:19 2014) <ttyU0, /dev/ttyU0> call terminated
Post by Marcus MERIGHI
Hello,
Post by F Bax
It's been a year or two since I connected to OpenBSD via serial console.
I lost my original USB to serial cable; so I'm using a new one for the
first time.
$ cat /etc/boot.conf
stty com0 9600
set tty com0
$ grep tty00 /etc/ttys
tty00 "/usr/libexec/getty std.9600" vt220 on secure
On my OpenBSD 5.4 laptop
$ dmesg | tail
uchcom0 at uhub3 port 1 "QinHeng Electronics CH340 serial/parallel"
rev 1.10/2.54 addr 2
uchcom0: CH341
ucom0 at uchcom0
$ tip -9600 ttyU0
can't open log file /var/log/aculog.
connected
my "console" alias says: ``sudo tip -9600 tty00''
(your ttyU0 looks right to me, it's just about the sudo...)
Post by F Bax
And then - - - nothing. Are there more steps required to make this work?
Sometimes I press Enter to get the login prompt.
Bye, Marcus
Josh Grosse
2014-05-23 17:58:18 UTC
Permalink
Post by F Bax
It seems I forgot to mention that I did hit ENTER after connecting to
server. Screen remains blank.
$ cat /var/log/aculog
fbax (Fri May 23 13:18:10 2014) <ttyU0, /dev/ttyU0> call completed
fbax (Fri May 23 13:18:19 2014) <ttyU0, /dev/ttyU0> call terminated
I use a pair of Alix systems interconnected via null modem cable.

I set the both tty00 devices to OFF in /etc/ttys, which avoids any
device-
already-in-use issues if the tty(4) devices are already attached to
getty(8).

With the ttyd devices set to OFF, the "remote" tty doesn't function in
multi-user mode, but works fine in single-user mode or with the RAMDISK
kernel.

I also use /dev/cua00 rather than /dev/tty00 as the connecting device,
and
cu(1) rather than tip(1).
Post by F Bax
Post by Marcus MERIGHI
Hello,
Post by F Bax
It's been a year or two since I connected to OpenBSD via serial console.
I lost my original USB to serial cable; so I'm using a new one for the
first time.
$ cat /etc/boot.conf
stty com0 9600
set tty com0
$ grep tty00 /etc/ttys
tty00 "/usr/libexec/getty std.9600" vt220 on secure
On my OpenBSD 5.4 laptop
$ dmesg | tail
uchcom0 at uhub3 port 1 "QinHeng Electronics CH340 serial/parallel"
rev 1.10/2.54 addr 2
uchcom0: CH341
ucom0 at uchcom0
$ tip -9600 ttyU0
can't open log file /var/log/aculog.
connected
my "console" alias says: ``sudo tip -9600 tty00''
(your ttyU0 looks right to me, it's just about the sudo...)
Post by F Bax
And then - - - nothing. Are there more steps required to make this work?
Sometimes I press Enter to get the login prompt.
Bye, Marcus
_______________________________________________
Openbsd-newbies mailing list
http://mailman.theapt.org/listinfo/openbsd-newbies
Stuart Henderson
2014-05-24 12:57:39 UTC
Permalink
Post by Marcus MERIGHI
my "console" alias says: ``sudo tip -9600 tty00''
(your ttyU0 looks right to me, it's just about the sudo...)
btw, add yourself to the 'dialer' group to avoid the need for root.
Loading...