Questo contenuto non è disponibile nella lingua selezionata.
10.4. Customizing the Login Screen
10.4.1. Adding a Greeter Logo Copia collegamentoCollegamento copiato negli appunti!
org.gnome.login-screen.logo GSettings key. Since GDM uses its own dconf profile, you can add a greeter logo by changing the settings in that profile.
dconf, see Chapter 9, Configuring Desktop with GSettings and dconf.
- All the major formats are supported: ANI, BPM, GIF, ICNS, ICO, JPEG, JPEG 2000, PCX, PNM, PBM, PGM, PPM, GTIFF, RAS, TGA, TIFF, XBM, WBMP, XPM, and SVG.
- The size of the picture scales proportionally to the height of 48 pixels. So, if you set the logo to 1920x1080, for example, it changes into an 85x48 thumbnail of the original picture.
Procedure 10.6. Adding a logo to the login screen
- Create or edit the
gdmprofile in/etc/dconf/profile/gdmwhich contains the following lines:user-db:user system-db:gdm file-db:/usr/share/gdm/greeter-dconf-defaults
user-db:user system-db:gdm file-db:/usr/share/gdm/greeter-dconf-defaultsCopy to Clipboard Copied! Toggle word wrap Toggle overflow gdmis the name of adconfdatabase. - Create a
gdmdatabase for machine-wide settings in/etc/dconf/db/gdm.d/01-logo:[org/gnome/login-screen] logo='/usr/share/pixmaps/logo/greeter-logo.png'
[org/gnome/login-screen] logo='/usr/share/pixmaps/logo/greeter-logo.png'Copy to Clipboard Copied! Toggle word wrap Toggle overflow Replace /usr/share/pixmaps/logo/greeter-logo.png with the path to the image file you want to use as the greeter logo. - Update the system databases:
dconf update
# dconf updateCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Note
dconf update command as root to update the system databases. In case the logo does not update, try restarting GDM. For more information, see Section 14.1.1, “Restarting GDM”.
10.4.2. Displaying a Text Banner Copia collegamentoCollegamento copiato negli appunti!
org.gnome.login-screen.banner-message-enable- enables showing the banner message.
org.gnome.login-screen.banner-message-text- shows the text banner message in the login window.
GDM uses its own dconf profile, you can configure the text banner by changing the settings in that profile.
Procedure 10.7. Displaying a Text Banner on the Login Screen
- Create or edit the
gdmprofile in/etc/dconf/profile/gdmwhich contains the following lines:user-db:user system-db:gdm file-db:/usr/share/gdm/greeter-dconf-defaults
user-db:user system-db:gdm file-db:/usr/share/gdm/greeter-dconf-defaultsCopy to Clipboard Copied! Toggle word wrap Toggle overflow gdmis the name of adconfdatabase. - Create a
gdmdatabase for machine-wide settings in/etc/dconf/db/gdm.d/01-banner-message:[org/gnome/login-screen] banner-message-enable=true banner-message-text='Type the banner message here'
[org/gnome/login-screen] banner-message-enable=true banner-message-text='Type the banner message here'Copy to Clipboard Copied! Toggle word wrap Toggle overflow Note
There is no character limit for the banner message. GNOME Shell autodetects longer stretches of text and enters two column mode. However, the banner message text cannot be read from an external file. - Update the system databases:
dconf update
# dconf updateCopy to Clipboard Copied! Toggle word wrap Toggle overflow
10.4.2.1. What if the Banner Message Does Not Update? Copia collegamentoCollegamento copiato negli appunti!
dconf update command.
GDM. For more information, see Section 14.1.1, “Restarting GDM”.
10.4.3. Displaying Multiple Keyboard Layouts Copia collegamentoCollegamento copiato negli appunti!
Procedure 10.8. Changing the System Keyboard Layout Settings
- Find the codes of the required language layouts in the
/usr/share/X11/xkb/rules/base.lstfile under the section named! layout. - Use the
localectltool to change the system keyboard layout settings as follows:localectl set-x11-keymap layout
$ localectl set-x11-keymap layoutCopy to Clipboard Copied! Toggle word wrap Toggle overflow You can specify multiple layouts as a comma-separated list. For example, to setesas the default layout, andusas the secondary layout, run the following command:localectl set-x11-keymap es,us
$ localectl set-x11-keymap es,usCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Log out to find that the defined layouts are available at the top bar on the login screen.
localectl tool to specify the machine-wide default keyboard model, variant, and options. See the localectl(1) man page for more information.
10.4.4. Disabling the Login Screen User List Copia collegamentoCollegamento copiato negli appunti!
org.gnome.login-screen.disable-user-list GSettings key.
Procedure 10.9. Setting the org.gnome.login-screen.disable-user-list Key
- Create or edit the
gdmprofile in/etc/dconf/profile/gdmwhich contains the following lines:user-db:user system-db:gdm file-db:/usr/share/gdm/greeter-dconf-defaults
user-db:user system-db:gdm file-db:/usr/share/gdm/greeter-dconf-defaultsCopy to Clipboard Copied! Toggle word wrap Toggle overflow gdmis the name of adconfdatabase. - Create a
gdmdatabase for machine-wide settings in/etc/dconf/db/gdm.d/00-login-screen:[org/gnome/login-screen] # Do not show the user list disable-user-list=true
[org/gnome/login-screen] # Do not show the user list disable-user-list=trueCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Update the system databases by updating the
dconfutility:dconf update
# dconf updateCopy to Clipboard Copied! Toggle word wrap Toggle overflow