Fedora Linux Support Community & Resources Center
  #1  
Old 21st June 2009, 12:28 AM
klingon Offline
Registered User
 
Join Date: Jun 2005
Posts: 14
load vncserver at boot time

So I installed tigervnc, configured /etc/sysconfig/vncserver, used vncpasswd as the user im trying to log in as to set passwd, disabled firewalls, set chkconfig --add vncserver but still whenever i try to connect to the vnc server I get "unable to connect to host: Connection refused (10061)". If I run the "vncserver" command as my normal user, I can connect fine then. This really wearing on me, any help is greatly appreciated. It is weird if I try to stop vncserver it says [ok] and then if I try to stop again it says [Failed] but if I check the status of vncserver it says Xvnc is running..
Reply With Quote
  #2  
Old 21st June 2009, 02:18 AM
scottro's Avatar
scottro Offline
Retired Community Manager -- Banned from Texas by popular demand.
 
Join Date: Sep 2007
Location: NYC
Posts: 8,142
Hrrm.

I'm assuming that tigervnc still works as vnc has always worked. (And actually, the server aspect works quite well, IMHO--there's a small bug with the viewer and Macs, but a bug's been filed and they're working on it.)

Let's say the user is called klingon. You should be able to do this. (Untested with tigervnc).

As klingon, start the server. Set your password.

pkill Xvnc

See if it's stopped. (Also, at this point, make sure that you haven't eneabled it as a service, that is, if it is running as service please do, as root or with root privilege, service vncserver (or whatever it's called) stop.

Now, in /etc/sysconfig/vncserver, you'll see some sample lines, which should be commented out with a # sign.

Copy one and edit it so it read

VNCSERVERS="1:klingon

Then

service vncserver start

At this point, you should be able to login from another machine.

To make it run at boot

chkconfig vncserver on

This should work after a reboot.
__________________
--
http://home.roadrunner.com/~computertaijutsu

Do NOT PM forum members with requests for technical support. Ask your questions on the forum.


"I don't know why there is the constant push to break any semblance of compatibility" --anon
Reply With Quote
  #3  
Old 21st June 2009, 05:48 AM
klingon Offline
Registered User
 
Join Date: Jun 2005
Posts: 14
Thankyou, I ran through all the steps you provided a second time. Still when I try to connect I get the connection refused message. If I ssh in and run vncserver as user, I can connect fine.. Is there any difference in configuration between running "service vncserver start" and running "vncserver".

nmap shows the ports are open when running either command to start server. ive tried using a default xstartup. firewall and selinux are confirmed not interfering.
Reply With Quote
  #4  
Old 21st June 2009, 07:41 AM
scottro's Avatar
scottro Offline
Retired Community Manager -- Banned from Texas by popular demand.
 
Join Date: Sep 2007
Location: NYC
Posts: 8,142
There really shouldn't be a difference. If you set up sysconfig/vncservers as mentioned, and then type

service vncserver start

what do you see in the terminal? You should be seeing something very similar to what you see when you start it as the user, that it is starting for user klingon on display 1.
__________________
--
http://home.roadrunner.com/~computertaijutsu

Do NOT PM forum members with requests for technical support. Ask your questions on the forum.


"I don't know why there is the constant push to break any semblance of compatibility" --anon
Reply With Quote
  #5  
Old 21st June 2009, 05:25 PM
klingon Offline
Registered User
 
Join Date: Jun 2005
Posts: 14
SOLVED!

Im an idiot >( So I checked over all my config files again and noticed /etc/sysconfig/vncservers had the "localhost" switch active effectively preventing anybody from connecting. The first time I saw this I thought it meant prevent public IPs from connecting. This would explain why nmap showed the port open on localhost but not the IP. I guess running the command "vncserver" does not use the same config file so it didnt have this problem.
Reply With Quote
  #6  
Old 21st June 2009, 05:43 PM
scottro's Avatar
scottro Offline
Retired Community Manager -- Banned from Texas by popular demand.
 
Join Date: Sep 2007
Location: NYC
Posts: 8,142
Ah, glad you got it fixed. I was puzzled when you were saying it wasn't working.
__________________
--
http://home.roadrunner.com/~computertaijutsu

Do NOT PM forum members with requests for technical support. Ask your questions on the forum.


"I don't know why there is the constant push to break any semblance of compatibility" --anon
Reply With Quote
  #7  
Old 21st June 2009, 06:13 PM
klingon Offline
Registered User
 
Join Date: Jun 2005
Posts: 14
Thanks, its working great now. Feels a bit faster than the previous vnc implementation I had on F10. I was wondering whether I should use tigervnc-server or tigervnc-server-module. Any advantages to using one over the other?
Reply With Quote
  #8  
Old 21st June 2009, 07:04 PM
scottro's Avatar
scottro Offline
Retired Community Manager -- Banned from Texas by popular demand.
 
Join Date: Sep 2007
Location: NYC
Posts: 8,142
I agree--it does seem faster to me as well, with responsiveness matching nx-server.

As for your question--I wasn't even aware of tigervnc-server-module, so I don't know what, if any, advantage or disadvantage there is.
__________________
--
http://home.roadrunner.com/~computertaijutsu

Do NOT PM forum members with requests for technical support. Ask your questions on the forum.


"I don't know why there is the constant push to break any semblance of compatibility" --anon
Reply With Quote
  #9  
Old 21st June 2009, 07:15 PM
scottro's Avatar
scottro Offline
Retired Community Manager -- Banned from Texas by popular demand.
 
Join Date: Sep 2007
Location: NYC
Posts: 8,142
To go back to the question--the description for the module package says that it provides the module to the X server. If you just install the module, without installing tigervnc-server, you won't have a vncserver command..

So, I'm not really clear what the module does--it's not required for the tigervnc or the tigervnc-server package.
__________________
--
http://home.roadrunner.com/~computertaijutsu

Do NOT PM forum members with requests for technical support. Ask your questions on the forum.


"I don't know why there is the constant push to break any semblance of compatibility" --anon
Reply With Quote
Reply

Tags
boot, load, time, vncserver

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
vncServer Fedora11 on Boot macm Using Fedora 5 2nd July 2009 12:49 PM
How to load a module on the boot time? airtonarantes Using Fedora 0 14th November 2007 07:23 PM
How to automatically load ndiswrapper module at boot time? zeroandone Hardware & Laptops 4 23rd October 2005 08:46 AM
vncserver on boot ieuuk Using Fedora 3 22nd December 2004 10:38 PM
load matroxfb at boot time mac1202 Using Fedora 0 9th September 2004 05:20 PM


Current GMT-time: 21:03 (Wednesday, 22-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat