OpenSUSE Linux Tips, tricks, how-tos, opinions, and news
My Resume - My LinkedIn Profile - twitter: @scottmmorrisToday, we’re gonna shoot for another one of those dumb little “cool openSUSE Linux tips” that allow one to get *DIRECTLY* to what it is that one needs.
As you may or may not know, openSUSE’s YaST tool has a number of modules. Well, when you open YaST, and you click on something like “Software Management”, it really just runs another command in the background, as many gui-based apps do. When you specifically click on that exact option in YaST, the command “yast2 sw_single &” is executed.
However, this must be executed as root.
Sure would be nice to put that in our quick launch bar so we can skip having to open two windows when we could just go straight to the one we want because we already know the command required to summon it.
Except that we are not logged in as privileged users. Hhmm. Is there a solution?
Apologies for the anti-climactic introduction because logic screams that if there was not a solution, I wouldn’t be writing this entry. Sorry, best I could muster this morning.
The solution is that you create a shortcut button in the panel of whatever desktop environment/windows manager you use. Add your favorite icon that means “Manage software in YaST.” As the commandline, you put in the following:
xdg-su -c "/sbin/yast2 sw_single"
Click on your shortcut button. It should prompt for the root password. Upon entering the correct password, direct access to the Software Management module is granted.
If you enjoyed this post, make sure you subscribe to my RSS feed!| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
| « Feb | ||||||
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 | |||
51 queries. 0.650 seconds
December 9th, 2009 at 9:44 am
You can actually list all the modules you want via:
yast2 –list
Also, aside of xdg-su -c there is:
kdesu and gnomesu
yast2 –help can show you how to switch between GTK and QT Versions of YaST and much more..
)
December 9th, 2009 at 10:37 am
Ben,
Right on, man. You’re absolutely right. Thanks for the additional info. Thanks for stopping by!
December 12th, 2009 at 4:07 am
[...] Morris, who wrote for Linux Journal last week, is still writing about OpenSUSE but not as often as he used [...]
December 21st, 2009 at 12:15 pm
I don’t know.. but I’ve got it under – KDE Menu / System / Configuration / Install software (11.2)