安装完Ubuntu Server 后,执行下面脚本安装xfce4和登录界面:
sudo apt-get install xorg lightdm xfce4
配置登录session为xfce4
sudo vim /etc/lightdm/lightdm.conf
然后把下面的配置加入到文件
[SeatDefaults]
allow-guest=false
user-session=xfce
修改默认终端
update-alternatives --install "$(which x-terminal-emulator)" x-terminal-emulator "$(which mate-terminal)" 30
update-alternatives --set x-terminal-emulator "$(which mate-terminal)"