мне нужен автологин при загрузке и автоматический запуск Хов я создал /etc/systemd/system/autologin@.service туда написал
[Unit]
Description=Automatic login on %I
After=systemd-user-sessions.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.
IgnoreOnIsolate=yes
# 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]
Environment=TERM=linux
# the VT is cleared by TTYVTDisallocate
Type=simple
RestartSec=1
ExecStart=-/sbin/agetty --noclear -a maxim %I 38400
Restart=always
UtmpIdentifier=%I
TTYPath=/dev/%I
TTYReset=yes
TTYVHangup=yes
TTYVTDisallocate=yes
KillMode=process
IgnoreSIGPIPE=no
# 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_MONETARY= LC_MESSAGES= LC_PAPER= LC_NAME= LC_ADDRESS= LC_TELEPHONE= LC_MEASUREMENT= LC_IDENTIFICATION=
# Some login implementations ignore SIGTERM, so we send SIGHUP
# instead, to ensure that login terminates cleanly.
KillSignal=SIGHUP
[Install]
Alias=graphical.target.wants/autologin@tty7.service
TTY=`tty`
if [[ $TTY == '/dev/tty7' ]] ; then
OTHER=`who|grep tty|grep -v tty7`
[[ -n $OTHER ]] && exit
exec startx
fi
так же мне нужно было активировать юнит через системд, но я получаю ошибку
[maxim@archlinux ~]$ sudo systemctl enable autologin@.service
[sudo] password for maxima:
Failed to issue method call: Bad message
как сделать автологин и автоматический запуск Хов при старте системы? спасибо