___ _ _ _ _ __ _______ ____ _____ |_ _|_ __ ___| |_ __ _| | (_)_ __ __ _ \ \/ / ___/ ___| ____| | || '_ \/ __| __/ _` | | | | '_ \ / _` | \ /| |_ | | | _| | || | | \__ \ || (_| | | | | | | | (_| | / \| _|| |___| |___ |___|_| |_|___/\__\__,_|_|_|_|_| |_|\__, | /_/\_\_| \____|_____| |___/ ___ _ __ __ _ / _ \| '_ \ / _` | | (_) | | | | | (_| | [Installing XFCE on a Raspberry Pi (RPi)] \___/|_| |_| \__,_| ____ _ ____ _ | _ \ __ _ ___ _ __ | |__ ___ _ __ _ __ _ _ | _ \(_) | |_) / _` / __| '_ \| '_ \ / _ \ '__| '__| | | | | |_) | | | _ < (_| \__ \ |_) | |_) | __/ | | | | |_| | | __/| | |_| \_\__,_|___/ .__/|_.__/ \___|_| |_| \__, | |_| |_| |_| |___/ by TheOuterLinux (https://theouterlinux.gitlab.io) Last updated: 2023/3/26 The following assumes that you have at least a Raspberry Pi 3B+ or newer with the latest stable version of Raspberry Pi OS (or Raspbian in some cases) installed. ------------------------------------------------------------------------ ___ __ _ | __ _ _|_ _ | | _ _|_ o _ __ _ __ _| (_ _ _|_ |_) _|_| |_> |_(_| | | (_| |_ | (_)| | (_|| |(_| __)(/_ |_|_|| [Installation and Setup] In a terminal/console run the following to install what you need: sudo apt install xserver-xorg xfce4 xfce4-goodies Set the default desktop environment by running the following in a terminal/console: sudo update-alternatives --config x-session-manager When prompted, select 'startxfce4'. Next, to make sure that your default window-manager is 'xfwm4', run the following in a terminal/console: sudo update-alternatives --config x-window-manager ------------------------------------------------------------------------ _ _ _ _ _ | (_)__ _| |_| |_ __| |_ __ | | / _` | ' \ _/ _` | ' \ |_|_\__, |_||_\__\__,_|_|_|_| [lightdm display manager] |___/ If you want a login screen, run the following in a terminal/console to change the default display-manager to lightdm: sudo dpkg-reconfigure lightdm However, and this is just my personal opinion, if you are decent enough with the command-line on a system like the Raspberry Pi, you may be better-off having it boot straight into the console and then run 'startx' whenever you need a graphical interface. It is a few extra steps, but it should help your RPi last longer. ------------------------------------------------------------------------ _ |_) _ |_ _ _ _|_ | \(/_|_)(_)(_) |_ [Reboot] You should then reboot the Raspberry Pi; you can also do this in a terminal/console using: sudo reboot ------------------------------------------------------------------------ | _ _|_ o __ _ _ _ _ \_||_|_> |_ | | | (_ (_|_> (/_ o o o [Just in case...] If at anypoint the desktop environment crashes, not that I expect it to, but given how limited RAM can be on certain models, you never know, you can start XFCE again by running either of the following in the console: sudo startxfce4 or... sudo startx We can run 'sudo startx' and have it start XFCE because of the changes made in regards to the previously mentioned "x-window-manager" step. ------------------------------------------------------------------------ By the way, if Network Manager is not working, try running the following in a terminal/console and then reboot: sudo systemctl enable NetworkManager Also, the applet in the panel that corresponds to the Network Manager as called 'nm-applet' if for some reason you need to use the 'Session and Startup' to have it running at login. If Network Manager is not installed, run: sudo apt install network-manager network-manager-gnome