Sunday, June 18, 2023

Step-by-Step Guide - Installing XRDP on CentOS 7

Step-by-Step Guide - Installing XRDP on CentOS 7

Introduction:
XRDP is a remote desktop protocol that allows you to connect to your CentOS 7 server using a graphical interface. In this blog post, we will walk you through the process of installing XRDP on CentOS 7, enabling you to establish remote desktop connections effortlessly.

Step 1: Enabling EPEL Repository

Open your terminal and execute the following command to install the EPEL repository:

sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

Press Enter to start the installation process.

Step 2: Installing XRDP and TigerVNC Server

With the EPEL repository enabled, run the following command to install XRDP and the TigerVNC server:
 

sudo yum -y install xrdp tigervnc-server
 

Press Enter to begin the installation. Confirm any prompts if necessary.

Step 3: Starting and Enabling XRDP Service

Start the XRDP service by executing the following command:
 

sudo systemctl start xrdp

Verify that XRDP is running properly by checking its status:

sudo netstat -antup | grep xrdp

Enable XRDP to start automatically on system boot:


sudo systemctl enable xrdp

Step 4: Configuring Firewall Settings

Add a firewall rule to allow incoming connections on the XRDP default port (3389/tcp):

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

Reload the firewall to apply the changes:

sudo firewall-cmd --reload

Step 5: Adjusting SELinux Context

Set the SELinux context for the XRDP binaries:

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


Step 6: Modifying XRDP Configuration

Open the XRDP configuration file for editing:

cd /etc/xrdp
sudo nano xrdp.ini


Locate the line that starts with "ssl_protocols=" and replace it with the following:

ssl_protocols=TLSv1, TLSv1.1

Save the changes and exit the editor.

Step 7: Restarting XRDP Service

Restart the XRDP service to apply the configuration changes:

Save the changes and exit the editor.

Step 7: Restarting XRDP Service

Restart the XRDP service to apply the configuration changes:

sudo service xrdp restart

Conclusion:

By following this step-by-step guide, you have successfully installed and configured XRDP on CentOS 7. You can now connect to your CentOS server remotely using a remote desktop client.

Remember to ensure that appropriate security measures are in place, such as strong passwords and firewall configurations, to protect your remote desktop connections.

Enjoy the convenience of managing your CentOS 7 server with XRDP and the intuitive graphical interface it provides.

Happy remote desktop connections!

Ensuring a Valid WHM License: A Step-by-Step Guide / WHM License validation

Ensuring a Valid WHM License: A Step-by-Step Guide / WHM License validation

Introduction: -
 
A valid WHM (Web Host Manager) license is essential for managing your web hosting environment effectively. However, there may be instances where you encounter license validation issues. In this blog post, we will provide a detailed guide on how to validate your WHM license using the "/usr/local/cpanel/cpkeyclt --force" command.

Step 1: Accessing the Server via SSH

Launch your preferred SSH client (e.g., PuTTY) and establish a secure connection to your server.

Step 2: Executing the WHM License Validation Command

Once connected to the server via SSH, execute the following command:

/usr/local/cpanel/cpkeyclt --force

This command forces WHM to re-validate the license.

Press Enter to execute the command.

Step 3: License Validation Process

The license validation process may take a few moments. During this time, the system will communicate with the WHM licensing servers to verify the license.

Once the validation process is complete, you will receive a confirmation message indicating a successful license validation.

If any issues are encountered during the validation process, error messages or warnings will be displayed. In such cases, it is recommended to review the error messages and consult with your hosting provider or the WHM support team for further assistance.

Conclusion:
Validating your WHM license is crucial for uninterrupted web hosting management. By following the steps outlined in this blog post and executing the "/usr/local/cpanel/cpkeyclt --force" command, you can ensure that your WHM license is validated successfully.

Remember to regularly check the status of your WHM license to ensure its validity and compliance with the terms of service. In case of any license-related issues or persistent errors, it is advisable to reach out to your hosting provider or the WHM support team for prompt resolution.

Managing your web hosting environment with a valid WHM license provides you with the peace of mind and confidence needed to deliver reliable hosting services to your clients.

Happy hosting!