VNC server from startup

Issues related to configuring your network
Post Reply
WallyWest
Posts: 10
Joined: 2008/10/16 00:55:34

VNC server from startup

Post by WallyWest » 2011/09/16 01:09:11

Is there a way to get VNC access without logging into the server manually? With the built in CentOS 6 remote desktop I can VNC to it when it's logged in, but not from the login prompt. I want to run this machine without monitor or keyboard attached eventually, so I need a way to VNC to it at the login prompt.

I used this guide.

http://wiki.centos.org/HowTos/VNC-Server

and now it doesn't work at all. Even when logged in, no response.

If it's possible to do it with the stock VNC app then great, how? If not, how do you configure tigervnc-server to do it?

I've disabled the firewall for now, so that's not a potential issue.

User avatar
vonskippy
Posts: 839
Joined: 2006/12/30 03:00:04
Location: Western Slope Colorado

VNC server from startup

Post by vonskippy » 2011/09/16 04:25:05

So what (EXACTLY) did you do?

I use the wiki instructions and it works fine - so without more info, it will hard for anyone to hazard a guess.

WallyWest
Posts: 10
Joined: 2008/10/16 00:55:34

Re: VNC server from startup

Post by WallyWest » 2011/09/16 12:14:47

I did exactly what the wiki page says to do. Except for step 2.4 which it says to skip if you're running 6. No errors, the service is up and running, I can ping the server and get a response. It just doesn't respond at all when I try to VNC into it.

If I'm reading it right step 2.6.3 is how I can accomplish my goal, getting VNC access before login.

The only success I've had is before I installed tigervnc-server, just using whatever version is included in the OS. Should that be turned off or on when using tigervnc-server? I tried it both ways with no luck, but the wiki doesn't say anything about that.

scottro
Forum Moderator
Posts: 2556
Joined: 2007/09/03 21:18:09
Location: NYC
Contact:

Re: VNC server from startup

Post by scottro » 2011/09/16 23:10:28

Make it simpler. If the username is john

Just do


VNCSERVERS="1:john"

in /etc/sysconfig/vncservers




Now, as user john make sure it's not running

pkill vnc

(If it says permission denied, do it as root or with sudo)

pgrep vnc

You should get a command prompt back. Fine, it's stopped

As user john


vncserver


It should ask john to create a password.

Create it.


Now from client


vncviewer :1


See if that works. If not, it might be the firewall.

WallyWest
Posts: 10
Joined: 2008/10/16 00:55:34

Re: VNC server from startup

Post by WallyWest » 2011/09/22 02:44:36

Ok, when I typed vncserver in it did nothing. Didn't prompt for a password.

Now the service won't come up. It gives an error at startup, failed to start vncserver. Can't start it manually once logged in either, it just sits there.

Firewall is totally disabled.

And the built in remote desktop thing doesn't work at all now either.

Post Reply