LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-20-2016, 05:21 PM   #1
ScreamerX
LQ Newbie
 
Registered: Mar 2015
Posts: 9

Rep: Reputation: Disabled
A graphical user interface for sbopkg based on PyQt


This GUI is similar to the Synaptic Package Manager ... just simpler.

http://gernot-walzl.at/index.php?nav...e%2Fsbopkg_gui
 
Old 06-20-2016, 06:16 PM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,226

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Cool! I didn't know about that.
 
Old 06-20-2016, 06:23 PM   #3
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: Disabled
Thanks for sharing.

Looks nice but doesn't start here yet (not clean at all Slackware 14.1 32-bit):
Code:
bash-4.2# sbopkg_gui
Traceback (most recent call last):
  File "/usr/bin/sbopkg_gui", line 552, in <module>
    window = MainWindow()
  File "/usr/bin/sbopkg_gui", line 171, in __init__
    self.init_slackbuilds()
  File "/usr/bin/sbopkg_gui", line 209, in init_slackbuilds
    version = elements[len(elements)-3]
IndexError: list index out of range
bash-4.2#
If you need more info, just ask (tomorrow: 1:24 AM here).

PS I forgot: Welcome to this forum!

Last edited by Didier Spaier; 06-21-2016 at 04:56 AM. Reason: PS added.
 
Old 06-20-2016, 07:41 PM   #4
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
works well on current though
 
Old 06-21-2016, 02:41 AM   #5
solarfields
Senior Member
 
Registered: Feb 2006
Location: slackalaxy.com
Distribution: Slackware, CRUX
Posts: 1,449

Rep: Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997
works fine on Slackware64 14.1 here. It is interesting to see that the program also considers packages that were not installed from SBo, but are nevertheless available at SBo. For example I have a lot of things installed from SlackOnly and sbopkg gui sees them fine and warns that they were installed from an alternative source.

Installed dependencies are listed in green, which is useful. However, dependencies are listed on a single row, hence when they are too many a user cannot see them all, unless the window is stretched.

So far it looks good
 
Old 06-21-2016, 06:32 AM   #6
phi11ip
Member
 
Registered: Jul 2007
Location: Nottingham, UK
Distribution: Slackware64-current
Posts: 93

Rep: Reputation: 23
Looking good to me. Thinks it will be an useful tool. Thanks for the contribution.
 
Old 06-21-2016, 08:50 AM   #7
FeyFre
Member
 
Registered: Jun 2010
Location: Ukraine, Vinnitsa
Distribution: Slackware
Posts: 351

Rep: Reputation: 30
Hardcoded pathes:
cfg_sbopkg_gui['slackbuilds_dir'] = '/var/lib/sbopkg/SBo'
My sbopkg's sandbox located elsewhere.

Btw, maybe it worth to spend time adapting(if needed) sbopkg to xdialog(Kdialog, qdialog?). At least would be adapting not reinventing.
 
Old 06-21-2016, 09:20 AM   #8
phenixia2003
Senior Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008
Hello,

Quote:
Originally Posted by FeyFre View Post
Hardcoded pathes:
cfg_sbopkg_gui['slackbuilds_dir'] = '/var/lib/sbopkg/SBo'
My sbopkg's sandbox located elsewhere.
can be fixed easily:
Code:
--- sbopkg_gui.orig     2016-06-21 16:20:57.462408695 +0200
+++ sbopkg_gui  2016-06-21 16:20:57.462408695 +0200
@@ -50,7 +50,7 @@
 
 
 def read_config(cfg_sbopkg_gui):
-    cfg_sbopkg_gui['slackbuilds_dir'] = '/var/lib/sbopkg/SBo'
+    cfg_sbopkg_gui['slackbuilds_dir'] = os.getenv("SBODIR",'/var/lib/sbopkg/SBo')
     branches = list()
     if os.path.isdir(cfg_sbopkg_gui['slackbuilds_dir']):
         for name in os.listdir(cfg_sbopkg_gui['slackbuilds_dir']):
With that, you can, set SBODIR in your bashrc, or directly on the command line :

Code:
$ SBODIR=/path/to/my/sbo/dir sbopkg_gui
--
SeB
 
1 members found this post helpful.
Old 06-21-2016, 10:04 AM   #9
ScreamerX
LQ Newbie
 
Registered: Mar 2015
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by FeyFre View Post
Hardcoded pathes:
cfg_sbopkg_gui['slackbuilds_dir'] = '/var/lib/sbopkg/SBo'
My sbopkg's sandbox located elsewhere.

Btw, maybe it worth to spend time adapting(if needed) sbopkg to xdialog(Kdialog, qdialog?). At least would be adapting not reinventing.
Default paths are hardcoded, yes.
Additionally, they can easily be configured to your needs:
Code:
cat >> /etc/sbopkg_gui/sbopkg_gui.conf.py << EOF
cfg_sbopkg_gui['slackbuilds_dir'] = '/elsewhere'
EOF
 
2 members found this post helpful.
Old 06-21-2016, 10:26 AM   #10
solarfields
Senior Member
 
Registered: Feb 2006
Location: slackalaxy.com
Distribution: Slackware, CRUX
Posts: 1,449

Rep: Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997
ScreamerX,

your (I suppose you are the author) site has some interesting scripts. Could you tell more about sbopkg+?
 
Old 05-01-2017, 05:29 PM   #11
ScreamerX
LQ Newbie
 
Registered: Mar 2015
Posts: 9

Original Poster
Rep: Reputation: Disabled
Are there any suggestions for improvements?
 
Old 05-01-2017, 08:44 PM   #12
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
I just gave it a try, and it works well. It recognized and warned about re-installing packages that came from a different repository, which is helpful. One thing that is a bit inconvenient about it is that it requires sudo for every command, and it gets tedious entering your password many times. I recognize that this is because the GUI is normally run as a regular user, so I'm not sure if there's a way around that. Maybe kdesu or similar?

Other than that, in some ways this is very similar to the ncurses UI I've written, called sboui, that works with sbopkg, sbotools, etc. If you don't mind, I can share some things that I've put into that tool that I think would be helpful with this too:
  • Allowing the user to modify sbopkg command line options and set global environment variables. For example, I like to use MAKEFLAGS="-j 4" with SlackBuild scripts to compile in parallel by default.
  • Considering above, it's not much more of a step to also support sbotools and custom package managers, if you allow the install and upgrade commands to be variable. Of course, it's totally up to you if you actually want your tool to do that. Feel free to borrow from sboui's source code or default configuration file if you are interested.
  • sbopkg_gui says that my virtualbox-kernel can be upgraded, but it is actually at the latest version. The SlackBuild appends _$(uname -r) to the version number, so maybe that's why? I'm also running a non-default kernel. I'm not sure what criteria sbopkg_gui uses to determine what is upgradable.
Hopefully that is helpful, and thanks for sharing this tool!

Last edited by montagdude; 05-01-2017 at 08:45 PM.
 
Old 06-06-2017, 10:35 PM   #13
francois.e
Member
 
Registered: Sep 2008
Posts: 72

Rep: Reputation: 3
Sorry for resurecting that thread, it is the only one on the net about sbopkg_gui.

I get the following error:
root@porteus:~# sbopkg_gui
IOError: [Errno 2] No such file or directory: '/var/lib/sbopkg/SBo/SLACKBUILDS.TXT'

I do not know if this has to do with the following file structure:
/var/lib/sbopkg/SBo/14.2/SLACKBUILDS.TXT

Any suggestion?

Last edited by francois.e; 06-06-2017 at 10:38 PM. Reason: gave additional info hoping it to be pertinent
 
Old 06-06-2017, 10:50 PM   #14
francois.e
Member
 
Registered: Sep 2008
Posts: 72

Rep: Reputation: 3
Just found that it works only in normal user mode.

Thanks.
 
Old 06-06-2017, 11:11 PM   #15
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
You're always welcome to start your own thread rather than resurrecting an old one.

In regards to this error, my first guess is that you don't have the version set up, but I've never used sbopkg_gui, so I don't know what it needs set itself vs what it uses of from the regular sbopkg.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Graphical user Interface Fedora 23 Cinnamon villumanati Fedora 5 12-13-2015 09:48 PM
Hello!Anyone how to install graphical user interface in debian llmi187 Debian 2 11-18-2012 08:06 AM
pspp graphical user interface vavlis Linux - Newbie 1 03-03-2009 09:33 AM
My Graphical User Interface is blank green_turkey Linux - Software 1 05-21-2007 09:26 AM
redhat9 graphical user interface Synth218 Linux - Distributions 3 05-24-2003 05:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration