rdp – TecAdmin https://tecadmin.net How to guide for System Administrator's and Developers Mon, 16 Jan 2023 17:25:08 +0000 en-US hourly 1 https://wordpress.org/?v=6.1.1 How To Install XRDP on Ubuntu 22.04 https://tecadmin.net/how-to-install-xrdp-on-ubuntu-22-04/ https://tecadmin.net/how-to-install-xrdp-on-ubuntu-22-04/#comments Mon, 30 May 2022 09:13:29 +0000 https://tecadmin.net/?p=29568 XRDP is a client-server application that uses the Remote Desktop Protocol (RDP) as its transport protocol. The server is implemented as a Linux daemon running on top of a DisplayLink device. The communication between the server and the client is encrypted using TLS. XRDP is an easy-to-install and configurable service for Ubuntu systems. But you [...]

The post How To Install XRDP on Ubuntu 22.04 appeared first on TecAdmin.

]]>
XRDP is a client-server application that uses the Remote Desktop Protocol (RDP) as its transport protocol.
The server is implemented as a Linux daemon running on top of a DisplayLink device. The communication between the server and the client is encrypted using TLS.

XRDP is an easy-to-install and configurable service for Ubuntu systems. But you can also use a VNC server to access the remote desktop of the Ubuntu systems. Find a tutorial to install a VNC server on Ubuntu systems.

In this article, we will show you how to install and configure XRDP on Ubuntu 22.04. We will also walk you through a few common configuration tasks.

Prerequsities

You need an X server (Desktop Environment) that is installed on your server and running. You also need to install the xrdp (X Remote Desktop Protocol) client software on your client computer.

Step 1 – Installing XRDP on Ubuntu

The installation of XRDP on Ubuntu 22.04 is straightforward. The package is available in the official repositories, so we can simply install it with the apt package manager.

sudo apt update 
sudo apt install xrdp -y 

Once the installation is successfully finished, the XRDP service will be started automatically. You can check the status by executing the following command:

sudo systemctl status xrdp 
Installing XRDP on Ubuntu 22.04
Check XRDP service

The above output shows the Xrdp service is up and running.

Step 2 – Configuring XRDP

The installer will create a new account named “xrdp”. The xrdp session uses a certificate key file “/etc/ssl/private/ssl-cert-snakeoil.key”, which plays an important role with remote desktops.

In order to work it properly, add the xrdp user to the “ssl-cert” group with the following command.

 sudo usermod -a -G ssl-cert xrdp 

Restart the Xrdp service by running the command given below:

sudo systemctl restart xrdp 

Step 3 – Configure System Firewall

The XRDP service listens on standard remote desktop port 3389. You need to adjust the firewall to allow access to port 3389 for the remote systems.

Systems running with a UFW firewall, use the following command to open port 3389 for the LAN network.

sudo ufw allow from 192.168.1.0/24 to any port 3389 
Installing XRDP on Ubuntu 22.04
Open port 3389 using ufw

Reload the UFW to apply the new rules.

sudo ufw reload 

All right, Your system is ready to access over RDP protocol.

Step 4 – Connect to Remote Desktop

The Xrdp service is successfully installed and ready to connect. On your Windows client, open the RDP client and enter the IP address of the Ubuntu system.

On the Windows system launch the RDP client:

Installing XRDP on Ubuntu 22.04
Launch RDP client

Once connected successfully, the remote system prompt for authentication. Enter the login credentials of the remote Ubuntu system to get remote desktop access.

Installing XRDP on Ubuntu 22.04
XRDP Service Status

On successful authentication, you’ll get access to Ubuntu remote desktop.

Installing XRDP on Ubuntu 22.04
Remote desktop connected

Now, you can manage your remote Ubuntu system graphically.

Conclusion

This article shows you how to install and configure a lightweight and secure remote desktop client and access program on a variety of Linux distributions. You can use XRDP as a replacement for PPP (Point-to-Point), SSH, and VNC remote desktop clients. As with most Linux applications, XRDP is available via the official package management system of your distribution. With a few tweaks, you can have XRDP up and running in less than 15 minutes.

The post How To Install XRDP on Ubuntu 22.04 appeared first on TecAdmin.

]]>
https://tecadmin.net/how-to-install-xrdp-on-ubuntu-22-04/feed/ 12
How To Enable Multiple RDP Sessions on Windows Server https://tecadmin.net/how-to-enable-multiple-rdp-sessions-on-windows-server/ https://tecadmin.net/how-to-enable-multiple-rdp-sessions-on-windows-server/#comments Tue, 20 Jul 2021 12:05:34 +0000 https://tecadmin.net/?p=26562 Remote Desktop Protocol (RDP) is a protocol developed by Microsoft, that allows a user to access remote systems graphically. The default Windows servers allow only one remote desktop session at a time. But, in some cases, we are required to enable remote desktops for multiple users to allow access at a time. You can achieve [...]

The post How To Enable Multiple RDP Sessions on Windows Server appeared first on TecAdmin.

]]>
Remote Desktop Protocol (RDP) is a protocol developed by Microsoft, that allows a user to access remote systems graphically. The default Windows servers allow only one remote desktop session at a time. But, in some cases, we are required to enable remote desktops for multiple users to allow access at a time.

You can achieve this by making little changes to the system registry keys. Once the changes are done, multiple users can connect to your system using the RDP client. You can also limit the number of users who can connect at a time.

In this tutorial, we will discuss enabling and disabling multiple remote desktop sessions in Windows servers in 2012, 2012 R2, 2016, 2019 and 2022.

Enable Multiple RDP Sessions

Follow the below steps to enable multiple remote desktop sessions on a Windows system.

  1. Log in to the Windows system.
  2. Open the start screen (press the Windows key) and type “Edit group policy” or “gpedit.msc”, and launch it.
  3. Navigate to Computer Configuration >> Administrative Templates >> Windows Components >> Remote Desktop Services >> Remote Desktop Session Host >> Connections.
  4. Double click on “Set Restrict Remote Desktop Services user to a single Remote Desktop Services session and set this to Disabled.
  5. Next, double click on “Limit number of connections” and set the RD Maximum Connections allowed to 999999. But, just use 2 sessions that is free with Windows license but to allow more than 2 session required CAL license.

Below is the screenshots of changes being made:

Open Group Policy Editor on Windows

Edit disable restrict remote desktop users

Disable restrict remote desktop users

Edit limit RDP connections  settings

Set maximum allows connection for RDP

Disable Multiple RDP Sessions

To disbale the multiple remote desktop sessions, follow below instructions:

  1. Log in to the Windows system.
  2. Open the start screen (press the Windows key) and type “Edit group policy” or “gpedit.msc”, and launch it.
  3. Navigate to Computer Configuration >> Administrative Templates >> Windows Components >> Remote Desktop Services >> Remote Desktop Session Host >> Connections.
  4. Double click on “Set Restrict Remote Desktop Services user to a single Remote Desktop Services session and set this to “Enabled.

Wrap Up

This tutorial helped you to enable for disable multiple remote desktop sessions on a single Windows system. That is useful for the teams working on the same remote systems.

The post How To Enable Multiple RDP Sessions on Windows Server appeared first on TecAdmin.

]]>
https://tecadmin.net/how-to-enable-multiple-rdp-sessions-on-windows-server/feed/ 7
How To Install XRDP (Remote Desktop) on Fedora https://tecadmin.net/how-to-install-xrdp-on-fedora/ https://tecadmin.net/how-to-install-xrdp-on-fedora/#comments Sun, 13 Jun 2021 00:24:23 +0000 https://tecadmin.net/?p=25832 Remote Desktop Protocol (RDP) is a protocol that allows users to access desktops on remote systems. The XRDP service provides you a graphical login to the remote machines using Microsoft RDP (​Remote Desktop Protocol). The XRDP also supports two-way clipboard transfer (text, bitmap, file), audio redirection, and drive redirection (mount local client drives on the [...]

The post How To Install XRDP (Remote Desktop) on Fedora appeared first on TecAdmin.

]]>
Remote Desktop Protocol (RDP) is a protocol that allows users to access desktops on remote systems. The XRDP service provides you a graphical login to the remote machines using Microsoft RDP (​Remote Desktop Protocol). The XRDP also supports two-way clipboard transfer (text, bitmap, file), audio redirection, and drive redirection (mount local client drives on the remote machines).

This tutorial helps you to Install XRDP Server (Remote Desktop) on a Fedora Linux system. Also provides the instructions to install a Desktop environment on your system.

Step 1 – Install Desktop Environment

Fedora workstation comes with a default desktop environment. In case you have installed Fedora minimal version or server edition will not have desktop installed. The XRDP server is designed to controls only desktop systems. So you will need to add a desktop environment to your system.

Open a terminal and upgrade all installed packages with the following command:

sudo dnf upgrade 

Once your system is updated, install search for the available Desktop environment for your system.

sudo dnf grouplist -v 

Choose a desktop environment to be installed on your system. The below command will install KDE Plasma desktop on your Fedora system.

sudo dnf install @kde-desktop-environment 

Make sure to use “@” before the package name as you are going to install a group of packages.

Once the installation finished, restart your system to apply the changes.

Step 2 – Install Xrdp (Remote Desktop) on Fedora

The Xrdp packages are available under the default system repositories. You can install the remote desktop service (xrdp) on your Fedora system by executing the following command.

sudo dnf install xrdp -y 

Once the packages installed successfully, start the xrdp service and enable it to auto-start with system boots.

sudo systemctl enable xrdp 
sudo systemctl start xrdp 

Verify the service is started successfully.

sudo systemctl status xrdp 
Running XRDP on Fedora (Remote Desktop Service)
Running XRDP Service on Fedora

The above output shows the Xrdp service is up and running.

Step 3 – Adjust Firewall

The XRDP service uses a standard remote desktop protocol port ie 3389. The fedora systems come with the active FireallD service. So you need to allow access on port 3389 in the firewall for the remote systems.

Execute the following command to open firewall access:

sudo firewall-cmd --permanent --add-port=3389/tcp 

Reload the new rules.

sudo firewall-cmd --reload 

All right, Your system is ready to access over RDP protocol.

Step 4 – Manage SELinux

The systems have SELinux enforcing required to apply SELinux context on xrdp binaries. The following commands will allow the XRDP service to be accessible for remote users.

sudo chcon --type=bin_t /usr/sbin/xrdp 
sudo chcon --type=bin_t /usr/sbin/xrdp-sesman 

At this stage, your system is ready with Remote desktop service. Now connect to your system using any RDP client.

Step 5 – Connect to Remote Desktop

The Xrdp service is successfully installed and ready to connect. On your Windows client, open the RDP client and enter the IP address of the Fedora system.

You can launch the RDP client by typing "mstsc" in the run window or command line.

Connect to Fedora Remote Desktop

The first time, it will prompt a warning message due to the remote system is unknown for your system. Check the box in front of “Don’t ask me again for connection to this computer” and click Yes to continue.

Accept Certificate Warning with Fedora Remote Desktop

Once connected successfully, the remote system prompt for authentication. Enter the login credentials of the remote Fedora system to get remote desktop access.

Authenticate Fedora on XRDP Remote Desktop

On successful authentication, you’ll get remote desktop access.

Access Fedora Remote Desktop with XRDP

Hurrey, Now you can manage your remote Fedora system using the graphical interface.

Conclusion

This tutorial helped you to set up a remote desktop service on Fedora Linux using the Xrdp server. The tutorial also includes steps to install Desktop Environment on your Fedora system.

The post How To Install XRDP (Remote Desktop) on Fedora appeared first on TecAdmin.

]]>
https://tecadmin.net/how-to-install-xrdp-on-fedora/feed/ 3
How to Install NoMachine on Ubuntu, Debian and LinuxMint (Alternative of TeamViewer) https://tecadmin.net/install-nomachine-ubuntu/ https://tecadmin.net/install-nomachine-ubuntu/#comments Thu, 08 Mar 2018 18:24:25 +0000 https://tecadmin.net/?p=15404 NoMachine is a popular remote desktop application. You can use it as the alternative of TeamViewer, which is available freely. Except for the Nomachine, the users have other choices like AnyDesk for the remote desktop, But NoMachine will provide you the better experience over any other remote desktop applications. This tutorial will help you to [...]

The post How to Install NoMachine on Ubuntu, Debian and LinuxMint (Alternative of TeamViewer) appeared first on TecAdmin.

]]>
NoMachine is a popular remote desktop application. You can use it as the alternative of TeamViewer, which is available freely. Except for the Nomachine, the users have other choices like AnyDesk for the remote desktop, But NoMachine will provide you the better experience over any other remote desktop applications. This tutorial will help you to install NoMachine on Ubuntu, Debian, and LinuxMint systems.

But, If you still love TeamViewer, You can also install TeamViewer using these instructions.

Step 1 – Install NoMachine

Anydesk is available in both 64-Bit and 32-Bit formats. You can download it from its official website and install on Ubuntu, Debian, and LinuxMint operating systems.

For 64-Bit Systems

wget http://download.nomachine.com/download/6.0/Linux/nomachine_6.0.78_1_amd64.deb
sudo dpkg -i nomachine_6.0.78_1_amd64.deb

For 32-Bit Systems

wget http://download.nomachine.com/download/6.0/Linux/nomachine_6.0.78_1_i386.deb
sudo dpkg -i nomachine_6.0.78_1_i386.deb

Below is the sample installation log for a 64-bit machine. On successful installation, you will find that the NX is started on default port 4000.

...
NX> 700 Installing: nxnode version: 6.0.78.
NX> 700 Using installation profile: Ubuntu.
NX> 700 Install log is: /usr/NX/var/log/nxinstall.log.
NX> 700 Creating configuration in: /usr/NX/etc/node.cfg.
NX> 700 Installing: nxserver version: 6.0.78.
NX> 700 Using installation profile: Ubuntu.
NX> 700 Install log is: /usr/NX/var/log/nxinstall.log.
NX> 700 Creating configuration in: /usr/NX/etc/server.cfg.
NX> 700 Install completed at: Thu Mar 08 12:03:43 2018.
NX> 700 NoMachine was configured to run the following services:
NX> 700 NX service on port: 4000

Step 2 – Connect Remote Desktop with NoMachine

The Nomachine installer will install an application as well as service. The Nomachine application to connect remote systems running with NoMachine service.

Launch the NoMachine application on your system. It will automatically detect the systems running with NoMachine service on the same network.

If your remote system is on the different network. You can connect it with IP address of the remote system. This will also prompt for some more details. You can go with default options.

Enter the remote system login details to authenticate the session.

All done. You have access to Desktop of the remote system.

The post How to Install NoMachine on Ubuntu, Debian and LinuxMint (Alternative of TeamViewer) appeared first on TecAdmin.

]]>
https://tecadmin.net/install-nomachine-ubuntu/feed/ 2