PorteuX 0.8 has been released

PorteuX - The Next Experience. It's inspired by Slax and Porteus but with heaps of improvements
User avatar
Rava
Contributor
Contributor
Posts: 5416
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

PorteuX 0.8 has been released

Post#61 by Rava » 30 Nov 2023, 05:59

Windoofs; spying master macOS; Android, but not one of the oldest and much stable Linux OS, Slackware. Oh well. :P
Cheers!
Yours Rava

User avatar
M. Eerie
Moderator
Moderator
Posts: 622
Joined: 31 Aug 2017, 21:18
Distribution: Nemesis Xfce/MATE x64

PorteuX 0.8 has been released

Post#62 by M. Eerie » 30 Nov 2023, 12:45

How can I change the keyboard layout to my language? I have tried using the cheatcode kmap=es and also in the porteux.cfg file but I don't succeed.

Every time I start, I have to press ALT+F2 and type "setxkbmap es".
> Does not compute_ 🖖

https://forum.porteus.org/viewtopic.php?p=94310#p94310
https://forum.porteus.org/viewtopic.php?p=84002#p84002
https://forum.porteus.org/viewtopic.php?p=77174#p77174
https://forum.porteus.org/viewtopic.php?f=39&t=8584

beny
Full of knowledge
Full of knowledge
Posts: 2098
Joined: 02 Jan 2011, 11:33
Location: italy

PorteuX 0.8 has been released

Post#63 by beny » 30 Nov 2023, 13:25

hi M.Eerie ,you can tweak the /usr/share/X11/xorg.conf.d/91-keyboard-layout-libinput.conf with your language i have done a try from us to it and work,and you can put a copy of this file into the etc/X11 try if work for you, i am on porteux0.8

User avatar
M. Eerie
Moderator
Moderator
Posts: 622
Joined: 31 Aug 2017, 21:18
Distribution: Nemesis Xfce/MATE x64

PorteuX 0.8 has been released

Post#64 by M. Eerie » 30 Nov 2023, 15:33

Thanks, beny.

It is strange that the same cheatcode works in Porteus but not in Porteux. I guess it is due to the different initrd.
> Does not compute_ 🖖

https://forum.porteus.org/viewtopic.php?p=94310#p94310
https://forum.porteus.org/viewtopic.php?p=84002#p84002
https://forum.porteus.org/viewtopic.php?p=77174#p77174
https://forum.porteus.org/viewtopic.php?f=39&t=8584

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

PorteuX 0.8 has been released

Post#65 by Rava » 30 Nov 2023, 17:49

M. Eerie wrote:
30 Nov 2023, 15:33
It is strange that the same cheatcode works in Porteus but not in Porteux. I guess it is due to the different initrd.
Would that not be because of the different kernel, not initrd?
These are about kernel cheatcodes after all.

And a question remains: is the cheat code mentioned in the porteux cheat code text?
Cheers!
Yours Rava

beny
Full of knowledge
Full of knowledge
Posts: 2098
Joined: 02 Jan 2011, 11:33
Location: italy

PorteuX 0.8 has been released

Post#66 by beny » 30 Nov 2023, 18:21

hi all, the cheatcode work you have to use kmap=es or de or it in my system confirmed that work, i have a porteux current with the last 6.6.3 kernel PS:and i use the text mode with changes and also the builded kernel

User avatar
M. Eerie
Moderator
Moderator
Posts: 622
Joined: 31 Aug 2017, 21:18
Distribution: Nemesis Xfce/MATE x64

PorteuX 0.8 has been released

Post#67 by M. Eerie » 30 Nov 2023, 18:55

Rava wrote:
30 Nov 2023, 17:49
Would that not be because of the different kernel, not initrd?
Nope.
Rava wrote:
30 Nov 2023, 17:49
And a question remains: is the cheat code mentioned in the porteux cheat code text?
As previously stated, I've tried too with config file porteux.cfg. Didn't work. Earlier versions have had similar problems with some cheatcodes too, so I don't know what's going on.
I have checked the script /etc/rc.d/rc.M and I have recreated the steps verifying that the 00-keyboard.conf file is generated correctly, so the only explanation I can find is that for some reason that config is not being read.

On the other hand, I've tried to follow the steps from beny's advice. I've created a file in $PORTDIR/rootcopy/etc/X11/xorg.conf.d/00-keyboard.conf with the following content:

Code: Select all

Section "InputClass"
                Identifier "system-keyboard"
                MatchIsKeyboard "on"
                Option "XkbLayout" "es"
                Option "XkbVariant" "es"
                Option "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection
Nothing of that have worked.

I can only think of launching an rc script at startup that executes "setxkbmap es", but I don't know exactly where to put it and how to activate it.

Anyway, it should be addressed, as can be seen from beny's answer.
> Does not compute_ 🖖

https://forum.porteus.org/viewtopic.php?p=94310#p94310
https://forum.porteus.org/viewtopic.php?p=84002#p84002
https://forum.porteus.org/viewtopic.php?p=77174#p77174
https://forum.porteus.org/viewtopic.php?f=39&t=8584

User avatar
M. Eerie
Moderator
Moderator
Posts: 622
Joined: 31 Aug 2017, 21:18
Distribution: Nemesis Xfce/MATE x64

PorteuX 0.8 has been released

Post#68 by M. Eerie » 30 Nov 2023, 19:00

beny wrote:
30 Nov 2023, 18:21
i have a porteux current with the last 6.6.3
I'm using porteus current with 6.6.1 kernel.

Code: Select all

$ uname -a
Linux porteux.example.net 6.6.1-porteux #1 SMP PREEMPT_DYNAMIC Tue Nov 14 22:40:29 CET 2023 x86_64 Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz GenuineIntel GNU/Linux

$ cat /proc/cmdline 
quiet BOOT_IMAGE=/boot/syslinux/vmlinuz amd_iommu=force_enable iommu=pt idle=nomwait rcu_nocbs=0-15 processor.max_cstate=3 initrd=/boot/syslinux/initrd.zst

$ ls /mnt/live/memory/images/
000-kernel-6.6.1.xzm/                   001-core-current-20231115.xzm/
002-xorg-current-20231115.xzm/          002-xtra-current-20231115.xzm/
003-xfce-4.18-current-20231115.xzm/     005-my-addons.xzm/
009-firefox-profile-20231130-1748.xzm/  firefox-latest-120.0-x86_64-1.xzm/
yt-dlp-2023.10.13-noarch.xzm/
Always fresh mode behaves the same.
> Does not compute_ 🖖

https://forum.porteus.org/viewtopic.php?p=94310#p94310
https://forum.porteus.org/viewtopic.php?p=84002#p84002
https://forum.porteus.org/viewtopic.php?p=77174#p77174
https://forum.porteus.org/viewtopic.php?f=39&t=8584

beny
Full of knowledge
Full of knowledge
Posts: 2098
Joined: 02 Jan 2011, 11:33
Location: italy

PorteuX 0.8 has been released

Post#69 by beny » 30 Nov 2023, 19:16

M.Eerie you have to modify the resident file don't to make a new one /usr/share/X11/xorg.conf.d/90-keyboard-layout-evdev.conf or the 91 the txt are the same

Code: Select all

 Section "InputClass"
	Identifier "keyboard-all"
	MatchIsKeyboard "on"
	MatchDevicePath "/dev/input/event*"
	Driver "evdev"
	Option "XkbLayout" "es"
	#Option "XkbVariant" ""
	Option "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection

# READ THIS FOR CUSTOM KEYBOARD INFORMATION
#
#  If you want to add a custom model/layout/variant to X, you will need to COPY
#  this file to /etc/X11/xorg.conf.d/ and edit that copy.  After editing it to
#  suit, you will need to restart X.
#
#  Here's an example of the lines from above:
#
# Section "InputClass"
#	Identifier "keyboard-all"
#	MatchIsKeyboard "on"
#	MatchDevicePath "/dev/input/event*"
#	Driver "evdev"
#	Option "XkbLayout" "es"
#	Option "XkbVariant" "intl"
#	Option "XkbOptions" "compose:rwin,terminate:ctrl_alt_bksp"
# EndSection
#
#  Many desktop environments, including KDE and Xfce, have their own methods to
#  configure keyboard layouts and such if you'd like to use them.
#
#  If you prefer to use the "old" way of configuring keyboards (without input 
#  device hotplugging), then you'll need to add the following lines to the 
#  ServerFlags section of /etc/X11/xorg.conf:
#    Option   "AllowEmptyInput"     "false"
#    Option   "AutoAddDevices"      "false"
#    Option   "AutoEnableDevices"   "false"
#  Alternatively, you can break this up into separate "stubs" in the xorg.conf.d/
#  directory, but that's your call.  Assuming you elect to keep a monolithic 
#  /etc/X11/xorg.conf file, you can now edit the Keyboard section as usual.

                                                             

porteux
Samurai
Samurai
Posts: 175
Joined: 12 Mar 2023, 22:10
Distribution: PorteuX

PorteuX 0.8 has been released

Post#70 by porteux » 30 Nov 2023, 21:40

@M. Eerie, if you're not using wayland (as it seems you're not, since your log shows Xfce 4.18) you shouldn't have any problem setting the keyboard layout.

I'm not sure exactly what you mean by 'don't succeed'. If you open PorteuX Keyboard Layout and change from there, does it work?

Also, have you tried another layout, like us English (US) with variant alt-intl just to make sure you can put accents and at least something is changing system-wise? I'm currently using this in my porteux/porteux.cfg and it's working:

Code: Select all

kmap=us:alt-intl

User avatar
M. Eerie
Moderator
Moderator
Posts: 622
Joined: 31 Aug 2017, 21:18
Distribution: Nemesis Xfce/MATE x64

PorteuX 0.8 has been released

Post#71 by M. Eerie » 30 Nov 2023, 22:11

No way...
beny wrote:
30 Nov 2023, 13:25
and you can put a copy of this file into the etc/X11
^ I tried to create the file 00-keyboard.conf in /etc/X11/xorg.conf.d as the rc.M startup script does.
It didn't work
beny wrote:
30 Nov 2023, 19:16
don't to make a new one
So, I recreated the files 90-keyboard-layout-evdev.conf and 91-keyboard-layout-libinput.conf both with

Code: Select all

Option "XkbLayout" "es"
modified in the $PORTDIR/rootcopy/usr/share/X11/xorg.conf.d/ path.
It didn't work either
porteux wrote:
30 Nov 2023, 21:40
you're not using wayland
Right. I'm Xorgistic :roll:
porteux wrote:
30 Nov 2023, 21:40
what you mean by 'don't succeed'
I mean I can't set my keyboard layout to reflect the settings from either cheatcode kmap=es or porteux.cfg file with that setting.
porteux wrote:
30 Nov 2023, 21:40
If you open PorteuX Keyboard Layout and change from there, does it work?
When I open PorteuX Keyboard Layout, I get the following image

Image

but when I test, the mapping remains the American one. That slash appeared when I've pressed the dash key.

It's crazy
> Does not compute_ 🖖

https://forum.porteus.org/viewtopic.php?p=94310#p94310
https://forum.porteus.org/viewtopic.php?p=84002#p84002
https://forum.porteus.org/viewtopic.php?p=77174#p77174
https://forum.porteus.org/viewtopic.php?f=39&t=8584

User avatar
M. Eerie
Moderator
Moderator
Posts: 622
Joined: 31 Aug 2017, 21:18
Distribution: Nemesis Xfce/MATE x64

PorteuX 0.8 has been released

Post#72 by M. Eerie » 30 Nov 2023, 22:21

M. Eerie wrote:
30 Nov 2023, 18:55
launching an rc script at startup that executes "setxkbmap es", but I don't know exactly where to put it and how to activate it
In Nemesis I have
$PORTDIR/rootcopy/etc/local.d/some-script.start
which manages the boot sequence.

Can anyone answer how can I execute a certain script at boot time in PorteuX?
I'd like to try and recreate my workflow from Nemesis.
Thanks
> Does not compute_ 🖖

https://forum.porteus.org/viewtopic.php?p=94310#p94310
https://forum.porteus.org/viewtopic.php?p=84002#p84002
https://forum.porteus.org/viewtopic.php?p=77174#p77174
https://forum.porteus.org/viewtopic.php?f=39&t=8584

beny
Full of knowledge
Full of knowledge
Posts: 2098
Joined: 02 Jan 2011, 11:33
Location: italy

PorteuX 0.8 has been released

Post#73 by beny » 30 Nov 2023, 22:39

hi, work also in es i have type the key near the L and i have the ñ so i think is ok,in my system i have also the whole xcb group of x, try rc.local the script located here start at boot time you need keyboard first so..

Code: Select all

   #!/bin/bash
#
# /etc/rc.d/rc.local:  Local system initialization script.
#
# Put any local startup commands in here.  Also, if you have
# anything that needs to be run at shutdown time you can
# make an /etc/rc.d/rc.local_shutdown script and put those
# commands in there.

                                                  

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

PorteuX 0.8 has been released

Post#74 by Rava » 30 Nov 2023, 22:57

M. Eerie wrote:
30 Nov 2023, 18:55
I can only think of launching an rc script at startup that executes "setxkbmap es", but I don't know exactly where to put it and how to activate it.
Doesn't have porteux also an /etc/rc.d/rc.local that gets executed at startup?

File details and content of 001-core-stable-20231114.xzm /etc/rc.d/rc.local (mloop'ed that module in Porteus 5.01):

Code: Select all

guest@rava:/mnt/loop/etc/rc.d$ ls -o rc.local
-rwxr-xr-x 1 root 274 2021-04-23 20:31 rc.local

Code: Select all

#!/bin/bash
#
# /etc/rc.d/rc.local:  Local system initialization script.
#
# Put any local startup commands in here.  Also, if you have
# anything that needs to be run at shutdown time you can
# make an /etc/rc.d/rc.local_shutdown script and put those
# commands in there.

Added in 3 minutes 8 seconds:
By the md5sum it is an exact identical file that is also part of Porteus 5.01:

Code: Select all

guest@rava:/mnt/live/memory/images$ md5sum 001-core.xzm/etc/rc.d/rc.local
583386a1a839ae04025629d202781a2c  001-core.xzm/etc/rc.d/rc.local
guest@rava:/mnt/live/memory/images$ md5sum /mnt/loop/etc/rc.d/rc.local
583386a1a839ae04025629d202781a2c  /mnt/loop/etc/rc.d/rc.local
Added in 1 minute 40 seconds:
By the size alone (compared to the "empty" /etc/rc.d/rc.local that gets shipped with Porteus and Porteux), you see that I make quite some use of initializing own stuff via rc.local :

Code: Select all

guest@rava:/etc/rc.d$ ls -o rc.local
-rwxr-xr-x 1 root 4524 2023-11-10 11:42 rc.local
Cheers!
Yours Rava

User avatar
M. Eerie
Moderator
Moderator
Posts: 622
Joined: 31 Aug 2017, 21:18
Distribution: Nemesis Xfce/MATE x64

PorteuX 0.8 has been released

Post#75 by M. Eerie » 01 Dec 2023, 00:12

Thanks for your help.

I still can't set my keyboard layout at desktop startup. Not even adding "setxkbmap es" in rc.local.

I will continue to investigate.
> Does not compute_ 🖖

https://forum.porteus.org/viewtopic.php?p=94310#p94310
https://forum.porteus.org/viewtopic.php?p=84002#p84002
https://forum.porteus.org/viewtopic.php?p=77174#p77174
https://forum.porteus.org/viewtopic.php?f=39&t=8584

Post Reply