LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   VNC server problem (https://www.linuxquestions.org/questions/linux-software-2/vnc-server-problem-129779/)

sam00 12-29-2003 10:45 AM

VNC server problem
 
Hello all,

I have installed VNC on my gentoo linux distribution.
When I go to launch 'vncserver' it returns the following message then exits.

"xauth: (argv):1: bad display name "hostname:1" in "add" command

New 'X' desktop is hostname:1

Starting applications specified in /home/user/.vnc/xstartup
Log file is /home/user/.vnc/hostname:1.log"

then exits back to shell,,

anyone know how to fix:

"xauth: (argv):1: bad display name "blue:1" in "add" command"

or what exactly is that telling me?

mtaylor 06-20-2004 10:40 PM

I am having the same problem. I think this is related to having changed the hostname. I started getting similar errors from squid (even though I don't use it) at about the same time as changing the hostname.

ExoZagNoid 06-21-2004 02:25 AM

This may be a lame fix, but when I start having problems with VNC I delete the files out of the .vnc folder in my home directory. Then, when I start a VNC server again the files are re-created and usually it works fine. It will ask you to re-enter your password and that's about it.

Remember .vnc is a hidden folder though.

If you really want to, you could probably poke around in the files in the .vnc folder and try to find your problem there.
Exo

mtaylor 06-30-2004 08:31 PM

about the message:
xauth: (argv):1: bad display name "hostname:1" in "add" command

I found a solution with a little enlightened trial and error. The problem started after changing the hostname and domainname (using hostname and domainname commands at a terminal).

The problem went away after editing the /etc/hosts file. I simply added the line:
"192.168.0.6 gwlinux.taylorhome gwlinux"

without the quotes.

I am getting my ip address from my router (via DHCP). So I looked up the address with ifconfig and entered in the line above.


All times are GMT -5. The time now is 03:54 AM.