Page 1 of 1

[Solved]enable autologin

Posted: Thu Oct 20, 2016 5:51 am
by christophe60_fr
Hi,

GhostBSD 10.3 XFCE 64-bit.

Is there a special way to enable autologin with Slim ?
It doesn't seem to work.

Thanks.

Re: enable autologin

Posted: Thu Oct 20, 2016 7:00 am
by ASX
Yes, there is a way, a require two changes:
- edit /usr/local/etc/slim.conf: set default_user and autologin
- edit ~/.xinitrc:

the problem is .xinitrc actually contain "exec $1", where $1 is feed from slim depending on the desktop choosen using F1,
when autologin is anabled, slim doesn't feed that variable, and you need to set it explicitly, in example:
exec /usr/local/bin/startxfce4
or
exec /usr/local/bin/mate-session
depending on your desktop of choice.

Re: enable autologin

Posted: Thu Oct 20, 2016 1:41 pm
by christophe60_fr
Great !
Thank you very much.

Re: [Solved]enable autologin

Posted: Sat Dec 10, 2016 11:47 pm
by purebsd
I had the same question. Thanks!

Re: [Solved]enable autologin

Posted: Sun Dec 11, 2016 8:57 am
by ASX
purebsd wrote:I had the same question. Thanks!
Glad it worked for you too!

For completeness, the code below (~/.xinitrc) will work with and without autologin enabled:

Code: Select all

DEFAULT=startxfce4

[ -n "$1" ] && exec $1

exec ${DEFAULT}

Re: [Solved]enable autologin

Posted: Fri Nov 01, 2019 12:36 am
by thorjeus
Hi,
How to autologin on mate desktop?
Thank you.

Re: [Solved]enable autologin

Posted: Wed Nov 06, 2019 3:02 am
by hunghung
thorjeus wrote:
Fri Nov 01, 2019 12:36 am
Hi,
How to autologin on mate desktop?
Thank you.
Wondered the same thing. On MX Linux, I always set to Autologin by default :)