Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Setup Fedora 23 Gnome3 with xRDP via XFCE4
#!/bin/bash
#################################################
# Setup Fedora 23 Gnome3 with xRDP via XFCE4
#################################################
# install the XFCE4 desktop
sudo dnf groupinstall xfce-desktop
# open standard RDP ports
sudo firewall-cmd --add-port=3389/tcp
sudo firewall-cmd --permanent --add-port=3389/tcp
# install TigerVNC and xRDP
sudo dnf install tigervnc tigervnc-server
sudo dnf install xrdp
# stop disabling SELinux
sudo chcon --type=bin_t /usr/sbin/xrdp
sudo chcon --type=bin_t /usr/sbin/xrdp-sesman
# enable xRDP service
sudo systemctl enable xrdp.service
sudo systemctl enable xrdp-sesman
# start xRDP service
sudo systemctl start xrdp-sesman
sudo systemctl start xrdp.service
# set XFCE4 desktop for RDP connections
sudo echo "startxfce4" > ~/.Xclients
sudo chmod +x ~/.Xclients
sudo systemctl restart xrdp.service

The script works great, but why is it necessary? xrdp and Gnome3 worked without any issues in Fedora 22. In Fedora 23 they don´t, thyt is why the workaround with xfce is necessary. Is there a bug in Gnome 3 / Fedora 23?

This works great but is there a way to connect to the same session all the time?

xrdp and Gnome is still needed for Qt4 applications!

JPtheJP commented Dec 2, 2015

Hi,

I downloaded & installed a fresh Fedora 23 this morning (Fedora-Live-Workstation-x86_64-23-10.iso) and I did not install xcfe desktop. The result was working so-so with lots of shadow drawing and desktop size issues using Gnome. I then updated the install with up to date patches (~700MB worth of updates) & rebooted. Now I have a working xrdp using the default Gnome 3.

Give it a try.
Still thanks for the script as it still make a very simple install of xrdp on Fedora.

zipgun commented Jan 22, 2016

How i can allow more users to loging using the xrdp¿?

"VNC SOME ERROR" trying ith another one

+1 for @JPtheJP's comment. I didn't need to install anything beyond xrdp.

Thanks for the script works great except one issue and not sure why. After the groupinstall of the xfce desktop the firewalld service will not start. As a bit of a noob when it comes to F23 I was wondering why it wont now start.

Mind you I now have excellent access to the machine remotely and the XFCE desktop is much easier to navigate.

rayfoss commented Jun 7, 2016

Didn't need the script, worked flawlessly out of the box, I just needed the good ol' systemctl start xrdp. A tad slow though.

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