I have a Linux workstation and a Windows laptop and I thought it might handy to be able to connect remotely from my laptop to my Linux workstation if I’m working from home. One way to do this is to setup TightVNC server on your workstation and then install a client on your laptop, but there is an easier way to do this.
We would use the build in Windows Remote Desktop Connection(RDC) to connect remotely to our Linux workstation. For this you need to install two packages viz. epel(extra packages for enterprise linux) and xRDP. Below are the steps you would need to do for RedHat.
Step 1: Install epel
For my RedHad 7 I tried the following command:
But my machine was having trouble resolving the IP addresses correctly. So I manually went in the browser and downloaded and installed the above package.
Step 2: Install xRDP
sudo yum install xrdp tigervnc-server
Step 3: Start the XRDP services and set it to startup during boot
Run the following four commands:
service xrdp start systemctl start xrdp.service systemctl enable xrdp-sesman.service systemctl start xrdp-sesman.service
You can now connect using Window’s RDC to your workstation.
Note after connecting if you get a message saying ‘VNC error – only supporting 8, 15, 16 and 24 bpp rdp connections’ then go to Options inside Windows RDC and set the color to 24 bit.