vnc on Centos 5.7 worked and then didn't after restart
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
vnc on Centos 5.7 worked and then didn't after restart
I have an old laptop that I want to have sit on a shelf. WOL is working properly and I thought I had vnc working for those few times I did want a gui.
I was able to connect to the laptop via TightVNC from my windows 7 box. After I restarted the Centos laptop, I could no longer vnc in.
Does this have something to do with the fact that no one is logged into the laptop yet, so there's no desktop to actually vnc into?
I've confirmed via "vino-preferences" and iptables that ports 5900 and 5901 are open. I think something online specified 5901 but TightVNC only seemed to work on 5900? I'm not sure on that one.
So what do I need to do to be able to vnc in without anyone having logged into the laptop at the console?
and I can now vnc in after boot up and I get a gnome login screen. Wonderful. I can open applications and what not, but then I tried to add a new user via the gui "system-config-users". It prompted me for the root password and then no window. I try to run it from the cmd line via sudo and get the following:
Xlib: connection to "couch:1.0" refused by server
Xlib: No protocol specified
system-config-users requires a currently running X server
Yeah, the laptop is called "couch". Anyways, um, I'm obviously running an server so what gives?
I think the x server has to be running all the time.
Go to /etc/inittab and your line probably reads
Code:
id:3:initdefault:
Change that to -
Code:
id:5:initdefault:
That should make it force the gui as the default log on option, otherwise vnc probably won't work. You'll need to do a reboot after that or just do an 'init 5' to force the runlevel change and go into effect.
Well, the only 2 things I can think of right this minute would be to verify that the service is set to startup by itself (chkconfig vncserver on), and then make sure iptables isn't blocking it somehow.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.