Ce contenu n'est pas disponible dans la langue sélectionnée.
10.4. Customizing the Login Screen
10.4.1. Adding a Greeter Logo
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
gdm
profile in/etc/dconf/profile/gdm
which contains the following lines:user-db:user system-db:gdm file-db:/usr/share/gdm/greeter-dconf-defaults
gdm
is the name of adconf
database. - Create a
gdm
database for machine-wide settings in/etc/dconf/db/gdm.d/01-logo
:[org/gnome/login-screen] logo='/usr/share/pixmaps/logo/greeter-logo.png'
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
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
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
gdm
profile in/etc/dconf/profile/gdm
which contains the following lines:user-db:user system-db:gdm file-db:/usr/share/gdm/greeter-dconf-defaults
gdm
is the name of adconf
database. - Create a
gdm
database 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'
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
10.4.2.1. What if the Banner Message Does Not Update?
dconf update
command.
GDM
. For more information, see Section 14.1.1, “Restarting GDM”.
10.4.3. Displaying Multiple Keyboard Layouts
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.lst
file under the section named! layout
. - Use the
localectl
tool to change the system keyboard layout settings as follows:$
localectl set-x11-keymap layout
You can specify multiple layouts as a comma-separated list. For example, to setes
as the default layout, andus
as the secondary layout, run the following command:$
localectl set-x11-keymap es,us
- 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
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
gdm
profile in/etc/dconf/profile/gdm
which contains the following lines:user-db:user system-db:gdm file-db:/usr/share/gdm/greeter-dconf-defaults
gdm
is the name of adconf
database. - Create a
gdm
database 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
- Update the system databases by updating the
dconf
utility:#
dconf update