Dimensione: 10504
Commento:
|
Dimensione: 10754
Commento:
|
Le cancellazioni sono segnalate in questo modo. | Le aggiunte sono segnalate in questo modo. |
Linea 22: | Linea 22: |
} }} | }}} |
Linea 45: | Linea 45: |
È possibile modificare l'aspetto di '''LightDM''' tramite il tool grafico '''LightDM GTK+ Greeter Settings'''. | È possibile modificare l'aspetto di '''LightDM''' tramite il tool grafico '''LightDM GTK+ Greeter Settings''', presente nel [[AmministrazioneSistema/CentroDiControllo|Gestore delle impostazioni]] a partire dalla versione 15.04. |
Linea 62: | Linea 62: |
LightDM configuration is provided by the following files: {{{ /usr/share/lightdm/lightdm.conf.d/*.conf /etc/lightdm/lightdm.conf.d/*.conf /etc/lightdm/lightdm.conf }}} System provided configuration is stored in '''/usr/share/lightdm/lightdm.conf.d/*.conf''' and is not user editable. System administrators can override this configuration in '''/etc/lightdm/lightdm.conf.d/*.conf''' and '''/etc/lightdm/lightdm.conf'''. Files are read in the above order and combined together to make the LightDM configuration. For example, if you want to override the system configured default session (provided in '''/usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf''') you should make a file '''/etc/lightdm/lightdm.conf.d/50-myconfig.conf''' with the following: |
'''LightDM''' è configurabile modificando i seguenti file: * `/usr/share/lightdm/lightdm.conf.d/*.conf` * `/etc/lightdm/lightdm.conf.d/*.conf` * `/etc/lightdm/lightdm.conf` Le configurazioni fornite dal sistema sono conservate nel file non modificabile `/usr/share/lightdm/lightdm.conf.d/*.conf`. Con i diritti di amministrazione si può sovrascriverne la configurazione nei file `/etc/lightdm/lightdm.conf.d/*.conf` and `/etc/lightdm/lightdm.conf`. Ad esempio, per sovrascrivere la sessione di default preimpostata dal sistema (contenuta in `/usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf`) è necessario creare il file `/etc/lightdm/lightdm.conf.d/50-myconfig.conf` con l'aggiunta delle seguenti stringhe: |
Linea 77: | Linea 75: |
An example file showing all the possible configuration is provided in '''/usr/share/doc/lightdm/lightdm.conf.gz'''. There is an additional config file: {{{ /etc/lightdm/users.conf }}} but this config file will be ignored if accountsservice is running on your system (if you are unsure, check from a shell prompt with the command `ps -aef | grep accountsservice`). === Disabling Guest Login === By default LightDM allows you to log into a session as a temporary user; disable this with: {{{ |
Il contenuto del file `/usr/share/doc/lightdm/lightdm.conf.gz` mostra tutte le possibili configurazioni. Un ulteriore file di configurazione è `/etc/lightdm/users.conf`. Tuttavia le impostazioni di questo file vengono ignorate dal sistema se è in funzione '''accountsservice'''. Per verifica digitare in un [[AmministrazioneSistema/RigaDiComando#Aprire_una_finestra_di_terminale|terminale]]: {{{ ps -aef | grep accountsservice }}} === Disabilitare la sessione Ospite === Di default '''LightDM''' permette l'accesso temporaneo con sessione Ospite. È possibile disabilitare questa funzione modificando le seguenti righe come descritto di seguito: {{{ |
Linea 96: | Linea 88: |
=== Hiding the User List === Unity Greeter (and some other greeters) shows the list of possible user accounts by default. If you want to disable this (you have too many users or security concerns) use the following configuration. You may also want to explicitly [[http://wiki.ubuntu.com/LightDM#Show_Manual_Login_Box|enable manual login]] with this feature. {{{ |
=== Nascondere la lista utenti === '''Unity Greeter''' e altri temi mostrano la lista degli account utente presenti. È possibile disabilitare questa funzione modificando le seguenti righe come descritto di seguito: {{{ |
Linea 105: | Linea 95: |
=== Allow Manual Login === Unity Greeter (and some other greeters) don't allow you to enter a username to log in with by default. You can enable this with: {{{ |
=== Impostare il login manuale === Per impostare la digitazione manuale del nome dell'utente con il quale si desidera accedere, modificare le seguenti righe come descritto di seguito: {{{: |
Linea 114: | Linea 101: |
=== Setting an Automatic Login === To set the system to automatically start with a logged in user set the '''autologin-user'''. If '''autologin-user-timeout''' is set the greeter will be shown for this many seconds before the automatic login occurs. User activity will cancel this timeout. {{{ |
=== Login automatico === Per configurare l'accesso automatico al sistema per un determinato utente, aggiungere il nome di quest'ultimo nella riga {{{ [SeatDefaults] autologin-user=username }}} sostituendolo alla dicitura ''username''. Questa impostazione è possibile anche per l'account ospite: {{{ autologin-guest=true }}} È inoltre possibile impostare un tempo di attesa prima che venga eseguito il login automatico, indicandone anche la durata (espressa in secondi). Ad esempio, per impostare un tempo d'attesa di 10 secondi: {{{ |
Linea 122: | Linea 114: |
}}} If you want to set the automatic login to be a guest session then set: {{{ autologin-guest=true |
|
Linea 200: | Linea 186: |
= Help, I can't see my Desktop! = | = Soluzione dei problemi comuni = |
Problemi in questa pagina? Segnalali in questa discussione
Introduzione
LightDM è il display manager predefinito in Ubuntu e in gran parte delle sue derivate ufficiali. Ha sostituito altri display manager precedentemente preinstallati, come GNOME Display Manager (GDM) e LXDM.
Viene avviato immediatamente dopo il caricamento del sistema all'avvio e gestisce il login grafico tramite il server X. Serve inoltre per gestire l'accesso degli gli utenti al sistema e altre opzioni, fra cui la scelta dell'ambiente desktop. Le principali caratteristiche di LightDM sono:
- Assenza di dipendenze da Gnome
Uso di WebKit per il rendering dei temi
- Supporto a GTK e Qt
Possibilità di personalizzabile del tema, detto Greeter
Fra i principali temi utilizzati vi sono GTK Greeter e Unity Greeter, di default in Ubuntu.
Installazione
Come detto in precedenza, LightDM si trova preinstallato in Ubuntu. Tuttavia in alcuni casi potrebbe esserne necessaria l'installazione (su sistemi minimali, per sostituire un display manager differente ecc.). Seguire i seguenti passaggi:
Installare il pacchetto lightdm.
Se installato in precedenza un altro display manager digitare i seguenti comandi in una finestra di terminale:
sudo dpkg-reconfigure lightdm
e selezionare LighDM nella schermata successiva.
Al riavvio LighDM comparirà nella schermata di login.
Configurazione
Modalità grafica
Unity Greeter
È possibile modificare il tema Unity Greeter attraverso lo strumento Unity Tweak Tool oppure in alternativa Ubuntu Tweak.
Unity Tweak Tool
Installare il pacchetto unity-tweak-tool, se assente nel proprio sistema.
Avviare Unity Tweak Tool.
Nella sezione Aspetto selezionare ...............
- Verrà aperta la..................
Ubuntu Tweak
Installare lo strumento Ubuntu Tweak, se assente nel proprio sistema.
Avviare Ubuntu Tweak.
Nella tab Ottimizzazione selezionare Avvio → Impostazioni d'accesso.
- Apportare le modifiche desiderate nelle sezioni di proprio interesse.
GTK Greeter
È possibile modificare l'aspetto di LightDM tramite il tool grafico LightDM GTK+ Greeter Settings, presente nel Gestore delle impostazioni a partire dalla versione 15.04.
Di seguito le istruzioni per l'installazione.
Ubuntu 15.04 e successive
Se assente,installare il pacchetto lightdm-gtk-greeter-settings.
Ubuntu 14.04
Attivare il repository ppa:kalgasnik/ppa digitando i seguenti comandi in una finestra di terminale:
sudo add-apt-repository ppa:kalgasnik/ppa && sudo apt-get update
Installare il pacchetto lightdm-gtk-greeter-settings.
Modalità manuale
LightDM è configurabile modificando i seguenti file:
/usr/share/lightdm/lightdm.conf.d/*.conf
/etc/lightdm/lightdm.conf.d/*.conf
/etc/lightdm/lightdm.conf
Le configurazioni fornite dal sistema sono conservate nel file non modificabile /usr/share/lightdm/lightdm.conf.d/*.conf. Con i diritti di amministrazione si può sovrascriverne la configurazione nei file /etc/lightdm/lightdm.conf.d/*.conf and /etc/lightdm/lightdm.conf. Ad esempio, per sovrascrivere la sessione di default preimpostata dal sistema (contenuta in /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf) è necessario creare il file /etc/lightdm/lightdm.conf.d/50-myconfig.conf con l'aggiunta delle seguenti stringhe:
[SeatDefaults] user-session=mysession
Il contenuto del file /usr/share/doc/lightdm/lightdm.conf.gz mostra tutte le possibili configurazioni.
Un ulteriore file di configurazione è /etc/lightdm/users.conf. Tuttavia le impostazioni di questo file vengono ignorate dal sistema se è in funzione accountsservice. Per verifica digitare in un terminale:
ps -aef | grep accountsservice
Disabilitare la sessione Ospite
Di default LightDM permette l'accesso temporaneo con sessione Ospite. È possibile disabilitare questa funzione modificando le seguenti righe come descritto di seguito:
[SeatDefaults] allow-guest=false
Nascondere la lista utenti
Unity Greeter e altri temi mostrano la lista degli account utente presenti. È possibile disabilitare questa funzione modificando le seguenti righe come descritto di seguito:
[SeatDefaults] greeter-hide-users=true
Impostare il login manuale
Per impostare la digitazione manuale del nome dell'utente con il quale si desidera accedere, modificare le seguenti righe come descritto di seguito: {{{: [SeatDefaults] greeter-show-manual-login=true }}}
Login automatico
Per configurare l'accesso automatico al sistema per un determinato utente, aggiungere il nome di quest'ultimo nella riga
[SeatDefaults] autologin-user=username
sostituendolo alla dicitura username. Questa impostazione è possibile anche per l'account ospite:
autologin-guest=true
È inoltre possibile impostare un tempo di attesa prima che venga eseguito il login automatico, indicandone anche la durata (espressa in secondi). Ad esempio, per impostare un tempo d'attesa di 10 secondi:
[SeatDefaults] autologin-user=username autologin-user-timeout=delay
Changing the Default Session
The default session is set by configuration in /usr/share/lightdm/lightdm.conf.d/ that session packages provide. If you need to override this you can set:
[SeatDefaults] user-session=name
Where name is the name of the session .desktop file from /usr/share/xsessions/*.desktop.
Changing the Greeter
The greeter is set by configuration in /usr/share/lightdm/lightdm.conf.d/ that greeter packages provide. If you need to override this you can set:
[SeatDefaults] greeter-session=name
Where name is the name of the greeter .desktop file from /usr/share/xgreeters/*.desktop.
Adding System Hooks
If you need some special behaviour when X servers and user sessions start/stop you can set commands to be run with the following configuration:
[SeatDefaults] display-setup-script=command display-stopped-script=command (Not in Ubuntu 12.04 LTS) greeter-setup-script=command session-setup-script=command session-cleanup-script=command session-wrapper=command greeter-wrapper=command (Not in Ubuntu 12.04 LTS)
display-setup-script is run after the X server starts but before the user session / greeter is run. Set this if you need to configure anything special in the X server. It is run as root. If this command returns an error code the X server is stopped.
display-stopped-script is run after an X server exits. It is run as root.
greeter-setup-script is run before a greeter starts. It is run as root. If this command returns an error code the greeter fails to start (which will cause LightDM to stop).
session-setup-script is run before a user session starts. If this command returns an error the session will not start (user is returned to a greeter).
session-cleanup-script is run after a greeter or user session stops. It is run as root.
session-wrapper is a the command to run for a session. This command is run as the user and needs to exec the command passed in the arguments to complete running the session. Use this if you need to do special setup for a user session. Note the default is 'lightdm-session' so you should chain to this if you need to override this setting.
greeter-wrapper is a the command to run a greeter. It is the equivalent of session-wrapper for greeters.
Changing the Wallpaper
LightDM does not configure the look of greeters; to do this configure the appropriate greeter.
Unity Greeter by default shows the currently selected users background. To set the default background and stop the switching edit /usr/share/glib-2.0/schemas/10_unity_greeter_background.gschema.override
[com.canonical.unity-greeter] draw-user-backgrounds=false background='/foo/wallpaper.png'
And run sudo glib-compile-schemas /usr/share/glib-2.0/schemas/ to apply these settings.
For LightDM GTK+ greeter edit /etc/lightdm/lightdm-gtk-greeter.conf:
background=/usr/share/lubuntu/wallpapers/lubuntu-default-wallpaper.png
Soluzione dei problemi comuni
Many things can go wrong in a graphics stack. If you can't see any graphics or see corrupt graphics the following might help:
- You can get to a text terminal using alt-ctrl-F1.
- Check the LightDM logs in /var/log/lightdm.
Stop LightDM with sudo stop lightdm.
You can try LightDM again with sudo start lightdm.
If you have another display manager you want to try (e.g. gdm) start that: sudo start gdm.
You can set the default display manager by running sudo dpkg-reconfigure lightdm.
- Check your system is up to date, especially video drivers.
- File a bug. If you're not sure where the cause is (lightdm / unity-greeter / unity / X / kernel) file against lightdm and the bug will be triaged and reassigned.