Launching YaST Modules Directly
Hi, Of all the YaST modules, I most often wish to launch the Installer. Is there a way to create KDE Menu items that go directly to a particular YaST module, skipping the YaST Control Center? Thanks. Randall Schulz
On Tuesday 17 August 2004 18:37, Randall R Schulz wrote:
Hi,
Of all the YaST modules, I most often wish to launch the Installer. Is there a way to create KDE Menu items that go directly to a particular YaST module, skipping the YaST Control Center?
Sure, make the menu item run "/sbin/yast2 <module>" run "yast2 -l" to get a list of available modules "/sbin/yast2 sw_single" will launch the package installer
Anders wrote regarding 'Re: [SLE] Launching YaST Modules Directly' on Tue, Aug 17 at 11:46:
On Tuesday 17 August 2004 18:37, Randall R Schulz wrote:
Hi,
Of all the YaST modules, I most often wish to launch the Installer. Is there a way to create KDE Menu items that go directly to a particular YaST module, skipping the YaST Control Center?
Sure, make the menu item run "/sbin/yast2 <module>"
run "yast2 -l" to get a list of available modules
"/sbin/yast2 sw_single" will launch the package installer
It's worth noting that you can also do yast2 -i packagename yast2 -i /path/to/package.rpm in the event you know what package you're wanting to install. The first will get you the dependency checking, the second will just install the package file. I thought, but may be wrong, that you could also specify a propted parameter for a KDE menu item. Maybe that's a different WM, though. It'd sure be handy in this case... :) --Danny
Anders, On Tuesday 17 August 2004 09:44, Anders Johansson wrote:
On Tuesday 17 August 2004 18:37, Randall R Schulz wrote:
Hi,
Of all the YaST modules, I most often wish to launch the Installer. Is there a way to create KDE Menu items that go directly to a particular YaST module, skipping the YaST Control Center?
Sure, make the menu item run "/sbin/yast2 <module>"
run "yast2 -l" to get a list of available modules
"/sbin/yast2 sw_single" will launch the package installer
Excellent. Thank you! Randall Schulz
Anders, On Tuesday 17 August 2004 09:44, Anders Johansson wrote:
On Tuesday 17 August 2004 18:37, Randall R Schulz wrote:
Hi,
Of all the YaST modules, I most often wish to launch the Installer. Is there a way to create KDE Menu items that go directly to a particular YaST module, skipping the YaST Control Center?
Sure, make the menu item run "/sbin/yast2 <module>"
run "yast2 -l" to get a list of available modules
"/sbin/yast2 sw_single" will launch the package installer
When I do this as my (non-root) self, I am not prompted for the root password as I am whenever I launch the YaST control center. What's more, when the time comes to read the package from the installation media (DVD-ROM for SuSE 9.1 Pro), it gets a persistent error. It says that the media is not attached, but in reality everything is in place for the installation to proceed. If I launch the YaST sw_single module from a root shell (with suitable xhost permission modification applied), all is again well. So I guess I should use "kdesu" to launch yast2 in my (so far putative) KDE menu additions. Randall Schulz
On Tuesday 17 August 2004 19:15, Randall R Schulz wrote:
So I guess I should use "kdesu" to launch yast2 in my (so far putative) KDE menu additions.
That's one way. Checking the "run as different user" button and entering "root" as the user to run as is another
On Tuesday 17 August 2004 19:15, Randall R Schulz wrote:
Anders,
On Tuesday 17 August 2004 09:44, Anders Johansson wrote:
On Tuesday 17 August 2004 18:37, Randall R Schulz wrote:
Hi,
Of all the YaST modules, I most often wish to launch the Installer. Is there a way to create KDE Menu items that go directly to a particular YaST module, skipping the YaST Control Center?
Sure, make the menu item run "/sbin/yast2 <module>"
run "yast2 -l" to get a list of available modules
"/sbin/yast2 sw_single" will launch the package installer
When I do this as my (non-root) self, I am not prompted for the root password as I am whenever I launch the YaST control center.
What's more, when the time comes to read the package from the installation media (DVD-ROM for SuSE 9.1 Pro), it gets a persistent error. It says that the media is not attached, but in reality everything is in place for the installation to proceed.
If I launch the YaST sw_single module from a root shell (with suitable xhost permission modification applied), all is again well.
So I guess I should use "kdesu" to launch yast2 in my (so far putative) KDE menu additions.
Surprise, surprise: Open up the YaST Control Center (the graphical one, not the textmode). Select Software. Now drag the 'Install and Remove Software' icon onto your desktop. A dialog pops up, asking for a name. Give it a name (it will be the filename of the .desktop file). Now Click on the icon you just dropped. ;P Cheers, Leen
Leendert, Anders,
On Tuesday 17 August 2004 19:15, Randall R Schulz wrote:
...
So I guess I should use "kdesu" to launch yast2 in my (so far putative) KDE menu additions.
On Tuesday 17 August 2004 10:23, Anders Johansson wrote:
...
That's one way. Checking the "run as different user" button and entering "root" as the user to run as is another
On Tuesday 17 August 2004 12:38, Leendert Meyer wrote:
Surprise, surprise:
Open up the YaST Control Center (the graphical one, not the textmode).
Select Software.
Now drag the 'Install and Remove Software' icon onto your desktop.
A dialog pops up, asking for a name. Give it a name (it will be the filename of the .desktop file).
Now Click on the icon you just dropped. ;P
Cheers,
Leen
More great suggestions. Thank you both. This just hammers home my ignorance of all the capabilities of KDE and of the SuSE distribution. It took me hours to find out what I needed to know to write a few simple scripts for manipulating the clipboard from the shell and from other scripts. Right now, I'd like to find out how to bring an existing window to the top (so, e.g., I can add it as an option to the script I use to mediate the disposition of URLs to Mozilla; likewise for opening text files in jEdit). Where does one learn how to exploit all the power of KDE? Thanks again, guys. Randall Schulz
On Tuesday 17 August 2004 23:10, Randall R Schulz wrote:
Leendert, Anders,
On Tuesday 17 August 2004 19:15, Randall R Schulz wrote:
...
So I guess I should use "kdesu" to launch yast2 in my (so far putative) KDE menu additions.
On Tuesday 17 August 2004 10:23, Anders Johansson wrote:
...
That's one way. Checking the "run as different user" button and entering "root" as the user to run as is another
On Tuesday 17 August 2004 12:38, Leendert Meyer wrote:
Surprise, surprise:
Open up the YaST Control Center (the graphical one, not the textmode).
Select Software.
Now drag the 'Install and Remove Software' icon onto your desktop.
A dialog pops up, asking for a name. Give it a name (it will be the filename of the .desktop file).
Now Click on the icon you just dropped. ;P
Cheers,
Leen
More great suggestions. Thank you both.
This just hammers home my ignorance of all the capabilities of KDE and of the SuSE distribution.
It took me hours to find out what I needed to know to write a few simple scripts for manipulating the clipboard from the shell and from other scripts.
Right now, I'd like to find out how to bring an existing window to the top (so, e.g., I can add it as an option to the script I use to mediate the disposition of URLs to Mozilla; likewise for opening text files in jEdit).
Where does one learn how to exploit all the power of KDE?
I suppose in the KDE documentation? ;P Nose around on your HD (KDE'S docs, /usr/share/doc/packages). Nose around on http://www.kde.org/documentation/. Nosing around and trying something out is how I learn stuff. Sometimes I just think 'Hey, is that possible?', then I try it out and indeed is *is* possible. I think that's how I discovered the trick with the YaST icons... Cheers, Leen
participants (4)
-
Anders Johansson
-
Danny Sauer
-
Leendert Meyer
-
Randall R Schulz