Hello
I followed Head_on_a_Stick's post http://forums.debian.net/viewtopic.php?f=16&t=123694 and was able to set up non-graphical login
everything works except auto login
i created /etc/systemd/system/getty@tty1.service.d/override.conf
with
[Service]
ExecStart=
ExecStart=-/sbin/agetty --autologin <user name> --noclear %I $TERM
replaced my username in the user name field
but no go
systemctl status getty@tty1.service
gives below
Failed to get properties: No such interface
ls -lR /etc/systemd/system
gives below
/etc/systemd/system:
total 36
lrwxrwxrwx 1 root root 53 Jan 13 06:46 dbus-org.freedesktop.nm-dispatcher.service -> /lib/systemd/system/NetworkManager-dispatcher.service
lrwxrwxrwx 1 root root 37 Feb 5 23:06 default.target -> /lib/systemd/system/multi-user.target
-rw-r--r-- 1 root root 412 Feb 5 21:40 display-manager.service
drwxr-xr-x 2 root root 4096 Dec 28 23:07 getty.target.wants
drwxr-xr-x 2 root root 4096 Feb 5 23:22 getty@tty1.service.d
drwxr-xr-x 2 root root 4096 Jan 24 20:00 graphical.target.wants
lrwxrwxrwx 1 root root 9 Feb 3 11:48 live-tools.service -> /dev/null
drwxr-xr-x 2 root root 4096 Feb 3 11:02 multi-user.target.wants
drwxr-xr-x 2 root root 4096 Dec 28 23:16 network-online.target.wants
lrwxrwxrwx 1 root root 9 Jan 13 06:46 rtkit-daemon.service -> /dev/null
drwxr-xr-x 2 root root 4096 Jan 25 12:06 sockets.target.wants
drwxr-xr-x 2 root root 4096 Dec 28 23:19 sysinit.target.wants
lrwxrwxrwx 1 root root 35 Jan 13 06:46 syslog.service -> /lib/systemd/system/rsyslog.service
drwxr-xr-x 2 root root 4096 Dec 28 23:14 timers.target.wants
/etc/systemd/system/getty.target.wants:
total 0
lrwxrwxrwx 1 root root 34 Jan 13 06:46 getty@tty1.service -> /lib/systemd/system/getty@.service
/etc/systemd/system/getty@tty1.service.d:
total 4
-rw-r--r-- 1 root root 78 Feb 3 14:43 override.conf
/etc/systemd/system/graphical.target.wants:
total 0
lrwxrwxrwx 1 root root 43 Jan 24 20:00 accounts-daemon.service -> /lib/systemd/system/accounts-daemon.service
/etc/systemd/system/multi-user.target.wants:
total 0
lrwxrwxrwx 1 root root 35 Jan 13 06:46 anacron.service -> /lib/systemd/system/anacron.service
lrwxrwxrwx 1 root root 42 Jan 23 15:50 binfmt-support.service -> /lib/systemd/system/binfmt-support.service
lrwxrwxrwx 1 root root 37 Feb 3 11:02 cgmanager.service -> /lib/systemd/system/cgmanager.service
lrwxrwxrwx 1 root root 35 Feb 3 11:02 cgproxy.service -> /lib/systemd/system/cgproxy.service
lrwxrwxrwx 1 root root 44 Jan 28 17:39 clamav-freshclam.service -> /lib/systemd/system/clamav-freshclam.service
lrwxrwxrwx 1 root root 41 Jan 13 06:46 console-setup.service -> /lib/systemd/system/console-setup.service
lrwxrwxrwx 1 root root 32 Jan 13 06:46 cron.service -> /lib/systemd/system/cron.service
lrwxrwxrwx 1 root root 38 Jan 13 06:46 irqbalance.service -> /lib/systemd/system/irqbalance.service
lrwxrwxrwx 1 root root 38 Jan 28 18:01 live-tools.service -> /lib/systemd/system/live-tools.service
lrwxrwxrwx 1 root root 38 Jan 15 18:38 lm-sensors.service -> /lib/systemd/system/lm-sensors.service
lrwxrwxrwx 1 root root 38 Jan 13 06:46 networking.service -> /lib/systemd/system/networking.service
lrwxrwxrwx 1 root root 42 Jan 13 06:46 NetworkManager.service -> /lib/systemd/system/NetworkManager.service
lrwxrwxrwx 1 root root 36 Jan 13 06:46 remote-fs.target -> /lib/systemd/system/remote-fs.target
lrwxrwxrwx 1 root root 33 Jan 13 06:46 rsync.service -> /lib/systemd/system/rsync.service
lrwxrwxrwx 1 root root 35 Jan 13 06:46 rsyslog.service -> /lib/systemd/system/rsyslog.service
lrwxrwxrwx 1 root root 31 Jan 20 18:34 ufw.service -> /lib/systemd/system/ufw.service
lrwxrwxrwx 1 root root 47 Jan 13 06:46 unattended-upgrades.service -> /lib/systemd/system/unattended-upgrades.service
/etc/systemd/system/network-online.target.wants:
total 0
lrwxrwxrwx 1 root root 38 Jan 13 06:46 networking.service -> /lib/systemd/system/networking.service
lrwxrwxrwx 1 root root 54 Jan 13 06:46 NetworkManager-wait-online.service -> /lib/systemd/system/NetworkManager-wait-online.service
/etc/systemd/system/sockets.target.wants:
total 0
lrwxrwxrwx 1 root root 32 Jan 13 06:46 uuidd.socket -> /lib/systemd/system/uuidd.socket
/etc/systemd/system/sysinit.target.wants:
total 0
lrwxrwxrwx 1 root root 42 Jan 13 06:46 keyboard-setup.service -> /lib/systemd/system/keyboard-setup.service
lrwxrwxrwx 1 root root 45 Jan 13 06:46 systemd-timesyncd.service -> /lib/systemd/system/systemd-timesyncd.service
/etc/systemd/system/timers.target.wants:
total 0
lrwxrwxrwx 1 root root 33 Jan 13 06:46 anacron.timer -> /lib/systemd/system/anacron.timer
lrwxrwxrwx 1 root root 35 Jan 13 06:46 apt-daily.timer -> /lib/systemd/system/apt-daily.timer
lrwxrwxrwx 1 root root 43 Jan 13 06:46 apt-daily-upgrade.timer -> /lib/systemd/system/apt-daily-upgrade.timer
appreciate any help
Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
[Solved] sbin/agetty --autologin
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: sbin/agetty --autologin
Did you insert the chevrons around your username? If so then delete the chevrons, just the username should be entered with no other characters around it.sickpig wrote:replaced my username in the user name field
EDIT: you are running systemd, right?
Code: Select all
cat /proc/1/comm
Code: Select all
systemctl cat getty@tty1
deadbang
Re: sbin/agetty --autologin
yup i have checked several times and can confirm i have removed the <> and typed in just my username viz. a.
the output of systemctl cat getty@tty1
systemctl cat getty@tty1
# /lib/systemd/system/getty@.service
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
[Unit]
Description=Getty on %I
Documentation=man:agetty(8) man:systemd-getty-generator(8)
Documentation=http://0pointer.de/blog/projects/serial-console.html
After=systemd-user-sessions.service plymouth-quit-wait.service
After=rc-local.service
# If additional gettys are spawned during boot then we should make
# sure that this is synchronized before getty.target, even though
# getty.target didn't actually pull it in.
Before=getty.target
IgnoreOnIsolate=yes
# IgnoreOnIsolate causes issues with sulogin, if someone isolates
# rescue.target or starts rescue.service from multi-user.target or
# graphical.target.
Conflicts=rescue.service
Before=rescue.service
# On systems without virtual consoles, don't start any getty. Note
# that serial gettys are covered by serial-getty@.service, not this
# unit.
ConditionPathExists=/dev/tty0
[Service]
# the VT is cleared by TTYVTDisallocate
ExecStart=-/sbin/agetty --noclear %I $TERM
Type=idle
Restart=always
RestartSec=0
UtmpIdentifier=%I
TTYPath=/dev/%I
TTYReset=yes
TTYVHangup=yes
TTYVTDisallocate=yes
KillMode=process
IgnoreSIGPIPE=no
SendSIGHUP=yes
# Unset locale for the console getty since the console has problems
# displaying some internationalized messages.
Environment=LANG= LANGUAGE= LC_CTYPE= LC_NUMERIC= LC_TIME= LC_COLLATE= LC_MONETA
[Install]
WantedBy=getty.target
DefaultInstance=tty1
# /etc/systemd/system/getty@tty1.service.d/override.conf
[Service]
ExecStart=
ExecStart=-/sbin/agetty --autologin a --noclear %I $TERM
output of cat /proc/1/comm
cat /proc/1/comm
init
I suppose am running init
Before you can check and help, I will search how to switch from init to systemd
lets c if i can come up with something
thanks for pointing me in the right direction
the output of systemctl cat getty@tty1
systemctl cat getty@tty1
# /lib/systemd/system/getty@.service
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
[Unit]
Description=Getty on %I
Documentation=man:agetty(8) man:systemd-getty-generator(8)
Documentation=http://0pointer.de/blog/projects/serial-console.html
After=systemd-user-sessions.service plymouth-quit-wait.service
After=rc-local.service
# If additional gettys are spawned during boot then we should make
# sure that this is synchronized before getty.target, even though
# getty.target didn't actually pull it in.
Before=getty.target
IgnoreOnIsolate=yes
# IgnoreOnIsolate causes issues with sulogin, if someone isolates
# rescue.target or starts rescue.service from multi-user.target or
# graphical.target.
Conflicts=rescue.service
Before=rescue.service
# On systems without virtual consoles, don't start any getty. Note
# that serial gettys are covered by serial-getty@.service, not this
# unit.
ConditionPathExists=/dev/tty0
[Service]
# the VT is cleared by TTYVTDisallocate
ExecStart=-/sbin/agetty --noclear %I $TERM
Type=idle
Restart=always
RestartSec=0
UtmpIdentifier=%I
TTYPath=/dev/%I
TTYReset=yes
TTYVHangup=yes
TTYVTDisallocate=yes
KillMode=process
IgnoreSIGPIPE=no
SendSIGHUP=yes
# Unset locale for the console getty since the console has problems
# displaying some internationalized messages.
Environment=LANG= LANGUAGE= LC_CTYPE= LC_NUMERIC= LC_TIME= LC_COLLATE= LC_MONETA
[Install]
WantedBy=getty.target
DefaultInstance=tty1
# /etc/systemd/system/getty@tty1.service.d/override.conf
[Service]
ExecStart=
ExecStart=-/sbin/agetty --autologin a --noclear %I $TERM
output of cat /proc/1/comm
cat /proc/1/comm
init
I suppose am running init
Before you can check and help, I will search how to switch from init to systemd
lets c if i can come up with something
thanks for pointing me in the right direction
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: sbin/agetty --autologin
Yup, that's your problem.sickpig wrote:Code: Select all
cat /proc/1/comm init
The systemd-sysv package sets up the /sbin/init symlink.
EDIT: spoiler alert! (Sorry)
deadbang
Re: sbin/agetty --autologin
I dont know how but systemd-sysv was showing as not installed
i dont remember uninstalling it explicitly...
anyhoo i installed systemd-sysv and it changed the init system to systemd by itself automagically
now the output of cat /proc/1/comm
$ cat /proc/1/comm
systemd
and yippee ki yay, autologin now works seamlessly
bye bye lightdm
I will add my thanks to the long list of thanks received by you from all the users whom you helped
cheers!
i dont remember uninstalling it explicitly...
anyhoo i installed systemd-sysv and it changed the init system to systemd by itself automagically
now the output of cat /proc/1/comm
$ cat /proc/1/comm
systemd
and yippee ki yay, autologin now works seamlessly
bye bye lightdm
I will add my thanks to the long list of thanks received by you from all the users whom you helped
cheers!