Questions tagged [serial-console]
176 questions
138
votes
16 answers
How to connect to a serial port as simple as using SSH?
Is there a way to connect to a serial terminal just as you would do with SSH? There must be a simpler way than tools such as Minicom, like this
$ serial /dev/ttyS0
I know I can cat the output from /dev/ttyS0 but only one way communication is…
norq
- 4,034
- 4
- 20
- 18
61
votes
2 answers
How to change the width of remote serial console?
I followed this tutorial and now I'm able to connect to serial line. Now I want to change the width of terminal. How can I do this by using screen or minicom or something else?
Milad Khajavi
- 3,117
- 3
- 19
- 16
47
votes
10 answers
resizable serial console window?
When using the serial console of my system I always end up with $COLUMNS=80 and $LINES=24.
While I can change these variables manually it is somewhat annoying to do this any time when the client side terminal window has been resized.
Usually I'm…
Sven Geggus
- 811
- 1
- 7
- 11
34
votes
6 answers
How to get file to a host when all you have is a serial console?
When all you have is a serial console (say via telnet through a terminal server), what methods can be used to transfer files in/out of a host?
Cut/paste works for the small/printable stuff and I've played with a combination of uuencode/uudecode…
Stephen Paul Lesniewski
- 531
- 1
- 5
- 5
31
votes
4 answers
terminate screen monitoring serial port
I am using screen /dev/tty-MyDevice to look at traffic on my serial port.
Pressing Ctrl+D does not cause the screen to terminate.
What I have to do in order to terminate it?
Walrus the Cat
- 515
- 2
- 6
- 8
22
votes
4 answers
Kernel Hacking Environment
I have been working in embedded OS like uCOS, ThreadX. While I have coded apps in Linux, now I’m planning to start learning Linux Kernel. I have few questions regarding the environment.
Which is best distro, which has easy to use tools for kernel…
rajaganesh87
- 1,037
- 2
- 13
- 27
14
votes
4 answers
How do I connect a serial terminal to a KVM instance?
Perhaps I'm misunderstanding what KVM is capable of, but the ability to add/remove hardware on the VM seems to imply I can add a serial port that then acts as a terminal.
So, my questions are:
Which settings are best for the guest FreeBSD…
user119
11
votes
2 answers
Command wraps around same line after 80 characters
I have an annoying problem with minicom connected to a serial console to a Yocto Linux machine.
The command that I enter wraps around on the same line after 80th character. This becomes very inconvenient to work with. Everything I entered at the…
Oliver G.
- 263
- 3
- 12
10
votes
1 answer
how to reboot a frozen FreeBSD server from the serial console?
Linux has the "magic sysrq key" to reboot frozen machines remotely, and it works over the serial console, but what about FreeBSD? Is there a way to send a "control-alt-delete" to FreeBSD servers on serial consoles?
anarcat
- 1,303
- 1
- 14
- 24
9
votes
2 answers
Retrieve file over serial without kermit and lrzsz
I have an embedded Linux on a custom board and I would like to send and receive file over its serial port.
The only way to communicate with this device is over serial and the device offers a console on this serial port.
This board doesn't have…
Arkaik
- 1,146
- 5
- 20
- 33
9
votes
2 answers
Redirect console to a serial port
I have a serial port /dev/ttyS2 that is connected to a supervisor. Normally, I use this line to send commands back and forth between CPU and supervisor.
However, under some settings, I want to just redirect the entire console to this port.
I can…
Kousha
- 575
- 8
- 21
9
votes
2 answers
How to change (increase) number of lines in screen?
Connecting from Windows to Linux (CentOS 5.4) using PuTTY. Console set at 140col 60 lines. Not much else changed from default.
Connection is via serial cable to the box.
On Linux, installed and ran screen. Lines appear capped at 24 or so, cols…
Jon
- 495
- 1
- 6
- 19
8
votes
1 answer
Suitables TERM variable values for a serial console
To enable a serial console on Linux, one uses getty (most usually, its variant agetty). This binary takes as argument, among other, the value to initialize the TERM variable with.
On Debian, with Sys V init, the default was vt100. With systemd, the…
MoonSweep
- 428
- 4
- 11
8
votes
1 answer
Why does 8250 UART driver not wake up TTY if more than 256 characters are pending?
What is the motivation of this if-condition in void serial8250_tx_chars(struct uart_8250_port *up)?
if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS)
uart_write_wakeup(port);
It has been there ever since Linux 1.1.13 (May 1994) and repeats in…
Hans W. Heckel
- 173
- 1
- 9
7
votes
1 answer
Allow passwordless root login on the serial console
I do a lot of local development work with (CentOS/RHEL) virtual machines. Rather than configuring everything with a default root password -- which, if exposed to the network, can be problematic -- I'd like to configure them to allow passwordless…
larsks
- 32,449
- 5
- 54
- 70