Disable Ctrl+Alt+Backspace from Restarting X Windows on Linux Onemogoči Ctrl + Alt + Backspace s ponovnim zagonom X Windows na 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? Če ste se uporablja Linux za kakršno koli količino časa, ste že seznanjeni z Ctrl + Alt + Backspace tipka za bližnjico kombinacija, da se znova zažene X Windows takoj ... ampak ste se kdaj spraševali, če obstaja način, da onemogočite to vedenje?
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) Izkazalo se je zelo preprosto narediti, čeprav nisem nujno priporoča, da si to ... to je bolj za informativne namene. (Linux, medtem ko bi lahko rock-solid, sem imel več kot moj delež treskav v Gnome, tako da tipka za bližnjico je uporabno)
Disable Ctrl+Alt+Backspace Onemogoči 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: Prva stvar, ki ste jo verjetno želeli narediti je, da varnostno kopijo xorg.conf datoteko, ki jo lahko naredite s ta ukaz:
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: Potem lahko uredite xorg.conf datoteko z uporabo Alt + F2 odpreti pogovorno okno Zaženi in uporabo naslednji ukaz:
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. Sedaj pojdite na dno datoteke in poiščite oddelek z naslovom "ServerFlags", ki jih morda ne obstajajo. If the section does not exist, add this to the bottom of the file: Če oddelek ne obstaja, dodali ta na dnu datoteke:
Section “ServerFlags” Oddelek "ServerFlags"
Option “DontZap” “yes” Option "DontZap" "yes"
EndSection EndSection
If that section does exist, then just add in the option line: Če ta oddelek ne obstaja, nato dodajte na možnost postavka:
Option “DontZap” “yes” Option "DontZap" "yes"
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. Boste morali znova zagnati X spet, najlažji način je ironično z uporabo Ctrl + Alt + Backspace ... ampak na tej točki tipka za bližnjico ne bodo več aktivni.
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. Če ste nekako uspelo popolnoma vijak ki gre gor vaš sistem, tako da te spremembe, lahko kopirate xorg.conf.orig datoteko nazaj v xorg.conf preklopiti nazaj na prvotne nastavitve.

Daily Email Updates Dnevni Email Updates
You can get our how-to articles in your inbox each day for free. Lahko dobite našo kako do člankov v vašo mapo »Prejeto vsak dan brezplačno. Just enter your name and email below: Preprosto vpišite vaše ime in e-pošto spodaj:



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? Čeprav lahko Ctrl + Alt + Backspace tipka se rahlo nadloga za nove uporabnike Linux, kaj alternativna imaš čas vaš okno X zmrzne? Is there some way to perhaps re-map this to another key combination? Ali obstaja nek način, da morda ponovno zemljevid, da je to drugo kombinacijo tipk? Disabling it completely will force users to hard-reboot when the GUI freezes, which is a much worse alternative. Onemogočanje bo popolnoma sile uporabnikom težko ponovno zagnati, ko GUI zamrzne, kar je mnogo slabše alternative.
@Scott @ Scott
Note that I recommended against using this… I like the key combination and end up needing to use it all the time. Upoštevajte, da bom priporočil o prepovedi uporabe ... to mi je všeč kombinacijo tipk in na koncu jih je treba uporabljati ves čas. I'm not sure about re-mapping, that was going to be my next research… Im 'ne varen približno ponovno kartiranje, da se je, da bo moj naslednji raziskovalni ...
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. To bi bilo koristno, če si hotel, da setup internet kiosk, na primer, in ne želim nikogar, da bi lahko ubil 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. Avtor zavedaš, da ni take stvari kot "X-Windows?"'s Je pozval, "X-Window System." Windows je nekaj iz 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 vem, kako naj preslikate, vendar jo lahko preprosto ctrl + alt + F1 (ali F2-F6) iti v besedilnem načinu terminal, se prijavite kot root, in znova zaslona manager. If you're using gnome, it's “/etc/init.d/gdm restart”, and there's kdm for KDE or xdm for others. Če uporabljate gnome, to je "/ etc / init.d / gdm zopet začeti", in tam je za KDE kdm xdm ali za druge. 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). Imejte v mislih, da bo skočil vas, da vaše novo začel zaslonu upravitelja prijavni zaslon na F7 virtualni terminal, vendar boste še vedno prijavljeni kot root na f1 (in, čeprav se verjetno ne bi ugibati to je tam, kdo bi lahko prišel in uporaba korena lupine na vašem polju). 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. Torej, ko ste prvič videli, da login zaslon, hit ctrl + alt + f1 spet, se odjavite, nato kliknite ctrl + alt + F7 priti nazaj na X.
Thanks for the info, by the way. Hvala za info, mimogrede. I use a kinesis keyboard, and backspace is at my left thumb. Jaz raba Kinesis tipkovnico, in vračalko je na moji levi palec. I hit it by accident all the time, and from time to time kill my whole X session inadvertently. Zadel sem ga po naključju ves čas, in od časa do časa ubil mojega celotnega X session nenamerno.
I try to disable it… but it doesn`t work, please help!!! Jaz začeti v onesposobiti to ... ampak to nima "ne dela, prosim pomoč!