XRDP Ubuntu

Ubunto 16.04 LTS XRDP without blank screen fault…


blank screen…

sudo apt-get install xrdp -y

Since gnome is no longer supported by XRDP sessions, you must utilize a lighter desktop environment for use with XRDP (xfce4 works very well).

sudo apt-get install xfce4 -y
echo xfce4-session >~/.xsession
sudo nano /etc/xrdp/startwm.sh

Add the following lines at the end of the file:

. /etc/X11/Xsession 
. /usr/bin/startxfce4

By default, XRDP will open new instances of a session upon each login. These instances will also utilize unique port numbers. To avoid mirroring sessions over multiple ports, the port number must be statically identified at the XRDP login screen (this can be done within the xrdp.ini file).

To edit this file, type:

sudo nano /etc/xrdp/xrdp.ini

At the end of the [xrdp1] code block, there is a line for defining the port number value. We are only concerned with the [xrdp1] block, as it contains default values for sesman-Xvnc type connections. By default, the port value is -1 which instructs the XRDP session to search for a newly available port on which to open the connection. We want to be able to specify the port at login. We also want to be able to specify the username and password (IP should be left at the loopback address). The bottom four lines of our code block for [xrdp1] should now read:

a. username=ask
b. password=ask
c. ip=127.0.0.1
d. port=ask -1

By changing the port to “ask -1” we instruct XRDP to prompt the user for the port number at login, and autofill its value to -1 (this is important and is needed for your first RDP login).

Before attempting our initial login, we need to make sure that the user account that is to be used is a member of the tsusers group (this is a group created by XRDP program).

sudo usermod –a –G tsusers ‘username’

Jedna odpowiedź do “XRDP Ubuntu”

  1. Pingback: buy viagra

Możliwość komentowania jest wyłączona.