This is more of a reminder for myself (so that next time I don’t have to go looking again)
On my Windows PC I use VirtualBox for running multiple virtual machines with all my Oracle stuff.
This weekend I downloaded and imported the latest “Database App Development VM” appliance, which at the time of writing contains Oracle 18.104.22.168 + APEX 5.0.3 + ORDS 3.0.3
The thing is that I like to use Windows Remote Desktop Client for connecting to my VM, because it allows me to set the screen resolution as I please. I’m also always starting all my VMs in headless mode when the Windows host PC boots.
Now, you have to know that it is already possible to connect to the VM out-of-the-box. But in that case you are communicating with the virtual hardware. It works, but it’s very slow and screen resolution is limited to some low-resolution modes.
Before I could use the windows remote desktop client to directly connect to the linux, I had to install XRDP in Oracle Linux 7.x:
1. Create yum repository reference
2. Install XRDP server
#yum -y install xrdp tigervnc-server
#systemctl start xrdp.service
#systemctl enable xrdp.service
3. Setup NAT port for Remote Desktop Client in virtualbox
In this case we are connecting with remote desktop client
on port 9520.
(I have the German version of VirtualBox, so the below
is probably not the exact translation, but should help
you get started)
a. Select the vm
b. Change properties
d. Port forwarding
e. Define new rule
4. Start remote desktop client on windows
mstsc /v:localhost:9520 /f
5. Now change screen resolution in Gnome Desktop Manager
Applications -> System Tools -> Settings
-> Display -> (1) Unknown Display
b. Pick your preferred screen resolution
and press the "Apply" button.
The below screenshot shows step 3-e in detail:
One last thing. You can perfectly use RDP on Mac as well. Microsoft released an official RDP client for MAC OS-X available in the app store.