Skip to content

Instantly share code, notes, and snippets.

@yevster
Last active October 9, 2019 23:33
Show Gist options
  • Save yevster/e1ea815cf109cbe60dde62273ce5b997 to your computer and use it in GitHub Desktop.
Save yevster/e1ea815cf109cbe60dde62273ce5b997 to your computer and use it in GitHub Desktop.
#!/bin/sh
#SPDX-License-Identifier: MIT
#Based on information from
#https://community.time4vps.com/discussion/364/ubuntu-xfce-usage-for-rdp-access-to-ubuntu-server
#First run:
sudo apt update
# Clean up unnecessary (for me) packages
sudo apt install -y xubuntu-desktop #Choose LightDM when prompted for a window manager
sudo apt install -y xfce4
sudo apt install -y xfwm4-themes
sudo apt install xfce4-appmenu-plugin -y
sudo apt install -y openssh-server
sudo apt remove -y rhythmbox
sudo apt remove -y libreoffice-core
sudo apt remove -y thunderbird
sudo apt remove -y cheese
sudo apt remove -y aisleriot
sudo apt remove -y abiword
sudo apt remove -y pidgin
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
sudo sed -e 's/^new_cursors=true/new_cursors=false/g' -i /etc/xrdp/xrdp.ini
sudo sed -e 's/=startubuntu.sh/=startwm.sh/g' -i /etc/xrdp/sesman.ini
sudo apt upgrade -y
#Reboot. After reboot and successful login, run:
sudo apt autoremove -y
@yevster
Copy link
Author

yevster commented May 17, 2019

May need to use this solution if the update of snap freezes:

https://askubuntu.com/a/1039685

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment