Hi All, Is there a way to set up buttons or icons on the desktop or kde that will allow you to switch to the virtual console of your choice, by clicking on the button or icon? Why? For that odd occasion when one loses keyboard control but still have some response via the mouse.
Look closely... The KDE panel already has them! /Lennart tisdagen den 26 augusti 2003 13.31 skrev eddie:
Hi All,
Is there a way to set up buttons or icons on the desktop or kde that will allow you to switch to the virtual console of your choice, by clicking on the button or icon? Why? For that odd occasion when one loses keyboard control but still have some response via the mouse.
-- !++ ! Lennart Börjeson ! Partner, Developer ! Cinnober Financial Technology AB ! Industrigatan 2A ! S-112 46 STOCKHOLM ! Sverige/Sweden/Schweden/Suède ! mailto:Lennart.Borjeson@cinnober.com ! phone:+46-8-50304700 ! fax:+46-8-50304701 ! http://www.cinnober.com !--
Am Dienstag, 26. August 2003 14:15 schrieb Lennart Börjeson:
Look closely... The KDE panel already has them!
read... virtual console != desktop !
/Lennart
tisdagen den 26 augusti 2003 13.31 skrev eddie:
Hi All,
Is there a way to set up buttons or icons on the desktop or kde that will allow you to switch to the virtual console of your choice, by clicking on the button or icon? Why? For that odd occasion when one loses keyboard control but still have some response via the mouse.
-- !++ ! Lennart Börjeson ! Partner, Developer ! Cinnober Financial Technology AB ! Industrigatan 2A ! S-112 46 STOCKHOLM ! Sverige/Sweden/Schweden/Suède ! mailto:Lennart.Borjeson@cinnober.com ! phone:+46-8-50304700 ! fax:+46-8-50304701 ! http://www.cinnober.com !--
-- Die unaufgeforderte Zusendung einer Werbemail an Privatleute verstößt gegen §1 UWG und 823 I BGB (Beschluß des LG Berlin vom 2.8.1998 Az: 16 O 201/98). Jede kommerzielle Nutzung der übermittelten persönlichen Daten sowie deren Weitergabe an Dritte ist ausdrücklich untersagt! gpg key fingerprint: 5F64 4C92 9B77 DE37 D184 C5F9 B013 44E7 27BD 763C
Is there a way to set up buttons or icons on the desktop or kde that will allow you to switch to the virtual console of your choice, by clicking on the button or icon? Why? For that odd occasion when one loses keyboard control but still have some response via the mouse.
You can use the command "chvt <number>", but since you have to have root rights to use this, it's not possible to use this as program link on the desktop. Greets, Daniel
On Tuesday 26 Aug 2003 7:17 pm, Daniel Eckl wrote:
Is there a way to set up buttons or icons on the desktop or kde that will allow you to switch to the virtual console of your choice, by clicking on the button or icon? Why? For that odd occasion when one loses keyboard control but still have some response via the mouse.
You can use the command "chvt <number>", but since you have to have root rights to use this, it's not possible to use this as program link on the desktop.
Greets, Daniel
Thanks all for the replies. I've not had any problems recently but I think I can recall a couple of times when I've have problems with the keyboard in KDE and when I've managed to get a console (by remotely killing the xserver, if I remember correctly) then I've been able to use the keyboard. I am able to use an icon with "chvt 2" set to run as root. However, it brings up a window so I still need to type in the root password. There is a box to check which say "keep password" but it still prompts for a password, so I guess it doesn't store the password (which I suppose it a good thing anyway). Thanks again for the replies. It was question borne out of curiosity more than need or desperation. Eddie
Am Dienstag, 26. August 2003 22:19 schrieb Eddie:
I am able to use an icon with "chvt 2" set to run as root. However, it brings up a window so I still need to type in the root password. There is a box to check which say "keep password" but it still prompts for a password, so I guess it doesn't store the password (which I suppose it a good thing anyway).
This checkbox only saves the password until the end of the KDE session or the timeout you specified in the control center is reached, which one comes first. So it's not usable for your idea. You can set the chvt program "setuid root". You have to become root at a shell and type: chmod +s /bin/chvt Now if a user starts this program, the program ist automagically run with root privileges. But be aware of the point, that EVERY program running setuid root can be a serious security flaw! Other local users could possibly gain root privileges with the use of setuid root programs. So if someone breaks into your box through a unprivileged service (http, ssh, ftp, etc.), he can become root with the help of your modified chvt. You have been warned. You can try it and you can delete the setuid bit whenever you want with chmod -s /bin/chvt and all will be okay again. Daniel
Thanks again for the replies. It was question borne out of curiosity more than need or desperation.
You're welcome. Greets, Daniel
eddie writes:
Is there a way to set up buttons or icons on the desktop or kde that will allow you to switch to the virtual console of your choice, by clicking on the button or icon? Why? For that odd occasion when one loses keyboard control but still have some response via the mouse.
I must be missing something -- if the keyboard is disabled, what good will a
console do you?
--
Kevin Pfeiffer
Am Dienstag, 26. August 2003 20:29 schrieb Kevin Pfeiffer:
I must be missing something -- if the keyboard is disabled, what good will a console do you?
It has been seen, that only XFree looses keyboard control. But I had it only once in my life. Greets, Daniel
participants (6)
-
Daniel Eckl
-
Eddie
-
eddie
-
Kevin Pfeiffer
-
Lennart Börjeson
-
Mathias Homann