新安装的了一台redhat 4.7 版本的测试机器,使用vncserver 时遇到vncserver: couldn't find "xauth" on your PATH 。查看了一下网上的案例,
root@rac1:/root#
yum install vnc vnc-server Setting up Install Process
Reading repository metadata in from local files
Parsing package install arguments
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for vnc-server to pack into transaction set.
vnc-server-4.0-12.el4.x86 100% |=========================| 11 kB 00:00
---> Package vnc-server.x86_64 0:4.0-12.el4 set to be updated
---> Downloading header for vnc to pack into transaction set.
vnc-4.0-12.el4.x86_64.rpm 100% |=========================| 8.6 kB 00:00
---> Package vnc.x86_64 0:4.0-12.el4 set to be updated
--> Running transaction check
=============================================================================
Package Arch Version Repository Size
=============================================================================
vnc x86_64 4.0-12.el4 base 153 k
vnc-server x86_64 4.0-12.el4 base 1.2 M
=============================================================================
Total download size: 1.4 M
(1/2): vnc-server-4.0-12. 100% |=========================| 1.2 MB 00:00
(2/2): vnc-4.0-12.el4.x86 100% |=========================| 153 kB 00:00
Finished Transaction Test
Transaction Test Succeeded
Installing: vnc ######################### [1/2]
Installing: vnc-server ######################### [2/2]
Installed: vnc.x86_64 0:4.0-12.el4 vnc-server.x86_64 0:4.0-12.el4
root@rac1:/root#
vncserver vncserver: couldn't find "xauth" on your PATH. 使用locate whereis 命令查找xauth root@rac1:/root#locate xauth
/lib64/security/pam_xauth.so /usr/share/man/man8/pam_xauth.8.gz /usr/share/doc/pam-0.77/txts/README.pam_xauth /usr/share/zsh/4.2.0/functions/_xauth root@rac1:/root#whereis xauth
root@rac1:/root#
yum install xauth Setting up Install Process
apsara 100% |=========================| 951 B 00:00
update 100% |=========================| 951 B 00:00
base 100% |=========================| 951 B 00:00
extras 100% |=========================| 951 B 00:00
Reading repository metadata in from local files
Parsing package install arguments
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for xorg-x11-xauth to pack into transaction set.
xorg-x11-xauth-6.8.2-1.EL 100% |=========================| 263 kB 00:00
---> Package xorg-x11-xauth.x86_64 0:6.8.2-1.EL.52 set to be updated
--> Running transaction check
=============================================================================
Package Arch Version Repository Size
=============================================================================
xorg-x11-xauth x86_64 6.8.2-1.EL.52 base 291 k
=============================================================================
Total download size: 291 k
(1/1): xorg-x11-xauth-6.8 100% |=========================| 291 kB 00:00
Finished Transaction Test
Transaction Test Succeeded
Installing: xorg-x11-xauth ######################### [1/1]
Installed: xorg-x11-xauth.x86_64 0:6.8.2-1.EL.52
root@rac1:/root#
vncserver You will require a password to access your desktops.
xauth: creating new authority file /root/.Xauthority
New 'rac1:1 (root)' desktop is rac1:1
Creating default startup script. /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/rac1:1.log