Enable autologin in Debian with Systemd

19 05 2017

For allow autologin in a Debian system with systemd (very usefull with testing virtual machines):

Create dir:
mkdir /etc/systemd/system/getty@tty1.service.d/

Create file /etc/systemd/system/getty@tty1.service.d/override.conf with the following content:
[Service]
ExecStart=
ExecStart=-/sbin/agetty --autologin root --noclear %I $TERM

More info:
http://forums.debian.net/viewtopic.php?f=16&t=123694

Advertisements




Debian Jessie hangs ssh on reboot / halt

29 04 2015

Sometimes after reboot or halt a system with Debian Jessie, particularly with systemd, the ssh session didn’t close correctly and hangs. The problem is related with how systemd registers user sessions and control group hierarchy. For solve the it, install libpam-systemd: apt-get install libpam-systemd

 

– Update 1 – Agust 2016

The bug was fixed in openssh-server https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=751636

* Add a session cleanup script and a systemd unit file to trigger it,
     which serves to terminate SSH sessions cleanly if systemd doesn't do
     that itself, often because libpam-systemd is not installed (thanks,
     Vivek Das Mohapatra, Tom Hutter, and others; closes: #751636).

Now, updating openssh-server to version 1:7.3p1-1 or higher solve it too.