Disable Ctrl+Alt+Backspace from Restarting X Windows on Linux Wyłącz Ctrl + Alt + Backspace ponownemu uruchomieniu X Windows na Linuksie
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? Jeżeli znasz Linux dla każdego czasu, jesteś już obeznany z Ctrl + Alt + Backspace kombinację klawiszy skrótu, które uruchomieniu X Windows natychmiast ... ale czy kiedykolwiek zastanawialiście się, jeśli nie ma możliwości wyłączenia tego zachowania?
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) Okazuje się to bardzo proste do zrobienia, chociaż nie jestem niekoniecznie zalecając to zrobić ... to bardziej w celach informacyjnych. (Podczas gdy Linux może być solidnej, miałam więcej niż mój udział upaść w Gnome, więc klawisz skrótu jest przydatne)
Disable Ctrl+Alt+Backspace Wyłącz 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: Pierwszą rzeczą, którą prawdopodobnie chcesz zrobić, to zrób kopię zapasową pliku xorg.conf, które można zrobić z tego polecenia:
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: Następnie można edytować plik xorg.conf za pomocą Alt + F2, aby otworzyć okno dialogowe Uruchom i za pomocą następującego polecenia:
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. Teraz przejdź do dołu pliku i poszukaj sekcji o nazwie "ServerFlags", który nie mógłby istnieć. If the section does not exist, add this to the bottom of the file: Jeśli sekcja nie istnieje, dodaj do dna sprawy:
Section “ServerFlags” Sekcja "ServerFlags"
Option “DontZap” “yes” Opcja "DontZap" tak "
EndSection EndSection
If that section does exist, then just add in the option line: Jeśli ta sekcja nie istnieje, a potem po prostu dodać do wiersza polecenia:
Option “DontZap” “yes” Opcja "DontZap" tak "
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. Będziesz musiał ponownie uruchomić ponownie X, najprostszym sposobem jest ironicznie używając kombinacji Ctrl + Alt + Backspace ... ale w tym momencie klawisz skrótu nie będzie się już.
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. Jeśli w jakiś sposób udało się całkowicie zepsuć swą systemu przy tej zmianie można skopiować xorg.conf.orig plik z powrotem do pliku xorg.conf, aby powrócić do oryginalnej konfiguracji.

Daily Email Updates Daily Email Updates
You can get our how-to articles in your inbox each day for free. Możesz pobrać nasze instrukcje postępowania w skrzynce odbiorczej codziennie za darmo. Just enter your name and email below: Wystarczy podać swoje imię i adres e-mail:



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? Chociaż Ctrl + Alt + Backspace skrót może być niewielkie uciążliwości dla nowych użytkowników Linuksa, co alternatywne masz gdy X Windows zawiesza? Is there some way to perhaps re-map this to another key combination? Czy istnieje jakiś sposób może ponownie mapę na inną kombinację klawiszy? Disabling it completely will force users to hard-reboot when the GUI freezes, which is a much worse alternative. Wyłączenie go całkowicie zmusi użytkowników do twardym restarcie kiedy zawiesza GUI, który jest znacznie gorsza alternatywa.
@Scott @ Scott
Note that I recommended against using this… I like the key combination and end up needing to use it all the time. Proszę zauważyć, że zaleca się przed zastosowaniem ... lubię kombinację klawiszy i kończy się potrzeby z niego korzystać przez cały czas. I'm not sure about re-mapping, that was going to be my next research… Nie wiem o re-mapping, która miała być moja następna badań ...
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. Może to być przydatne, jeśli chcemy, aby ustawić Internet kiosk, na przykład, i nie chcą aby ktoś był w stanie zabić 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. Autor sobie sprawę, że nie ma czegoś takiego jak "X-Windows?" It's called "X-Window System." Windows jest coś z 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. Nie wiem jak przemapowywania, ale może po prostu Ctrl + Alt + F1 (lub F2-F6), aby przejść do terminala w trybie tekstowym, należy zalogować się jako administrator i uruchom ponownie menedżera wyświetlania. If you're using gnome, it's “/etc/init.d/gdm restart”, and there's kdm for KDE or xdm for others. Jeśli używasz GNOME, to "/ etc / gdm init.d / restart", i nie ma dla KDE kdm lub xdm dla innych. 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). Należy pamiętać, że będzie to skok do nowo rozpoczął menedżera ekranu logowania na F7 terminalu wirtualnym, ale nadal będzie można zalogować się jako root na F1 (i, choć pewnie nie domyśli się, że tam każdy może przyjść i wykorzystania rootem na Twoim komputerze). 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. Więc kiedy po raz pierwszy widzi, że ekran logowania, naciśnij Ctrl + Alt + F1 ponownie, wylogować się, a następnie naciśnij kombinację klawiszy Ctrl + Alt + F7, aby wrócić do X.
Thanks for the info, by the way. Thanks for the info, by the way. I use a kinesis keyboard, and backspace is at my left thumb. Używam klawiatury Kinesis i backspace jest w moim kciuka. I hit it by accident all the time, and from time to time kill my whole X session inadvertently. Uderzyłem go przez przypadek, przez cały czas, a od czasu do czasu zabić moją całą sesję X przypadkowo.
I try to disable it… but it doesn`t work, please help!!! Staram się wyłączyć ... Ale to nie `t work, please help!