gslapt-0.5.9 for Port 5.0 - GUI for slapt-get (Slackware Packages Installation, Graphical USM alternative)

Post links to your 64bit module repos here. Repo maintainers are responsible for resolving any issues caused by their xzm's.
User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

gslapt-0.5.9 for Port 5.0 - GUI for slapt-get (Slackware Packages Installation, Graphical USM alternative)

Post#1 by Rava » 01 Oct 2022, 06:02

gslapt-0.5.9-x86_64-4gv.xzm - based on https://download.salixos.org/x86_64/15. ... 64-4gv.txz
(found via a link provided by beny : https://slakfinder.org/index.php?act=se ... e=#results )

While it's a GUI (I heard some folks like that) what ncmprhnsbl wrote in the other thread about gslapt is still oh so true:
ncmprhnsbl wrote:
01 Oct 2022, 04:02
did no one realize: you gots a package manager? you know, like what this topic's about.. and even better a wrapper to make a module :O

Code: Select all

getmod gslapt
about gslapt: it's nice and all, but it's only really good for installing packages (to changes for example) .. it's somewhat of an impediment to making a module
(I mainly provided it here to promote the symlinking psu to gksu to make all programs work in Port that use gksu - see below.)

Cave! At the time of writing of this article the server sided MIME type of the above link on https://download.salixos.org/ is erroneously set to
Length: 133208 (130K) [text/plain]
-- meaning when you click the link in e.g Firefox or Palemoon or any browser that plays by the rules of MIME types as reported by the server (as all browsers should) it would open the file as it would open a text file resulting in something like this:
Image

If you would want to build your own module by downloading gslapt-0.5.9-x86_64-4gv.txz yourself, you can

● choose "Save as" in the context menu (right clicking on the link - left clicking if you set your mouse to left-hand-use)

● or use wget instead:

Code: Select all

guest@porteus:~$ cd /tmp/  # cd into any folder you temporarily want the txz saved prior to txz2xzm it
guest@porteus:/tmp$ wget https://download.salixos.org/x86_64/15.0/salix/xap/gslapt-0.5.9-x86_64-4gv.txz
[wget download info removed]
Testuser reminded us in here Porteus 5.0's USM replacement: slapt-get, getmod (Post by Testuser #90346) that starting it as guest would fail. Trying it myself gave me this error:
Image
Reason: gslapt (and some other programs) uses gksu - while Port uses psu as graphical su.

●● You can fix that for all programs that use gksu by doing this as root in the terminal: ●●

Code: Select all

root@porteus:~# cd /usr/bin/
root@porteus:/usr/bin# ln -s psu gksu
root@porteus:/usr/bin# 
After that when you open gslapt via the main menu via System / Gslapt Package Manager (or executing it as "gslapt-polkit" guest in a terminal) you get this:
Image
after typing your correct root password (I change mine to a more secure one by a script that uses the salted hash of the password and is readable only by root) gslapt opens:
Image
__________________________________________

and finally here the download link:
gslapt-0.5.9-x86_64-4gv.xzm (140 kB) on filehort.de
md5sum is as filehorst reports it: 61ad7c264307360dc9a041cdd422cf7e

Since filehorst speaks German, a short HOWTO translation for downloading files:

To get it, first wait 15 seconds "Dein Download wird jetzt vorbereitet." (Your download is being prepared)
Then click "Jetzt zur Download-Seite" (Now to the download page)
Then click "Dein Download steht nun bereit. Klicke hier, um ihn zu starten." (Your download is ready. Click here to start downloading it)
Cheers!
Yours Rava

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

gslapt-0.5.9 for Port 5.0 - GUI for slapt-get (Slackware Packages Installation, Graphical USM alternative)

Post#2 by Ed_P » 01 Oct 2022, 06:28

Rava gslapt worked when I used txz2xzm on the gslapt*.txz file I downloaded with wget earlier.
( wget https://download.salixos.org/x86_64/15. ... 64-4gv.txz -O /tmp/gslapt-0.5.9-x86_64-4gv.txz )

Code: Select all

guest@porteus:/tmp$ txz2xzm *.txz
Verifying package gslapt-0.5.9-x86_64-4gv.txz.
Installing package gslapt-0.5.9-x86_64-4gv.txz:
PACKAGE DESCRIPTION:
# gslapt (a GTK version of slapt-get)
# 
# gslapt is a graphical package manager for slackware and slackware
# based distributions that uses the slapt-get command line interface
# package management tool.
# 
# Homepage: http://software.jaos.org/
# 
# Please translate:
# http://software.jaos.org/git/gslapt/tree/po
# 
Package gslapt-0.5.9-x86_64-4gv.txz installed.
Creating /tmp/gslapt-0.5.9-x86_64-4gv.xzm

guest@porteus:/tmp$ gslapt
bash: gslapt: command not found
guest@porteus:/tmp$ su
Password: 
root@porteus:/tmp# gslapt
Failed to open package_data
package_data: No such file or directory
Perhaps you want to run --update?
Once converted I activated the xzm module and executed the gslapt command. As root it ran and the GUI window is open. No gksu problem with my 5.0 Cinnamon system.

Image
Ed

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

gslapt-0.5.9 for Port 5.0 - GUI for slapt-get (Slackware Packages Installation, Graphical USM alternative)

Post#3 by Rava » 01 Oct 2022, 07:31

Ed_P wrote:
01 Oct 2022, 06:28
Rava gslapt worked when I used txz2xzm on the gslapt*.txz file
It did not.
When you ran it as guest:
Ed_P wrote:
01 Oct 2022, 06:28
guest@porteus:/tmp$ gslapt
bash: gslapt: command not found
it did NOT work.

Try executing it from your main DE menu as I mentioned in my initial post
Rava wrote:
01 Oct 2022, 06:02
open gslapt via the main menu via System / Gslapt Package Manager
Please try opening gslapt via your DE main menu System / Gslapt Package Manager and report how that went for you.

It worked after you su root manually, but my post refers to the guest user wanting to start gslapt.
And since it's a GUI, preferable by starting if from the DE's main menu as described above several times.
Cheers!
Yours Rava

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

gslapt-0.5.9 for Port 5.0 - GUI for slapt-get (Slackware Packages Installation, Graphical USM alternative)

Post#4 by Ed_P » 01 Oct 2022, 15:23

Rava wrote:
01 Oct 2022, 07:31
Please try opening gslapt via your DE main menu System / Gslapt Package Manager and report how that went for you.
There is no such entry in my menu. Where did you get yours?
Ed

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

gslapt-0.5.9 for Port 5.0 - GUI for slapt-get (Slackware Packages Installation, Graphical USM alternative)

Post#5 by Rava » 01 Oct 2022, 16:06

Like I said, mine is under System / Gslapt Package Manager
Look into /mnt/live/memory/images/gslapt-0.5.9-x86_64-4gv.xzm/usr/share/applications/gslapt.desktop
It says

Code: Select all

Categories=GTK;System;
and also since it has a .desktop only for KDE - gslapt-kde.desktop - gslapt.desktop also states

Code: Select all

NotShowIn=KDE
Added in 3 minutes 8 seconds:
Your /usr/share/applications/gslapt.desktop should be identical to the one in my module since we both based our module on the same txz.

But it would not hurt downloading my module from filehorst and activate that instead of yours.
Cheers!
Yours Rava

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

gslapt-0.5.9 for Port 5.0 - GUI for slapt-get (Slackware Packages Installation, Graphical USM alternative)

Post#6 by Ed_P » 01 Oct 2022, 16:46

Well there is a desktop, in fact 2, in the module.

Code: Select all

guest@porteus:~$ ls /mnt/live/memory/images/gslapt-0.5.9-x86_64-4gv.xzm/usr/share/applications
gslapt-kde.desktop  gslapt.desktop
guest@porteus:~$ 
But no entry in the menu. I don't have a System group in the menu, I have an Administration one. And I see your gksu concern.

Code: Select all

Exec=gksu /usr/sbin/gslapt

Code: Select all

Comment=Install, remove and upgrade software packages
Icon=gslapt
Terminal=false
Categories=GTK;System;
StartupNotify=true
Type=Application
NotShowIn=KDE
GParted which shows in my Administration menu shows this:

Code: Select all

Categories=GNOME;System;Filesystem;
Added in 10 minutes 52 seconds:
If I change the

Code: Select all

gksu /usr/sbin/gslapt
line to

Code: Select all

psu /usr/sbin/gslapt
gslapt starts.
Ed

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

gslapt-0.5.9 for Port 5.0 - GUI for slapt-get (Slackware Packages Installation, Graphical USM alternative)

Post#7 by Rava » 01 Oct 2022, 17:02

Ed_P wrote:
01 Oct 2022, 16:57
If I change the

Code: Select all

gksu /usr/sbin/gslapt
line to

Code: Select all

psu /usr/sbin/gslapt
gslapt starts.
That also works. My approach

Code: Select all

root@porteus:~# cd /usr/bin/
root@porteus:/usr/bin# ln -s psu gksu
has the advantage that after you have done that ( and saved the symlink in your system e.g. by porteus/rootcopy/ or by using changes or manually creating a settings-module ) any program you might activate in the future that relies on gksu will now also work out of the box.

While your approach needs a hack for each and every new program that wants gksu.

Choose for yourself which approach is the less work in the long run. :D
Cheers!
Yours Rava

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

gslapt-0.5.9 for Port 5.0 - GUI for slapt-get (Slackware Packages Installation, Graphical USM alternative)

Post#8 by Ed_P » 01 Oct 2022, 17:11

Well, since this is the 1st Porteus app that uses gksu

Code: Select all

echo toor | sudo -S sed -i 's^=gksu ^=psu ^' /usr/share/applications/gslapt.desktop
The bigger issue is why is it not in my menu.
Ed

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

gslapt-0.5.9 for Port 5.0 - GUI for slapt-get (Slackware Packages Installation, Graphical USM alternative)

Post#9 by Rava » 01 Oct 2022, 17:16

Ed_P wrote:
01 Oct 2022, 17:11
The bigger issue is why is it not in my menu.
Try hacking your module into its .desktop to have this:

Code: Select all

Categories=GTK;System;Filesystem;
When XFCE doesn't have a category, e.g. "Games", it will be created. After my xmahjongg-3.7-x86_64-1_rava.xzm got activated in XFCE, I have it in Category (sub-menu) Games.
Without it I do not have a category of "Games".

Don't ask me why Cinnamon doesn't do the same.

Added in 3 minutes 32 seconds:
FYI, this
Image
is what my System sub-menu currently looks like.
Cheers!
Yours Rava

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

gslapt-0.5.9 for Port 5.0 - GUI for slapt-get (Slackware Packages Installation, Graphical USM alternative)

Post#10 by Ed_P » 01 Oct 2022, 18:34

Rava wrote:
01 Oct 2022, 17:19
Try hacking your module into its .desktop to have this:

Code: Select all

Categories=GTK;System;Filesystem;
That does indeed work. Even without the ; at the end and without requiring a reboot.

So for Cinnamon one needs:

Code: Select all

echo toor | sudo -S sed -i 's^=gksu ^=psu ^' /usr/share/applications/gslapt.desktop
            sudo -S sed -i 's^;System;^;System;Filesystem;^' /usr/share/applications/gslapt.desktop
And for those of us who keep less used modules in the /optional folder:

Code: Select all

#!/bin/sh

OPTIONAL="/mnt/$DRV/porteus5.0/Optional"
MODULE="gslapt-0.5.9-x86_64-4gv.xzm"
PSWD=toor
#set -x;

if [ ! -e /mnt/live/memory/images/$MODULE ]; then
   echo $PSWD | sudo -S activate $OPTIONAL/$MODULE > /dev/null 2>&1 &
   sleep 2
   sudo -S sed -i 's^=gksu ^=psu ^' /usr/share/applications/gslapt.desktop
   sudo -S sed -i 's^;System;^;System;Filesystem;^' /usr/share/applications/gslapt.desktop
   sudo -S /usr/sbin/gslapt
fi
Ed

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

gslapt-0.5.9 for Port 5.0 - GUI for slapt-get (Slackware Packages Installation, Graphical USM alternative)

Post#11 by francois » 20 Feb 2023, 02:20

I have downloaded, converted into a module and activated gslapt-0.5.9-x86_64-4gv.xzm

It works fine for me under xfce.

However, what is the use under porteus if you cannot produce a module from the downloaded packages to be classified in the module or optional folders? Otherwise, this will yield after some time a great changes folder and will slow down the booting time.

To modulate or not to modulate?
B)
Prendre son temps, profiter de celui qui passe.

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

gslapt-0.5.9 for Port 5.0 - GUI for slapt-get (Slackware Packages Installation, Graphical USM alternative)

Post#12 by Ed_P » 20 Feb 2023, 06:03

Ed

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

gslapt-0.5.9 for Port 5.0 - GUI for slapt-get (Slackware Packages Installation, Graphical USM alternative)

Post#13 by francois » 20 Feb 2023, 11:39

Sure I do. Getmod provides the Salix pasture.
Prendre son temps, profiter de celui qui passe.

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

gslapt-0.5.9 for Port 5.0 - GUI for slapt-get (Slackware Packages Installation, Graphical USM alternative)

Post#14 by francois » 21 Feb 2023, 11:05

@rava:
Have a look at what bigbass had to say and intended to do with gslapt 12 years ago.
Using slapt-get as a package manager for Porteus
Prendre son temps, profiter de celui qui passe.

Post Reply