Disable Ctrl+Alt+Backspace from Restarting X Windows on Linux Disable Ctrl + Alt + Backspace no atsākšana X Windows on 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? Ja esat lietojis Linux par jebkuru laika periodu, jūs jau esat iepazinušies ar Ctrl + Alt + Backspace īsceļu taustiņu kombināciju, restartējas X Windows uzreiz ... bet tu esi kādreiz sāku prātot, vai ir veids, kā atslēgt, ka uzvedība?
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) Izrādās, tas ir ļoti vienkārši darīt, lai gan es neesmu vienmēr iesaka to izdarīt ... tas ir vairāk informatīviem nolūkiem. (Kamēr Linux varētu būt akmens masa, man bija vairāk nekā mana daļa no katastrofām Gnome, tā īsinājumtaustiņš ir ērti)
Disable Ctrl+Alt+Backspace Disable 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: Pirmā lieta, jūs, iespējams, vēlas to darīt, ir izveidot dublējumu xorg.conf fails, kuru var darīt ar šo komandu:
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: Tad jūs varat rediģēt xorg.conf failu, izmantojot Alt + F2, lai atvērtu Run dialogs un izmantojot komandu:
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. Tagad iet uz apakšu failu un meklēt sadaļu ar nosaukumu "ServerFlags", kas nevarētu pastāvēt. If the section does not exist, add this to the bottom of the file: Ja sadaļā nav, pievienojiet to no apakšas uz failu:
Section “ServerFlags” Sadaļā "ServerFlags"
Option “DontZap” “yes” Option "DontZap" jā "
EndSection EndSection
If that section does exist, then just add in the option line: Ja šajā sadaļā tas eksistē, tad tikai pievienot iespēju line:
Option “DontZap” “yes” Option "DontZap" jā "
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. Jums būs jārestartē X atkal vienkāršākais veids ir ironiski, izmantojot Ctrl + Alt + Backspace ... bet šajā brīdī īsinājumtaustiņš netiks aktīvi vairs.
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. Ja jūs kaut kā ir izdevies pilnībā screw up your system, veicot šādas izmaiņas, varat nokopēt xorg.conf.orig failu atpakaļ uz xorg.conf, lai pārslēgtos atpakaļ uz sākotnējā konfigurācijā.

Daily Email Updates Daily Email Updates
You can get our how-to articles in your inbox each day for free. Jūs varat saņemt mūsu how-to rakstus savā pastkastītē katru dienu par brīvu. Just enter your name and email below: Vienkārši ievadiet jūsu vārdu un e-pasta zemāk:



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? Kaut Ctrl + Alt + Backspace shortcut var būt neliels kairinājums jauno Linux lietotājiem, kādi alternatīvi vai jums ir, kad jūsu X logi sasalst? Is there some way to perhaps re-map this to another key combination? Vai ir kaut kādā veidā ir iespējams atjaunot karti tas vēl taustiņu kombinācijas? Disabling it completely will force users to hard-reboot when the GUI freezes, which is a much worse alternative. Atslēdz to pilnīgi liks lietotājiem grūti atsāknēšana kad GUI iesaldēšanu, kas ir daudz sliktāka alternatīva.
@Scott @ Scott
Note that I recommended against using this… I like the key combination and end up needing to use it all the time. Ņemiet vērā, ka man ieteica pret izmantojot šo ... I like taustiņu kombināciju un galu galā nepieciešams to izmantot visu laiku. I'm not sure about re-mapping, that was going to be my next research… Es neesmu pārliecināts par atkārtotu kartēšanu, kas bija būs mana nākamā Izpētes ...
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. Tas varētu būt noderīgi, ja jūs vēlētos setup interneta kiosks, piemēram, un nevēlējās kāds varētu nogalināt 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. Autors sapratīs, ka nav tādas lietas kā "X-Windows?" To sauc par "X-Window System." Windows ir kaut kas no 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. Es nezinu, kā remap, bet jūs varat vienkārši ctrl + alt + f1 (vai f2-F6), lai dotos uz teksta režīmu termināla, log in as root, un restart displeja pārvaldnieku. If you're using gnome, it's “/etc/init.d/gdm restart”, and there's kdm for KDE or xdm for others. Ja jūs izmantojat gnome, tas ir "/ etc / init.d / GDM restart", un tur ir kdm KDE vai xdm citiem. 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). Paturiet prātā, ka tas pārlēkt Jūs uz jaunizveidotu displejs vadītāja pieteikšanās ekrāna f7 virtuālais terminālis, bet jūs joprojām autorizējies kā root uz f1 (un, lai gan tie droši vien nevarētu uzminēt tas ir, kāds varētu būt un izmantot root shell jūsu box). 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. Tātad, kad jūs pirmo reizi redzu, ka pieteikšanās ekrānu, hit ctrl + alt + f1 vēlreiz, log out, tad hit ctrl + alt + f7 atgriezties X.
Thanks for the info, by the way. Paldies par info, ko veidā. I use a kinesis keyboard, and backspace is at my left thumb. I use kinesis tastatūru un atpakaļatkāpe ir manu kreiso īkšķi. I hit it by accident all the time, and from time to time kill my whole X session inadvertently. I hit to nejauši visu laiku, un laiku pa laikam nogalināt visa mana X sesiju netīši uzliesmojis.
I try to disable it… but it doesn`t work, please help!!! Mēģinu atslēgt to ... bet tas doesn `t darbu, lūdzu palīdzēt!