Disable Ctrl+Alt+Backspace from Restarting X Windows on Linux Вимкнути Ctrl + Alt + Backspace від перезапуску 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? Якщо ви використовуєте Linux на будь-яку кількість часу, ви вже знайомі з Ctrl + Alt + Backspace поєднання клавіш, що перезапуск X Windows відразу ... А у вас коли-небудь замислювалися, якщо є спосіб відключити цю поведінку?
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) Виявляється, це дуже просто зробити, хоча я не завжди рекомендував що ви робите це ... це більше для інформаційних цілей. (Хоча Linux може бути непорушною, я вже більше, ніж моя частка збій у Gnome, так що клавіші стане в нагоді)
Disable Ctrl+Alt+Backspace Вимкнути 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: Перше, що ви, напевно хочемо зробити, це зробити резервну копію файла xorg.conf, які ви можете зробити з цією командою:
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.orig Суду 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: Потім ви можете змінити файл xorg.conf за допомогою Alt + F2, щоб відкрити діалогове і використовуючи наступну команду:
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. Тепер перейдіть в нижню частину файлу і знайдіть розділ під назвою "ServerFlags", яка не може існувати. If the section does not exist, add this to the bottom of the file: Якщо розділ не існує, додайте в кінець файлу:
Section “ServerFlags” Розділ "ServerFlags"
Option “DontZap” “yes” Варіант "DontZap" "Так"
EndSection EndSection
If that section does exist, then just add in the option line: Якщо цей розділ існує, то просто додайте в опції рядки:
Option “DontZap” “yes” Варіант "DontZap" "Так"
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. Вам доведеться перезавантажити X Знову ж таки, найпростіший спосіб це ні парадоксально, використовуючи Ctrl + Alt + Backspace ... Але на той момент поєднання клавіш не будуть активними більше.
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. Якщо ви якось вдалося повністю зіпсувати вашу систему прийняття цих змін, ви можете скопіювати xorg.conf.orig файл назад в xorg.conf, щоб повернутися до початкової конфігурації.

Daily Email Updates Email Щоденні оновлення
You can get our how-to articles in your inbox each day for free. Ви можете отримати наші довідкові статті у Вашу поштову скриньку щодня безкоштовно. Just enter your name and email below: Просто введіть ваші ім'я та адресу електронної пошти нижче:



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? Хоча Ctrl + Alt + Backspace ярлик може бути невелика досада для нових користувачів Linux, то які альтернативні Чи є у вас коли ваш X Windows зависає? Is there some way to perhaps re-map this to another key combination? Чи є який-небудь спосіб, можливо, повторно-карту на іншу комбінацію клавіш? Disabling it completely will force users to hard-reboot when the GUI freezes, which is a much worse alternative. Відключення вона повністю буде примушувати користувачів до жорсткої перезавантаження, коли GUI замерзає, що набагато гірше, альтернатива.
@Scott @ Скотт
Note that I recommended against using this… I like the key combination and end up needing to use it all the time. Зауважте, що я висловився проти використання цього ... Мені подобається сполучення клавіш і в кінцевому підсумку необхідності використовувати весь цей час. I'm not sure about re-mapping, that was going to be my next research… Я не впевнений, про переадресації, що стане моєю наступною дослідження ...
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. Це може бути корисно, якщо ви хочете встановити Інтернет-кіоски, наприклад, і не хочу, щоб хто зможе вбити 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. Автор розуміємо, що не існує такої речі, як "X-Window?" Вона називається "X-Window System." Вікна-то з Редмонда.
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. Я не знаю, як перепризначити, але ви можете просто Ctrl + Alt + F1 (або F2-F6), щоб піти в текстовому режимі термінал, увійти в систему як корінь, і перезапустити Display Manager. If you're using gnome, it's “/etc/init.d/gdm restart”, and there's kdm for KDE or xdm for others. Якщо ви використовуєте GNOME, це "/ і т.д. / init.d / GDM перезапустіть", і є для KDE KDM або XDM для інших. 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). Майте на увазі, що вона буде стрибати вам Логін екрані знову почали Display Manager на F7 віртуальний термінал, але ви все ще будете зареєстровані як корінь на F1 (і, хоча вони, ймовірно, НЕ припускаю, що це було, будь-хто може прийти і використання кореневої оболонки на вашому комп'ютері). 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. Отже, коли ви вперше бачите, що Логін екран, натисніть Ctrl + Alt + F1 знову вийти, а потім натисніть Ctrl + Alt + F7, щоб повернутися до X.
Thanks for the info, by the way. Дякуємо за інформацію, до речі. I use a kinesis keyboard, and backspace is at my left thumb. Я використовую Kinesis клавіатуру і Backspace знаходиться на мій великий палець лівої руки. I hit it by accident all the time, and from time to time kill my whole X session inadvertently. Я вдарив його аварії практично весь час, і час від часу вбивають всю сесію X ненавмисно.
I try to disable it… but it doesn`t work, please help!!! Я прагну, щоб відключити його ... але це Doesn `T роботу, будь ласка, допоможіть!