Wiki Ubuntu-it

Indice
Partecipa
FAQ
Wiki Blog
------------------
Ubuntu-it.org
Forum
Chiedi
Chat
Cerca
Planet
  • Pagina non alterabile
  • Informazioni
  • Allegati
  • Differenze per "Cestino/DontZap"
Differenze tra le versioni 1 e 21 (in 20 versioni)
Versione 1 del 13/09/2009 13.12.16
Dimensione: 4101
Autore: LeoIannacone
Commento: Importata
Versione 21 del 24/11/2010 13.01.11
Dimensione: 4197
Commento:
Le cancellazioni sono segnalate in questo modo. Le aggiunte sono segnalate in questo modo.
Linea 2: Linea 2:
||<tablestyle="float:right; font-size: 0.9em; width:40%; background:#F1F1ED; margin: 0 0 1em 1em;" style="padding:0.5em;"><<TableOfContents>>|| #format wiki
#LANGUAGE it
[[BR]]
[[Indice]]
[[BR]]
[[Informazioni(forum="http://forum.ubuntu-it.org/index.php/topic,317744.0.html"; rilasci="9.10")]]
Linea 4: Linea 9:
== Ubuntu Karmic 9.10 or Higher ==
Linea 6: Linea 10:
Ctrl+Alt+Backspace (i.e. the shortcut which was used to restart the X server) has to be enabled in a different way with respect to previous releases of Ubuntu. = Introduzione =
In questa guida verranno illustrati vari modi per abilitare la combinazione di tasti '''Control + Alt + Backspace''', molto utile per effettuare un veloce arresto di sessione.
Linea 8: Linea 13:
This is due to the fact that "DontZap" is no longer an option in the X server and has become an option in XKB instead. ##The DontZap option in the /etc/X11/xorg.conf file enables or disables the CTRL-ALT-BACKSPACE shortcut to restart the X-server. In previous Ubuntu releases, this shortcut was enabled by default, however this will change starting with 9.04 "Jaunty", as a number of users have complained about accidentally restarting their X-Server.
Linea 10: Linea 15:
As a result, now it's very easy to use your Desktop environment of choice (e.g. GNOME, KDE) to enable or to disable the Ctrl+Alt+Backspace shortcut. It is also possible to do it without KDE or GNOME. ##= Aside: sticky keys =
Linea 12: Linea 17:
It is recommended that you do it from your desktop environment of choice (as you may find it easier to do so). ##It may be worth mentioning that the Accessibility shortcuts (for both KDE and Gnome) are enabled by holding the shift-key for 8 seconds.
##(This is easy to do if, say, selecting multiple items with the mouse). As a result, it's easy to inadvertently enable "Sticky Keys". Now, if you press Ctrl and then release it, and a bit later, you press Alt-Bksp (the shortcut to delete a whole word), then Boom! Bye-bye X-session :-(
Linea 14: Linea 20:
=== Using GNOME === ##Also, unlike Ctrl-Alt-Del, the Ctrl-Alt-Bksp shortcut is not trapped. It's instant death (without confirmation) for the X-server, and too bad about your unsaved files. That's why DontZap is a good default.
Linea 16: Linea 22:
* Get to the System->Preferences->Keyboard menu. ##For anyone missing the ability to kill the X-server in emergency, may I point out Alt-SysRq-R, followed by Ctrl-Alt-F1 (the first puts the keyboard back into Raw mode, i.e. outside the control of the X-server; the latter switches Virtual Terminal.) Or you can use Alt-SysRq-K to kill the current session.
Linea 18: Linea 24:
* Select the "Layouts" tab and click on the "Layout Options" button. = Ubuntu 9.10 «Karmic Koala» o successive =
Linea 20: Linea 26:
* Then select "Key sequence to kill the X server" and enable "Control + Alt + Backspace". == In GNOME ==
Linea 22: Linea 28:
=== Using KDE ===  0. Selezionare '''''Sistema → Preferenze → Tastiera'''''
Linea 24: Linea 30:
* Launch "systemsettings"  0. Selezionare la scheda '''Disposizioni''' e fare clic su '''Opzioni disposizione'''
Linea 26: Linea 32:
* Select "Regional & Language".  0. Fare clic su '''Sequenza di tasti per terminare il server X''' e abilitare l'opzione '''Control + Alt + Backspace'''
Linea 28: Linea 34:
* Select "Keyboard Layout". == In KDE ==
Linea 30: Linea 36:
* Click on "Enable keyboard layouts" (in the Layout tab).  0. Selezionare '''''Menu Kde → Applicazioni → Impostazioni → Impostazioni di sistema'''''
Linea 32: Linea 38:
* Select the "Advanced" tab. Then select "Key sequence to kill the X server" and enable "Control + Alt + Backspace".  0. Selezionare '''Lingua e Paese'''
 
 0. Selezionare '''Mappatura della tastiera'''
Linea 34: Linea 42:
=== Using the command line ===  0. Nella scheda '''Disposizione''' fare clic su '''Abilitare mappature della tastiera'''
Linea 36: Linea 44:
You can type the following command to enable Zapping immediately.  0. Selezionare la scheda '''Avanzate''', fare clic su '''Sequenza di tasti per terminare il server X''' e abilitare '''Control + Alt + Backspace'''

== Da riga di comando ==

Digitare da [:AmministrazioneSistema/RigaDiComando:riga di comando]:
Linea 41: Linea 53:
If you're happy with the new behaviour you can add that command to your ~/.xinitrc in order to make the change permanent. Per abilitare questo comportamento in modo permanente, inserire il comando precendete nel file `~/.xinitrc`:
{{{
echo setxkbmap -option terminate:ctrl_alt_bksp >> ~/.xinitrc
}}}
Linea 43: Linea 58:
=== Using HAL === == Utilizzando HAL ==
Linea 45: Linea 60:
You can add the following line in /usr/share/hal/fdi/policy/10osvendor/10-x11-input.fdi (inside the <match key="info.capabilities" contains="input.keys"> section): Aprire con un [:Ufficio/EditorDiTesto:editor di testo] con i [:AmministrazioneSistema/Sudo:privilegi di amministrazione] il file `/usr/share/hal/fdi/policy/10osvendor/10-x11-input.fdi`.
Linea 47: Linea 62:
Cercare la riga:
{{{
<match key="info.capabilities" contains="input.keys">
}}}

E aggiungere subito dopo:
Linea 51: Linea 72:
== Ubuntu Jaunty 9.04 ==
The DontZap option in the /etc/X11/xorg.conf file enables or disables the CTRL-ALT-BACKSPACE shortcut to restart the X-server. In previous Ubuntu releases, this shortcut was enabled by default, however this will change starting with 9.04 "Jaunty", as a number of users have complained about accidentally restarting their X-Server.
## = Ubuntu 9.04 «Jaunty Jackalope» =
Linea 54: Linea 74:
You can re-enable this shortcut by editing your {{{/etc/X11/xorg.conf}}}, ## Aprire con un [:Ufficio/EditorDiTesto:editor di testo] con i [:AmministrazioneSistema/Sudo:privilegi di amministrazione] il file `/etc/X11/xorg.conf` e inserire alla fine le seguenti righe:
Linea 56: Linea 76:
{{{
sudo nano /etc/X11/xorg.conf
}}}
## {{{
##Section "ServerFlags"
## Option "DontZap" "false"
##EndSection
##}}}
Linea 60: Linea 82:
then type your password, press enter, and use the simple text editor to add a ServerFlags section like this to the start, end, or middle of the file:

{{{
Section "ServerFlags"
        Option "DontZap" "false"
EndSection
}}}

And then restart the Computer (or log out and back in) to apply the changes. The shortcut should be re-enabled now.
## Successivamente terminare la sessione o riavviare il sistema.
Linea 71: Linea 85:
If you want to disable the shortcut, either delete the section (in Jaunty) or change it to this: == Disabilitare la combinazione di tasti ==

Per disabilitare la combinazione di tasti '''Control + Alt + Backspace''' è sufficiente eliminare le righe aggiunte qui sopra, o modificarle in questo modo:
Linea 79: Linea 95:
And then restart the Computer (or log out and back in) to apply the changes. The shortcut should be disabled now. Successivamente terminare la sessione o riavviare il sistema.
Linea 81: Linea 97:

== Aside: sticky keys ==

It may be worth mentioning that the Accessibility shortcuts (for both KDE and Gnome) are enabled by holding the shift-key for 8 seconds.
(This is easy to do if, say, selecting multiple items with the mouse). As a result, it's easy to inadvertently enable "Sticky Keys". Now, if you press Ctrl and then release it, and a bit later, you press Alt-Bksp (the shortcut to delete a whole word), then Boom! Bye-bye X-session :-(

Also, unlike Ctrl-Alt-Del, the Ctrl-Alt-Bksp shortcut is not trapped. It's instant death (without confirmation) for the X-server, and too bad about your unsaved files. That's why DontZap is a good default.

For anyone missing the ability to kill the X-server in emergency, may I point out Alt-SysRq-R, followed by Ctrl-Alt-F1 (the first puts the keyboard back into Raw mode, i.e. outside the control of the X-server; the latter switches Virtual Terminal.) Or you can use Alt-SysRq-K to kill the current session.

= Ulteriori risorse =
 * [https://wiki.ubuntu.com/X/Config/DontZap Documento originale]
Linea 93: Linea 100:
CategoryInTraduzione CategoryGrafica CategoryDaRevisionare

BR Indice BR Informazioni(forum="http://forum.ubuntu-it.org/index.php/topic,317744.0.html"; rilasci="9.10")

Introduzione

In questa guida verranno illustrati vari modi per abilitare la combinazione di tasti Control + Alt + Backspace, molto utile per effettuare un veloce arresto di sessione.

Ubuntu 9.10 «Karmic Koala» o successive

In GNOME

  1. Selezionare Sistema → Preferenze → Tastiera

  2. Selezionare la scheda Disposizioni e fare clic su Opzioni disposizione

  3. Fare clic su Sequenza di tasti per terminare il server X e abilitare l'opzione Control + Alt + Backspace

In KDE

  1. Selezionare Menu Kde → Applicazioni → Impostazioni → Impostazioni di sistema

  2. Selezionare Lingua e Paese

  3. Selezionare Mappatura della tastiera

  4. Nella scheda Disposizione fare clic su Abilitare mappature della tastiera

  5. Selezionare la scheda Avanzate, fare clic su Sequenza di tasti per terminare il server X e abilitare Control + Alt + Backspace

Da riga di comando

Digitare da [:AmministrazioneSistema/RigaDiComando:riga di comando]:

setxkbmap -option terminate:ctrl_alt_bksp

Per abilitare questo comportamento in modo permanente, inserire il comando precendete nel file ~/.xinitrc:

echo setxkbmap -option terminate:ctrl_alt_bksp >> ~/.xinitrc

Utilizzando HAL

Aprire con un [:Ufficio/EditorDiTesto:editor di testo] con i [:AmministrazioneSistema/Sudo:privilegi di amministrazione] il file /usr/share/hal/fdi/policy/10osvendor/10-x11-input.fdi.

Cercare la riga:

<match key="info.capabilities" contains="input.keys">

E aggiungere subito dopo:

<merge key="input.xkb.options" type="string">terminate:ctrl_alt_bksp</merge>

Disabilitare la combinazione di tasti

Per disabilitare la combinazione di tasti Control + Alt + Backspace è sufficiente eliminare le righe aggiunte qui sopra, o modificarle in questo modo:

Section "ServerFlags"
        Option          "DontZap"               "true"
EndSection

Successivamente terminare la sessione o riavviare il sistema.

Ulteriori risorse


CategoryGrafica CategoryDaRevisionare