LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   vncserver xauth: (argv):1: bad display name (https://www.linuxquestions.org/questions/linux-software-2/vncserver-xauth-argv-1-bad-display-name-588980/)

kd101 10-02-2007 05:42 PM

vncserver xauth: (argv):1: bad display name
 
hello

i have a remote machine running CentOS that i am trying to connect to with vnc.

when i try to start vncserver on the remote machine through ssh with the command "vncserver :1" i get the following error mesage

Code:

xauth: (argv):1:  bad display name "[ip address]:1" in "add" command

New '[ip address]:1 (root)' desktop is [ip address]:1

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/[ip address]:1.log

there are a few threads out there similar to this but most make reference to adding the hostsname to the hosts file but this didn't work for me.

only think to note is the the ip address appears with - instead of . i.e. 127-0-0-1 instead of 127.0.0.1

thanks

ams1380 12-28-2012 06:42 AM

you can set right machine name in etc/hostes such as
127.0.0.1 name_of_machine localhost

a.abdulna 08-30-2013 02:08 AM

Dear ams1380,

Your replay very helpful for me, today i had same issue.. :)

Thanks,
Abdul.


All times are GMT -5. The time now is 07:11 AM.