Debian systemd autologin without a display manager

28 11 2012

UPDATE:

Create the directory:
sudo mkdir /etc/systemd/system/getty@tty1.service.d

Create file:
sudo vim /etc/systemd/system/getty@tty1.service.d/autologin.conf

Insert:
[Service]
ExecStart=
ExecStart=-/sbin/agetty --autologin <username> --noclear %I 38400 linux

ORIGINAL:

I just upgraded Wheezy to systemd which broke my autologin. It’s an easy fix.

Edit the file: ‘/etc/systemd/system/getty.target.wants/getty@tty1.service’

and find the line: ‘ExecStart=-/sbin/agetty %I 38400’

and change to: ‘ExecStart=-/sbin/agetty –noclear -a USERNAME %I 38400’

The –noclear is optional, it prevents the screen from clearing out the console messages.

wiki.debian.org/systemd

Advertisements

Actions

Information

4 responses

8 06 2015
Debian 8 : systemd autologin sans display manager – memo-linux.com

[…] via storma.wordpress.com […]

29 10 2015
Nik

thx very helpful

10 11 2015
roni

Thanks Thanks Thanks and thanks again , i was looking for this , i have tryng with init.d , inittab and nothing works , this work perfect . thanks .

28 10 2016
Cyber

Tank you its work for me

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




%d bloggers like this: