Page 1 of 1

changes to /etc/lxdm/lxdm.conf lost on reboot

Posted: 11 Sep 2013, 20:58
by barnex
Hi,

I'm trying to edit /etc/lxdm/lxdm.conf to autologin under my proper user name instead of guest. However, after every reboot, my changes to lxdm.conf are gone (while changes to other files are persistent). Later I also tried to put an lxdm.conf in my rootcopy/ and even rebuilt the 003-xfce4.xzm module with my lxdm.conf, but none of that worked: the default lxdm.conf file always returned.

Am I missing something?

Thanks,
Arne.

(running Linux porteus 3.9.11-porteus #1 SMP PREEMPT Mon Jul 22 22:29:21 UTC 2013 x86_64)

Re: changes to /etc/lxdm/lxdm.conf lost on reboot

Posted: 12 Sep 2013, 16:21
by fanthom
hi barnex,

please use 'login=user' cheatcode.
also - please read /boot/docs/cheatcodes.txt and other docs from http://www.porteus.org/info/tips-and-tricks.html and http://www.porteus.org/info/tutorials.html as many users are asking about features which are well explained in our basic documentation.

Re: changes to /etc/lxdm/lxdm.conf lost on reboot

Posted: 13 Sep 2013, 13:02
by wread
We must remember to rtfm...

Re: changes to /etc/lxdm/lxdm.conf lost on reboot

Posted: 13 Sep 2013, 14:27
by barnex
sorry guys, but I had already tried the login=arne cheatcode and it didn't work either:

Code: Select all

login=arne
boots into lxdm login screen, with the keyboard layout wrongly set

Code: Select all

login
boots straight into guest account, not login screen like the documentation suggests.

Sure I can logout guest and login myself, that's only a minor annoyance.

But I would like to understand why my changes to lxdm.conf are not persistent, while changes to /etc/shadow et al., made in the same way, stayed fine. Maybe I want to make some other customization there as well. Am I missing some subtlety about the live FS?

-Arne

Re: changes to /etc/lxdm/lxdm.conf lost on reboot

Posted: 13 Sep 2013, 21:17
by brokenman
Hi Arne,

My suggestion would be to make your changes to lxdm.conf and them copy it into the rootcopy folder with the full path.

cp -a --parents /etc/lxdm/lxde.conf /mnt/sdxY/porteus/rootcopy

Rootcopy is the last folder to be copied to the live file system so if this does not work then there may be something wrong with your setup.

Re: changes to /etc/lxdm/lxdm.conf lost on reboot

Posted: 14 Sep 2013, 18:03
by fanthom
@barnex
correction:
'login' wont disable autologin, 'login=' will do
'login=arne' should bring you to the desktop, please check if /home/arne is there and has correct permissions. once you boot with 'login=arne' you should get lxdm.conf updated automatically with this username.

also - there is a bug which i reported to Ahau:

Code: Select all

when you boot into LXDE with saved changes and then switch to XFCE then booting stops at the login screen.
this is because edited lxdm.conf persists in changes and is overwriting one from xfce module (has 'session=/usr/bin/startlxde')
solution is to use sed to change to 'startxfce4' in rc.4 or point config to /usr/bin/startde which would be a symlink to startlxde/startxfce4/startrazor/whatever.
so if you are saving changes and previously booted to LXDE then please apply above solution.