首先打开一个终端,开始在 Unity dash 中输入“terminal”以查看选项或按 ctrl+alt+t
让我们转到正确的目录:
cd /etc/lightdm
Run Code Online (Sandbox Code Playgroud)
现在让我们在进行任何更改之前先备份文件:
sudo cp unity-greeter.conf unity-greeter.conf.bak
Run Code Online (Sandbox Code Playgroud)
现在我们需要打开这个文件并查看发生了什么变化,输入/复制以下内容:
gksu gedit /etc/lightdm/unity-greeter.conf
Run Code Online (Sandbox Code Playgroud)
该文件应如下所示:
#
# background = Background file to use, either an image path or a color (e.g. #772953)
# logo = Logo file to use
# theme-name = GTK+ theme to use
# font-name = Font to use
# xft-antialias = Whether to antialias Xft fonts (true or false)
# xft-dpi = Resolution for Xft in dots per inch (e.g. 96)
# xft-hintstyle = What degree of hinting to use (hintnone, hintslight, hintmedium, or hintfull)
# xft-rgba = Type of subpixel antialiasing (none, rgb, bgr, vrgb or vbgr)
#
[greeter]
background=/usr/share/backgrounds/warty-final-ubuntu.png
logo=/usr/share/unity-greeter/logo.png
theme-name=Ambiance
icon-theme-name=ubuntu-mono-dark
font-name=Ubuntu 11
xft-antialias=true
xft-dpi=96
xft-hintstyle=hintslight
xft-rgba=rgb
Run Code Online (Sandbox Code Playgroud)
然后保存并退出。
小智 0
如果您想自定义显示管理器,lightdm 可能不是理想的选择。我会将其替换为 mdm(themability、图形配置工具等),它有点臃肿,但你不会注意到任何区别,除非它在 12 年的笔记本上运行。可以在此处找到相关说明: 如何用 MDM 替换 LightDM?