LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 01-02-2007, 02:10 PM   #1
mpride
LQ Newbie
 
Registered: Dec 2006
Posts: 8

Rep: Reputation: 0
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?
 
Old 01-02-2007, 03:34 PM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 57
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
 
Old 01-04-2007, 08:23 AM   #3
mpride
LQ Newbie
 
Registered: Dec 2006
Posts: 8

Original Poster
Rep: Reputation: 0
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.
 
Old 01-04-2007, 10:25 AM   #4
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 57
Simplify;

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

VNCSERVERS="3:jothomp1"
VNCSERVERARGS[3]="-geometry 800x600"
 
Old 01-04-2007, 06:00 PM   #5
mpride
LQ Newbie
 
Registered: Dec 2006
Posts: 8

Original Poster
Rep: Reputation: 0
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?
 
Old 01-04-2007, 06:36 PM   #6
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 57
Check / edit your /etc/sysconfig/iptables file follow the example from the link I provided in an earlier reply.
 
Old 01-04-2007, 09:05 PM   #7
mpride
LQ Newbie
 
Registered: Dec 2006
Posts: 8

Original Poster
Rep: Reputation: 0
I actually turned the firewall off completely early in the troubleshooting process so I don't think that would be it.
 
Old 01-05-2007, 06:10 AM   #8
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 57
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
A way to have multiple simultaneous (XP-style) login sessions? greennick Linux - Software 4 02-09-2006 01:47 PM
multiple simultaneous logins phonecian Linux - Newbie 6 06-05-2005 09:40 AM
Simultaneous X sessions 64 Bit Headache Linux - General 1 02-12-2005 03:04 PM
Multiple X sessions via VNC ClassicV Linux - Software 1 06-17-2004 04:52 PM
Multiple simultaneous VPN connections? chamitha Linux - Networking 3 08-29-2002 12:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 04:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration