Hello everyone,
I was trying to configure auto login for my user on my Raspberry Pi 3 B so I can start a browser and display a dashboard on boot (if possible with i3 as desktop environment).
This is not working and I am getting this log from getty@tty1.service.
$this->bbcode_second_pass_code('', 'Jan 13 00:24:15 pi login[2019]: pam_unix(login:session): session opened for user keanu by LOGIN(uid=0)
Jan 13 00:24:18 pi systemd[1]: getty@tty1.service: Service has no hold-off time (RestartSec=0), scheduling restart.
Jan 13 00:24:18 pi systemd[1]: getty@tty1.service: Scheduled restart job, restart counter is at 76.
Jan 13 00:24:18 pi systemd[1]: Stopped Getty on tty1.
Jan 13 00:24:18 pi systemd[1]: Started Getty on tty1.
Jan 13 00:24:18 pi login[2040]: pam_unix(login:session): session opened for user keanu by LOGIN(uid=0)
Jan 13 00:24:22 pi systemd[1]: getty@tty1.service: Service has no hold-off time (RestartSec=0), scheduling restart.
Jan 13 00:24:22 pi systemd[1]: getty@tty1.service: Scheduled restart job, restart counter is at 77.
Jan 13 00:24:22 pi systemd[1]: Stopped Getty on tty1.
Jan 13 00:24:22 pi systemd[1]: Started Getty on tty1.
Jan 13 00:24:22 pi login[2062]: pam_unix(login:session): session opened for user keanu by LOGIN(uid=0)
Jan 13 00:24:25 pi systemd[1]: getty@tty1.service: Service has no hold-off time (RestartSec=0), scheduling restart.
Jan 13 00:24:25 pi systemd[1]: getty@tty1.service: Scheduled restart job, restart counter is at 78.
Jan 13 00:24:25 pi systemd[1]: Stopped Getty on tty1.
Jan 13 00:24:25 pi systemd[1]: Started Getty on tty1.')
Any ideas?
$this->bbcode_second_pass_code('', 'systemctl status getty@tty1.service
Warning: The unit file, source configuration file or drop-ins of getty@tty1.service changed on disk. Run 'systemctl daemon-reload' to reload units.
● getty@tty1.service - Getty on tty1
Loaded: loaded (/usr/lib/systemd/system/getty@.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/getty@tty1.service.d
└─override.conf
Active: active (running) since Sun 2019-01-13 00:28:08 CET; 1s ago
Docs: man:agetty(8)
man:systemd-getty-generator(8)
http://0pointer.de/blog/projects/serial-console.html
Main PID: 3488 (login)
Tasks: 0 (limit: 2212)
CGroup: /system.slice/system-getty.slice/getty@tty1.service
‣ 3488 login -- keanu
Jan 13 00:28:08 pi systemd[1]: Started Getty on tty1.
Jan 13 00:28:08 pi login[3488]: pam_unix(login:session): session opened for user keanu by LOGIN(uid=0)')
$this->bbcode_second_pass_code('', 'ls -al /etc/systemd/system/getty.target.wants/
total 8
drwxr-xr-x 2 root root 4096 Jan 13 00:05 .
drwxr-xr-x 8 root root 4096 Jan 13 00:05 ..
lrwxrwxrwx 1 root root 38 Jan 13 00:05 getty@tty1.service -> /usr/lib/systemd/system/getty@.service')
$this->bbcode_second_pass_code('', 'cat /etc/systemd/system/getty@tty1.service.d/override.conf
[Service]
Type=idle
ExecStart=
ExecStart=-/usr/bin/agetty --autologin keanu --noclear %I 38400 linux')
$this->bbcode_second_pass_code('', 'cat ~/.bash_profile
if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
exec startx /usr/bin/i3
fi')
What am I doing wrong?
Cheers
Keanu