安装Unity
在终端上运行以下两条命令,你可以从官方默认软件仓库中安装Unity
sudo apt update
sudo apt install ubuntu-unity-desktop

在安装过程中,你可以选择默认的显示管理器, 你可以选择显示Unity登录界面的 lightdm 显示管理器.gdm是Gnome桌面的默认显示管理器.


安装完成后重启电脑就可以了.
sudo shutdown -r now
你可以看到熟悉的Unity登录界面

现在默认的桌面环境是 Unity. 你可以点击Ubuntu 图标来选择你想用的桌面环境.

如果你是 从 Ubuntu 16.04/17.10 升级到 Ubuntu 18.04 并且登录界面被Gnome桌面环境的登录界面替换了,你可以通过运行以下命令来回复Unity登录界面.
sudo dpkg-reconfigure lightdm
Unity 桌面就这样安装完成了

.
查看Unity版本
你可以使用 screenfetch 工具来查看Unity 桌面版本.
sudo apt install screenfetch
screenfetch
当然你也可以使用以下命令来查看
unity --version
安装完Unity后你可以安装unity-tweak-tool
sudo apt install unity-tweak-tool
从 Ubuntu 18.04卸载 GNOME 桌面
卸载Gnome很简单
sudo apt remove gnome-shell --purge
网友评论