Softpanorama

May the source be with you, but remember the KISS principle ;-)
Home Switchboard Unix Administration Red Hat TCP/IP Networks Neoliberalism Toxic Managers
(slightly skeptical) Educational society promoting "Back to basics" movement against IT overcomplexity and  bastardization of classic Unix

How to Install XRDP daemon on Centos or RHEL

News Recommended Links Recommended Articles Solaris main page Xwindows X11VNC on Solaris
Rc scripts VNC installation & configuration VNC on Solaris VNC on Linux VNC for Windows Etc

xrdp RPM paclage can be dound in EPEL.

https://wiki.centos.org/AdditionalResou ... positories

Fro RHEL 6 it is available from extras packages repo:

xrdp-0.6.1-4.el6.i686.html Open source remote desktop protocol (RDP) server Extras Packages for Enterprise Linux 6 for i386 xrdp-0.6.1-4.el6.i686.rpm
xrdp-0.6.1-4.el6.ppc64.html Open source remote desktop protocol (RDP) server Extras Packages for Enterprise Linux 6 for ppc64 xrdp-0.6.1-4.el6.ppc64.rpm
xrdp-0.6.1-4.el6.x86_64.html Open source remote desktop protocol (RDP) server Extras Packages for Enterprise Linux 6 for x86_64 xrdp-0.6.1-4.el6.x86_64.rpm
xrdp-0.6.1-4.el5.i386.html Open source remote desktop protocol (RDP) server Extras Packages for Enterprise Linux 5 for i386 xrdp-0.6.1-4.el5.i386.rpm
xrdp-0.6.1-4.el5.ppc.html Open source remote desktop protocol (RDP) server Extras Packages for Enterprise Linux 5 for ppc xrdp-0.6.1-4.el5.ppc.rpm
xrdp-0.6.1-4.el5.x86_64.html Open source remote desktop protocol (RDP) server Extras Packages for Enterprise Linux 5 for x86_64 xrdp-0.6.1-4.el5.x86_64.rpm

Open source remote desktop protocol server

# rpm -qi xrdp
Name        : xrdp                         Relocations: (not relocatable)
Version     : 0.6.1                             Vendor: Fedora Project
Release     : 4.el6                         Build Date: Fri 17 Jul 2015 03:13:34 AM EDT
Install Date: Fri 22 Jan 2016 10:02:03 AM EST      Build Host: buildvm-24.phx2.fedoraproject.org
Group       : Applications/Internet         Source RPM: xrdp-0.6.1-4.el6.src.rpm
Size        : 1542350                          License: GPLv2+ with exceptions
Signature   : RSA/8, Fri 17 Jul 2015 09:15:44 AM EDT, Key ID 3b49df2a0608b895
Packager    : Fedora Project
URL         : http://xrdp.sourceforge.net/
Summary     : Open source remote desktop protocol (RDP) server
Description :
The goal of this project is to provide a fully functional Linux terminal
server, capable of accepting connections from rdesktop and Microsoft's own
terminal server / remote desktop clients.
Requires daemon to run on level 5 only (this GUI application)
# chkconfig --list | grep rdp
xrdp            0:off   1:off   2:off   3:off    4:off   5:on    6:off

RPM resource xrdp

One of the neatest things I discovered recently was how to set up my CentOS desktop so I could RDP into it from my Windows desktop. Previously I was using VNC which takes a bit of work to set up and doesn't give you the full desktop view that RDP does. Setting up your box to RDP into it, however, is cake!

From the command line, simply issue the following 3 commands:

EPEL repository should be enabled. 

# yum -y install xrdp 
# chkconfig --levels 5 xrdp on
# service xrdp start

# uname -a
Linux ****** 2.6.32-573.7.1.el6.x86_64 #1 SMP Tue Sep 22 22:00:00 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
# yum list | grep xrdp
xrdp.x86_64 0.6.1-4.el6 epel
# yum install xrdp
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: mirror.synergyworks.co.uk
* epel: epel.check-update.co.uk
* extras: mirror.econdc.com
* updates: mirrors.clouvider.net
Resolving Dependencies

Now you can go to your Windows system, open Remote Desktop Connection and put in the ip address of your Linux system. Of course this only works if you have the X windows system installed and running on your Linux machine. 

Kirk, Oct 28, 2011

Code:
# chkconfig --levels 5 xrdp on
Top Visited
Switchboard
Latest
Past week
Past month

NEWS CONTENTS

Old News ;-)

[Mar 08, 2017] How to use xRDP for remote access to Ubuntu 14.04

Notable quotes:
"... This is where xRDP comes in play, an open source remote desktop protocol (RDP) server. It actually runs VNC protocol over RDP as far as I understand, yet if behaves much better than VNC by itself (possibly because of the used desktop manager). ..."
"... Windows comes standard with a Remote Desktop client (mstsc.exe – you can start it from a command prompt, or find the shortcut to Remote Desktop under Accessories). ..."
Mar 08, 2017 | www.tweaking4all.com
How to use xRDP for remote access to Ubuntu 14.04 To remotely control my Windows machines, I always prefer to use RDP ( Remote Desktop Protocol ) as it performs much nicer than VNC ( Virtual Network Computing ). VNC has this streak of "JPEG" quality and slow behavior, whereas RDP is fast and crystal clear.

RDP is however a proprietary protocol from Microsoft. So how can we use RDP to control our Ubuntu box remotely?

This is where xRDP comes in play, an open source remote desktop protocol (RDP) server. It actually runs VNC protocol over RDP as far as I understand, yet if behaves much better than VNC by itself (possibly because of the used desktop manager).

Since Ubuntu 12.10 (if I'm not mistaken), xRDP doesn't seem to work with the Ubuntu desktop anymore unless you use an alternative desktop manager. This seems related to 3D acceleration and nobody seems to care (since 2011, according to bug reports).

Note : if you really need Copy/Paste functionality between the two machines, then please use Ubuntu's default installed "Desktop Sharing" instead (MacOS X users read this forum post ).

Testing your xRDP connection

On the computer that will remotely control your Ubuntu machine, start you RDP client -[ by clicking of .rdp file -- NNB]

Windows comes standard with a Remote Desktop client (mstsc.exe – you can start it from a command prompt, or find the shortcut to Remote Desktop under Accessories).

For a Mac, Microsoft actually has a Remote Desktop Client which can be found in the Apple App Store , or you can use Cord (free).

Whichever client you use, most work with either the computer network name or IP address of your Ubuntu machine.

To find the IP address on your Ubuntu box, type:

hostname -I
Depending on your RDP client capabilities and settings (for example: Microsoft RDP Client allows automatic login), you might or might not see the login screen.

Here we enter our Ubuntu username and password and click "OK", after which briefly a window will show with the login process and you'll have access to your Ubuntu machine, even though the desktop looks different. One downside I've discovered so far is that the clipboard is NOT being synchronized so Copy and Paste between machines does not work properly.

[Mar 08, 2017] Accessing Virtual Machine (Ubuntu 14.04LTS) using xRDP

Mar 08, 2017 | msdn.microsoft.com
Accessing Virtual Machine (Ubuntu 14.04LTS) using xRDP Microsoft Azure > Azure Virtual Machines

Yesterday, I setup a new Ubuntu Box with Password (Classic VM) from my Azure Dashboard ( I am using classing Azure dashboard).

I am able to login using Putty (it means credentials are working).

To access this machine remotely (already setup CDN for Remote Desktop), I followed instructions mentioned (https://azure.microsoft.com/en-in/documentation/articles/virtual-machines-linux-classic-remote-desktop/) to setup xRDP - please note that I am trying to access this box from Windows8.1 machine.

All seems to be successfully installed. I tried to remote into my Ubuntu VM:

1. Fire Run -> mstsc.exe (entered hostname/IP and credentials)

2. Entered credentials

Ubuntu xRDP Login screen

3. Process thrown few error messages

Ubuntu Connection Log

What is wrong here?


Thanks & Regards, Gaurav Kumar Arora http://gaurav-arora.com http://mynangal.com

Answers

Installing XRDP onto RHEL6 - Red Hat Enterprise Server Software Engineering & Security Notes

Nickolas Golubev 6:15 pm on January 27, 2014 Permalink Reply
Tags: admin ( 2 ), linux, open source, rdp, rhel ( 2 ), rhel6 ( 2 ), xrdp

I was told by a senior colleague that XRDP (http://sourceforge.net/projects/xrdp/) is a great way to remotely connect to your Linux servers through windows remote desktop protocol. It extends an XOrg session through through VNC and then the RDP. Here is how you can get it working on RHEL6!

sudo yum install gcc make pam-devel openssl-devel vnc-server autoconf automake libtool libX11-devel libXfixes-devel


wget http://downloads.sourceforge.net/project/xrdp/xrdp/0.6.1/xrdp-v0.6.1.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fxrdp%2F%3Fsource%3Ddirectory&ts=1390846301&use_mirror=softlayer-ams


tar zxvf xrdp-v0.6.1.tar.gz
cd xrdp-v0.6.1
./bootstrap
./configure
make
sudo make install

Add user(s) to the 100, "users" group to allow them to login via RDP

sudo nano /etc/group

Edit iptables to permit inbound RDP

sudo nano /etc/sysconfig/iptables

add

-F INPUT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 3389 -j ACCEPT


sudo service iptables restart

Make it a little more secure by enabling 128 bit 2-way encryption

sudo nano /etc/xrdp/xrdp.ini

Change crypt_level=low to crypt_level=high

Generate a new RSA key

sudo /usr/local/bin/xrdp-keygen xrdp auto

Start XRDP up and then try and connect to it using remote desktop client in Windows

sudo /etc/xrdp/xrdp.sh start

Finally make XRDP auto start as a service.

sudo ln -s /etc/xrdp/xrdp.sh /etc/init.d/xrdp
sudo chkconfig --add xrdp
sudo chkconfig xrdp on
sudo service xrdp start


How to Install Xrdp Server (Remote Desktop) on Ubuntu 18.04

Installing Desktop Environment

Generally, Linux servers don't have a desktop environment installed. Our first step is to install X11 and a lightweight desktop environment that will act as a backend for Xrdp.

There are several desktop environments (DE) available in Ubuntu repositories. We'll be installing Xfce. It is a fast, stable and lightweight desktop environment, which makes it ideal for usage on a remote server.

Type the following commands as a user with sudo privileges to install Xfce on your server:

sudo apt update
sudo apt install xfce4 xfce4-goodies xorg dbus-x11 x11-xserver-utils

Depending on your system, downloading and installing Xfce packages will take some time.

Installing Xrdp

Xrdp package is available in the default Ubuntu repositories. To install it, run:

sudo apt install xrdp 

When the installation process is complete the Xrdp service will automatically start. You can verify that Xrdp is running by typing:

sudo systemctl status xrdp 

The output will look something like this:

● xrdp.service - xrdp daemon
   Loaded: loaded (/lib/systemd/system/xrdp.service; enabled; vendor preset: enabled)
   Active: active (running) since Sun 2019-07-28 22:40:53 UTC; 4min 21s ago
     Docs: man:xrdp(8)
           man:xrdp.ini(5)
  ... 

Configuring Xrdp

Xrdp configuration files are located in the /etc/xrdp directory. For basic Xrdp connections, we only need to configure Xrdp to use Xfce. To do so open the following file in your text editor:

/etc/xrdp/xrdp.ini
sudo nano /etc/xrdp/xrdp.ini

Add the following line at the end of the file:

exec startxfce4 

Save the file and restart the Xrdp service:

sudo systemctl restart xrdp

Configuring Firewall

By default, Xrdp listens on port 3389 on all interfaces. If you run a firewall on your Ubuntu server (which you should always do), you'll need to add a rule that will enable traffic on the Xrdp port.

To allow access to the Xrdp server from a specific IP address or IP range, in this example 192.168.1.0/24, run the following command:

sudo ufw allow from 192.168.1.0/24 to any port 3389

If you want to allow access from anywhere (which is highly discouraged for security reasons) run:

sudo ufw allow 3389

For increased security, you may consider setting up Xrdp to listen only on localhost and creating an SSH tunnel that will securely forwards traffic from your local machine on port 3389 to the server on the same port. Another secure option is to install OpenVPN and connect to the Xrdp server trough the private network.

Connecting to the Xrdp Server

Now that you have set up your Xrdp server it is time to open your Xrdp client and connect to the server.

If you are a Windows user you can use the default RDP client. Type "remote" in the Windows search bar and click on "Remote Desktop Connection". This will open up the RDP client. In the computer Field enter the remote server IP address and click "Connect".

In the login screen enter your username and password and click "OK".

Once logged in you should see the default Xfce desktop. It should look something like this:

You can now start interacting with the remote XFCE desktop from your local machine using your keyboard and mouse.

Recommended Links

Google matched content

Softpanorama Recommended

Top articles

Sites

Top articles

Sites



Etc

Society

Groupthink : Two Party System as Polyarchy : Corruption of Regulators : Bureaucracies : Understanding Micromanagers and Control Freaks : Toxic Managers :   Harvard Mafia : Diplomatic Communication : Surviving a Bad Performance Review : Insufficient Retirement Funds as Immanent Problem of Neoliberal Regime : PseudoScience : Who Rules America : Neoliberalism  : The Iron Law of Oligarchy : Libertarian Philosophy

Quotes

War and Peace : Skeptical Finance : John Kenneth Galbraith :Talleyrand : Oscar Wilde : Otto Von Bismarck : Keynes : George Carlin : Skeptics : Propaganda  : SE quotes : Language Design and Programming Quotes : Random IT-related quotesSomerset Maugham : Marcus Aurelius : Kurt Vonnegut : Eric Hoffer : Winston Churchill : Napoleon Bonaparte : Ambrose BierceBernard Shaw : Mark Twain Quotes

Bulletin:

Vol 25, No.12 (December, 2013) Rational Fools vs. Efficient Crooks The efficient markets hypothesis : Political Skeptic Bulletin, 2013 : Unemployment Bulletin, 2010 :  Vol 23, No.10 (October, 2011) An observation about corporate security departments : Slightly Skeptical Euromaydan Chronicles, June 2014 : Greenspan legacy bulletin, 2008 : Vol 25, No.10 (October, 2013) Cryptolocker Trojan (Win32/Crilock.A) : Vol 25, No.08 (August, 2013) Cloud providers as intelligence collection hubs : Financial Humor Bulletin, 2010 : Inequality Bulletin, 2009 : Financial Humor Bulletin, 2008 : Copyleft Problems Bulletin, 2004 : Financial Humor Bulletin, 2011 : Energy Bulletin, 2010 : Malware Protection Bulletin, 2010 : Vol 26, No.1 (January, 2013) Object-Oriented Cult : Political Skeptic Bulletin, 2011 : Vol 23, No.11 (November, 2011) Softpanorama classification of sysadmin horror stories : Vol 25, No.05 (May, 2013) Corporate bullshit as a communication method  : Vol 25, No.06 (June, 2013) A Note on the Relationship of Brooks Law and Conway Law

History:

Fifty glorious years (1950-2000): the triumph of the US computer engineering : Donald Knuth : TAoCP and its Influence of Computer Science : Richard Stallman : Linus Torvalds  : Larry Wall  : John K. Ousterhout : CTSS : Multix OS Unix History : Unix shell history : VI editor : History of pipes concept : Solaris : MS DOSProgramming Languages History : PL/1 : Simula 67 : C : History of GCC developmentScripting Languages : Perl history   : OS History : Mail : DNS : SSH : CPU Instruction Sets : SPARC systems 1987-2006 : Norton Commander : Norton Utilities : Norton Ghost : Frontpage history : Malware Defense History : GNU Screen : OSS early history

Classic books:

The Peter Principle : Parkinson Law : 1984 : The Mythical Man-MonthHow to Solve It by George Polya : The Art of Computer Programming : The Elements of Programming Style : The Unix Hater’s Handbook : The Jargon file : The True Believer : Programming Pearls : The Good Soldier Svejk : The Power Elite

Most popular humor pages:

Manifest of the Softpanorama IT Slacker Society : Ten Commandments of the IT Slackers Society : Computer Humor Collection : BSD Logo Story : The Cuckoo's Egg : IT Slang : C++ Humor : ARE YOU A BBS ADDICT? : The Perl Purity Test : Object oriented programmers of all nations : Financial Humor : Financial Humor Bulletin, 2008 : Financial Humor Bulletin, 2010 : The Most Comprehensive Collection of Editor-related Humor : Programming Language Humor : Goldman Sachs related humor : Greenspan humor : C Humor : Scripting Humor : Real Programmers Humor : Web Humor : GPL-related Humor : OFM Humor : Politically Incorrect Humor : IDS Humor : "Linux Sucks" Humor : Russian Musical Humor : Best Russian Programmer Humor : Microsoft plans to buy Catholic Church : Richard Stallman Related Humor : Admin Humor : Perl-related Humor : Linus Torvalds Related humor : PseudoScience Related Humor : Networking Humor : Shell Humor : Financial Humor Bulletin, 2011 : Financial Humor Bulletin, 2012 : Financial Humor Bulletin, 2013 : Java Humor : Software Engineering Humor : Sun Solaris Related Humor : Education Humor : IBM Humor : Assembler-related Humor : VIM Humor : Computer Viruses Humor : Bright tomorrow is rescheduled to a day after tomorrow : Classic Computer Humor

The Last but not Least Technology is dominated by two types of people: those who understand what they do not manage and those who manage what they do not understand ~Archibald Putt. Ph.D


Copyright © 1996-2021 by Softpanorama Society. www.softpanorama.org was initially created as a service to the (now defunct) UN Sustainable Development Networking Programme (SDNP) without any remuneration. This document is an industrial compilation designed and created exclusively for educational use and is distributed under the Softpanorama Content License. Original materials copyright belong to respective owners. Quotes are made for educational purposes only in compliance with the fair use doctrine.

FAIR USE NOTICE This site contains copyrighted material the use of which has not always been specifically authorized by the copyright owner. We are making such material available to advance understanding of computer science, IT technology, economic, scientific, and social issues. We believe this constitutes a 'fair use' of any such copyrighted material as provided by section 107 of the US Copyright Law according to which such material can be distributed without profit exclusively for research and educational purposes.

This is a Spartan WHYFF (We Help You For Free) site written by people for whom English is not a native language. Grammar and spelling errors should be expected. The site contain some broken links as it develops like a living tree...

You can use PayPal to to buy a cup of coffee for authors of this site

Disclaimer:

The statements, views and opinions presented on this web page are those of the author (or referenced source) and are not endorsed by, nor do they necessarily reflect, the opinions of the Softpanorama society. We do not warrant the correctness of the information provided or its fitness for any purpose. The site uses AdSense so you need to be aware of Google privacy policy. You you do not want to be tracked by Google please disable Javascript for this site. This site is perfectly usable without Javascript.

Last modified: July 29, 2019