博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
【vnc】vncserver: couldn't find "xauth" on your PATH 问题
阅读量:6279 次
发布时间:2019-06-22

本文共 3944 字,大约阅读时间需要 13 分钟。

新安装的了一台redhat 4.7 版本的测试机器,使用vncserver 时遇到vncserver: couldn't find "xauth" on your PATH 。查看了一下网上的案例,
发现自己的机器上没有安装xauth。。
root@rac1:/root#
yum install vnc  vnc-server
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> 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
Dependencies Resolved
=============================================================================
 Package                 Arch       Version          Repository        Size 
=============================================================================
Installing:
 vnc                     x86_64     4.0-12.el4       base              153 k
 vnc-server              x86_64     4.0-12.el4       base              1.2 M
Transaction Summary
=============================================================================
Install      2 Package(s)         
Update       0 Package(s)         
Remove       0 Package(s)         
Total download size: 1.4 M
Is this ok [y/N]: y
Downloading Packages:
(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     
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  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
Complete!
root@rac1:/root#
vncserver
vncserver: couldn't find "xauth" on your PATH.
在当前路径找不到xauth命令
使用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
xauth:
确认没有安装xauth
root@rac1:/root#
yum install xauth
Setting up Install Process
Setting up repositories
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
Resolving Dependencies
--> 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
Dependencies Resolved
=============================================================================
 Package                 Arch       Version          Repository        Size 
=============================================================================
Installing:
 xorg-x11-xauth          x86_64     6.8.2-1.EL.52    base              291 k
Transaction Summary
=============================================================================
Install      1 Package(s)         
Update       0 Package(s)         
Remove       0 Package(s)         
Total download size: 291 k
Is this ok [y/N]: y
Downloading Packages:
(1/1): xorg-x11-xauth-6.8 100% |=========================| 291 kB    00:00     
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: xorg-x11-xauth               ######################### [1/1] 
Installed: xorg-x11-xauth.x86_64 0:6.8.2-1.EL.52
Complete!
再次执行vncserver
root@rac1:/root#
vncserver
You will require a password to access your desktops.
Password: 
Verify: 
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

转载地址:http://tjbva.baihongyu.com/

你可能感兴趣的文章
LINUX常用命令
查看>>
百度云盘demo
查看>>
概率论与数理统计习题
查看>>
初学structs2,简单配置
查看>>
Laravel5.0学习--01 入门
查看>>
时间戳解读
查看>>
sbin/hadoop-daemon.sh: line 165: /tmp/hadoop-hxsyl-journalnode.pid: Permission denied
查看>>
@RequestMapping 用法详解之地址映射
查看>>
254页PPT!这是一份写给NLP研究者的编程指南
查看>>
《Data Warehouse in Action》
查看>>
String 源码浅析(一)
查看>>
Spring Boot 最佳实践(三)模板引擎FreeMarker集成
查看>>
Fescar 发布 0.2.3 版本,支持 Redis 和 Apollo
查看>>
Google MapReduce到底解决什么问题?
查看>>
CCNP-6 OSPF试验2(BSCI)
查看>>
Excel 2013 全新的图表体验
查看>>
openstack 制作大于2TB根分区自动扩容的CENTOS镜像
查看>>
Unbuntu安装遭遇 vmware上的Easy install模式
查看>>
几个常用的ASP木马
查看>>
python分析postfix邮件日志的状态
查看>>