<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
> <channel><title>gHacks Technology News &#124; Latest Tech News, Software And Tutorials &#187; control-alt-del</title> <atom:link href="http://www.ghacks.net/tag/control-alt-del/feed/" rel="self" type="application/rss+xml" /><link>http://www.ghacks.net</link> <description>A technology news blog covering software, mobile phones, gadgets, security, the Internet and other relevant areas.</description> <lastBuildDate>Sat, 11 Feb 2012 17:32:23 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/> <item><title>Linux Tips: Modify ctrl-alt-del behavior</title><link>http://www.ghacks.net/2009/06/09/linux-tips-modify-ctrl-alt-del-behavior/</link> <comments>http://www.ghacks.net/2009/06/09/linux-tips-modify-ctrl-alt-del-behavior/#comments</comments> <pubDate>Tue, 09 Jun 2009 18:56:35 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Desktop Manager]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[control-alt-del]]></category> <category><![CDATA[ctrl-alt-del]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=13412</guid> <description><![CDATA[If you are migrating over from Windows you know the Ctrl-Alt-Del three finger salute brings up a ulitity that can help you stop out of control or frozen applications. And then, of course, a second three-finger salute might find your machine rebooting (for when those apps just don&#8217;t want to unfreeze.) The default behavior for [...]]]></description> <content:encoded><![CDATA[<p>If you are migrating over from Windows you know the Ctrl-Alt-Del three finger salute brings up a ulitity that can help you stop out of control or frozen applications. And then, of course, a second three-finger salute might find your machine rebooting (for when those apps just don&#8217;t want to unfreeze.) The default behavior for this in Linux to to immediately reboot your machine. That is fine if you&#8217;re not used to hitting that combination every time an application goes postal on your machine. But if that is what you are accustomed to doing, you might have a hard time adjusting to the difference in behavior.</p><p>Think about it, Firefox freezes and you instantly go for Ctrl-Alt-Del only to have your machine instantly reboot. What kind of work could you lose? Fortunately you can prevent or even alter this behavior in Linux. And doing so only requires you to open up a flat text file in your favorite editor, make a change, and save the file.</p><p><span
id="more-13412"></span><strong>Distribution specifics</strong></p><p>Some distributions handle this task differently. And some distributions have changed the way the do this. So I will show you how to alter this behavior in two different ways which should cover all of the basics. We&#8217;ll start with the older method first.</p><p><strong>The original method</strong></p><p>Distributions used to handle this even through the <strong>/etc/inittab</strong> file. The <strong>inittab </strong>file is primarily used to handle the run level of your system. Older distributions also used this file to determine behaviors such as key bindings like Ctrl-alt-del. If you open up this file and see a line that includes a string like:</p><p><code>ctrlaltdel:/sbin/shutdown -t1 -a -r now</code></p><p>you know your system uses this file to control this behavior.</p><p><strong>The new method</strong></p><p>If you do not find an entry like the above in your <strong>/etc/inittab</strong> file then you will want to take a look at the more modern method of handling this task. Take a look in the <strong>/etc/event.d</strong> directory. In this directory you should see a file called <strong>control-alt-delete</strong>. In this file you will see a line that looks like:</p><p><code>exec /sbin/shutdown -r now "Control-Alt-Delete pressed"</code></p><p>That is the line you will alter to change the behavior. And now, let&#8217;s make some changes.</p><p><strong>Making the change</strong></p><p>Changing this behavior is simple. What you will do is replace the executable command for reboot with the command you want to use. Either that or you will comment the command out (by placing a &#8220;#&#8221; character at the beginning of the line) to dis</p><p>able the funcationality all together.</p><p>Let&#8217;s say you want to replace the reboot behavior so that the Gnome System Monitor opens. This behavior would be more in line with the behavior of Windows. To make this change the inittab line would look like this:</p><p><code>ctrlaltdel:/usr/bin/gnome-system-monitor</code></p><p>and the <strong>control-alt-delete </strong>entry would look like:</p><p><code>exec /usr/bin/gnome-system-monitor</code></p><p>Make your changes and save your file. To make this change take effect.</p><p><strong>What about when using GNOME?</strong></p><p>You might find this doesn&#8217;t work in GNOME. If you are using Metacity as the window manager you will want to issue two commands:</p><p><em>gconftool-2 -t str &#8211;set /apps/metacity/global_keybindings/run_command_9 &#8220;&lt;Control&gt;&lt;Alt&gt;Delete&#8221;</em></p><p>and</p><p><em>gconftool-2 -t str &#8211;set /apps/metacity/keybinding_commands/command_9 &#8220;gnome-system-monitor&#8221;<br
/> </em></p><p>If you are using Compiz as your window manager you will issue the following commands:</p><p><em>gconftool-2 -t str &#8211;set /apps/compiz/general/allscreens/options/command9 &#8220;&lt;Control&gt;&lt;Alt&gt;Delete&#8221;</em></p><p>and</p><p><em>gconftool-2 -t str &#8211;set /apps/compiz/general/allscreens/options/command9 &#8220;gnome-system-monitor&#8221;</em></p><p><strong>Other Window managers</strong></p><p>There might be instances where an alternative window manager may not bind to this combination. Most window managers use their own key mappings for binding. If you find your window manager won&#8217;t bind Control-Alt-Del look up your particular window manager key mapping process and map from there.</p><p><strong>Final thoughts</strong></p><p>There are instances where you will want to make sure your users have the same experience as they do in Windows. Take care of this particular behavior and your users will have one less issue to complain about when migrating to Linux.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/06/09/linux-tips-modify-ctrl-alt-del-behavior/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> </channel> </rss>
