4

I'm trying to get a friend's server started for them. It's running on the same hardware platform as one that I personally use, so I figured it would be easy.

They're running CentOS, and I'm trying to get VNC to work. I picked TightVNC because it's what I use, and installed it. It complained that it couldn't find XAuth, so I installed that, too.

Now when I start the VNC server, it prints the following then exits:

You will require a password to access your desktops.

I can't get TightVNC to actually accept a password and continue. I suspect this has something to do with XAuth being set up wrong. Any ideas?

0

2 Answers 2

4

Did you use vncpasswd to set the password for the VNC server? Just run vncpasswd before you start the VNC server for the first time and enter the password as prompted.

3
  • Sorry about taking a year to mark this correct; I totally forgot about this question. Your answer was, as I recall, the solution to the problem I was having.
    – Dan
    Commented Jan 25, 2013 at 0:04
  • 1
    One extra thing that might not be obvious; you need to chmod 600 the password file (normally ~/.vnc/passwd) that you create using vncpasswd. Commented Aug 6, 2022 at 21:46
  • Thanks, chmod 600 ~/.vnc/passwd did the trick. Commented Nov 22, 2023 at 2:53
1

I had this exact same problem, and the answers gave me hints to what was wrong, but we're not exactly the answer.

It turns out that the service was being started as the root user, but I did not have a password as the root user only as my user. I had to sudo su, and then run vncpassword.

That solved the problem.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .