It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In RegisterIt looks like you're new here. If you want to get involved, click one of these buttons!
apt-get update
apt install -y xubuntu-desktopCheck for a default display manager lightdm.
reboot3. Let's make selected display manager to be automated:
apt install -y expect
cat <<EOF | expect
set timeout -1
spawn sudo apt install -y xubuntu-desktop
expect "Default display manager: "
send "lightdm\n"
expect eof
EOF4. Reboot a server from a client system or perform a command:
reboot5. Install xrdp:
apt install -y xrdp
sed -e 's/^new_cursors=true/new_cursors=false/g' \ -i /etc/xrdp/xrdp.ini
systemctl enable xrdp
systemctl restart xrdp
apt-get remove network-manage
reboot
echo "xfce4-session" > ~/.xsession
D=/usr/share/xfce4:/usr/share/xubuntu:/usr/local/share
D=${D}:/usr/share:/var/lib/snapd/desktop:/usr/share
cat <<EOF > ~/.xsessionrc
export XDG_SESSION_DESKTOP=xubuntu
export XDG_DATA_DIRS=${D}
export XDG_CONFIG_DIRS=/etc/xdg/xdg-xubuntu:/etc/xdg:/etc/xdg
EOF