Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to change the GDM login interface background of Ubuntu system

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly shows you "how to change the GDM login interface background of the Ubuntu system", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to change the GDM login interface background of the Ubuntu system" this article.

Change the login interface background of Ubuntu

This is the default login interface for Ubuntu 18.04 LTS desktop systems.

Whether you like it or not, you will inadvertently face it when logging in, unlocking / unlocking the screen. Don't worry! You can change any picture you like.

It is not difficult to change desktop wallpapers and user profile images on Ubuntu. We can do it at the click of a mouse. However, changing the background of the unlock / unlock screen requires modifying the file ubuntu.css, which is located in / usr/share/gnome-shell/theme.

Back up the file before you modify it. In this way, we can avoid restoring it when something goes wrong.

$sudo cp / usr/share/gnome-shell/theme/ubuntu.css / usr/share/gnome-shell/theme/ubuntu.css.bak

Modify the file ubuntu.css:

$sudo nano / usr/share/gnome-shell/theme/ubuntu.css

Find the keyword lockDialogGroup in the file, such as the following line:

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

As you can see, the background image for GDM login by default is noise-texture.png.

Now change it to your own image path. You can also choose files in .jpg or .png format, both of which are supported. The contents of the modified file are as follows:

# lockDialogGroup {background: # 2c001e url (file:///home/sk/image.png); background-repeat: no-repeat; background-size: cover; background-position: center;}

Please pay attention to the modification of this keyword in the ubuntu.css file. I have bold the modification point.

You may have noticed that I put the original. Url (resource:///org/gnome/shell/theme/noise-texture.png); modified to... Url (file:///home/sk/image.png);. In other words, you can put. Url (resource... Change it to; change it to Url (file...

At the same time, you can change the value repeat of the parameter background-repeat: to no-repeat and add two more lines. You can directly copy the above lines to your ubuntu.css file and change them to your image path.

After the modification is complete, save and close the file. Then the system restart takes effect.

The following is the background image of the GDM login interface:

Isn't it cool, as you can see, it's easy to change the default background for GDM login. You just need to change the path of the image in the ubuntu.css file and restart the system. Isn't it simple and interesting?

You can modify the file gdm3.css in the / usr/share/gnome-shell/theme directory, and the specific changes and results are the same as above.

The above is all the content of this article "how to change the GDM login interface background of Ubuntu system". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report