vncserver: couldn't find "xauth" on your PATH

本文介绍了一次在Linux服务器上安装VNC过程中遇到的问题及解决方案。由于缺少xauth导致VNC服务启动失败,通过查找并使用yum安装xauth后问题得到解决。

要安装 EBS R12.2.4 ,  发现Linux服务器上没有vnc服务,准备安装一个,发现报错 : 

#  yum install vnc  vnc-server  
安装完毕后执行: 
# vncserver

vncserver: couldn't find "xauth" on your PATH.

可能是xauth 没有安装 。
使用locate , whereis 命令查找xauth

#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

 #whereis  xauth

xauth:
发现没有安装后, 还是使用 yum install  axuth 来安装 ,之后再执行 # vncserver 正常。

本文转自ITPUB博客tolywang的博客,原文链接:vncserver: couldn't find "xauth" on your PATH,如需转载请自行联系原博主。

正在启动VNC服务... Job for vncserver@:1.service failed because the control process exited with error code. See "systemctl status vncserver@:1.service" and "journalctl -xe" for details. VNC服务启动失败,查看详细日志: -- Logs begin at Sat 2025-03-29 12:42:44 CST, end at Mon 2025-06-23 11:48:15 CST. -- 6月 23 11:15:58 0001.novalocal systemd[1]: vncserver@:1.service: Service RestartSec=5s expired, sche> 6月 23 11:15:58 0001.novalocal systemd[1]: vncserver@:1.service: Scheduled restart job, restart coun> 6月 23 11:15:58 0001.novalocal systemd[1]: Stopped Remote desktop service (VNC). 6月 23 11:15:58 0001.novalocal systemd[1]: Starting Remote desktop service (VNC)... 6月 23 11:15:58 0001.novalocal vncserver[1934715]: vncserver: couldn't find "xauth" on your PATH. 6月 23 11:15:58 0001.novalocal systemd[1]: vncserver@:1.service: Control process exited, code=exited> 6月 23 11:15:58 0001.novalocal systemd[1]: vncserver@:1.service: Failed with result 'exit-code'. 6月 23 11:15:58 0001.novalocal systemd[1]: Failed to start Remote desktop service (VNC). 6月 23 11:16:13 0001.novalocal systemd[1]: vncserver@:1.service: Service RestartSec=15s expired, sch> 6月 23 11:16:13 0001.novalocal systemd[1]: vncserver@:1.service: Scheduled restart job, restart coun> 6月 23 11:16:13 0001.novalocal systemd[1]: Stopped Remote desktop service (VNC). 6月 23 11:16:13 0001.novalocal systemd[1]: Starting Remote desktop service (VNC)... 6月 23 11:16:13 0001.novalocal systemd[1]: vncserver@:1.service: Control process exited, code=exited> 6月 23 11:16:13 0001.novalocal systemd[1]: vncserver@:1.service: Failed with result 'exit-code'. 6月 23 11:16:13 0001.novalocal systemd[1]: Failed to start Remote desktop service (VNC). 6月 23 11:48:15 0001.novalocal systemd[1]: Starting Remote desktop service (VNC)... 6月 23 11:48:15 0001.novalocal vncserver[1988882]: vncserver: couldn't find "xauth" on your PATH. 6月 23 11:48:15 0001.novalocal systemd[1]: vncserver@:1.service: Control process exited, code=exited> 6月 23 11:48:15 0001.novalocal systemd[1]: vncserver@:1.service: Failed with result 'exit-code'. 6月 23 11:48:15 0001.novalocal systemd[1]: Failed to start Remote desktop service (VNC). lines 1-21/21 (END)
06-18
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符  | 博主筛选后可见
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值