Using Remote Desktop Connection (RDP) to connect to SLES11

Do you have information on SAP HANA Technology (Suse Linux, HANA Patches, DMIS and so on) then post it here.
Locked
User avatar
Hay Bouten
Posts: 131
Joined: Mon Dec 24, 2012 10:11 am
Location: Eindhoven, The Netherlands
Contact:

Using Remote Desktop Connection (RDP) to connect to SLES11

Post by Hay Bouten »

"Why?" might be your first thought quickly followed by "I use VNC for Linux". That is correct, but many IT departments have no VNC Client in their standard software portfolio. For this reason I have written this blog to show you how to configure the SAP HANA server to allow connections via the Remote Desktop Connection (RDP) protocol. This setup is a 100% SAP HANA server-side configuration, so the IT departments doesn't need to change their policy on the VNC Client software.

As of SLES11 SP2 for SAP the package xrdp is shipped. For the installation and configuration perform the following steps:
  • Installation xrdp package
  • Configuring the Firewall to allow RDP
  • Start xrdp during boot
Installation xrdp package
The xrdp package is shipped with SLES11 SP2 for SAP, so it can be installed from the installation DVD. No extra software download is needed.
  1. Start the YaST2 Control Center by selecting Menu => System => YaST
    Start YaST2 Control Center
    Start YaST2 Control Center
    SetupXRDP_for_HANA001.png (164.29 KiB) Viewed 73919 times
  2. In the YaST2 Control Center filter on soft to find the Software Management tool and start it by selecting it.
    Starting Software Management
    Starting Software Management
    SetupXRDP_for_HANA002.png (61.59 KiB) Viewed 73919 times
  3. In the Software Management tool search for xrdp. When found xrdp will show up on the right hand side. Select it with a right mouse click and from the context menu select the install option.
    Select xrdp for installation
    Select xrdp for installation
    SetupXRDP_for_HANA003.png (111.14 KiB) Viewed 73919 times
  4. In the pop-up windows Changed Packages select Continue to install the dependencies packages.
    Install dependencies
    Install dependencies
    SetupXRDP_for_HANA005.png (68.96 KiB) Viewed 73919 times
  5. Click Continue in the Unsupported Packages pop-up window.
    Install Unsupported Packages
    Install Unsupported Packages
    SetupXRDP_for_HANA006.png (59.93 KiB) Viewed 73919 times
  6. During the installation a nice progress bar is shown. When the installation is finished you will return to the YaST2 Control Center main menu.
    Installation progress
    Installation progress
    SetupXRDP_for_HANA007.png (82.15 KiB) Viewed 73919 times
Configuring the Firewall to allow RDP
By default the SLES11 will block the RDP protocol, so we need to configure the SLES11 Firewall to allow the RDP protocol.
  1. Start the YaST2 Control Center by selecting Menu => System => YaST
  2. In the YaST2 Control Center filter on fire to find the Firewall tool and start it by selecting it.
    Start Firewall tool
    Start Firewall tool
    SetupXRDP_for_HANA009.png (36.05 KiB) Viewed 73919 times
  3. In the Firewall tool select Allowed Services. In the Service to Allow drop-down menu select Remote Desktop Protocol. On the right hand side select the Add button.
    Configure RDP on firewall
    Configure RDP on firewall
    SetupXRDP_for_HANA010.png (60.12 KiB) Viewed 73919 times
  4. Under Allowed Services theRemote Desktop Protocol is shown. Press the Next button.
    RDP is allowed service
    RDP is allowed service
    SetupXRDP_for_HANA012.png (67.32 KiB) Viewed 73919 times
  5. Check your setting in the Firewall Configuration: Summery and if everything is correct press the Finish button.
    Firewall Configuration: Summery
    Firewall Configuration: Summery
    SetupXRDP_for_HANA013.png (74.81 KiB) Viewed 73919 times
Start xrdp during boot
By default xrdp isn't started during a system boot. In the following section I will show you how to start xrdp during the system boot.
  1. Start the YaST2 Control Center by selecting Menu => System => YaST
  2. ]In the YaST2 Control Center filter on run to find the System Services (Runlevel) tool and start it by selecting it.
    Start System Services (Runlevel)
    Start System Services (Runlevel)
    SetupXRDP_for_HANA014.png (35.64 KiB) Viewed 73919 times
  3. In the System Service (Runlevel): Services window select xrdp and press the Enable button followed by the OK button.
    Enable the service xrdp
    Enable the service xrdp
    SetupXRDP_for_HANA015.png (70.81 KiB) Viewed 73919 times
  4. In the xrdp start returned 0 (succes) pop-up window press the OK button.
    Service xrdp started successfully
    Service xrdp started successfully
    SetupXRDP_for_HANA016.png (27.19 KiB) Viewed 73919 times
  5. In the System Service (Runlevel): Services window xrdp show up as started and also will be stared on every next system boot.
    Service xrdp started
    Service xrdp started
    SetupXRDP_for_HANA017.png (19.74 KiB) Viewed 73919 times
Now that the xrdp service is started a Microsoft Windows system can connect to the SAP HANA server using the Remote Desktop Protocol (RDP). Below a few Windows screenshots.
Opening an RDP connection using Windows 7 and mstsc.exe.
RDP connection to SLES11 server
RDP connection to SLES11 server
SetupXRDP_for_HANA021.png (20.6 KiB) Viewed 73917 times
Loggon to the SAP HANA server.
Loggon to SAP HANA server from Windows
Loggon to SAP HANA server from Windows
SetupXRDP_for_HANA022.png (5.14 KiB) Viewed 73917 times
Working with SLES11 SP2 for SAP using Windows RDP protocol.
Working with SLES11 using Windows RDP
Working with SLES11 using Windows RDP
SetupXRDP_for_HANA023.png (248.92 KiB) Viewed 73917 times
Disclaimer: No Windows were shattered and no command line abused during the setup of RDP for SLES11 Linux.
Locked

Who is online

Users browsing this forum: No registered users and 0 guests