Slint64-14.2.1rc2, last call for testing.

User avatar
Atip
Posts: 536
Joined: 5. Jun 2011, 04:27

Re: Slint64-14.2.1rc2, last call for testing.

Post by Atip » 25. Nov 2017, 02:59

Here is a new twist:

In user guest where sudo is disabled and

Code: Select all

/usr/sbin/gtkusersetup
or
/usr/sbin/gtkservicesetup
gives that error about locale not found in C library and aborts.
I can change this by doing first

Code: Select all

LANG=C
Then the gtk*setup windows open. :?: :?: :?:

However, in both houses, me and guest
Applications>System>System Services
will not open after entering root password. :evil:

BTW all these problems I do not have in Slint-32.
This box is rock solid. That's why I love it. :)

User avatar
Atip
Posts: 536
Joined: 5. Jun 2011, 04:27

Re: Slint64-14.2.1rc2, last call for testing.

Post by Atip » 29. Nov 2017, 09:01

Upgraded to the latest.

Now sudo /usr/sbin/gtkservicesetup opens w/o error.
However, using it from Applications it still crashes after
root password enter. That applies to all application in
Slint Control Center where root PW is required.

DidierSpaier
Posts: 278
Joined: 20. Jun 2016, 20:15

Re: Slint64-14.2.1rc2, last call for testing.

Post by DidierSpaier » 29. Nov 2017, 10:08

I can reproduce that if I am in the wheel group and I allow the members of this group to execute any command using sudo.

But su should be used in Slint, not sudo.

So, just comment this line (that you probably uncommented) using visudo:

Code: Select all

%wheel ALL=(ALL) ALL
so it becomes:

Code: Select all

# %wheel ALL=(ALL) ALL

User avatar
Atip
Posts: 536
Joined: 5. Jun 2011, 04:27

Re: Slint64-14.2.1rc2, last call for testing.

Post by Atip » 30. Nov 2017, 02:57

Uncommented %wheel.

Here are new observations:

In user "guest" LANG is now LC_ALL.
Therefore /usr/sbin/gtkservicesetup will not open.
If I change LANG=C gtk*setup will open.
In my home as user LANG=C remains.

Now, if I open qcontrolcenter from a terminal all applications
requiring root password open in my home and in user "guest".
Whereas as reported a few times opening from menues nothing
happens after entering PW. The root PW enter window just disappears.

Isn't that crazy :?: :?: :?:

DidierSpaier
Posts: 278
Joined: 20. Jun 2016, 20:15

Re: Slint64-14.2.1rc2, last call for testing.

Post by DidierSpaier » 30. Nov 2017, 10:02

I managed to create a user guest, with no password using adduser (didn't realize it is possible, but just hit enter three times when asked for the password did it. I would not generally recommend to do that, though).
Atip wrote: In user "guest" LANG is now LC_ALL.
Therefore /usr/sbin/gtkservicesetup will not open.
If I change LANG=C gtk*setup will open.
In my home as user LANG=C remains.
I can hardly understand how it is possible, furthermore the LANG used should not be dependent on the user as it is set
systemwide in /etc/profile.d/lang.sh

Also, I don't understand what you mean by "LANG is now LC_ALL" as LC_ALL is a parameter, not a locale.

What say these command:

Code: Select all

grep "^[^#]*export LANG" /etc/profile.d/lang.sh
echo $LANG
Please type these command twice: as home user and as guest.

Also please provide the output of these commands (replace atip with your home user login name):

Code: Select all

grep atip /etc/passwd
grep guest /etc/passwd
Anyway, LANG should not be set to C, so please change it to be en_US.utf8. In gtklocalesetup choose "English locale for the USA or in localesetup "en_US.utf8 English for the USA"
Now, if I open qcontrolcenter from a terminal all applications
requiring root password open in my home and in user "guest".
Whereas as reported a few times opening from menues nothing
happens after entering PW. The root PW enter window just disappears.
As already stated, I can't reproduce this here if there is a # before %wheel in the sudo file.

To check, just remove your home user from the wheel group.
Isn't that crazy :?: :?: :?:
It can look so, but we will see when you will have answered, if these issue comes from Slint itself or from specific commands you typed.

For instance copying /etc/passwd and /etc/shadow over from Slint-32, is certainly not something I would have advised.

User avatar
Atip
Posts: 536
Joined: 5. Jun 2011, 04:27

Re: Slint64-14.2.1rc2, last call for testing.

Post by Atip » 1. Dec 2017, 03:00

Copied lang.sh.orig to lang.sh. Rebooted.
In user guest LANG now = en_US.utf8 whereas
in user atip LANG remains = C. User atip has sudo privilges.

In user guest:

Code: Select all

guest[~]$ qcontrolcenter
qControlCenter Started ...
qControlCenter window title = Slint Dashboard
qControlCenter tree = /home/guest/.qcontrolcenter
qControlCenter Language used = default

(process:3925): Gtk-WARNING **: Locale not supported by C library.
	Using the fallback 'C' locale.
GTK Accessibility Module initialized
Got bus address:  "unix:abstract=/tmp/dbus-GOozfLBlwC,guid=40c8a7875ed7d27c3743a6b95a20b894" 
Connected to accessibility bus at:  "unix:abstract=/tmp/dbus-GOozfLBlwC,guid=40c8a7875ed7d27c3743a6b95a20b894" 
Registered DEC:  true 
Registered event listener change listener:  true 
Could not resolve property : pattern782
Could not resolve property : pattern844
Could not resolve property : pattern906
Could not resolve property : pattern976
Could not resolve property : pattern1054
Could not resolve property : pattern1174
Could not resolve property : pattern1242
Could not resolve property : pattern1434

(process:3931): Gtk-WARNING **: Locale not supported by C library.
	Using the fallback 'C' locale.
GTK Accessibility Module initialized


(process:3936): Gtk-WARNING **: Locale not supported by C library.
	Using the fallback 'C' locale.
GTK Accessibility Module initialized
Traceback (most recent call last):
  File "/usr/sbin/gtkclocksetup", line 13, in <module>
    locale.setlocale(locale.LC_ALL, '')
  File "/usr/lib64/python2.7/locale.py", line 581, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting
And as usual Dashboard Slint started from a menu will not open after root PW input.

Code: Select all

grep guest /etc/passwd
guest:x:1001:100:Gast,,,:/home/guest:/bin/bash
guest[~]$ grep atip /etc/passwd
atip:x:1000:100::/home/atip:/bin/bash
User atip was entered during installation, guest added from root console.
I will now add a user "tester" with qcontrolcenter and see what happens.

Here now in "tester":
Dashboard Slint aps will not open after entering root password.
Opening qcontrolcenter from terminal I get the same errors as above with guest.
LANG=en_US.utf8

Back in guest to submit this post.

BTW I will not change my settings in user atip and leave it with sudo priviledge.

DidierSpaier
Posts: 278
Joined: 20. Jun 2016, 20:15

Post by DidierSpaier » 1. Dec 2017, 07:18

Atip wrote:Copied lang.sh.orig to lang.sh. Rebooted.
For the records, the right way to change the default LANG setting is either to edit by hand this file or to run localesetup or gtklocalesetup.
Atip wrote:In user guest LANG now = en_US.utf8 whereas
in user atip LANG remains = C. User atip has sudo privilges.
How do you set LANG for user atip?
Atip wrote: In user guest:

Code: Select all

guest[~]$ qcontrolcenter
qControlCenter Started ...
qControlCenter window title = Slint Dashboard
qControlCenter tree = /home/guest/.qcontrolcenter
qControlCenter Language used = default

(process:3925): Gtk-WARNING **: Locale not supported by C library.
	Using the fallback 'C' locale.
GTK Accessibility Module initialized
Got bus address:  "unix:abstract=/tmp/dbus-GOozfLBlwC,guid=40c8a7875ed7d27c3743a6b95a20b894" 
Connected to accessibility bus at:  "unix:abstract=/tmp/dbus-GOozfLBlwC,guid=40c8a7875ed7d27c3743a6b95a20b894" 
Registered DEC:  true 
Registered event listener change listener:  true 
Could not resolve property : pattern782
Could not resolve property : pattern844
Could not resolve property : pattern906
Could not resolve property : pattern976
Could not resolve property : pattern1054
Could not resolve property : pattern1174
Could not resolve property : pattern1242
Could not resolve property : pattern1434

(process:3931): Gtk-WARNING **: Locale not supported by C library.
	Using the fallback 'C' locale.
GTK Accessibility Module initialized


(process:3936): Gtk-WARNING **: Locale not supported by C library.
	Using the fallback 'C' locale.
GTK Accessibility Module initialized
Traceback (most recent call last):
  File "/usr/sbin/gtkclocksetup", line 13, in <module>
    locale.setlocale(locale.LC_ALL, '')
  File "/usr/lib64/python2.7/locale.py", line 581, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting
And as usual Dashboard Slint started from a menu will not open after root PW input.
User atip was entered during installation, guest added from root console.
I only can reproduce this starting qcontrol center either this way:

Code: Select all

LANG=LC_ALL qcontrolcenter
ot that way:

Code: Select all

export LANG=LC_ALL
qcontrolcenter
I tried that because in a previous post you wrote:
In user "guest" LANG is now LC_ALL.
Did you do something similar?
Doing this would be completely wrong, the locale should be among the output of "locale -a".

PS maybe you wanted to set LANG as the value of LC_ALL? To do that one would have to type instead:

Code: Select all

LANG=$LC_ALL
Here this would result in LANG="" as LC_ALL is not set, but then the fallback to C works, so no crash and everything works as expected. This setting would be pointless though.
Atip wrote: I will now add a user "tester" with qcontrolcenter and see what happens.
Here now in "tester":
Dashboard Slint aps will not open after entering root password.
Opening qcontrolcenter from terminal I get the same errors as above with guest.
LANG=en_US.utf8

Back in guest to submit this post.
If as "tester" you set LANG to LC_ALL this is not surprising. Don't do that.
Atip wrote:BTW I will not change my settings in user atip and leave it with sudo priviledge.
That's your machine, so use it as you like. Just bear in mind that using sudo in Slint won't work as it does in Salix. This is by design.

User avatar
Atip
Posts: 536
Joined: 5. Jun 2011, 04:27

Re: Slint64-14.2.1rc2, last call for testing.

Post by Atip » 1. Dec 2017, 08:11

lang.sh.orig is apparently the lang.sh to be used.
In it it says "export LANG=en_US.utf8".
Therefore in user guest and user tester LANG is set now to this after reboot.
I did no settings of LANG at all anymore.

In user atip LANG remains =C without me doing anything now.
May be before I set LANG=C to make things worki.
In user "guest" LANG is now LC_ALL.
Yes I wrote this since it was the case I think after first making
user guest. It did not appear again.

I will try that: LANG=$LC_ALL

And what setting should then in lang.sh be to avaoid those errors?

DidierSpaier
Posts: 278
Joined: 20. Jun 2016, 20:15

Re: Slint64-14.2.1rc2, last call for testing.

Post by DidierSpaier » 1. Dec 2017, 08:50

Atip wrote:lang.sh.orig is apparently the lang.sh to be used.
In it it says "export LANG=en_US.utf8".
Therefore in user guest and user tester LANG is set now to this after reboot.
That's good. Keep it as is.
Atip wrote:I will try that: LANG=$LC_ALL
That is pointless, actually
Atip wrote:And what setting should then in lang.sh be to avoid those errors?
Just keep the default en_US.utf8 as it is in lang.sh without any further setting.

Try to find how you set LANG=C for atip to remove this specific setting that is unnecessary. Maybe in ~/.bash_profile, ~/.bashrc or~/.profile?

To find out, you can run this command as atip:

Code: Select all

grep -r LANG $HOME|grep export|grep C

User avatar
Atip
Posts: 536
Joined: 5. Jun 2011, 04:27

Re: Slint64-14.2.1rc2, last call for testing.

Post by Atip » 2. Dec 2017, 08:32

I was looking at the Dotnew
Manage .new system settings files.
I did renew /etc/inittab and runlevel was set to 3 instead of 4.
I changed it back.
I new that would happen since I had a look first at inittab.new
If I would renew /etc/passwd I would have no more password.
Is that the idea of Dotnew? :?:

Furhter, does this error have any signiificance as for passwords?

Code: Select all

$ /usr/sbin/nscd
/usr/sbin/nscd: relocation error: /usr/sbin/nscd: symbol __res_maybe_init, version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference

Post Reply