agetty autologin with Xfce and OpenRC 10 October 2017, 23:06:10 Details of creating a tty service were from agetty-guide.md in the OpenRC source package.# cd /etc/init.d# ln -s agetty agetty.tty7# cd /etc/conf.d# cp agetty agetty.tty7Edit agetty_options in /etc/conf.d/agetty.tty7agetty_options="-a <your_user_name>"(Replace <your_user_name> above along with the angle brackets)(Optionally add "--noclear" option in agetty.tty1 as well for a nicer display)Add this to ~/.bashrc # start x on loginif (( [[ -z $DISPLAY && ! -e /tmp/.X11-unix/X0 ]] ) && (rc-status -r | grep -q 'default')); then exec xinit -- /usr/bin/X -nolisten tcp vt7fiContents of ~/.xinitrcThis should be executable, make it executable with $ chmod a+x .xinitrc if needed.#!/bin/sh# ~/.xinitrc Executed by startxexec startxfce4Run these commands in a terminal:#rc-update delete xdm#rc-update add agetty.tty7 defaultWish for luck and reboot!It works for my Manjaro OpenRC conversion. Last Edit: 10 October 2017, 23:25:16 by #######
Re: agetty autologin with Xfce and OpenRC Reply #1 – 16 October 2017, 15:06:11 /etc/conf.d/agetty.tty1 was overwritten on an update. I had somehow expected it to be treated as a conf file, given it's location./etc/conf.d/agetty.tty7 which had been created was not.Adding this to /etc/pacman.conf fixes this if agetty.tty1 was modified:NoUpgrade = /etc/conf.d/agetty.tty1Otherwise this autologin setup has continued to work without problems.
Re: agetty autologin with Xfce and OpenRC Reply #2 – 16 October 2017, 15:17:14 Quote from: ####### – on 16 October 2017, 15:06:11NoUpgrade = /etc/conf.d/agetty.tty1Please use absolute path for NoUpgrade, they don't work with path that starts with a slash Code: [Select]NoUpgrade = etc/conf.d/agetty.tty1https://wiki.archlinux.org/index.php/Pacman/Pacnew_and_Pacsave#Systemwide_backup_files
Re: agetty autologin with Xfce and OpenRC Reply #3 – 16 October 2017, 15:58:34 Thanks for pointing out that, or the next upgrade would have seen the same problem again!