7

I changed both the desktop and login screen background photos. However,only desktop photo is changed. The one on the login screen is still the purple Ubuntu one. Is this a bug?

10

to change the login screen background in Ubuntu 18.10 with default Display Manager that is gdm3

we need to edit the gdm3.css file.

open the file with your favorite editor, mine is gedit. so
sudo -H gedit /etc/alternatives/gdm3.css

go to line number around 1981 and find the below content.

#lockDialogGroup {
  background: none;
  background-color: none;
  background-gradient-direction: vertical;
  background-gradient-start: #6D2169;
  background-gradient-end: #370026; }

change the content with

#lockDialogGroup {
  background: #000000 url(file:///home/pratap/Desktop/1.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center; }

here in the line number 1982 url(file://put your actual image path)

save the file, close & reboot to see the change.

Picture of Lock Screen Wallpaper enter image description here

Picture of Unlock Screen Background enter image description here

Edit
for 18.04 same method, only line number varies 1814,

#lockDialogGroup {
  background: #2c001e url(resource:///org/gnome/shell/theme/noise-texture.png);
  background-repeat: repeat; }

replace the above content with

#lockDialogGroup {
  background: #000000 url(file:///home/pratap/Desktop/1.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center; }

here in the line number 1815 url(file://put your actual image path)

  • Looks great. Could you update answer to specify if 18.04 works same way too? – WinEunuuchs2Unix Oct 25 '18 at 2:57
  • Thanks. It is working. Just curious. Why "file:///" rather than "file://" ? – lovedrinking Oct 25 '18 at 4:06
  • This seems like an awfully convoluted way to change a login screen image. Are you sure a more "user-friendly" alternative is not available? – code_dredd Oct 25 '18 at 5:27
  • @PRATAP I'd like to change my login screen to the same solid color that I've got set for my lock screen (in the Background settings panel). Where are the solid color panels located? Is the an easy modification to your answer to do what I want? Thanks! – heynnema Nov 4 '18 at 0:58
  • @PRATAP Excellent, thanks! However, can you put up the code blocks for 18.10, as you're showing the method for 18.04. Also, wouldn't your sudo gedit command be safer with sudo -H gedit? – heynnema Nov 4 '18 at 14:09
0

You can use Loginized utility for Gnome. https://github.com/juhaku/loginized

  • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review – mature Feb 24 at 14:42
  • 1
    @mature Looks fine to me. This is not a link-only answer, rather it just suggests using an application to achieve the goal and provides a link to that application. Link-only answers are answers which, instead of trying to answer the question, contain only (or mostly) link(s) to (external) site(s) which may have an answer to the question. – pomsky Feb 24 at 20:55

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.