Questions tagged [agetty]
The agetty tag has no usage guidance.
23
questions
1
vote
1
answer
44
views
Serial console changes parameters when SUDOing
I'm working on a project where I need to connect a very old serial terminal to a linux device (a Raspberry).
The terminal uses 4800bps, 7 data bits and even parity. I have reconfigured the kernel ...
4
votes
1
answer
484
views
job control doesn't work when I try to set up getty over serial
I am trying to set up getty to log in over serial (mainly as an experiment).
With almost any configuration, the same thing happens. If my default shell is bash, I get this message after I log in:
-...
3
votes
1
answer
134
views
"sudo" prompts for password in terminal that has started "agetty ttyS0 9600" instead of the "serial" terminal
Broader context, I'm using QEMU+KVM to virtualize an ubuntu machine like this:
qemu-system-x86_64 \
-enable-kvm \
-m 2048 \
-nic none \
-vnc :5 \
-hda test-vm.raw \
-device ...
0
votes
1
answer
2k
views
How to enable automatic login in alpine linux for root
I am trying to set up an alpine linux machine that needs to run an user program at the startup.
I did not add any user except for root.
After searching for solution of how to enable automatic login i ...
0
votes
1
answer
124
views
Does linux/systemd/agetty support doubble ended serial-getty consoles?
My apologies if this is a ultra basic question:
Does linux / systemd / agetty support double ended serial-getty consoles?
For example I have two remote servers A and B, they are running a recent ...
1
vote
1
answer
65
views
Let agetty (or other) switch off the laptop screen after a short while on non-UI linux
Using an older laptop as a small server with no graphical UI/login, it has an agetty running on the system console, i.e. the laptop screen.
Since I login almost always via network, there is no point ...
2
votes
2
answers
1k
views
No login prompt from Getty over serial console
My Ubuntu 20.04 system has a serial port over which I would like to provide console access.
I can confirm that I can communicate over the serial port with
sudo picocom -b 115200 /dev/ttyS5
I start ...
1
vote
2
answers
154
views
Which process is responsible for mapping Ctr+C to intr signal in systemd+agetty+login+bash?
I am trying to read source code to understand which process is reponsible for these mapping, but I can't still figure it out. Can anyone give me a hint about which code is relative to it ?
source code:...
1
vote
0
answers
261
views
Delay between username and password during tty login
Recently, I noticed that when using tty to login to my computer, there was a delay (around 20 seconds) between the time I enter my username and the time I'm getting asked for my password. Where can it ...
1
vote
1
answer
1k
views
How do I host a shell for a serial terminal?
I am building a dumb terminal with an arduino and I can now see the output of serial connections. How do I get a login/shell?
I have tried screen /dev/ttyACM0 and that lets me type on the host ...
0
votes
0
answers
55
views
systemd launch application on boot
All,
I want to setup "Kiosk" mode on a real terminal with systemd. My initial approach was setup autologin with systemd and run the application from .bashrc. However the user is able to ...
0
votes
1
answer
1k
views
Dial-up vintage BBS access with agetty and a modem
I'm trying to setup a 80's service with Mystic BBS (that runs on telnet), including a dial-up access with a U.S. Robotics modem connected to the serial port of the server. I succeeded with mgetty:
/...
2
votes
1
answer
2k
views
how to start a new terminal with agetty (not systemd)
For the sake of learning, I wanted to start a new terminal (let's say tty10) from the command prompt. I know I can just run sudo systemctl start [email protected], but I want to run it manually for ...
1
vote
0
answers
2k
views
How can I set and export an environment variable in a systemd service?
after starting agetty on my Raspberry Pi in order to attach a VT420 terminal to it, I still have an issue: The shell language must be set to en_US and exported by hand right after logging in on the ...
0
votes
1
answer
964
views
Why does agetty fail to determine passwordon ubuntu 18.04.1?
I'm running a ubuntu server installation with a tty console, and sshd terminal logins.
Both ssh keys and passwords work for authenticating over sshd.
Lately, on the console, when I try to log in in ...
4
votes
0
answers
1k
views
Why do I not get a console with systemd?
I'm trying to get a login prompt on an embedded system using Debian and systemd. The system is connected via a physical serial console to a host PC. If I start the kernel with the cmdline parameters ...
1
vote
0
answers
3k
views
How to adjust TTY terminal window size in VirtualBox?
In my virtual machines, both Linux and FreeBSD, the TTY (controlled by agetty under Linux; can be opened by pressing Host+Fn where n=1,2,3,...) window size is tiny (720x400), compared to the ...
0
votes
1
answer
734
views
Getting rid of a serial console on Respeaker Core V2
I have a Respeaker Core v2.0 and I would like to use the UART interface (this board has a USB to TTL adapter connected to the Uart port) in order to make this board communicate with another one.
...
1
vote
1
answer
7k
views
tty1 missing login prompt
I have a clean Debian Stretch installation. It used to be the case that after booting I would end up on tty1 with a login prompt, and after logging X is started. I wanted to automate the logging in (...
4
votes
1
answer
602
views
Can I activate password feedback on a tty?
A few weeks ago, I decided to clean up my keyboard and ended up messing up a few keys as I was snapping them back onto the board. As a result, some characters have become annoyingly difficult to enter....
1
vote
1
answer
3k
views
How to access agetty terminals (e.g. TTY2, 3, 4, etc.) from QEMU VM
In my QEMU virtual machine (started with qemu-kvm -boot d arch-freebsd.img -m 4096) I'd like to access an agetty terminal, which I'd normally access with Ctrl+Alt+F2 (or F3 if I need tty3, F4 if tty4, ...
2
votes
3
answers
14k
views
Serial Getty error messages
I've a cloud server, with CentOS distribution, and an Apache instance to manage some web apps, like Wordpress or PrestaShop.
I noticed that an error is reported in log files (var/log/).
In particular ...
6
votes
1
answer
7k
views
How to restart agetty?
I'm trying to restart services after a yum update on RHEL 7.4. I could restart pretty much everything, but fail to see how to do this for agetty:
# needs-restarting
736 : /sbin/agetty --noclear tty1 ...