If you don’t want to use a user interface to change the effect of Ctrl+Alt+Backspace in any flavour of Ubuntu you can follow these steps:

1) Install the “dontzap” package
sudo apt-get install dontzap

2) Open Terminal or Konsole and type:
sudo dontzap --enable
or
sudo dontzap --disable

Where “disable” means that Ctrl+Alt+Backspace restarts the xserver while “enable” means that it won’t.

I’ll post something on the GTK UI when it’s ready.

Posted by Alberto Milone | January 22, 2009 6:37 pm
Filed under: Planet, UDS, Ubuntu
Comments (24) |


24 Responses to “How to enable/disable Ctrl+Alt+Backspace from the command line”

  1. Duane Says:

    Awesome, thanks. This will come in very handy.


  2. Mackenzie Says:

    Thank you! This doesn’t require that you have an xorg.conf at all right? If so, yay!

    I still find it annoying that this is being disabled by default, especially so early in Jaunty (it’s darned useful when running unstable!).


  3. albertomilone Says:

    If you don’t have an xorg.conf, a new one will be created. It will contain only the DontZap option.


  4. cpradio Says:

    I can’t find this package. Is it only available in the Jaunty repos? I was hoping it would be backported to Intrepid.


  5. albertomilone Says:

    Yes, sorry, it’s only for Jaunty


  6. Karl Lattimer Says:

    exactly what is the opposite of “restarting the xserver”?

    I mean, it should read;

    Where “disable” means that Ctrl+Alt+Backspace restarts the xserver while “enable” means that it wont.

    Opposites are not the same as anti-poles.


  7. albertomilone Says:

    Thanks for your correction. I was very tired when I wrote this post and that was the best description I could come up with.


  8. axel112 Says:

    Thanks. It will come in handy. :)


  9. Versme.net blog » Blog Archive » Erzina Ctrl+Alt+Backspace? Nebėda. Says:

    [...] „Ctrl“ + „Alt“ + „Backspace“ galite išjungti pasinaudodami šiuo patarimu: [...]


  10. juan Says:

    when will you update envyng with the latest nvidia drivers?


  11. kevin Says:

    Thank you so much! I would like to add that after sudo dontzap –disable, one has to manually logout first before the settings are applied since the script adds a section to xorg.conf.


  12. Shyam Says:

    Alberto,

    Good day. Its nothing to do with current blog but do you have any idea when nvidia 96.43.11 drivers will be added to Jaunty’s repositories? Awaiting reply and thankyou.


  13. myrin Says:

    Thanks for the reboot tip for it to work.Truly needed for testing jaunty all though my use of linux will soon be over on this box anyway.Asus mother board(pblk length 5) and the 845ge intel chipset.Gusty was the last release that worked correctly.Bring an old pc back to life with linux lol.I wish xorg would fix all this it’s been a year and a half of fighting on this old box.


  14. Laura Says:

    This worked perfectly. Thank you so much for sharing this!


  15. UbunTube » Mackenzie Morgan: Jaunty FAQ Says:

    [...] Check out Alberto Milone’s instructions [...]


  16. NJC Says:

    Thanks very much for the help. I had the package installed but couldn’t remember how to activate. :S


  17. Nojock Says:

    Works great had to reboot but that was expected. Great job and now back on the road.


  18. Mike Says:

    Thanks for this, very helpful!


  19. Lennie Says:

    This killed the tweaked xorg.conf I did have, how ‘nice’.

    It would be really good if you actually added the section if it didn’t exist and change it if needed or maybe atleast advertise that you made a backup and what name it has (yes I did find it, by reading the Python code eventually).


  20. Alberto Milone Says:

    @Lennie
    I don’t know where you got the idea that I don’t create a ServerFlags section if none can be found:

    if empty:
    # create a ServerFlags section
    a.makeSection(targetSection)

    http://bazaar.launchpad.net/~albertomilone/dontzap/main/annotate/head%3A/DontZap/dontzap.py


  21. Taemojitsu Says:

    Thank you, needed this


  22. Jaunty FAQ | TuxWire : The Linux Blog Says:

    [...] Check out Alberto Milone’s instructions [...]


  23. Jaunty FAQ : BeginnerPC Says:

    [...] Check out Alberto Milone’s instructions [...]


Leave a Reply

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word