KLV-Airedale-rc1 the Release Candidate 1 is Available!

Kennel Linux Void-based


Moderator: Forum moderators

User avatar
fredx181
Posts: 3085
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 376 times
Been thanked: 1315 times
Contact:

Re: KLV-Airedale-rc1 the Release Candidate 1 is Available!

Post by fredx181 »

@Sofiya that looks like different version than the included in rc1 (that I once shared, with 'Replaces" and "Conflict" options, a bit experimental, I'd say), is that right ?

User avatar
Sofiya
Posts: 2286
Joined: Tue Dec 07, 2021 9:49 pm
Has thanked: 1477 times
Been thanked: 1536 times

Re: KLV-Airedale-rc1 the Release Candidate 1 is Available!

Post by Sofiya »

fredx181 wrote: Fri Dec 09, 2022 5:09 pm

@Sofiya that looks like different version than the included in rc1 (that I once shared, with 'Replaces" and "Conflict" options, a bit experimental, I'd say), is that right ?

yes, that's why I'm a little confused
everything works packages are assembled

Attachments
Снимок экрана_2022-12-09_20-16-38.png
Снимок экрана_2022-12-09_20-16-38.png (12.32 KiB) Viewed 1483 times
xclip-0.13_2.x86_64.xbps
(14.4 KiB) Downloaded 47 times
trans-tray-1.2.0_1.x86_64.xbps
depends on xclip
(66.73 KiB) Downloaded 58 times
Last edited by Sofiya on Fri Dec 09, 2022 7:34 pm, edited 1 time in total.

KL
PUPPY LINUX Simple fast free

User avatar
Sofiya
Posts: 2286
Joined: Tue Dec 07, 2021 9:49 pm
Has thanked: 1477 times
Been thanked: 1536 times

Re: KLV-Airedale-rc1 the Release Candidate 1 is Available!

Post by Sofiya »

.

Attachments
out.jpg
out.jpg (4.32 KiB) Viewed 1132 times
poorercputemp-transparent-0.1_1.x86_64.xbps
(13.66 KiB) Downloaded 45 times
poorercputemp-0.2_1.x86_64.xbps
(13.94 KiB) Downloaded 67 times
Last edited by Sofiya on Tue Jan 31, 2023 6:59 pm, edited 2 times in total.

KL
PUPPY LINUX Simple fast free

User avatar
fredx181
Posts: 3085
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 376 times
Been thanked: 1315 times
Contact:

Re: KLV-Airedale-rc1 the Release Candidate 1 is Available!

Post by fredx181 »

@rockedge The env variable LANG is not set, this can lead to problems, for example try pasting this:
echo "поклонникам Г.О.Егора Летова радио онлайн" in a xterm window, it becomes:
echo "########### #.#.##### ###### ##### ######"
When doing first LANG=en_US.UTF-8 xterm and paste it in, it's OK.
Not sure if it's the right way for Void, but uncommenting LANG=en_US.UTF-8 in /etc/environment (tested by logout and login again) fixes it (mentioned earlier by I think @Sofiya )

User avatar
rockedge
Site Admin
Posts: 6551
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2757 times
Been thanked: 2628 times
Contact:

Re: KLV-Airedale-rc1 the Release Candidate 1 is Available!

Post by rockedge »

@fredx181 Totally correct solution. I thought I had set that a long time ago. It seems during the development it returned to default. I will fix it for KLV-Airedale-rc2 which should be ready in a few hours.

Way back while making the early FirstRib-Void distro's with the JWM + Rox desktop I first encountered that the environment variable ishould be set during the distro build. Void Linux has chapter on it in their manual on the recommended method to use.

I will use what you did first though since I trust your judgment on the matter.

This is what /etc/environment looks like now:

Code: Select all

#
# This file is parsed by pam_env module
#
# Syntax: simple "KEY=VAL" pairs on separate lines
#
#LC_ALL=en_US.UTF-8
#LANG=en_US.UTF-8

And this is what it looks like now (as soon as I generate the new rootfs):

Code: Select all

#
# This file is parsed by pam_env module
#
# Syntax: simple "KEY=VAL" pairs on separate lines
#
#LC_ALL=en_US.UTF-8
LANG=en_US.UTF-8
User avatar
fredx181
Posts: 3085
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 376 times
Been thanked: 1315 times
Contact:

Re: KLV-Airedale-rc1 the Release Candidate 1 is Available!

Post by fredx181 »

rockedge wrote:

I will use what you did first though since I trust your judgment on the matter.

Better don't ;) as I don't know much about Void.
But your second /etc/environment code uncommented to LANG=en_US.UTF-8 works for me to solve the missing LANG env variable.

User avatar
rockedge
Site Admin
Posts: 6551
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2757 times
Been thanked: 2628 times
Contact:

Re: KLV-Airedale-rc1 the Release Candidate 1 is Available!

Post by rockedge »

@fredx181 This is what I use in the PLUG that builds the KLV base.

Code: Select all

# Set locale to en_US.UTF-8
sed -i 's/#en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/default/libc-locales
xbps-reconfigure -f glibc-locales

I will test this in a terminal.

User avatar
fredx181
Posts: 3085
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 376 times
Been thanked: 1315 times
Contact:

Re: KLV-Airedale-rc1 the Release Candidate 1 is Available!

Post by fredx181 »

rockedge wrote: Sun Dec 11, 2022 7:04 pm

@fredx181 This is what I use in the PLUG that builds the KLV base.

Code: Select all

# Set locale to en_US.UTF-8
sed -i 's/#en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/default/libc-locales
xbps-reconfigure -f glibc-locales

I will test this in a terminal.

Mmm... running above doesnt work setting the locale (tested after re-login with echo $LANG, and it's showing empty. Should be in the right direction (official way). On Debian it's similar thing but running dpkg-reconfigure locales on Debian asks you also which to make default, that should be next step to make it work on Void too, I guess.
It does btw uncomment en_US.UTF-8 UTF-8 in /etc/default/libc-locales, so the sed -i ... part works.

edit:
The Void Handbook says to put it in /etc/locale.conf, I tried LANG=en_US.UTF-8 in locale.conf but doesn't work for me.
Also I read somewhere about problems setting the locale in void.
So I'd say put it in /etc/environment in the rootfs and be happy (and put this info in the KLV Handbook :D )
(most people want UTF8, I guess)

User avatar
rockedge
Site Admin
Posts: 6551
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2757 times
Been thanked: 2628 times
Contact:

Re: KLV-Airedale-rc1 the Release Candidate 1 is Available!

Post by rockedge »

@fredx181 You made me remember why I put uxterm into KLV!

If you run uxterm and do the line echo "поклонникам Г.О.Егора Летова радио онлайн" it works fine. So both xterm and uxterm are installed and work.

I wonder now with the localization set I could remove uxterm......

User avatar
fredx181
Posts: 3085
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 376 times
Been thanked: 1315 times
Contact:

Re: KLV-Airedale-rc1 the Release Candidate 1 is Available!

Post by fredx181 »

rockedge wrote: Sun Dec 11, 2022 10:39 pm

@fredx181 You made me remember why I put uxterm into KLV!

If you run uxterm and do the line echo "поклонникам Г.О.Егора Летова радио онлайн" it works fine. So both xterm and uxterm are installed and work.

I wonder now with the localization set I could remove uxterm......

Yes, uxterm works with UTF-8, but if you e.g. click on a script that needs it, it doesn't work ok as it doesnt run in uxterm.
I think too, if locale is properly set to UTF8, no need for uxterm.

User avatar
Sofiya
Posts: 2286
Joined: Tue Dec 07, 2021 9:49 pm
Has thanked: 1477 times
Been thanked: 1536 times

Re: KLV-Airedale-rc1 the Release Candidate 1 is Available!

Post by Sofiya »

I have translated the OS into my language, though there is one caveat, the programs installed out of the box have my locale, and third-party script programs are not translated into my language even if I throw the file хххх .mо into
/usr/share/locale/ru/LC_MESSAGES/
even if I force my language to be selected for the program.
It certainly doesn't bother me, but I would like to understand the reason for this behavior

Attachments
Screenshot.png
Screenshot.png (160.32 KiB) Viewed 2009 times

KL
PUPPY LINUX Simple fast free

User avatar
Sofiya
Posts: 2286
Joined: Tue Dec 07, 2021 9:49 pm
Has thanked: 1477 times
Been thanked: 1536 times

Re: KLV-Airedale-rc1 the Release Candidate 1 is Available!

Post by Sofiya »

All this problem is solved, third-party files have my language :thumbup:

Attachments
Снимок экрана_2022-12-12_03-35-49.png
Снимок экрана_2022-12-12_03-35-49.png (166.93 KiB) Viewed 1986 times
Снимок экрана_2022-12-12_03-31-26.png
Снимок экрана_2022-12-12_03-31-26.png (187.38 KiB) Viewed 1986 times

KL
PUPPY LINUX Simple fast free

User avatar
rockedge
Site Admin
Posts: 6551
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2757 times
Been thanked: 2628 times
Contact:

Re: KLV-Airedale-rc1 the Release Candidate 1 is Available!

Post by rockedge »

@Sofiya Nice! How did you fix it?

User avatar
Sofiya
Posts: 2286
Joined: Tue Dec 07, 2021 9:49 pm
Has thanked: 1477 times
Been thanked: 1536 times

Re: KLV-Airedale-rc1 the Release Candidate 1 is Available!

Post by Sofiya »

rockedge wrote: Mon Dec 12, 2022 12:42 am

@Sofiya Nice! How did you fix it?

edited:
Install library for internationalization gettext
for information https://ru.wikipedia.org/wiki/Gettext

Uncomment the line with your language /etc/default/libc-locales for example #ru_RU.UTF-8 UTF-8 on theru_RU.UTF-8 UTF-8

in /etc/locale.confLANG=ru_RU.UTF-8
LC_COLLATE=C

in - /etc/environment

Code: Select all

#
# This file is parsed by pam_env module
#
# Syntax: simple "KEY=VAL" pairs on separate lines
#

#LC_ALL=ru_RU.UTF-8
LANG=ru_RU.UTF-8


PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/root/my-applications/bin:/usr/games"

then type in terminal xbps-reconfigure -f glibc-locales

exit the session

Attachments
Снимок экрана_2022-12-12_04-17-08.png
Снимок экрана_2022-12-12_04-17-08.png (60.45 KiB) Viewed 1965 times
Last edited by Sofiya on Tue Dec 13, 2022 10:22 am, edited 8 times in total.

KL
PUPPY LINUX Simple fast free

User avatar
Sofiya
Posts: 2286
Joined: Tue Dec 07, 2021 9:49 pm
Has thanked: 1477 times
Been thanked: 1536 times

Re: KLV-Airedale-rc1 the Release Candidate 1 is Available!

Post by Sofiya »

rockedge wrote: Mon Dec 12, 2022 12:42 am

@Sofiya Nice! How did you fix it?

in file "chooselocale"
pop-up notifications and the restart button X have been edited.
re-uploaded

edited
option 2: language selection will be done automatically via "chooselocale" script in applications > settings > localization
"chooselocale" file attached below
put the "chooselocale" file in /usr/sbin

Add to /etc/profile

PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/root/my-applications/bin:/usr/games"
#this line gets edited by chooselocale script...
LANG=ru_RU.UTF-8
export LANG

install in /usr/share/applications/

Code: Select all

[Desktop Entry]
Encoding=UTF-8
Name=Localization
Icon=locale
Comment=Choose your country localisation
Exec=chooselocale
Terminal=false
Type=Application
Categories=X-DesktopCountry;X-System;Settings;X-XFCE-SettingsDialog;X-XFCE-SystemSettings;
GenericName=Localisation

for third-party programs also install gettext

in order for a third-party program to be in your language, you need a program file xxxx.mo with your language translation
put the file in /usr/share/locale/ folder with your language

/etc/environment

Code: Select all

#
# This file is parsed by pam_env module
#
# Syntax: simple "KEY=VAL" pairs on separate lines

#LC_ALL=ru_RU.UTF-8
#LANG=ru_RU.UTF-8


Attachments
Снимок экрана_2022-12-14_04-18-54.png
Снимок экрана_2022-12-14_04-18-54.png (94.63 KiB) Viewed 1693 times
Last edited by Sofiya on Fri Dec 16, 2022 6:48 pm, edited 27 times in total.

KL
PUPPY LINUX Simple fast free

User avatar
fredx181
Posts: 3085
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 376 times
Been thanked: 1315 times
Contact:

Re: KLV-Airedale-rc1 the Release Candidate 1 is Available!

Post by fredx181 »

Sofiya wrote:

there is another option
but then you need to replace the file /etc/profile
and install in /usr/share/applications/

I don't understand what you say "replace the file /etc/profile"
And... :
I experimented setting to my language Dutch, besides uncommenting in /etc/default/libc-locales #nl_NL.UTF-8 UTF-8 , I had to do xbps-reconfigure -f locales (that you didn't mention) which will generate the locale, without it, setting language didn't work for me.
Also I tried running "chooselocale" and it's not found (on rc2).

User avatar
Sofiya
Posts: 2286
Joined: Tue Dec 07, 2021 9:49 pm
Has thanked: 1477 times
Been thanked: 1536 times

Re: KLV-Airedale-rc1 the Release Candidate 1 is Available!

Post by Sofiya »

yes, maybe it's not there because I have a save file and it's there
in file "chooselocale"
pop-up notifications and the restart button X have been edited.
re-uploaded

edited:

place in /usr/sbin
chooselocale

Attachments
chooselocale.fake.gz
edited: make executable
(67.26 KiB) Downloaded 69 times
Localization.tar.gz
(335 Bytes) Downloaded 74 times
profile.fake.gz
edited
(825 Bytes) Downloaded 56 times
Last edited by Sofiya on Sun Jan 08, 2023 11:38 am, edited 13 times in total.

KL
PUPPY LINUX Simple fast free

User avatar
fredx181
Posts: 3085
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 376 times
Been thanked: 1315 times
Contact:

Re: KLV-Airedale-rc1 the Release Candidate 1 is Available!

Post by fredx181 »

Sofiya wrote: Mon Dec 12, 2022 5:24 pm

yes, maybe it's not there because I have a save file and it's there
put in /usr/sbin
create a symbolic link named chooselocale In the same place

Had a look at your attachments shared. Good intentions, I'm sure, but to implement in KLV what you shared needs much more explanation about how to handle, I think, anyway it's confusing for me :?: , but perhaps @rockedge can use it.

edit:

because I have a save file and it's there

Please try to differentiate between what you do and what's inside a new release.

User avatar
Sofiya
Posts: 2286
Joined: Tue Dec 07, 2021 9:49 pm
Has thanked: 1477 times
Been thanked: 1536 times

Re: KLV-Airedale-rc1 the Release Candidate 1 is Available!

Post by Sofiya »

fredx181 wrote: Mon Dec 12, 2022 6:02 pm
Sofiya wrote: Mon Dec 12, 2022 5:24 pm

yes, maybe it's not there because I have a save file and it's there
put in /usr/sbin
create a symbolic link named chooselocale In the same place

Had a look at your attachments shared. Good intentions, I'm sure, but to implement in KLV what you shared needs much more explanation about how to handle, I think, anyway it's confusing for me :?: , but perhaps @rockedge can use it.

edit:

because I have a save file and it's there

Please try to differentiate between what you do and what's inside a new release.

chooselocale end gettextneed to install
this allows me to change to my locale without xbps-reconfigure -f locales

а PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/root/my-applications/bin:/usr/games"
localizes third-party programs like tkagif... and others

Last edited by Sofiya on Tue Dec 13, 2022 10:52 am, edited 2 times in total.

KL
PUPPY LINUX Simple fast free

User avatar
Sofiya
Posts: 2286
Joined: Tue Dec 07, 2021 9:49 pm
Has thanked: 1477 times
Been thanked: 1536 times

Re: KLV-Airedale-rc1 the Release Candidate 1 is Available!

Post by Sofiya »

Thank you very much @rockedge
for a wonderful puppy :thumbup:

Attachments
Screenshot.png
Screenshot.png (315.9 KiB) Viewed 1640 times
Screenshot(1).png
Screenshot(1).png (264.85 KiB) Viewed 1653 times
Screenshot.png
Screenshot.png (207.89 KiB) Viewed 1654 times

KL
PUPPY LINUX Simple fast free

Post Reply

Return to “KLV-Airedale”