Questions tagged [getty]

78 questions
16
votes
2 answers

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 this, a program called login is run which prompts…
mallwright
  • 432
  • 2
  • 10
13
votes
2 answers

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 Password: (+ 60 seconds) Login: As you can see, if I don't type the…
user3356
8
votes
2 answers

What is the difference between getty and agetty?

When I looked in the manual for agetty all I saw was alternative getty
m0meni
  • 207
  • 1
  • 2
  • 6
8
votes
1 answer

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 session command line (this time towards a…
dtmland
  • 508
  • 1
  • 7
  • 17
7
votes
1 answer

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 drop to U-Boot and issue commands etc.; I assume…
Robert Rossmann
  • 561
  • 1
  • 4
  • 18
6
votes
1 answer

How to use agetty from the command line

Is it possible to use agetty from the command line? I tried the command sudo agetty -s 34800 tty8 linux but it returns after a few seconds and tty8 is not open. Is it the expected behaviour? Also, trying to start it in the background with sudo…
Gradient
  • 3,579
  • 10
  • 31
  • 37
5
votes
3 answers

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 the following…
Rapti
  • 217
  • 2
  • 11
4
votes
0 answers

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 console=ttyS5,115200 console=tty1…
JohnnyFromBF
  • 3,476
  • 10
  • 32
  • 42
4
votes
0 answers

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/ttyMDF1 but nothing happens, same using screen, also…
4
votes
1 answer

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 getty appears at the bottom of the screen. Well,…
fonini
  • 324
  • 3
  • 13
4
votes
1 answer

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 reasonable) to not start the extra getty processes…
Brian Knoblauch
  • 524
  • 4
  • 20
3
votes
1 answer

Why does agetty ask for the username itself?

From the man page: agetty opens a tty port, prompts for a login name and invokes the /bin/login command. It is normally invoked by init(8). But if you run login without any argument, it asks a username. So why not let login do the job of…
user49829
3
votes
0 answers

Getty not starting in qemu

I'm trying to get running an ARM based Debian inside qemu. As a rootfs I'm using structure from embeddedarm 2gb sdcard image with versatile 2.6.24 kernel downloaded from fedora qemu tutorial site. At embededarm ftp there are also kernel images, but…
shmoula
  • 131
  • 3
3
votes
1 answer

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+Alt+F2)? How can I access /dev/tty40 for…
Gradient
  • 3,579
  • 10
  • 31
  • 37
3
votes
2 answers

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 has a bash root shell on it. I used: /sbin/agetty…
crunk1
  • 131
  • 4
1
2 3 4 5 6