Skip to the content
Frank Stolle
tips & tricks for java, javascript, webdevelopment, linux and more
  • Home
  • Cheat Sheets
    • Docker
    • GIT
    • Kubernetes
    • systemd
  • Home
  • Cheat Sheets
    • Docker
    • GIT
    • Kubernetes
    • systemd
  • Twitter
  • GitHub
  • RSS Feed
  • E-Mail
Categories
Linux

change background / style of GDM login screen in Ubuntu

  • Post author By Frank
  • Post date 11. May 2020

If you are using GDM3 as display manager and you want to change your background of the login screen or lock screen, you won’t unfortunately find any option in a common settings dialog. In Ubuntu you will always have the nice purple background while entering your password.

But you can change it! (Tested with Ubuntu 18.04 and gdm3 3.28.3) First you have to copy you preferred background to a system directory, for example /usr/local/share/backgrounds.

#copy background
sudo mkdir -p /usr/local/share/background
sudo cp mybackground.jpg /usr/local/share/backgrounds

Then you have to copy the current used theme of GDM3 for your modifications:

#copy current theme into local share
sudo mkdir -p /usr/local/share/themes
sudo cp /etc/alternatives/gdm3.css /usr/local/share/themes/

Then open this file in your favorite editor and search for #loclDialogGroup. You should change it to:

#lockDialogGroup {                                                                                                                                                                                                                                                                      
  background: #000000 url(file:///usr/local/share/backgrounds/mybackground.jpg);                                                                                                                                                                                                             
  background-repeat: repeat;                                                                                                                                                                                                                                                            
  background-size: cover;                                                                                                                                                                                                                                                               
  background-position: center;                                                                                                                                                                                                                                                          
}

Then you have to install your new theme using update-alternatives and check that it was successfully installed.

sudo update-alternatives --install /usr/share/gnome-shell/theme/gdm3.css gdm3.css /usr/local/share/themes/gdm3.css 100
sudo update-alternatives --config gdm3.css

Unfortunately not all components uses the gdm3.css alternative, so you additionally have to copy your css over the ubuntu provided.

sudo cp --backup /usr/local/share/themes/gdm3.css /usr/share/gnome-shell/theme/ubuntu.css

After upgrading the package gnome-shell-common, you have to look at the differences between the new ubuntu.css and your backup and patch the ubuntu.css again.

Then you should reboot to apply the changes.

  • Tags background, customizing, GDM, Gnome, lock screen, login screen, theme

← use mount in udev rule with systemd-udevd → automatically count headers via css

Recent Posts

  • safer Bash scripts
  • use SSH agent sockets with tmux
  • automatically count headers via css
  • change background / style of GDM login screen in Ubuntu
  • use mount in udev rule with systemd-udevd

Tags

API AWT bugs classloader cronjobs CSS DPI EJB events filter GDM Gnome GWT HiDPI HTML images Java JavaScript JBoss JPA JQuery Maven monitor mount NetworkManager OpenVPN PDF performance Polymer PostgreSQL QEMU Quartz QueryDSL resolution scripts SEAM security service systemd template Tomcat udev udev rules USB XHTML

Calendar

May 2020
M T W T F S S
 123
45678910
11121314151617
18192021222324
25262728293031
« Apr    

Categories

  • Eclipse
  • HTML/CSS
  • Java
    • GWT
    • JBoss
    • Maven
    • SEAM
    • Tomcat
  • Javascript
    • JQuery
    • Polymer/Webcomponents
  • Linux
    • Bash
    • Docker
  • Networking
  • Virtualization
  • XHTML
  • Twitter
  • GitHub
  • RSS Feed
  • E-Mail

Search

Tags

API AWT bugs classloader cronjobs CSS DPI EJB events filter GDM Gnome GWT HiDPI HTML images Java JavaScript JBoss JPA JQuery Maven monitor mount NetworkManager OpenVPN PDF performance Polymer PostgreSQL QEMU Quartz QueryDSL resolution scripts SEAM security service systemd template Tomcat udev udev rules USB XHTML

Credits

header photo by unsplash-logoJanko Ferlič

Archive

  • May 2020
  • April 2020
  • February 2016
  • January 2016
  • August 2013
  • January 2010
  • December 2009
  • November 2009
  • October 2009

© 2022 Frank Stolle

Powered by WordPress

To the top ↑ Up ↑