Disable Ctrl+Alt+Backspace from Restarting X Windows on Linux Išjungti Ctrl + Alt + Backspace iš naujo paleisti X Windows į Linux
If you've used Linux for any amount of time, you're already familiar with the Ctrl+Alt+Backspace shortcut key combination that restarts X Windows immediately… but have you ever wondered if there is a way to disable that behavior? Jei jau naudojatės "Linux" bet kiek laiko, jau esate susipažinę su Ctrl + Alt + Backspace klavišų kombinaciją, kad perkrauti X Windows karto ... bet jūs kada nors susimąstėte, jei yra būdas išjungti, kad elgesį?
Turns out it's extremely simple to do, although I'm not necessarily recommending that you do this… it's more for informational purposes. (while Linux might be rock-solid, I've had more than my share of crashing in Gnome, so the shortcut key is useful) Pasirodo, tai labai lengva padaryti, nors aš ne visada rekomenduojama, kad jūs norite tai padaryti ... tai daugiau tik informaciniais tikslais. (O "Linux" gali būti tvirta kaip uola, aš jau daugiau nei mano dalis katastrofoms gnome, todėl spartusis klavišas yra naudinga)
Disable Ctrl+Alt+Backspace Išjungti Ctrl + Alt + Backspace
The first thing you'd probably want to do is make a backup of the xorg.conf file, which you can do with this command: Pirmas dalykas, kurį jūs turbūt norite padaryti, kad į xorg.conf failo atsarginę kopiją, kurioje galite padaryti su šia komanda:
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.orig sudo cp / etc/X11/xorg.conf / etc/X11/xorg.conf.orig
Then you can edit the xorg.conf file by using Alt+F2 to open up the Run dialog and using the following command: Tada galėsite redaguoti xorg.conf failą naudodami klavišų kombinaciją Alt + F2, kad atverti Run dialogo ir naudodami šią komandą:
gksu gedit /etc/X11/xorg.conf gksu gedit / etc/X11/xorg.conf

Now go to the bottom of the file and look for a section called “ServerFlags”, which might not exist. Dabar eikite į failą apačioje ir ieškoti section called "ServerFlags", kuri galėtų neegzistuoja. If the section does not exist, add this to the bottom of the file: Jei skyrių nėra, įdėti šią nuorodą į failo apačią:
Section “ServerFlags” Skirsnio "ServerFlags"
Option “DontZap” “yes” Option "DontZap" "Taip"
EndSection EndSection
If that section does exist, then just add in the option line: Jei šiame skyriuje iš tiesų egzistuoja, tai tiesiog pridėti variantą linija:
Option “DontZap” “yes” Option "DontZap" "Taip"
You'll have to restart X again, the easiest way is ironically by using Ctrl+Alt+Backspace… but at that point the shortcut key won't be active anymore. Jūs turite iš naujo paleisti X kartą, lengviausias būdas yra ironiškai naudojant Ctrl + Alt + Backspace ... bet tuo momentu spartusis klavišas nebus aktyvus anymore.
If you somehow managed to totally screw up your system by making this change, you can copy the xorg.conf.orig file back to xorg.conf to switch back to the original configuration. Jei kažkokiu būdu sugebėjo visiškai sugadinti Jūsų sistemą priimant šį pakeitimą, galite nukopijuoti xorg.conf.orig failą į xorg.conf, norėdami grįžti į pradinę konfigūraciją.

Daily Email Updates Dienos paštas Atnaujinimai
You can get our how-to articles in your inbox each day for free. Galite gauti mūsų kaip prie straipsnių į Jūsų pašto dėžutę kasdien nemokamai. Just enter your name and email below: Tiesiog įveskite vardą ir elektroninio pašto adresą žemiau:



Although the Ctrl+Alt+Backspace shortcut may be a slight annoyance for new Linux users, what alternative do you have when your X windows freezes? Nors Ctrl + Alt + Backspace klavišai gali būti šiek tiek erzina naujų Linux vartotojai, kokie alternatyvūs turite kai savo X Windows pakimba? Is there some way to perhaps re-map this to another key combination? Ar yra kokiu nors būdu, kad galbūt iš naujo žemėlapio tai kitas klavišų kombinaciją? Disabling it completely will force users to hard-reboot when the GUI freezes, which is a much worse alternative. Jį išjungti visiškai privers vartotojus sunkiai perkrauti GUI, kai užšąla, kuri yra daug blogesnė alternatyva.
@Scott @ Scott
Note that I recommended against using this… I like the key combination and end up needing to use it all the time. Atkreipkite dėmesį, kad aš rekomenduojama prieš naudojant šį ... Man patinka klavišų kombinacija, ir galų gale, kuriems reikia naudoti visą laiką. I'm not sure about re-mapping, that was going to be my next research… I'm not sure about re-mapping, kad buvo bus mano kitą mokslinių tyrimų ...
This could be useful if you wanted to setup an internet kiosk, for example, and didn't want anybody to be able to kill X. Tai gali būti naudinga, jei norite sukonfigūruoti interneto kioskas, pavyzdžiui, ir nenorėjo, kad kas nors galėtų nužudyti X
The the author realize that there is no such thing as “X-Windows?” It's called “the X-Window System.” Windows is something from Redmond. Autorius supranta, kad nėra tokio dalyko kaip "X-Windows?" It's called "X Window System." Windows yra kažkas iš Redmond.
I don't know how to remap, but you can simply ctrl+alt+f1 (or f2-f6) to go to a text-mode terminal, log in as root, and restart your display manager. Nežinau, kaip remap, bet galite tiesiog Ctrl + Alt + F1 (arba F2-F6) eiti į tekstiniu režimu terminalas, prisijungti kaip root ir paleisti ekrano tvarkyklė. If you're using gnome, it's “/etc/init.d/gdm restart”, and there's kdm for KDE or xdm for others. Jeigu jūs naudojate Gnome, tai "/ etc / init.d / gdm restart", ir ten yra kdm for KDE ar xdm kitiems. Keep in mind that it will jump you to your newly started display manager's login screen on the f7 virtual terminal, but you'll still be logged in as root on f1 (and, though they probably wouldn't guess it's there, anybody could come and use a root shell on your box). Turėkite omenyje, kad tai bus Peršokti jus į naujai pradėtas rodyti vadybininkas prisijungimo ekrane F7 virtualų terminalą, tačiau jūs vis dar būti prisijungęs kaip root F1 (ir, nors jos turbūt negalėtų atspėti, kad čia, kas galėtų būti ir naudoti root jūsų dėžutę). So when you first see that login screen, hit ctrl+alt+f1 again, log out, then hit ctrl+alt+f7 to get back to X. Taigi, kai jūs pirmą kartą matome, kad prisijungimo langą, paspauskite CTRL + ALT + F1 vėl atsijungti, tada paspauskite CTRL + ALT + F7 grįžti į X.
Thanks for the info, by the way. Thanks for the info, beje. I use a kinesis keyboard, and backspace is at my left thumb. Aš naudoju Judėjimas klaviatūra ir Backspace yra mano kairės nykščio. I hit it by accident all the time, and from time to time kill my whole X session inadvertently. Aš smūgio jis netyčia visą laiką, o laikas nuo laiko nužudė visą mano X sesija netyčia.
I try to disable it… but it doesn`t work, please help!!! Bandau išjungti ... bet jis doesn `t darbo, prašau padėkite!