返回文章列表文章索引阅读全文
STARBLOG / 阅读手记
系统配置

Ubuntu-18-04-Modify Login Screen Background Image

Preface I have been using Ubuntu 18.04 for a while now. With the addition of the Gnome desktop, the visual appeal of Ubuntu 18.04 is quite impressive. After pairing it with a few GTK themes I customized, the experience is absolutely delightful. The only slight drawback is that after switching Ubuntu’s login manager to GDM, the background of the login screen can no longer be modified. This just wouldn’t do, so after some tinkering, this article was born. First, prepare an image. The image size should be determined based on your screen resolution. Then, place the image in the /usr/share/backgrounds/ directory.

曦远 (DealiAxy)约 5 分钟
目录5 个章节

Foreword

I've been using Ubuntu 18.04 for a while now. With the Gnome desktop, Ubuntu 18.04 (nicknamed "Rabbit") actually looks quite good. After pairing it with a few GTK themes I customized, it feels absolutely delightful. The only slight downside is that after Ubuntu switched its login manager to GDM, there's no longer a straightforward way to change the login screen background. That just wouldn't do! So, after some tinkering, this article was born.

First, prepare an image

The dimensions of the image should be determined based on your screen resolution. Then, place the image in the /usr/share/backgrounds/ directory.

Modifying GDM's CSS File

For those working in front-end development, using Gnome would be a delightful experience. Themes, extensions, and various customization options can be explored extensively.

File Location

/etc/alternatives/gdm3.css
/*Find the default section*/
#lockDialogGroup {
  background: #2c001e url(resource:///org/gnome/shell/theme/noise-texture.png);
  background-repeat: repeat; 
}

/*Change it to*/
#lockDialogGroup {
  background: #2c001e url(file:///usr/share/backgrounds/mypicture.jpg);         
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center; 
}

Note: The CSS code provided is for reference only. Those familiar with front-end development can create better effects according to their preferences. Don’t forget to share your creations when you do!

Restart

You can restart the system or restart the graphical interface. To avoid any hassle, it's recommended to just restart the system—it's quick either way.

About


For more interesting operations, please follow my WeChat official account: DealiAxy.
Every article is also included in my blog: blog.deali.cn.

_EOF_

Ubuntu-18-04-Modify Login Screen Background Image

本文作者:
程序设计实验室
版权声明:
本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!

相关文章

给你的Deepin系统换主题~

我现在的桌面: 因为美国封锁然后华为电脑用上Deepin系统的事情,Deepin系统最近名声大噪,其实Deepin本来的界面就很好看,号称打造最适合国人的系统不是盖的。 不过Deepin有一个坏处,就是默认主题的标题栏太大了…… 太占空间。所以我们要换主题折腾一下。 Deepin的桌面是Qt写的,所以首先要换KDE主题,然后再安排一下GTK3的主题,在Deepin系统设置里面换的主题就是GTK的,

2025-10-01 · 系统配置 · 约 1 分钟

讨论

共 0 条

良言一句三冬暖,恶语伤人六月寒。

加载评论中…

Ubuntu-18-04-Modify Login Screen Background Image · StarBlog