Friday, October 16, 2015

How to Install TigerVNC

Install TigerVNC in RHEL or OEL


The following are quick and easy steps for installing VNC server in RHEL/OEL Linux distros.

Installation Steps


yum install tigervnc-server

Edit the vncserver config file:

vi /etc/sysconfig/vncservers

Add usernames to config file:

[...]
VNCSERVERS="2:weblogic 3:johnsmith"
VNCSERVERARGS[2]="-geometry 1200x1024 -nolisten tcp -localhost"

Login as the user you want VNC in as and then set the password using vncpasswd command.

Adding Gnome/KDE


Run the below commands to install GNOME/KDE desktop environments.

yum groupinstall "Development Tools"

yum groupinstall "X Window System" "Desktop"

yum groupinstall "GNOME Desktop Environment"

Tuesday, June 17, 2014

Fixing "This desktop does not support the requested display protocol." error in VMWare View Client in OSX Mavericks

Earlier I couldn't connect to a Microsoft XP remote desktop via VMware View Client in OSX Mavericks even though I could connect fine from a Windows 7 machine (using VMware View Client).

I managed to fix it by installing "Microsoft Remote Desktop Connection for Mac" from here:
http://www.microsoft.com/en-au/download/details.aspx?id=18140

Note: If you google the error, you will get a wide variety of causes/triggers for the error. In my case not having this MS remote connector was the cause.


Friday, April 11, 2014

Oracle APEX, set value of shuttle via javascript


In Oracle APEX Javascript API, you would typically set the value of page item by 

$x('P1_ITEM').value = 5;

This would work with textfields, select list. But for more complex input items like shuttle, it would not work.

If one examines an APEX shuttle item with Firebug or Chrome Dev tools, one can see its composed of 2 items fields, suffixed with "_LEFT" and "RIGHT".


Solution is to use apex.item("<<name of item>>")>setValue(<<value>>); which takes into consideration the item type.

apex.item( "P1_ITEM" ).setValue( "10" );

You can read more about apex.item in the Oracle documentation for APEX's JavaScript API:
http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35127/javascript_api.htm#AEAPI29494