LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-10-2004, 04:24 AM   #1
Boffy
Member
 
Registered: Jul 2003
Location: Durham, UK
Distribution: Ubuntu 8.04
Posts: 419

Rep: Reputation: 30
How to make Alt+Ctrl+DEL work in linux


I would like to be able to use those keys to make the KDE process manager appear. Even better would be if I could get it to open as root.


Boffy
 
Old 08-10-2004, 06:11 AM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
At least on a PC architecture, Ctrl+Alt+Delete sends a software interrupt to the init process, which processes it as per the ctrlaltdel entry in the /etc/inittab file.

In the /etc/inittab file, you may have a line looking something like this:
Code:
# What to do when CTRL-ALT-DEL is pressed.
ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -h now
If so, modify it like below. If not, add a new one like below:
Code:
ca:12345:ctrlaltdel:/etc/onctrlaltdel
Now create a script file, and save it as /etc/onctrlaltdel. The file should read something like:
Code:
#!/bin/bash
DISPLAY=:0.0 /opt/kde3/bin/kdeprocman
I don't know what the KDE process manager is called or where it resides on your particular system; you may need to change the /opt/kde3/bin/kdeprocman bit (“echo $KDEDIR” might tell you where to start looking).

Mark your script as executable:
Code:
chmod a+rx /etc/onctrlaltdel
. It should now run (as root) every time you press Ctrl+Alt+Del.

Btw, the DISPLAY=:0.0 bit just sets up an environment variable ($DISPLAY) that tells the program which X-windows display to open on.

I hope that's of some help,

— Robert J. Lee
 
Old 08-10-2004, 06:49 AM   #3
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
Right. This is the way to do it if you type CtrlAltDel from a console window. But then in your script, you may want to check if X is running on display :0 (see lock files in /tmp), and if not, run
startx /path/to/kdeprocman -- :0
instead.

If you type CtrlAltDel while in X, chances are that nothing will happen, because then X receives all key strokes. If that's your case, then you'll have to install a utility to grab keys, such as xbindkeys, and configure it to launch "sudo /etc/yourcommand" on CtrlAltDel. Of course, you'll have to also install sudo, and configure it to allow this command for everyone on local machine without asking for a password.

Yves.
 
Old 08-10-2004, 01:38 PM   #4
make
Member
 
Registered: Apr 2004
Distribution: Mandriva, Ubuntu, openSuSE, FreeBSD, OpenSolaris, PC-BSD
Posts: 195

Rep: Reputation: 30
If you're using KDE, just go to the Control Center and change the keyboard shortcuts. You can set Ctrl+Alt+Del to whatever you want. I've set it to XKill (Kill A Window), so that I can just click the frozen program window to kill it. Much, much more useful and faster than the "Windows way" of opening the Task Manager.
 
Old 08-10-2004, 03:45 PM   #5
Boffy
Member
 
Registered: Jul 2003
Location: Durham, UK
Distribution: Ubuntu 8.04
Posts: 419

Original Poster
Rep: Reputation: 30
ctrl+alt+esc does the xkill thing by default, i need the task manager for hideen processes but thanks for the help.
 
Old 08-14-2004, 09:59 PM   #6
jackassjim
Member
 
Registered: Jul 2004
Location: Montréal
Distribution: Yoper
Posts: 40

Rep: Reputation: 15
just type ctrl+esc you'll get the process manager ctrl+alt+esc gives you a skull and bone to kill any open window
 
Old 08-15-2004, 06:32 AM   #7
cryptwizard
Member
 
Registered: Aug 2004
Location: Sydney, Australia
Distribution: Debian Squeeze
Posts: 49

Rep: Reputation: 15
cool, thanks
i also know about ctrl+esc and ctrl+f1 seems to do the same, but i didnt know ctrl+alt+esc
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Issuing CTRL+ALT+DEL in VNC (linux) cybermonger Linux - Newbie 4 08-06-2004 05:15 AM
ctrl+alt+del for linux? webazoid Linux - Software 9 06-30-2004 11:19 PM
Linux equivalent of CTRL-ALT-DEL in Windows? ryancw Linux - Newbie 15 02-19-2004 09:58 PM
Sending CTRL-ALT-DEL to a Windows 2000 box using VNC from Linux scottpioso Linux - Newbie 1 03-04-2003 03:27 PM
ctrl, alt, del in Linux psyklops Linux - General 5 04-23-2002 06:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:22 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