On 01-09-2014 17:33, Fernando de Oliveira wrote:
> On 01-09-2014 16:50, Bruce Dubbs wrote:
>> [email protected] wrote:

>>> --- trunk/bootscripts/Makefile Mon Sep 1 11:26:44 2014 (r14162)
>>> +++ trunk/bootscripts/Makefile    Mon Sep  1 12:34:36 2014
>>> (r14163) @@ -277,9 +277,9 @@ ln -sf  ../init.d/lxdm
>>> ${EXTDIR}/rc.d/rc0.d/K05lxdm ln -sf  ../init.d/lxdm
>>> ${EXTDIR}/rc.d/rc1.d/K05lxdm ln -sf  ../init.d/lxdm
>>> ${EXTDIR}/rc.d/rc2.d/K05lxdm -    ln -sf  ../init.d/lxdm
>>> ${EXTDIR}/rc.d/rc3.d/K05lxdm +    ln -sf  ../init.d/lxdm
>>> ${EXTDIR}/rc.d/rc3.d/S95lxdm ln -sf  ../init.d/lxdm
>>> ${EXTDIR}/rc.d/rc4.d/K05lxdm -    ln -sf  ../init.d/lxdm
>>> ${EXTDIR}/rc.d/rc5.d/S95lxdm +    ln -sf  ../init.d/lxdm
>>> ${EXTDIR}/rc.d/rc5.d/K05lxdm ln -sf  ../init.d/lxdm
>>> ${EXTDIR}/rc.d/rc6.d/K05lxdm
>> 
>> I think you had it right the first time.  The standard definition
>> of run level 3 is without a gui.
>> 

> When remembered to test rebooting, after the commit, didn't start.
> Only if in runlevel 3. No idea why.

I don't know much about this, but I think I know where the problem
starts and present a first solution.

I have now:

$ head -n8 /etc/inittab
# Begin /etc/inittab

id:5:initdefault:

si::sysinit:/etc/rc.d/init.d/rc S

l0:0:wait:/etc/rc.d/init.d/rc 0
l1:S1:wait:/etc/rc.d/init.d/rc 1

Before, I had:

id:3:initdefault:

This suggested me that LXDM, which is taking the responsibility of
authenticating with PAM, was not allowed, because first, we had to login
at runlevel 3. It simply didn't even start (no mention anywhere in the
logs).

Now, it starts at runlevel 5.

As my knowledge is very limited, and I am facing two alternatives, each
modifying fundamental rules, what is the best solution?

1. Leave the bootscripts as I modified yesterday to start at runlevel 3.

2. Change in /etc/inittab to have id:5:initdefault.


On Mon, 01 Sep 2014 22:55:01 +0200, Armin wrote:
> On 09/01/2014 10:25 PM, Fernando de Oliveira wrote:

>> Problem: LXDM always start as if LANG=C.
>> 

>> 
>> Now, I found another solution:
>> 
>> sed -i '1a\\nexport LANG=pt_BR.UTF-8' /usr/sbin/lxdm
>> 
>> because this is a script calling the true program, lxdm-binary.

> 
> I haven't built LXDM, but since you say the lxdm is a wrapper
> script, you can make it source /etc/profile. On systemd systems,
> systemd-localed is responsible for setting the locale for everything
> but tty environment, and that is manually handled by /etc/profile.d
> script.

Thank you very much, Armin, localization problem solved with your
suggestion of including source /etc/profile in /usr/sbin/lxdm!!!


-- 
[]s,
Fernando
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to