Ubuntu 17.10: Install Xfce for desktop environment


Table of Contents

1 Install Xfce

The following command will install Xfce.

$ sudo apt install -y xubuntu-desktop<snip>check for a default display manager. 1. gdm3 2. lightdmDefault display manager: lightdm<snip>$ sudo reboot

The following makes selecting display manager be automated.

$ sudo apt install -y expect$ cat <<EOF | expectset timeout -1spawn sudo apt install -y xubuntu-desktopexpect “Default display manager: “send “lightdmn”expect eofEOF$ sudo reboo

2 Login to Xfce

After reboot, lightdm-gtk-greeter will be started. You can select other desktop environment.

0001_Login.png

Xfce is displayed.

0002_Desktop.png

3 Uninstall Xfce

The following command will uninstall Xfce.

$ sudo apt remove -y xubuntu-desktop xfdesktop4 xfce4-* libxfce4-* lightdm$ sudo apt autoremove -y$ sudo apt install –reinstall -y gdm3$ sudo reboot

Android | Linux | SDL - Narrow Escape