Dear visitor, welcome to KDE-Forum.org.
If this is your first visit here, please read the Help. It explains in detail how this page works.
To use all features of this page, you should consider registering.
Please use the registration form, to register here or read more information about the registration process.
If you are already registered, please login here.
Konsole Macros
How do I set Konsole (or KDE) such that when I press F9 (or some key combo that I define) in Konsole, it will
- transmit the string "su -" followed by ENTER
- wait for the string "Password:"
- transmit the password followed by ENTER
[/list=1]
RE: Konsole Macros
A good place to get started is the program "expect". You can also setup a shortcut and set it to run as root:
1. Create a link to an application
2. In the dialog box, select Application > Advanced options, and in the User section select run as a different user and type "root" into the box.
You will have to type a password the first time. Select the check box below the password to save the password, and you are set.
This post has been edited 1 times, last edit by "aaronforjesus" (Mar 14th 2006, 9:15pm)