Sunday, 23 December 2018

One server with multiple desktops "heads" with VNC


I am managing a system of kiosks. Each kiosk currently is running a web browser with the application for the kiosk running in the browser. Each kiosk needs to be able to display separate content. At times, the application running in the web browser freezes. Thus, I have to go out to the site to refresh the page.


I want to see if there is a way to have one central server that has multiple browser heads. Then each kiosk would run a program like VNC to display one of the heads. This way when the program freezes, I just have to login to the central server and refresh the page.


Getting VNC or another remote desktop software installed on the clients is no problem. What I am looking for is a way to have VNC remote into a specific head of a head of a web browser. Does such a thing exist? Or do I have to run a VM for each kiosk to remote into? Any advice, pointers, or solutions would be helpful.



Answer



You don't need to run VM's for this though there are advantages to doing so, mainly security.


However, VNC servers are associated with an X-Windows display. Normally, a client workstation will only have a single X display and you start the VNC server with:


vncserver :0

To associate VNC with the desktop X session.


If, however, you run multiple X sessions, you can change the 0 to another number. You can then start multiple VNC servers. Remember though that X displays take a fair bit of resource so test carefully.


This is possible because UNIX systems are inherently multi-user. It was common before the advent of cheap PC's, to run many X sessions on "terminals" from a central UNIX server. VNC is a slightly more efficient method of exporting the X session over the wire.


Here are some links to effectively run multiple X displays and associated desktops:



No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...