Page 1 of 1

no auto login

Posted: 10 May 2012, 06:17
by mailmegx
Hi all

Im using xfce rc1 at the mo and am very pleased. there is one cheatcode missing I belive, if you use "toroot" it will automatically log in as root, otherwise it will log in as guest, but what if I dont want to log in automatically?

here is the work around Im but would prefer a proper solution in mainstream porteus.

/etc/rc.M line 224

Code: Select all

# switch to root account
if egrep -qo " toroot( |\$)" /proc/cmdline; then
    sed -i s/AutoLoginUser=guest/AutoLoginUser=root/g /usr/share/config/tdm/tdmrc 2>/dev/null
    sed -i s/AutoLoginUser=guest/AutoLoginUser=root/g /usr/share/config/kdm/kdmrc 2>/dev/null
    sed -i s/autologin=guest/autologin=root/g /etc/lxdm/lxdm.conf 2>/dev/null
elif egrep -qo " noautologin( |\$)" /proc/cmdline; then
    # do nothing
else
    sed -i s/AutoLoginUser=root/AutoLoginUser=guest/g /usr/share/config/tdm/tdmrc 2>/dev/null
    sed -i s/AutoLoginUser=root/AutoLoginUser=guest/g /usr/share/config/kdm/kdmrc 2>/dev/null
    sed -i s/autologin=root/autologin=guest/g /etc/lxdm/lxdm.conf 2>/dev/null
fi

GX

Re: no auto login

Posted: 10 May 2012, 08:28
by fanthom
hello mailmegx,

no problem - we can add this cheat to rc.M

@Ahau
please update cheatcodes.txt with noautologin description. something like:

Code: Select all

noautologin
stops Porteus booting process at kdm/lxdm screen where user needs to provide username and password and choose the desktop he wants to log in.

Re: no auto login

Posted: 10 May 2012, 08:46
by mailmegx
geat thanks

Re: no auto login

Posted: 10 May 2012, 15:25
by Ahau
how's this look?

Code: Select all

noautologin

   ... stops the Porteus startup process at the kdm/lxdm
       screen, so the user will need to provide a username
       and password to log in to their desired desktop
       environment.

Re: no auto login

Posted: 12 May 2012, 00:25
by brokenman
Since its inception porteus has always maintained the 'Text mode' boot option. Is this not what you are looking for?

autoexec=telinit~3

Re: no auto login

Posted: 13 May 2012, 17:46
by mailmegx
Hi brokenman

Not exactly, the code I sent was exactly the solution I wanted, the thing that was bugging me was lack of consistency i.e. there is a cheatcode for root and none for guest but no way nor neither. In my opinion t it should be toroot, toguest and nothing for login screen but since the other two already exist its best not to break backward compatibility.

GX