Last active
October 9, 2019 23:33
-
-
Save yevster/e1ea815cf109cbe60dde62273ce5b997 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
May need to use this solution if the update of snap freezes:
https://askubuntu.com/a/1039685