Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [getty]

The tag has no usage guidance.

0
votes
1answer
184 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 ...
0
votes
0answers
181 views

TTY Login hangs after username input with constant newline

Problem: After a restart my Ubuntu Server 18.04 installation greets me as usual with the tty1 login prompt. The input of the username works as usual but after hitting enter the password prompt is ...
0
votes
2answers
48 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 ...
1
vote
1answer
46 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, ...
2
votes
0answers
228 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 ...
0
votes
0answers
569 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: ...
0
votes
1answer
50 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 ...
1
vote
1answer
340 views

What is the difference between serial-getty@ttyAMA0.service and getty@ttyAMA0.service

To disable some getty on my device /dev/ttyAMA0, I have to mask it with systemctl mask serial-getty@ttyAMA0.service. This works fine. So I enable a getty on ttyUSB1 with systemctl enable getty@ftdi2....
2
votes
3answers
60 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 ...
0
votes
1answer
110 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. ...
0
votes
1answer
994 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 (...
0
votes
2answers
977 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 ...
1
vote
0answers
208 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 ...
0
votes
1answer
69 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 ...
1
vote
1answer
665 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). ...
1
vote
1answer
106 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 ...
1
vote
1answer
436 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 ...
1
vote
1answer
78 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 ...
14
votes
2answers
1k 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 ...
1
vote
0answers
269 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 ...
0
votes
1answer
2k 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 ...
0
votes
1answer
32 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 ...
1
vote
0answers
105 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 ...
0
votes
0answers
314 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 ...
1
vote
1answer
403 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+...
2
votes
2answers
650 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 ...
3
votes
0answers
198 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 ...
2
votes
1answer
744 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 ...
2
votes
0answers
171 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) ...
0
votes
1answer
470 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 ...
1
vote
2answers
449 views

Linux Terminal autologin only once after reboot

I'm trying to have my computer automatically log in as a specific user after reboot on an Arch Linux machine. I followed the guide from the Arch Linux Wiki, ran # systemctl edit getty@tty1 and pasted ...
2
votes
0answers
904 views

How to send AT commands to serial interface in Yocto Linux?

I have a XBee device attached to the ttyMDF1 interface on an Intel Edison board running Yocto linux. I need to configure the XBee by sending AT commands to it. I have tried to open a getty /dev/...
1
vote
0answers
748 views

Stop /sbin/agetty and log out the session

I start agetty using /sbin/agetty 115200 /dev/ttyS2 vt220 to provide console access through my port ttyS2. From the other computer, I can create a connection, and upon opening, I am prompted with ...
0
votes
1answer
328 views

agetty dumb terminal option

I'm trying to set up a CentOS distro to output on a serial console. I went through all the steps described on this page . My question concerns the agetty command: exec /sbin/agetty ttyS1 19200 ...
6
votes
2answers
6k views

What is the difference between getty and agetty?

When I looked in the manual for agetty all I saw was alternative getty
4
votes
1answer
407 views

Netctl causes getty to clear the screen and re-display the issue message

I have systemd configured to not clear the terminal before calling getty, and also getty itself is run with the --noclear option, so that my boot messages are left displayed when the login prompt from ...
1
vote
1answer
509 views

Configuring Getty for hardware terminal

I am looking to configure a serial line for the following: 9600 Baud Word Length: 8BIT Parity: Mark XON/XOFF On I can't seem to locate the details on the "Parity Mark" part so far on my searches on ...
3
votes
2answers
1k views

Running more than one console X session with startx at the same time

I have xfce running in display 0 (accessible via Ctrl + Alt + F1). I press Ctrl + Alt + F2 and type startx (attempting to run more than one window manager at the same time) and receive the error "...
2
votes
1answer
766 views

“askfirst” getty with systemd (“press enter to activate this console”)

On a Debian Jessie system with systemd, how can I configure the terminals so that a message like Press enter to activate this console is displayed and the login prompt does not appear before hitting ...
3
votes
0answers
105 views

Linux Angstrom can't start without serial cable plugged

I'm using the Altera Cyclone V Soc dev Kit and Linux Angstrom provides by rocketboards (http://rocketboards.org/foswiki/Documentation/GSRD141) Kernel is : 3.10 LTSI Linux can't start if any serial ...
1
vote
2answers
4k views

How to free a serial port owned by Getty

I have machines in pairs. They're connected to each other by a null modem serial cable. These machines sometimes go down, and the only way to diagnose them is through that cable, using the other node ...
7
votes
1answer
5k views

getty start from command line?

I have a line in my inittab like the following: # Put a getty on the serial port ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100 # GENERIC_SERIAL If I try to perform a similar operation from an ssh ...
1
vote
2answers
2k views

Unable to determine your tty name on Debian Wheezy on ARM

while trying to create my Debian Wheezy image for a FriendlyARM mini210s ARM single board computer, I am bumping into this issue. I have opened a terminal via serial sudo screen /dev/cu.usbserial ...
7
votes
1answer
8k views

No login prompt on serial console

I have connected a USB-to-serial cable from OS X to a Banana Pi board running Arch Linux ARM, distributed by Lemaker. The connection itself works well - I see all the boot messages on startup, I can ...
1
vote
0answers
499 views

mgetty stopped working as dialin after opensuse upgrade

Background: OpenSuSE 11.4 worked well for a couple of years. mgetty was configured to listen to /dev/ttyS0 and work as dialin link. Updated system to OpenSuSE 12.1 > 12.2. > 12.3 > 13.1 and lost ...
1
vote
1answer
557 views

systemd with 10 ttys and Desktop on Ctrl+Alt+F5

I am running systemd on ArchLinux. I have read various posts of doing this but it seems impossible (i.e. I am incompetent in implementing this:)) ). I want to disable the on-demand tty spawning of ...
9
votes
2answers
7k views

change tty login timeout - ArchLinux

By default when I login to my Arch linux box in a tty, there is a timeout after I type my username but before I type my password. So it goes like this Login: mylogin <enter> Password: (+ 60 ...
4
votes
1answer
831 views

How do I limit the number of getty processes started?

I've got a FreeBSD (9.2) box that I'm trying to strip down as lightweight as possible. It's running on a VM server, so other than ttyv0, we don't ever use the console. I'd like (if possible and ...
3
votes
1answer
2k views

Remove the newline before `/etc/issue` in tty

I want to remove the default newline inserted before the content of /etc/issue on login prompt in tty. I'm using agetty and systemd. I tried to add the --nonewline option to my getty@tty5.service : ...
2
votes
1answer
619 views

Getty instances in init process

Init typically will start multiple instances of "getty" which waits for console logins which spawn one's user shell process. Upon shutdown, init controls the sequence and processes for shutdown. The ...