[VNC] VNC "xauth: (stdin):1: bad display name" 에러 발생 시
VNC "xauth: (stdin):1: bad display name" 에러 발생 시 hosts 파일에 도메인 등록하면 해결됩니다.
[root@oldap ~]# service vncserver restart
VNC 서버 종료 중: [ OK ]VNC 서버 (을)를 시작 중: 1:root xauth: (stdin):1: bad display name "oldap.sangchul.kr:1" in "add" command
New 'oldap.sangchul.kr:1 (root)' desktop is oldap.sangchul.kr:1
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/oldap.sangchul.kr:1.log
[ OK ]
[root@oldap ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
127.0.0.1 oldap.sangchul.kr
[root@oldap ~]# service vncserver restart
VNC 서버 종료 중: 1:root [ OK ]VNC 서버 (을)를 시작 중: 1:root
New 'oldap.sangchul.kr:1 (root)' desktop is oldap.sangchul.kr:1
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/oldap.sangchul.kr:1.log
[ OK ]