LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 06-30-2009, 10:16 PM   #1
linux_newbie79
Member
 
Registered: Apr 2009
Posts: 36

Rep: Reputation: 15
ctrl+alt+del


Hi,
I like to shutdown my system on pressing ctrl+alt+del. I believe I got to make modifications in keymaps. Can anyone let me know the changes I need to make based on the sample keycode mentioned below

keycode 4 = three question
control keycode 4 = dollar
alt keycode 4 = percent
 
Old 06-30-2009, 10:22 PM   #2
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Hi there,

I haven't a clue what those keycodes you mention are for; however, it will definitely help others answer your question if you provide some basic details with your question, most importantly: Which Linux are you using, what type of PC, that kind of thing.

NOW.. On most Linuxes that I am remotely familiar with, there is a file on the system called 'inittab' and it is *usually* located in the /etc folder.

In this file, you can configure what action you wish to happen when the system detects the CTRL-ALT-DELETE sequence (yep, this combination is built-in).

You can read about the syntax of the 'inittab' file using the man pages (type 'man inittab' in a console) though there should already be a configuration in the file which maybe you can just change to make your machine shut down instead of whatever it does now.

If you happen to be using a Linux which does NOT already have an inittab file, please post what Linux it is (Name, version, etc.) and hopefully someone more versed in that particular variety can assist you more.

I hope this helps get you on the right track; if you need further help, please just ask!

Sasha
 
Old 07-01-2009, 04:23 AM   #3
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,477

Rep: Reputation: 87
Darn that's a dangerous sig! Somebody might just try it...
 
Old 07-01-2009, 04:31 AM   #4
BeacoN
Member
 
Registered: Nov 2008
Distribution: Linux Mint
Posts: 56

Rep: Reputation: 17
other ways...

yeah the mapping might work, I just use

sudo shutdown -h now

from the command line-seems to be faster than any other way I've done in the past. Perhaps you could map to that command....
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ctrl + Alt + Del ? funkenbooty Linux - Newbie 7 04-26-2007 07:20 AM
ctrl+alt+del d1l2w3 Linux - General 7 05-30-2006 08:25 AM
Ctrl+Alt+Del, without login nny0000 Slackware 1 02-24-2004 10:53 PM
ctrl, alt, del hornet74 Linux - Software 8 01-13-2004 09:06 PM
How do I intercept CTRL+ALT+DEL? phil1076 Linux - General 2 12-09-2003 03:07 PM


All times are GMT -5. The time now is 10:50 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration