Hi,
GhostBSD 10.3 XFCE 64-bit.
Is there a special way to enable autologin with Slim ?
It doesn't seem to work.
Thanks.
[Solved]enable autologin
-
- Posts: 50
- Joined: Thu Oct 29, 2015 3:05 pm
[Solved]enable autologin
Last edited by christophe60_fr on Thu Oct 20, 2016 1:44 pm, edited 1 time in total.
Re: enable autologin
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.
- 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.
-
- Posts: 50
- Joined: Thu Oct 29, 2015 3:05 pm
Re: enable autologin
Great !
Thank you very much.
Thank you very much.
Re: [Solved]enable autologin
I had the same question. Thanks!
Re: [Solved]enable autologin
Glad it worked for you too!purebsd wrote:I had the same question. Thanks!
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
Hi,
How to autologin on mate desktop?
Thank you.
How to autologin on mate desktop?
Thank you.