[solved] artix-base-s6: How do I autologin + auto-startx ? 31 July 2020, 01:23:18 Hi. Maybe is a basic question but I'm new to this kind of init systems.I just installed the latest version of artix base. I have installed xfce4 and everything works fine so far.The problem is that I can't get it to automatically enter the desktop.I tried to log in directly by modifying this file: /etc/s6/current/run-image/service/s6-linux-init-early-getty/run with this command: /usr/bin/agetty --autologin username --noclear 38400 tty1 linuxand logs me in, but doesn't recognize .bash_profileI tried to install lightdm, lightdm-s6 . (sudo s6-rc-bundle-update add default lightdm)But nothing changes, it doesn't automatically log me in. With slim it's worse, because it doesn't seem to run at boot, it doesn't seem to have a related service.With runit I can do it with:/etc/runit/runsvdir/default/agetty-tty1/conf + .bash_profileWith openrc:/etc/conf.d/agetty.tty1 + .bash_profileWhat can I do in S6? Last Edit: 31 July 2020, 22:06:48 by armando
Re: artix-base-s6: How do I autologin + auto-startx ? Reply #1 – 31 July 2020, 15:03:57 This is a good question I don't really know the answer to. In s6, the early getty service command is a compile-time option in s6-linux-init. I don't know if there is a good way to modify this after the fact. I wouldn't expect editing the command in the run-image directory to work since the run-image is generated at boot time. In theory if you recompile s6-linux-init yourself with the appropriate getty command, it should work but I haven't tested it.
Re: artix-base-s6: How do I autologin + auto-startx ? Reply #2 – 31 July 2020, 18:14:24 Quote from: armando – on 31 July 2020, 01:23:18Hi. Maybe is a basic question but I'm new to this kind of init systems.I just installed the latest version of artix base. I have installed xfce4 and everything works fine so far.The problem is that I can't get it to automatically enter the desktop.I tried to log in directly by modifying this file: /etc/s6/current/run-image/service/s6-linux-init-early-getty/run with this command: /usr/bin/agetty --autologin username --noclear 38400 tty1 linuxand logs me in, but doesn't recognize .bash_profileI tried to install lightdm, lightdm-s6 . (sudo s6-rc-bundle-update add default lightdm)But nothing changes, it doesn't automatically log me in. With slim it's worse, because it doesn't seem to run at boot, it doesn't seem to have a related service.With runit I can do it with:/etc/runit/runsvdir/default/agetty-tty1/conf + .bash_profileWith openrc:/etc/conf.d/agetty.tty1 + .bash_profileWhat can I do in S6? Hi, autologin with lightdm has nothing to do with s6 or any other init.You have to configure /etc/lightdm/lightdm.conf, e.t.c. as per LightDM WikiRegards
Re: artix-base-s6: How do I autologin + auto-startx ? Reply #3 – 31 July 2020, 20:46:57 As @linuxer said, it's got nothing to do with your chosen init. For autologin to work, you need to specify your user name in the autologin-user variable of /etc/lightdm/lightdm.conf and additionally add your user to the autologin group.See how it's done in our minimal desktop ISOs and also check line 129 for the default autologin session.Mark this thread as [SOLVED] once you make it work. 1 Likes
Re: artix-base-s6: How do I autologin + auto-startx ? Reply #4 – 31 July 2020, 22:06:14 Thank you. I managed to make lightdm work.I wasn't in the group autologin. And it looks like he needs lightdm-gtk-greeter to be installed with lightdm and lightdm-s6.It also looks like the .profile file was making some noise, I deleted it and I was able to get in.And maybe it helped the fact that I reinstalled the whole system.