Last active
August 16, 2016 16:13
-
-
Save rvido/3fbc71ee30dbf82c0ad4521e55588831 to your computer and use it in GitHub Desktop.
A shell script to setup Remote Desktop in Fedora 23/24
This file contains 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/bash | |
#------------------------------------------------ | |
# Setup Fedora 23/24 with xRDP via XFCE4 | |
#------------------------------------------------ | |
# Original version at https://goo.gl/VL4mzQ | |
# | |
# Install XFCE4 desktop | |
sudo dnf -y --refresh groupinstall xfce-desktop | |
# Install TigerVNC and xRDP | |
sudo dnf -y install tigervnc tigervnc-server xrdp | |
# Open standard RDP ports in Firewall | |
sudo firewall-cmd --add-port=3389/tcp | |
sudo firewall-cmd --permanent --add-port=3389/tcp | |
# Enable xRDP and session-manager | |
sudo systemctl enable xrdp.service | |
sudo systemctl enable xrdp-sesman | |
# Start xRDP and session-manager | |
sudo systemctl start xrdp-sesman | |
sudo systemctl start xrdp.service | |
# set XFCE4 desktop for RDP connections | |
cat > ~/.xsession << EOF | |
unset SESSION_MANAGER | |
unset DBUS_SESSION_BUS_ADDRESS | |
xfce4-session | |
EOF | |
sudo chmod +x ~/.xsession | |
sudo systemctl restart xrdp.service | |
echo "Use 'vncpasswd' to create a VNC user specific password" | |
echo "Note that when using Remmina, use 16 bpp color depth." | |
echo "Other color depth settings will most likely fail when connceting" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment