{"id":10063,"date":"2020-05-12T15:22:47","date_gmt":"2020-05-12T15:22:47","guid":{"rendered":"http:\/\/ubuntuhandbook.org\/?p=10063"},"modified":"2024-05-06T16:21:06","modified_gmt":"2024-05-06T16:21:06","slug":"login-screen-background-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2020\/05\/login-screen-background-ubuntu-20-04\/","title":{"rendered":"How to Change Login Screen Background in Ubuntu 20.04"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/10\/gnome-logo-feature.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-34682\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/10\/gnome-logo-feature-250x250.png\" alt=\"\" width=\"250\" height=\"250\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/10\/gnome-logo-feature-250x250.png 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/10\/gnome-logo-feature-300x300.png 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/10\/gnome-logo-feature-600x600.png 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/10\/gnome-logo-feature-768x768.png 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/10\/gnome-logo-feature.png 1200w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/a><\/p>\n<p><b>UPDATE: For Ubuntu 22.04 and Ubuntu 24.04, there&#8217;s now a graphical tool to do the job, see <a href=\"https:\/\/ubuntuhandbook.org\/index.php\/2022\/04\/login-screen-background-ubuntu-22-04\/\" target=\"_blank\" rel=\"noopener\">this tutorial<\/a> for details.<\/b><\/p>\n<p>This simple tutorial shows how to easily change the login screen <b>background wallpaper<\/b> or <b>solid color<\/b> in Ubuntu 20.04 Gnome desktop.<\/p>\n<p>There&#8217;s no setting option to change GDM3 login screen background unless hacking on the the style sheet file, though it was fairly straightforward to edit the content in Ubuntu 18.04 and Ubuntu 19.10.<\/p>\n<p>In Ubuntu 20.04, you have to extract the css file from current theme&#8217;s <code>.gresource<\/code> file, then edit the content and recompile to create the new <code>.gresource<\/code> file, and finally set it as default.<\/p>\n<h3>Change Login screen background via script:<\/h3>\n<p>Thankfully, there are a few scripts in Github to make things simple. And here&#8217;s the one that works on Ubuntu 20.04, Ubuntu 20.10, and Ubuntu 21.04.<\/p>\n<p><b>1.)<\/b> First open terminal via <b>Ctrl+Alt+T<\/b> key combination and run command to install the required libraries:<\/p>\n<pre>sudo apt install wget libglib2.0-dev-bin<\/pre>\n<p><b>2.)<\/b> Then download the script via wget command line downloader:<\/p>\n<pre style=\"border: none;\">wget github.com\/thiggy01\/change-gdm-background\/raw\/master\/change-gdm-background<\/pre>\n<p><i>you can also download the <a href=\"https:\/\/github.com\/thiggy01\/change-gdm-background\" target=\"_blank\" rel=\"noopener\">script in github web page<\/a>.<\/i><\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/05\/wget-changegdmbackground.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-34762\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/05\/wget-changegdmbackground.png\" alt=\"\" width=\"600\" height=\"191\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/05\/wget-changegdmbackground.png 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/05\/wget-changegdmbackground-300x96.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p><b>3.)<\/b> After downloaded the script, add executable permission to the file by running command:<\/p>\n<pre>chmod +x change-gdm-background<\/pre>\n<p><b>4.)<\/b> And finally run command to set your photo image as login background:<\/p>\n<pre>sudo .\/change-gdm-background \/PATH\/TO\/IMAGE<\/pre>\n<p>Besides typing the path to image manually, you can type &#8220;sudo .\/change-gdm-background&#8221; in terminal, then hit space bar to input a blank space, and finally drag &amp; drop the image from file manager to terminal window.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/05\/set-gdmbackground.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-34763\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/05\/set-gdmbackground.gif\" alt=\"\" width=\"600\" height=\"315\" \/><\/a><\/p>\n<p>Type user password (no visual feedback) when it asks and hit Enter. <b>IMPORTANT<\/b>: After successfully changed the login screen background, it asks whether to restart GDM to apply changes. <b>Answer yes will log out current session<\/b>, so it&#8217;s important to backup your work before hitting enter!<\/p>\n<p><b>3.(Optional)<\/b> To restore changes, run command:<\/p>\n<pre style=\"border: None;\">sudo .\/change-gdm-background --restore<\/pre>\n<h3>Save the script for future use:<\/h3>\n<p>If you like the script and want to keep it for user later, run command to copy it to \/usr\/local\/bin directory:<\/p>\n<pre>sudo cp change-gdm-background \/usr\/local\/bin<\/pre>\n<p>After that, you can run the script any time in terminal window via:<\/p>\n<pre>sudo change-gdm-background \/PATH\/TO\/IMAGE<\/pre>","protected":false},"excerpt":{"rendered":"<p>UPDATE: For Ubuntu 22.04 and Ubuntu 24.04, there&#8217;s now a graphical tool to do the job, see this tutorial for details. This simple tutorial shows how to easily change the login screen background wallpaper or solid color in Ubuntu 20.04 Gnome desktop. There&#8217;s no setting option to change GDM3 login screen background unless hacking on [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[1058,1896],"class_list":["post-10063","post","type-post","status-publish","format-standard","hentry","category-howtos","tag-login-screen-background","tag-ubuntu-20-04"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/10063","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=10063"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/10063\/revisions"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=10063"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=10063"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=10063"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}