PorteuX 0.9 user problem

PorteuX - The Next Experience. It's inspired by Slax and Porteus but with heaps of improvements
User avatar
Ed_P
Contributor
Contributor
Posts: 8374
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

PorteuX 0.9 user problem

Post#1 by Ed_P » 17 Dec 2023, 19:41

porteux wrote:
17 Dec 2023, 10:34
@Ed_P, that's because libtiff has been updated. There's a workaround: go to /usr/lib64 and as root make a copy of libtiff.so.6 to libtiff.so.5 (same path).
That works. :good: Thank you. :)

Added in 10 hours 19 minutes 8 seconds:
So, in 0.8 this:

Code: Select all

dir2xzm /tmp/mod -o=/tmp/mycinnamon.xzm   &&   rm -rf /tmp/mod
produced this:

Code: Select all

guest@porteus:/mnt/nvme0n1p7/porteux/Modules$ ls -hon *08.xzm
-rwxrwxrwx 1 1000 33M Nov 11 16:25 mycinnamon08.xzm*
but in 0.9 I got this:

Code: Select all

guest@porteus:/mnt/nvme0n1p7/porteux/Modules$ ls -hon *09.xzm
-rwxrwxrwx 1 1000 576K Dec 17 18:42 mycinnamon09.xzm*
dir2xzm changed? :shock:
Ed

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.9 has been released

Post#2 by Rava » 18 Dec 2023, 09:08

Ed_P wrote:
18 Dec 2023, 06:00
So, in 0.8 this:

Code: Select all

dir2xzm /tmp/mod -o=/tmp/mycinnamon.xzm   &&   rm -rf /tmp/mod
produced this:

Code: Select all

guest@porteus:/mnt/nvme0n1p7/porteux/Modules$ ls -hon *08.xzm
-rwxrwxrwx 1 1000 33M Nov 11 16:25 mycinnamon08.xzm*
but in 0.9 I got this:

Code: Select all

guest@porteus:/mnt/nvme0n1p7/porteux/Modules$ ls -hon *09.xzm
-rwxrwxrwx 1 1000 576K Dec 17 18:42 mycinnamon09.xzm*
dir2xzm changed? :shock:
Is your mycinnamon09.xzm meant as a replacement for the 003-DE module?
or is it meant as your "settings module" ?
But since there seems to be no ISO named porteux-v0.9-cinnamon*-x86_64.iso (be the * either "current" or "stable") I presume your mycinnamon09.xzm is meant as your DE module?
Or do you use mycinnamon08.xzm (mycinnamon09.xzm) together with an official 003-DE module to turn that GUI settings into the cinnamon flavour? (no pun on cinnamon and flavour intended.)

What does a

Code: Select all

du -sch foldername/
give you for the folder you used as dir2xzm base for the mycinnamon08.xzm and for the mycinnamon09.xzm module?
Cheers!
Yours Rava

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

PorteuX 0.9 has been released

Post#3 by Ed_P » 18 Dec 2023, 17:34

Rava wrote:
18 Dec 2023, 09:08
Is your mycinnamon09.xzm meant as a replacement for the 003-DE module?
or is it meant as your "settings module" ?
Both. It's the 003-cinnamon-5.8.0-current-20230630.xzm module plus some minor tweaks. I move the taskbar to the bottom of screen then tweak the Date & Time, time zone settings. I normally keep my changes separate from ISO modules but these were so minor and porteux so new, etc, etc and rather than have two modules I made one.

How I got the small changes module I have no idea. When I reran the script later in terminal mode to document the problem better it ran fine but the size was small again:

Code: Select all

total 576
srwxrwxrwx 1 1000      0 Dec 18 02:08 dbus-ikIgGIFdC9
-rw-r--r-- 1    0 589824 Dec 18 02:11 mycinnamon.xzm
drwx------ 2 1000     40 Dec 18 02:08 xdg-runtime-guest
drwx------ 2    0     40 Dec 18 02:08 xdg-runtime-root
guest@porteux:/mnt/nvme0n1p7/porteux$ 
And with it, booting doesn't start the GUI.
I wanted to post this last night but couldn't signon to report it till now. :(
Rava wrote:
18 Dec 2023, 09:08
Or do you use mycinnamon08.xzm (mycinnamon09.xzm) together with an official 003-DE module to turn that GUI settings into the cinnamon flavour? (no pun on cinnamon and flavour intended.)
I use this 003 module PorteuX 0.5 has been released (Post by porteux #94812) with this ISO: porteux-v0.9-mate-1.27.3-current-x86_64.iso.

Added in 2 hours 51 minutes 35 seconds:
Finally able to signon again.

I found the problem and coded the fix for it. :Yahoo!:

Code: Select all

guest@porteux:/mnt/nvme0n1p7/porteux$ ls -hon Modules/
total 135M
-rwxrwxrwx 1 1000  33M Nov  5 04:31 003-cinnamon-5.8.0-current-20230630.xyzm*
-rwxrwxrwx 1 1000  70M Oct 31 20:05 firefox-119.0-x86_64-en-US.xzm*
-rwxrwxrwx 1 1000  33M Nov 11 21:25 MyCinnamon.xzm*
-rwxrwxrwx 1 1000 4.0K Nov 21 23:58 mynemochanges.xzm*
guest@porteux:/mnt/nvme0n1p7/porteux$ 
My simple script reads the 003- file, runs the xzm2dir command on it to copy all the files & folders to the new module folder. Once my Cinnamon tweak is done and the module created the new module is added to the Modules folder and I rename the 003- module so it doesn't load rather than removing the file. This works fine but fails when the 003- has been renamed as .xyzm. xzm2dir doesn't like .xyzm files. :wall: I have modified the script to test for the absence of the 003-*.xzm file and abort if not found. :)

Added in 4 minutes 43 seconds:
Rava wrote:
18 Dec 2023, 09:08
What does a

Code: Select all

du -sch foldername/
give you for the folder you used as dir2xzm base for the mycinnamon08.xzm and for the mycinnamon09.xzm module?

Code: Select all

guest@porteux:/mnt/nvme0n1p7/porteux/Modules$ du -sch 003-*
33M	003-cinnamon-5.8.0-current-20230630.xyzm
33M	total
guest@porteux:/mnt/nvme0n1p7/porteux/Modules$ 
Ed

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.9 user problem

Post#4 by Rava » 19 Dec 2023, 03:13

^
I meant using

Code: Select all

du -sch foldername/
when "foldername/" is the folder you use as source for the dir2xzm… (hence I wrote "foldername/" (even with an ending "/" that cannot be part of a filename) and not "filename") but it seems the issue solved itself (because it seems the issue was that the porteux dir2xzm script dares to check if the given output module name ends in ".xzm")
Cheers!
Yours Rava

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

PorteuX 0.9 user problem

Post#5 by Ed_P » 19 Dec 2023, 04:31

Rava wrote:
19 Dec 2023, 03:13
I meant using

Code: Select all

du -sch foldername/
when "foldername/" is the folder you use as source for the dir2xzm…
Hard to do. :happy62:

Code: Select all

xzm2dir /mnt/nvme0n1p7/porteux/Modules/003-*       -o=/tmp/mod

Code: Select all

guest@porteux:/mnt/nvme0n1p7/porteux/Modules$ du -sch 
168M	.
168M	total
guest@porteux:/mnt/nvme0n1p7/porteux/Modules$ du -sch 003-*/
du: cannot access '003-*/': No such file or directory
0	total
guest@porteux:/mnt/nvme0n1p7/porteux/Modules$ ls -hon
total 135M
-rwxrwxrwx 1 1000  33M Nov  5 04:31 003-cinnamon-5.8.0-current-20230630.xyzm*
-rwxrwxrwx 1 1000  70M Oct 31 20:05 firefox-119.0-x86_64-en-US.xzm*
-rwxrwxrwx 1 1000  33M Dec 18 14:14 MyCinnamon.xzm*
-rwxrwxrwx 1 1000 4.0K Nov 21 23:58 mynemochanges.xzm*
guest@porteux:/mnt/nvme0n1p7/porteux/Modules$ du -sch 003-cinnamon-5.8.0-current-20230630.xyzm/
du: cannot access '003-cinnamon-5.8.0-current-20230630.xyzm/': Not a directory
0	total
guest@porteux:/mnt/nvme0n1p7/porteux/Modules$ du -sch 003-cinnamon-5.8.0-current-20230630.xzm/
du: cannot access '003-cinnamon-5.8.0-current-20230630.xzm/': Not a directory
0	total
guest@porteux:/mnt/nvme0n1p7/porteux/Modules$ 
:o You mean the other command. :oops:

Code: Select all

 dir2xzm /tmp/mod -o=/tmp/MyCinnamon.xzm   &&   rm -rf /tmp/mod

Code: Select all

guest@porteux:/mnt/nvme0n1p7/porteux/Modules$ su
Password: 
root@porteux:/mnt/nvme0n1p7/porteux/Modules# du -sch /tmp/mod/
125M	/tmp/mod/
125M	total
root@porteux:/mnt/nvme0n1p7/porteux/Modules#
Ed

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

PorteuX 0.9 user problem

Post#6 by Ed_P » 22 Dec 2023, 19:29

So, how does one make a module of a link? As in a file whose Properties have: "Type Link to share library (application/x-sharedlib)"? I know how to do the file the link points to but links are smaller. Does "cp -a --parents /etc/lib64/libtiff.so.5 /tmp/mod/" copy the link or the libtiff.so.6 file? :%) :unknown:
Ed

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.9 user problem

Post#7 by Rava » 22 Dec 2023, 19:42

Why don't you use

Code: Select all

ln -s source-file target-filename
to create a link?
It doesn't matter when the link in the folder you create the module from seems broken - e.g. because it wants to link to a file in the same path as itself, but that doesn't exist in the module creation folder. But as long as that file exists in the live system, the link will be an active and valid one.

Example: The module I create for Pale Moon has this symlink in it:

Code: Select all

usr/bin/palemoon -> /opt/palemoon/palemoon
This link is only valid when the Pale Moon module is itself activated, because without it there is no folder /opt/palemoon/ and without that folder there is no binary /opt/palemoon/palemoon
Cheers!
Yours Rava

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

PorteuX 0.9 user problem

Post#8 by Ed_P » 22 Dec 2023, 21:44

Rava wrote:
22 Dec 2023, 19:42
Why don't you use

Code: Select all

ln -s source-file target-filename
to create a link?
So I should create a desktop file with the "ln -s /etc/lib64/libtiff.so.5 /etc/lib64/libtiff.so.6" command in it, put it in /.config/autostart (or /etc/xdg/autostart) and put that in my module?
Rava wrote:
22 Dec 2023, 19:42
The module I create for Pale Moon has this symlink in it:

Code: Select all

usr/bin/palemoon -> /opt/palemoon/palemoon
So the "cp -a --parents /etc/lib64/libtiff.so.5 /tmp/mod/" code I posted above will copy the symlink and not the linked file. Perfect. :good: Thank you. :beer:



Added in 6 hours 14 minutes 24 seconds:
This worked. :good: Creates a tiny 4K module. :thumbsup:

Code: Select all

cd /usr/lib64
ln -s libtiff.so.6 libtiff.so.5  # ln -s source target
cp -a -p --parents /usr/lib64/libtiff.so.5            /tmp/mod 
:punk:

Thank you Rava/LinkMstr :D
Ed

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.9 user problem

Post#9 by Rava » 23 Dec 2023, 12:01

Ed_P wrote:
23 Dec 2023, 03:58

Code: Select all

cd /usr/lib64
ln -s libtiff.so.6 libtiff.so.5  # ln -s source target
cp -a -p --parents /usr/lib64/libtiff.so.5            /tmp/mod
If that works for you, okay.
I would do it like so:

Code: Select all

# as user root
mkdir -p /tmp/mod/usr/lib64/
cd /tmp/mod/usr/lib64/
ln -s libtiff.so.6 libtiff.so.5
But I guess either way you get a mere (broken) symlink in /tmp/mod/usr/lib64/ named libtiff.so.5 - and when that settings module gets activated, the broken symlink becomes a valid one because then its target "libtiff.so.6" in the same folder as itself ( /usr/lib64/ ) is now valid.
Why do I choose to do it that way? Maybe because it is the same way the Slackware setup scripts in /var/lib/pkgtools/scripts/ do it.
Maybe take a look into some of these, I find them rather simple yet charming the way they are coded. :)
Cheers!
Yours Rava

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

PorteuX 0.9 user problem

Post#10 by Ed_P » 23 Dec 2023, 16:37

Rava wrote:
23 Dec 2023, 12:01
If that works for you, okay.
I would do it like so:
I did it as you recommended here:
Rava wrote:
21 Dec 2023, 10:27
You don't need to make a copy, a symlink also works.
as root :

Code: Select all

cd /usr/lib64
ln -s libtiff.so.6 libtiff.so.5  # ln -s source target
While I see how your new suggestion would also work it doesn't fit my standard module script format. :D
Ed

Otto
White ninja
White ninja
Posts: 14
Joined: 09 Nov 2023, 18:31
Distribution: linux

PorteuX 0.9 user problem

Post#11 by Otto » 14 Jan 2024, 00:04

porteux-v0.9-xfce-4.18-current-x86_64
The welcome screen of vivaldi browser will show up after 20 seconds or more.
Opera has almost the same delay also.

No problem with porteux-v0.8.

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

PorteuX 0.9 user problem

Post#12 by porteux » 14 Jan 2024, 21:05

Otto wrote:
14 Jan 2024, 00:04
porteux-v0.9-xfce-4.18-current-x86_64
The welcome screen of vivaldi browser will show up after 20 seconds or more.
Opera has almost the same delay also.
I failed to replicate this issue.

Have you tried in Always Fresh?

Otto
White ninja
White ninja
Posts: 14
Joined: 09 Nov 2023, 18:31
Distribution: linux

PorteuX 0.9 user problem

Post#13 by Otto » 15 Jan 2024, 21:10

The browsers have the same problem with v0.9 fresh install or after updated from v0.8 to v0.9

Otto
White ninja
White ninja
Posts: 14
Joined: 09 Nov 2023, 18:31
Distribution: linux

PorteuX 0.9 user problem

Post#14 by Otto » 02 Feb 2024, 13:00

The browsers problem solved using porteux-v1.0-xfce-4.18-current-x86_64 :celebrate3:

Post Reply