Difference between revisions of "LXDE + xrdp"

From vpsget wiki
Jump to: navigation, search
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
In current wiki we show how to install xrdp + lxde in centos and ubuntu. Under ubuntu we also show how to use mate desktop
  
    >>[https://billing.vpsget.com/cart.php?a=add&pid=16 ''Get VPS with current config '' ready-to-go $7.95 p/m] Netherlands, EU<<
+
== How to install Lightweight X11 Desktop Environment (LXDE) on Ubuntu ==
    VPS with Ubuntu LXDE Desktop for only $7.95 per month (1GB RAM, 40GB HDD).
 
    You can connect to Your Ubuntu VPS Desktop using build-in Windows Remote Desktop Connection  client software.
 
  
 
How to install Lightweight X11 Desktop Environment (LXDE) on Ubuntu.
 
 
  apt-get update
 
  apt-get update
 
  apt-get install lxde
 
  apt-get install lxde
Line 12: Line 9:
 
Restart your sysrem
 
Restart your sysrem
 
  reboot
 
  reboot
Now you have Lightweight X11 Desktop Environment installed and operational. You can use remote desktop client to access it via rdp.
+
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
 +
encrypt_level=high
 +
 
 +
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:
 +
VNCSERVERS="2:username"       
 +
VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -localhost"
 +
 
 +
Create unix user
 +
adduser username
 +
passwd username
 +
 
 +
Set VNC password
 +
su username
 +
vncpasswd
 +
 
 +
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.
 +
 
 +
 
 +
    >>[https://billing.vpsget.com/cart.php?a=add&pid=16 ''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.
  
 
[[Category:Linux]]
 
[[Category:Linux]]

Latest revision as of 20:07, 18 May 2017

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

reboot

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
encrypt_level=high

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:

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

Create unix user

adduser username
passwd username

Set VNC password

su username
vncpasswd

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.