Questions tagged [getty]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4 votes
1 answer
368 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: -...
Alex028502's user avatar
0 votes
0 answers
43 views

What is the source of this tty console output?

I'm making a kiosk system using Armbian on an orangepi zero 3. The kiosk is a on a local server that I connect to using chromium browser launched from my ~/.bash_profile. Before chromium-browser ...
soccermom420's user avatar
2 votes
1 answer
464 views

Debian VM doesn’t boot on QEMU with "console=hvc0" kernel parameter

I’m running virtual linux machine (debian12) on QEMU with -device virtconsole argument. That argument adds /dev/hvcX device nodes to VM. QEMU can connect that device to unix socket on host. If i pass “...
xycainoff's user avatar
0 votes
1 answer
2k views

[email protected] FAILED - Autologin only shows on TTY1 a flashing _

I'm working on a minecraft server with OS Ubuntu server 20.04 So far they haven't given me any problems (it's fantastic!), I know some things about linux (some don't exaggerate) Until something came ...
Devilas's user avatar
  • 77
0 votes
1 answer
191 views

Dumb terminal agetty keyboard layout filter

I recently acquired an old Heathkit dumb terminal, and I would like to get it working with the colemak keyboard layout. Because the terminal sends ascii codes directly over serial, I don't believe ...
runrin's user avatar
  • 31
0 votes
1 answer
2k views

Relationship between framebuffer and a tty

A framebuffer is a device file which allows for a simplified interface to the screen. For example running the below code on a RaspberryPi with a HDMI display connected: cat /dev/urandom > /dev/fb1 ...
TheMeaningfulEngineer's user avatar
1 vote
1 answer
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 ...
rgov's user avatar
  • 213
0 votes
1 answer
50 views

Emacs escaping getty

I create two virtual serials by socat -d -d pty,raw,echo=0 pty,raw,echo=0 in the specific case, I got /dev/pts/9 and /dev/pts/16 I then start screen on one side, in one X terminal, specifically gnome-...
Fabio Dalla Libera's user avatar
0 votes
1 answer
946 views

Serial on host stops working during boot

I'm running Proxmox 6.4 with kernel 5.4.103-1-pve (I've already asked this question in their forums with no luck). My motherboard has a COM header, so I recently got the equipment I needed to hook it ...
Daniel Hellstern's user avatar
1 vote
0 answers
1k views

Systemd ordering: after multi-user.target before getty.target?

I have an installer which I turned into a systemd service it needs, networking.target to be online multi-user.target to be online I want my installer service to run after the above but before getty....
Evan Carroll's user avatar
  • 30.7k
1 vote
0 answers
120 views

Key mapping on a physical terminal (Teleray 1060) when using getty

I have an old physical terminal (Teleray 1060) that I am attempting to use as a Linux terminal using getty. I have started a login session just fine. However, my terminal lacks an enter key, having ...
carlWheezer's user avatar
1 vote
0 answers
465 views

How to use host PTY in container?

I'm learning about container technologies of Linux and wrote a minimal container implementation on my own. I'm currently confused about consoles / terminals for container processes, as I'm "reusing" ...
iBug's user avatar
  • 3,508
0 votes
1 answer
677 views

No password prompt for serial connection

I want to setup a password prompt (root user) when login through minicom (serial connection). After running passwd command (connected through ssh), i can setup a password for the root user. After that ...
andro_yamamoto's user avatar
1 vote
1 answer
3k views

How to prevent console-getty.service to start?

On my embedded system, I use linux kernel 4.19.102 and systemd 240. Everything is generated using buildroot 2019.02.9. I use the serial port of my device to output console. bootargs = "console=...
grorel's user avatar
  • 206
0 votes
2 answers
1k views

How do i edit my Arch system to display custom message on each tty?

I use Arch linux with i3 and xfce4 desktop environment. I have configured tty1 to open i3-gaps and tty2 to open xfce4. Is there a way to display a custom message on each tty saying that the current ...
Alan Dsilva's user avatar
0 votes
1 answer
4k views

/etc/inittab: auto login on ttyS0

in my /etc/inittab, I have this line: T0:2345:respawn:/sbin/getty -L ttyS0 115200 vt100 which gives me getty on serial console where I can log in. How can I specify that instead getty, I get ...
Martin Vegter's user avatar
0 votes
2 answers
881 views

How do I configure passwordless serial console access on CentOS 8?

This official Red Hat page offers some vague hints. Since /etc/securetty listed many possible devices so that the practical effect in most cases was to allow by default, this change has only a ...
user189395's user avatar
1 vote
1 answer
2k views

How to start dhcpcd in background on boot?

I would like to accomplish the following on Arch Linux: start dhcpcd in the background on boot while simultaneously automatically logging myself in and starting the X window server. Here's what I've ...
alligator's user avatar
2 votes
1 answer
1k 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 ...
Adriano_epifas's user avatar
0 votes
1 answer
522 views

Change tty respawn in Debian 9 (Stretch )

I try to change respawn tty to some other bin file , before that I configure that on /etc/inittab But now this file doesn’t exist ; how can I do that ? ( my goal is “ call my binary instead of tty ” )...
learner's user avatar
0 votes
2 answers
785 views

How to find unlocked tty in linux?

I just discovered that when I have an tty open in the background my lockscreen is useless. I sometimes use another tty to kill some process and then I forget the unlocked tty. That is why I want to ...
LandoR's user avatar
  • 103
0 votes
1 answer
938 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 ...
Jon Watte's user avatar
  • 159
0 votes
2 answers
291 views

How can I determine when a serial terminal has (dis)connected?

I have a DEC VT101 serial terminal hooked up to a Raspberry Pi 3 running Debian using a USB RS-232 null modem cable. When I turn the terminal off, I would like for the shell session to end, and when I ...
Eric Pruitt's user avatar
1 vote
1 answer
824 views

Why calling agetty directly from bash doesn't seem to have any effect?

I try to call /usr/bin/agetty - from bash in a terminal-emulator(both X-based and Kernel-based), then it asked me to input a username, but after input that username, it just "freeze" a little while, ...
炸鱼薯条德里克's user avatar
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 ...
JohnnyFromBF's user avatar
  • 3,496
2 votes
0 answers
3k views

Debian Stretch auto login on boot

I am trying to figure out how to get automatic login to work with a base console installation of Debian Stretch testing I tried an answer to a similar question on this site but it did not work: ...
Avery Freeman's user avatar
1 vote
1 answer
699 views

Is `/etc/tty0` in Ubuntu the file used by `init` and `getty`?

APUE says The BSD terminal login procedure has not changed much over the past 35 years. The system administrator creates a file, usually /etc/ttys, that has one line per terminal device. Each ...
Tim's user avatar
  • 102k
2 votes
1 answer
8k views

What is the difference between [email protected] and [email protected]

To disable some getty on my device /dev/ttyAMA0, I have to mask it with systemctl mask [email protected]. This works fine. So I enable a getty on ttyUSB1 with systemctl enable getty@ftdi2....
powerpete's user avatar
  • 231
2 votes
3 answers
873 views

Is it safe to auto-login if the system is encrypted?

I'm running linux (specifically Debian 9) on my everyday-use laptop, where the disk with the system is encrypted, so whenever I boot it up, the password is required prior to entering the system. In ...
Martin Heralecký's user avatar
0 votes
1 answer
698 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. ...
UserK's user avatar
  • 2,414
1 vote
1 answer
6k 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 (...
user avatar
2 votes
3 answers
13k 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 ...
Round Robin's user avatar
1 vote
0 answers
403 views

Bash 'read' command. 'enter' key goes to the beginning of the line instead of completing 'read' command

I used agetty ( v2.27 ) to create a bash shell terminal through ttyGS0. For some reason, when I used a computer to create a console via the ttyGS0 line, after I call read, pressing the Enter key goes ...
Linh Hoàng's user avatar
0 votes
1 answer
117 views

logged in on X without environment

I have an rpi2. I want the same Black Screen that you get after Arch installation (without graphical environment), the only difference is that it automatically logs in with your user account. I ...
Ηλιας Τσορομωκος's user avatar
1 vote
1 answer
1k views

how to change the getty binary in Debian Stretch?

I have a Stretch system n which I would like to replace agetty with ngetty (for various reasons like because I have no use for serial lines, and I like the way ngetty can be configured, for examples). ...
user3459474's user avatar
1 vote
1 answer
278 views

How can one verify the authenticity of `getty` running on linux?

The unix haters handbook says: /etc/getty, which asks for your username, and /bin/login, which asks for your pass- word, are no different from any other program. They are just programs. They happen ...
saga's user avatar
  • 1,401
2 votes
1 answer
2k views

How do I use a serial terminal with a FreeBSD server?

I have been experimenting with an RS-232 null modem cable and am curious to know how one would allow FreeBSD to use a serial port as a terminal, like in the days of the PDP-11 where all users had dumb ...
nkeck72's user avatar
  • 31
2 votes
1 answer
295 views

systemd: spawn gettys ASAP

Normally systemd will spawn a getty on the virtual terminals just before it starts graphical mode. I have always thought that is the wrong time to spawn a getty: The time when you need the getty is ...
Ole Tange's user avatar
  • 35.5k
16 votes
2 answers
3k views

How does X11 interact with the kernel / perform login

As I understand for text-based interaction with the Linux kernel, a program called init starts getty (or agetty) which connects to one of the TTY devices under /dev and prompts for a username. After ...
mallwright's user avatar
1 vote
0 answers
576 views

systemd: Move getty to tty2+ and start script on tty1

I'd like to "autorun" a shell script on tty1 and start the rest of the ttys on tty2, tty3, ... So far I have followed this advice (besides a ton of googling) and gotten the script to run on tty1 as ...
Christian's user avatar
  • 421
2 votes
1 answer
7k views

What is this openvt command doing?

What is this command really doing (step by step)? openvt -c 40 /bin/agetty tty40 linux I tried this command instead : openvt -c 41 /bin/agetty tty40 linux and agetty was started on tty40 (not ...
Gradient's user avatar
  • 3,659
0 votes
1 answer
52 views

where to show custom info when successfully open a physic machine or connect a remote machine or login a machine in centos 7

Env Centos 7 x64 When I use Teamviewer connect to ttys, I can view infos as below in each Ctrl-Alt-F1 to F6: CentOS Linux 7 (Core) Kernel 3.10.0-514.6.1.el7.x86_64 on an x86_64 Openning a physic ...
Nick Dong's user avatar
  • 125
1 vote
0 answers
190 views

Script started on tty at boot does not handle backspace correctly

I'm using Debian Jessie and have created a systemd service for launching a script on a tty like this: [Unit] Description=My Test Script [Service] Type=simple ExecStart=/bin/bash /home/tester/test.sh ...
hmt50's user avatar
  • 11
1 vote
0 answers
942 views

tty1 ~ tty6 frequently get frozen on Arch

It is wired that tty1 ~ tty6 frequently be fronzen on my Arch Linux. When this problem occurs, all the tty console(tty1 ~ tty6) display nothing but a underline cursor which is not blinking. However, I ...
user3824053's user avatar
3 votes
1 answer
2k views

Access higher TTYs and the role of getty

I have a few dark areas when trying to understands TTYs. On my system, I have /dev/tty[1-63]. Is udev creating these character devices? And how can I access them (like tty2 can be accessed with Ctrl+...
Gradient's user avatar
  • 3,659
3 votes
2 answers
2k views

agetty login program arguments

First post here. I'm trying to run some tests against a CentOS 6 machine, but my tests disable networking so I communicate over serial ports. I created an upstart job that sets up ttyS1 such that it ...
crunk1's user avatar
  • 131
2 votes
0 answers
353 views

Use mgetty to answer a call and press a key

I bought a GSM shield for the Raspberry Pi (version 1, B) and a SIM card to join the proper cellular network. I use mgetty to react to my call, like this: mgetty conf which works just fine and the ...
dolfin's user avatar
  • 21
2 votes
1 answer
2k views

Is it possible to send color code escape sequences before login?

I'm trying to colorize the console and I'm having success with the following in root's .bash_profile: echo -en "\e]P7000000" echo -en "\e]P0F0F0F0" clear The problem is that this is obviously only ...
Bratchley's user avatar
  • 16.8k
2 votes
0 answers
463 views

How to assign different configuration for ttyS0 under different environments

I have a computer (let's call it as DevPC) that sometimes run Linux in native environment and that sometimes run Linux on Xen. I connect this computer to another computer (let's call it as MonitorPC) ...
Mike's user avatar
  • 163
0 votes
1 answer
1k views

/etc/issue file does not get reflect without login logout

I changed my /etc/issue file to display IP and system info with background color, and built a system which run on CentOS 7, but problem is when i deploy my machine on ESX it display regular /etc/issue ...
Jeet's user avatar
  • 1