LXDE + xrdp

From vpsget wiki
Revision as of 20:07, 18 May 2017 by Ndi (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

In current wiki we show how to install xrdp + lxde in centos and ubuntu. Under ubuntu we also show how to use mate desktop

How to install Lightweight X11 Desktop Environment (LXDE) on Ubuntu

apt-get update
apt-get install lxde

Now when we have installed lxde, let's install xrdp

apt-get install xrdp

Restart your sysrem


Now you have Lightweight X11 Desktop Environment installed and operational. You can use Windows built-in remote desktop client to access it via rdp.

Use root credentials for authenticate. (or some user in a wheel group)

Alternatively you may use mate desktop instead of lxde . Not recommended on low RAM VPS (less than 2GB)

sudo apt-get install mate-core mate-desktop-environment mate-notification-daemon

Also you may increase the encryption level to high from default low:

sudo nano /etc/xrdp/xrdp.ini

Remember to check the FW port 3389 shouold be opened :

sudo ufw allow 3389/tcp

After implementing the changes always restart xrdp daemon:

sudo /etc/init.d/xrdp restart

For Unbuntu <16.04 you would need to create the ~/.xsession file. For Ubuntu =16.04 you should update the config file /etc/xrdp/startwm.sh You may do it using the next command:

sudo sed -i.bak '/fi/a #xrdp multiple users configuration \n mate-session \n' /etc/xrdp/startwm.sh

How to install a Desktop Environment with xrdp on Centos 6

yum install epel-release
yum groupinstall "X Window System" "KDE Desktop"
yum install nano xrdp tigervnc-server

Define a desktop

nano /etc/sysconfig/vncservers

Uncomment and edit lines:

VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -localhost"

Create unix user

adduser username
passwd username

Set VNC password

su username

Start services

service vncserver start
service xrdp start
chkconfig xrdp on
chkconfig vncserver on

That's it. Now you can connect to the server using a standard RDP client.

   >>Get VPS with current config  ready-to-go $9.95 p/m Netherlands, EU<<
   VPS with Ubuntu LXDE Desktop for only $9.95 per month (1GB RAM, 40GB HDD).
   You can connect to Your Ubuntu VPS Desktop using build-in Windows Remote Desktop Connection  client software.