Proxmox - Install Desktop

Post date: Jan 05, 2021 1:12:33 PM

This script will install a light weight GUI (xfce), disable the extra power settings (sleep, suspend, hibernate) and allow root to login to the gui. This along with a browser helps simplify tasks that need to be done while your on/at the host itself.

setup_xfce.bash

#!/bin/bash

apt update && apt install lightdm xfce4 gpm xfce4-terminal --no-install-recommends -y

if [ $? -eq 0 ]; then

 systemctl set-default graphical.target

fi

# Allow root

sed -i.backup 's/^minimum-uid/#minimum-uid/g' /etc/lightdm/users.conf

# Disable all power settings.

systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target