Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [solved] artix-base-s6: How do I autologin + auto-startx ? (Read 1815 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[solved] artix-base-s6: How do I autologin + auto-startx ?

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 linux
and logs me in, but doesn't recognize .bash_profile

I 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_profile

With openrc:
/etc/conf.d/agetty.tty1 + .bash_profile

What can I do in S6?


Re: artix-base-s6: How do I autologin + auto-startx ?

Reply #1
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
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 linux
and logs me in, but doesn't recognize .bash_profile

I 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_profile

With openrc:
/etc/conf.d/agetty.tty1 + .bash_profile

What 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 Wiki

Regards

Re: artix-base-s6: How do I autologin + auto-startx ?

Reply #3
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.

 

Re: artix-base-s6: How do I autologin + auto-startx ?

Reply #4
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.