Linux - Networking This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
11-06-2011, 09:52 AM
|
#1
|
|
Member
Registered: Jun 2006
Location: CA
Distribution: Ubuntu, CentOS, Scientific Linux
Posts: 97
Rep:
|
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?
Thanks.
|
|
|
|
11-06-2011, 11:19 AM
|
#2
|
|
Member
Registered: Dec 2004
Distribution: Slackware, Arch, FreeBSD
Posts: 201
Rep:
|
A simple check, but is vncserver running? Do you have it set to start up at boot? What happens if you try to telnet to port 5900?
|
|
|
1 members found this post helpful.
|
11-06-2011, 02:11 PM
|
#3
|
|
Member
Registered: Jun 2006
Location: CA
Distribution: Ubuntu, CentOS, Scientific Linux
Posts: 97
Original Poster
Rep:
|
No, it looks like it's not running
$ telnet 192.168.1.101 5900
Trying 192.168.1.101...
telnet: Unable to connect to remote host: Connection refused
$ telnet 192.168.1.101 5901
Trying 192.168.1.101...
telnet: Unable to connect to remote host: Connection refused
Is vncserver started when I log into the console? I'll try to figure out how to start it at boot then.
|
|
|
|
11-06-2011, 04:18 PM
|
#4
|
|
Member
Registered: Jun 2006
Location: CA
Distribution: Ubuntu, CentOS, Scientific Linux
Posts: 97
Original Poster
Rep:
|
Okay, I followed the directions at
http://wiki.centos.org/HowTos/VNC-Server
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?
|
|
|
|
11-06-2011, 05:15 PM
|
#5
|
|
LQ Newbie
Registered: Mar 2008
Location: Wasilla, Alaska
Distribution: CentOS
Posts: 28
Rep:
|
I think the x server has to be running all the time.
Go to /etc/inittab and your line probably reads Change that to -
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.
|
|
|
|
11-06-2011, 06:17 PM
|
#6
|
|
Member
Registered: Jun 2006
Location: CA
Distribution: Ubuntu, CentOS, Scientific Linux
Posts: 97
Original Poster
Rep:
|
I do have it set for runlevel 5. The gui login screen is the default, so I am running X
That error about not having an X session came from a terminal from within the VNC session. That's why I'm so confused as I definitely have X running.
|
|
|
|
11-06-2011, 08:36 PM
|
#7
|
|
LQ Newbie
Registered: Mar 2008
Location: Wasilla, Alaska
Distribution: CentOS
Posts: 28
Rep:
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:20 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|