Openbox ignores login=root

Please reproduce your error on a second machine before posting, and check the error by running without saved changes or extra modules (See FAQ No. 13, "How to report a bug"). For unstable Porteus versions (alpha, beta, rc) please use the relevant thread in our "Development" section.
rych
Warlord
Warlord
Posts: 622
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0 x64 OpenBox
Location: NZ
Contact:

Openbox ignores login=root

Post#1 by rych » 15 Nov 2018, 09:54

1. Install the official openbox ISO
2. modify the /boot/syslinux/porteus.cfg or specify at the startup "login=root"
3. GUI boots into guest account anyway
4. Simply replace the openbox module with the 003-lxde and Reboot successfully into root GUI.

Is this a restriction of the Openbox DE?

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3932
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Openbox ignores login=root

Post#2 by ncmprhnsbl » 15 Nov 2018, 12:49

confirmed.. here's a quick fix : rootfix.xzm
contents: /etc/rc.d/rc.4
what's happening:
in openbox module i used a newer rc.4 that references /etc/bootcmd.cfg instead of /proc/cmdline to edit slim.conf at boot..(lxde is using the old one)
the reason that newer rc.4 failed was a simple typo:

Code: Select all

login=`egrep -o " login=[^ ]+*" /etc/bootcmd.cfg | cut -d= -f2`
should have been

Code: Select all

login=`egrep -o "login=[^ ]+*" /etc/bootcmd.cfg | cut -d= -f2`
(no space before login= )
thanks
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

rych
Warlord
Warlord
Posts: 622
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0 x64 OpenBox
Location: NZ
Contact:

Openbox ignores login=root

Post#3 by rych » 16 Nov 2018, 05:20

Thanks @ncmprhnsbl, your fix works. By the way, should I use the official module or your other one 003-box-64-20180321.xzm ? Also, what's your reasons for using Openbox instead of LXDE, for example? How is it better overall? (I know why I'm looking to replace LXDE: its file manager, terminal, etc often freezes on me and need to be restarted)

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3932
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Openbox ignores login=root

Post#4 by ncmprhnsbl » 16 Nov 2018, 07:49

rych wrote:
16 Nov 2018, 05:20
should I use the official module or your other one 003-box-64-20180321.xzm ?
your choice :) although similar(both have spacefm, tint2), they are somewhat different.
my box module is more like the "traditional" crunchbang style openbox > rightclick menu with lots of pipemenus, no 'desktop' operations, conky)
whereas i regard the official openbox like a defacto lxde, except run by spacefm instead of pcmanfm> desktop file actions, taskbar menu..
other differences:
box has gparted, audioplayer(deadbeef) included
official doesn't (mpv handles all media pretty well) ...left open for users to make their own choice..

why i use openbox(pure)?
1. just habit (i've tried a lot of WMs, many i like, but i always come back to openbox)
2. the Desktop folder is just another folder(in the file manager) to me (WM vs DE arg)
3. i really like spacefm (word of warning: i'm shipping an 'alpha' version so although it's fast, it does crash occasionally)
4. pipemenus, tiling keybinds..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

Post Reply