LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   FC6 Multiple Simultaneous VNC Sessions (https://www.linuxquestions.org/questions/fedora-35/fc6-multiple-simultaneous-vnc-sessions-515668/)

mpride 01-02-2007 03:10 PM

FC6 Multiple Simultaneous VNC Sessions
 
I'm running Fedora 6 and I have VNC server installed and running. I have several sessions configured in the /etc/sysconfig/vncservers file. However, it seems that I can only attach to the last one defined in the file. If I take out the last session then I'm able to connect to what was the next to last session. If I restart the server only one VNC session becomes active at a time.

Should I be able to define multiple displays in this file and have them available for simultaneous use? Is there something I need to do?

Lenard 01-02-2007 04:34 PM

Follow the instructions here and remember each session will have a different port number; http://fedoranews.org/tchung/vnc/ ;From the last page the TIP by Forrest Taylor;

VNCSERVERS="1:myusername1" "2:myusername2" "3:myusername3"

1 is port 5901, 2 is port 5002 and 3 is port 5903

mpride 01-04-2007 09:23 AM

I had already run through those same configuration parameters. It works great if I only want to have one vnc session enabled at one time. If I run the service vncserver restart command, it only starts the last session in the vncservers file.

Here is a sample of my vncservers file:

VNCSERVERS="2:mapride"
VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -nohttpd -localhost"

VNCSERVERS="3:jothomp1"
VNCSERVERARGS[3]="-geometry 800x600 -nolisten tcp -nohttpd -localhost"

I'm not sure what I'm doing wrong but I would appreciate any help I can get.

Lenard 01-04-2007 11:25 AM

Simplify;

VNCSERVERS="2:mapride"
VNCSERVERARGS[2]="-geometry 800x600"

VNCSERVERS="3:jothomp1"
VNCSERVERARGS[3]="-geometry 800x600"

mpride 01-04-2007 07:00 PM

Lenard,
I appreciate you sticking with me on this. I now have a better handle on the actual problem (I think).
I have vncserver configured to start at bootup. However, I can't login to any of the defined sessions until I connect to the server via SSH and start the VNC session (ex. vncserver :2) for the userid I used for SSH. This might very well be the way it is designed to be started but I need to find a way to start all the defined VNC sessions on bootup.
Do you have any ideas on how best to accomplish this?

Lenard 01-04-2007 07:36 PM

Check / edit your /etc/sysconfig/iptables file follow the example from the link I provided in an earlier reply.

mpride 01-04-2007 10:05 PM

I actually turned the firewall off completely early in the troubleshooting process so I don't think that would be it.

Lenard 01-05-2007 07:10 AM

Well, my vncserver is configured according to the link provided and I have zero problems connecting (KDE desktop) to my home system from anywhere else(Germany for example). The system is behind a hardware firewall which does have the defined vnc ports (59XX) set to forward requests to the system, maybe this is the problem.

Since you can ssh in then start the service then maybe the system is first looking to "verify the remote system connection" before allowing vnc access (a configuration issue, maybe ssh maybe something else).

These links might be helpful;

http://www.realvnc.com/faq.html
http://msmvps.com/blogs/rexiology/ar...pproaches.aspx


All times are GMT -5. The time now is 04:42 PM.