LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 09: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, 09:22 PM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
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, 03: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,552

Rep: Reputation: 103Reputation: 103
Darn that's a dangerous sig! Somebody might just try it...
 
Old 07-01-2009, 03: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



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 06:20 AM
ctrl+alt+del d1l2w3 Linux - General 7 05-30-2006 07:25 AM
Ctrl+Alt+Del, without login nny0000 Slackware 1 02-24-2004 09:53 PM
ctrl, alt, del hornet74 Linux - Software 8 01-13-2004 08:06 PM
How do I intercept CTRL+ALT+DEL? phil1076 Linux - General 2 12-09-2003 02:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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