How do I use novnc on CentOS 6?

3

I came across novnc in a yum search, and wanted to use it so I installed. However, there is no information on how to actually use it. The novnc_server command exits with "Could not find vnc.html". The man page and --help menu are of no help. The README on github says: "Use the launch script to start a mini-webserver and the WebSockets proxy (websockify)." Which is also, of no help. The fedora and CentOS wiki have no info.

tpaul

Posted 2012-10-31T22:21:07.313

Reputation: 133

which yum repository does novnc belongs to?. I tried installing it using yum install novnc but couldn't find any results – irraju – 2012-11-13T21:51:36.137

EPEL http://fedoraproject.org/wiki/EPEL, and I actually never got the application to work in CentOS...

– tpaul – 2012-11-13T23:00:58.567

Answers

2

You can probably get things working by running the launch script (named novnc_server in the CentOS install) from the noVNC data directory:

cd /usr/share/novnc
novnc_server

Alternatively you can bypass the launcher script and just use websockify directly with explicit options:

websockify --web /usr/share/novnc 6080 localhost:5900

I've just pushed an update to noVNC that should allow launch.sh (novnc_server) to find /usr/share/novnc automatically but that will take a while to percolate into the distributions.

kanaka

Posted 2012-10-31T22:21:07.313

Reputation: 251

I am not able to have this work on CentOS. Any suggestions or pointers will be highly appreciated. – irraju – 2012-11-14T17:03:15.483

A little more info on what problem you are having would be appreciated. Note if this is your question: http://stackoverflow.com/questions/13369727/how-to-use-novnc-to-connect-to-a-vnc-server-through-browser/ note that I just pushed a fix when using python2.4 (such as on old installs of CentOS).

– kanaka – 2012-11-14T17:32:38.963