error in rc.4 related to autologin

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.
fab
Ronin
Ronin
Posts: 3
Joined: 06 Dec 2022, 16:20
Distribution: porteus5-xfce

error in rc.4 related to autologin

Post#1 by fab » 06 Dec 2022, 17:01

The script /etc/rc.d/rc.4 tries to modify lxdm.conf, but is using "slim" config syntax to do so.

lxdm syntax is:
autologin=$login

slim syntax is:
auto_login on
default_user=$user

the last lines in rc.4 should be:

Code: Select all

[ "$login" ] && sed -i 's/^autologin=.*/autologin='$login'/g' /etc/lxdm/lxdm.conf
[ "$nologin" ] && sed -i 's/^autologin/#autologin/g' /etc/lxdm/lxdm.conf
/usr/sbin/lxdm
fab
Last edited by fab on 07 Dec 2022, 10:27, edited 1 time in total.

User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

error in rc.4 related to autologin

Post#2 by Ed_P » 06 Dec 2022, 17:04

Thank you.
Ed

fab
Ronin
Ronin
Posts: 3
Joined: 06 Dec 2022, 16:20
Distribution: porteus5-xfce

error in rc.4 related to autologin

Post#3 by fab » 07 Dec 2022, 10:51

I forgot some single quotes in the [ "$login" ] line, fixed it.

Furthermore I noticed:

It affects /etc/rc.d/rc.4 in 003-xfce.xzm and at least also 003-lxde.xzm.
003-kde5.xzm has a different rc.4 and if you change rc.4 using "changes" you cannot dual boot with kde anymore,
so you have to rebuild 003-xfce.xzm. (which is easy)

rc.4 modifies /etc/lxdm/lxdm.conf and if you decide to remove boot option "nologin" you have to manually change lxdm.conf
to make that work.

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

error in rc.4 related to autologin

Post#4 by ncmprhnsbl » 07 Dec 2022, 13:01

known and fixed some time ago, (somewhere in this topic: Porteus-v5.0x86_64_bugs reports )
please run the updater to get the latest modules: menu > system> porteus settings centre > porteus updater .
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

fab
Ronin
Ronin
Posts: 3
Joined: 06 Dec 2022, 16:20
Distribution: porteus5-xfce

error in rc.4 related to autologin

Post#5 by fab » 07 Dec 2022, 22:45

Thank you, and I'm sorry I missed that. I checked for updates on the wrong mirror (ftp.vim.org).

User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

error in rc.4 related to autologin

Post#6 by Ed_P » 08 Dec 2022, 04:12

fab wrote:
07 Dec 2022, 22:45
I checked for updates on the wrong mirror (ftp.vim.org).
:o Thanks for the update and sorry for the inconvenience. Not sure why vim.org is lacking the updates.
Ed

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

error in rc.4 related to autologin

Post#7 by ncmprhnsbl » 08 Dec 2022, 04:36

yes, some mirrors are currently faulty:
http://ftp.vim.org and it's host http://ftp.nluug.nl/os
and http://ftpmirror1.infania.net are not syncing properly for the updates directory.
i've tried to contact them about this, but haven't received any response as yet
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

error in rc.4 related to autologin

Post#8 by Ed_P » 08 Dec 2022, 05:49

Does Hamza interface with them?
Ed

donald
Full of knowledge
Full of knowledge
Posts: 2064
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

error in rc.4 related to autologin

Post#9 by donald » 08 Dec 2022, 20:23

--> ..known and fixed some time ago <--
--> ..some mirrors are currently faulty...not syncing properly for the updates directory. <--
Why not upload updated isos from time to time?

User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

error in rc.4 related to autologin

Post#10 by Ed_P » 08 Dec 2022, 20:24

ncmprhnsbl wrote:
08 Dec 2022, 04:36
yes, some mirrors are currently faulty:
We should change the porteus-mirrors url to be:

Code: Select all

http://porteus.org/porteus-mirrors.html?avoid&vim.org&nluug.nl&infania.net
Added in 10 hours 56 minutes 56 seconds:
How do mirrors work? Do they pull files from porteus.org or does porteus.org upload files to them? :unknown:
Ed

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

error in rc.4 related to autologin

Post#11 by ncmprhnsbl » 15 Dec 2022, 05:30

Ed_P wrote:
09 Dec 2022, 07:21
How do mirrors work? Do they pull files from porteus.org or does porteus.org upload files to them?
it's synced from their side
anybody with a server can set up a mirror, they don't need permission or anything
usually, it's polite to inform the source that you're doing it.
update on mirrors: have received a response from one of the faulty mirrors, with hopefully a fix to follow
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

error in rc.4 related to autologin

Post#12 by Rava » 24 Dec 2022, 04:48

ncmprhnsbl wrote:
15 Dec 2022, 05:30
update on mirrors: have received a response from one of the faulty mirrors, with hopefully a fix to follow
Meaning: the other mirror maintainer has not replied at all for weeks now?
Cheers!
Yours Rava

Post Reply