New features which should be implemented in Porteus; suggestions are welcome. All questions or problems with testing releases (alpha, beta, or rc) should go in their relevant thread here, rather than the Bug Reports section.
-
mailmegx
- White ninja

- Posts: 29
- Joined: 23 Mar 2012, 18:44
- Distribution: Porteus 1.2 XFCE 64bit
- Location: Cyprus
Post#1
by mailmegx » 10 May 2012, 06:17
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
mailmegx
-
fanthom
- Moderator Team

- Posts: 5588
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
-
Contact:
Post#2
by fanthom » 10 May 2012, 08:28
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.
Please add [Solved] to your thread title if the solution was found.
fanthom
-
mailmegx
- White ninja

- Posts: 29
- Joined: 23 Mar 2012, 18:44
- Distribution: Porteus 1.2 XFCE 64bit
- Location: Cyprus
Post#3
by mailmegx » 10 May 2012, 08:46
geat thanks
mailmegx
-
Ahau
- King of Docs

- Posts: 1331
- Joined: 28 Dec 2010, 15:18
- Distribution: LXDE & Xfce 32/64-bit
- Location: USA
Post#4
by Ahau » 10 May 2012, 15:25
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.
Please take a look at our online documentation, here. Suggestions are welcome!
Ahau
-
brokenman
- Site Admin

- Posts: 6104
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
-
Contact:
Post#5
by brokenman » 12 May 2012, 00:25
Since its inception porteus has always maintained the 'Text mode' boot option. Is this not what you are looking for?
autoexec=telinit~3
How do i become super user?
Wear your underpants on the outside and put on a cape.
brokenman
-
mailmegx
- White ninja

- Posts: 29
- Joined: 23 Mar 2012, 18:44
- Distribution: Porteus 1.2 XFCE 64bit
- Location: Cyprus
Post#6
by mailmegx » 13 May 2012, 17:46
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
mailmegx