Ubuntu默認的登錄界面有點不敢恭維, 實在不符合現代人的審美.
爲此找了半天找哪裏可以修改, 但是最終還是要求助Google.
1. 將準備設置爲登錄界面壁紙的圖片移動到/usr/share/background
$ mv your_picture.jpg /usr/share/background
2. Ubuntu18.04登錄背景相關的配置文件是 /etc/alternatives/gdm3.css
因爲需要修改這個文件, 以防萬一先將該文件複製一份
$ cp /etc/alternatives/gdm3.css /etc/alternatives/gdm3.css.temp
3. 修改/etc/alternatives/gdm3.css
#找到默認的這個部分
#lockDialogGroup {
background: #2c001e url(resource:///org/gnome/shell/theme/noise-texture.png);
background-repeat: repeat;
}
#改爲
#lockDialogGroup {
background: #2c001e url(file:///usr/share/backgrounds/your_picture.jpg);
background-repeat: no-repeat;
background-size: cover;
background-position: center;
}