• Guide & Review
    • All Tutorial(s)
    • Linux Distro Review
    • Complete Review Index
  • App
    • Top List Index
    • Top 10 List
    • Ubuntu Apps
    • GNOME Apps
    • KDE Apps
    • LibreOffice
      • Exclusive LibreOffice Guides
      • LibreOffice 24.8
      • Calc
  • Theme
  • Distro
    • Upcoming
    • Current
      • Fedora 42
      • Debian 12 “Bookworm”
      • Ubuntu 24.04 LTS
      • Ubuntu 24.10
      • LMDE 6
      • Linux Mint 22 “Wilma”
      • elementary OS 7 Horus
    • Arch Linux
    • Pop!_OS
    • Distro Review
    • View All Distros
  • DE
    • GNOME 48
    • COSMIC Desktop (Alpha)
    • KDE Plasma 6
    • Xfce 4.18
    • LXQt
    • View All Desktop Env
  • News
  • Dev
    • Learn Linux Commands
    • Virtual Machine Set up
      • VirtualBox (all guides)
      • GNOME Boxes
      • virt-manager & KVM
    • Linux Kernel 6.7
    • LibreOffice Macro
  • More
    • Editorial and Opinion
    • Hardware
  • RSS
  • Telegram Channel
  • Google News
  • 𝕏 (Twitter)
  • Mastodon
  • YouTube
  • Facebook
  • r/debugpoint
  • Email
sections
  • About
  • Content Policy
  • Contact

DebugPoint.com

Linux and Dev Portal

  • Guide & Review
    • All Tutorial(s)
    • Linux Distro Review
    • Complete Review Index
  • App
    • Top List Index
    • Top 10 List
    • Ubuntu Apps
    • GNOME Apps
    • KDE Apps
    • LibreOffice
      • Exclusive LibreOffice Guides
      • LibreOffice 24.8
      • Calc
  • Theme
  • Distro
    • Upcoming
    • Current
      • Fedora 42
      • Debian 12 “Bookworm”
      • Ubuntu 24.04 LTS
      • Ubuntu 24.10
      • LMDE 6
      • Linux Mint 22 “Wilma”
      • elementary OS 7 Horus
    • Arch Linux
    • Pop!_OS
    • Distro Review
    • View All Distros
  • DE
    • GNOME 48
    • COSMIC Desktop (Alpha)
    • KDE Plasma 6
    • Xfce 4.18
    • LXQt
    • View All Desktop Env
  • News
  • Dev
    • Learn Linux Commands
    • Virtual Machine Set up
      • VirtualBox (all guides)
      • GNOME Boxes
      • virt-manager & KVM
    • Linux Kernel 6.7
    • LibreOffice Macro
  • More
    • Editorial and Opinion
    • Hardware

DebugPoint.com

4 years ago 3 years ago

Tutorials

How to Change Lock and Login Screen Wallpaper in elementary OS

2 min


Arindam
by Arindam 4 years ago3 years ago
54.8kviews

This tutorial explains the steps you need to change the lock and login screen background in elementary OS. This will replace the default grey background.

Changing the lock or login screen background grey default wallpaper in elementary OS is a bit difficult. The typical greeter configuration change with the path of the image file would not work.

Unfortunately, it’s not an easier solution because the grey background is an image file and its data is hardcoded in the greeter and need to be recompiled with a new image to make it work.

Here’s how.

Lock / Login screen background elementary OS (Odin)
Lock / Login screen background elementary OS (Odin)

Change Lock and Login Screen Background – elementary OS

WARNING: Whenever there is a release of a new version of Greeter/updates to Greeter, the following changes would be overwritten by the system. Hence you need to do these steps again. And these changes may need a little bit of source code compilation experience. That means, you understand what each of these commands does and know how to fix it.

  • Open a terminal in your elementary OS.
  • Install git and following dependencies for greeter package.
sudo apt install git
sudo apt install -y gnome-settings-daemon libaccountsservice-dev libgdk-pixbuf2.0-dev libgranite-dev libgtk-3-dev libhandy-1-dev liblightdm-gobject-1-dev libmutter-6-dev libwingpanel-dev libx11-dev meson valac
  • Go to temporary /tmp directory and clone the latest greeter master branch from GitHub.
cd /tmp
git clone https://github.com/elementary/greeter.git
  • After cloning is complete, open the path /tmp/greeter/data in a file manager.
  • The elementary OS uses a PNG file of 100×100 px as default background in the login screen/lock screen. The image is tiled, and it gives an impression of grey background.
  • Rename your desired wallpaper image with texture.png and overwrite the following file in the path.
gray background is created using this file
gray background is created using this file
 /tmp/greeter/data/texture.png
  • Open the file /tmp/greeter/compositor/SystemBackground.vala in a text editor and replace the following line –
change the path of image
change the path of image
resource:///io/elementary/desktop/gala/texture.png

With –

resource:///io/elementary/greeter/texture.png
  • Save the file.
  • Open the terminal again and build greeter using the following commands.
cd /tmp/greeter
meson _build --prefix=/usr
sudo ninja install -C _build
building greeter
building greeter
  • If you face any build error, let me know in the comment below. You should not be seeing any error, as I have tested it.

After the above commands are complete, you can test the login screen by running lightdm in test mode –

lightdm --test-mode --debug

If it looks good, reboot the system. And you should be seeing your wallpaper on the login screen in elementary OS.

This guide should work in elementary OS 6 Odin, elementary OS 5 Juno and below.

Closing Notes

I hope this guide helps you to change the background of the lock or login screen in your elementary OS. Honestly, it’s 2022 and changing a background image of the login screen requires a compilation of code surprises me.

If you run into any errors, let me know in the comment box below.

Add DebugPoint to your Google News feed. Follow us:
Join our Telegram Channel and stay informed on the move.
Using Mastodon? Follow us at floss.social/@debugpoint

Post Pagination

  • Previous PostPrevious
  • Next PostNext

elementary, Login Screen
Arindam

Posted by Arindam

Creator and author of debugpoint.com. Connect with me via Telegram, 𝕏 (Twitter), or send us an email.
Subscribe
Notify of
guest

guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

5 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
  • Previous Post
    Change your Linux Desktop Wallpaper Every Hour [Here's How]
    by Arindam
  • Next Post
    How to Fix yay: error while loading shared libraries: libalpm.so.12
    by Arindam

More From: Tutorials

  • 1.1k
    Home Lab, Server Setup

    Creating Your Own Home Lab: Essential Setup Tips for Tech Enthusiasts

    6 months ago5 months ago
  • 1.6k
    Fedora 41
    1

    Upgrade to Fedora 41 from Fedora 40 Workstation (GUI and CLI)

    6 months ago6 months ago
  • 737
    gparted, virtual machine, VirtualBox

    How to Increase Virtual Machine Size in VirtualBox

    8 months ago8 months ago

DON'T MISS

  • Popular
    876
    fedora, Fedora 42
    1

    Fedora 42: Best New Features

    2 weeks ago2 weeks ago
  • 544
    GNOME 48

    GNOME 48: Best New Features

    3 weeks ago3 weeks ago

Notice:

Notice: Due to ongoing portal maintenance, you may find 404 on certain pages.- April 6, 2025

Related Articles

  • elementary OS 8: 10 Best New Features
  • Sodalite: Fusion of Fedora Silverblue and Pantheon Desktop
  • How to Change Login Screen Background in Ubuntu
  • 10 Things to Do After Installing elementary OS 7 “Horus”

DebugPoint.com is a portal covering Technology, Software News and stuff that matters. Heavily slant towards Linux and Open Source.

All applications are registered trademarks of their respective owners. Icons and Logos are used for information purposes, and credit is provided at the end of corresponding articles.

This site serves Ads by a third party that uses cookies and serves ads based on user browsing patterns.

Ideas and opinions expressed here are owned by the author and don’t necessarily reflect those of other people or organizations.

Linux is a registered trademark of Linus Torvalds.

Stay in touch

  • RSS
  • Telegram Channel
  • Google News
  • 𝕏 (Twitter)
  • Mastodon
  • YouTube
  • Facebook
  • r/debugpoint
  • Email

Other Projects

  • debugpointnews.com
  • About
  • Content Policy
  • Contact
© 2025 DebugPoint.com All Rights Reserved | Created with ❤ in India 🇮🇳

log in

Captcha!
Forgot password?

forgot password

Back to
log in