【vnc】vncserver: couldn't find "xauth" on your PATH 问题

新安装的了一台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

时间: 2024-10-29 01:29:49

【vnc】vncserver: couldn't find "xauth" on your PATH 问题的相关文章

Centos7远程桌面 vnc/vnc-server的设置详解_Linux

Centos7与Centos6.x有了很大的不同. 为了给一台服务器装上远程桌面,走了不少弯路.写这篇博文,纯粹为了记录,以后如果遇到相同问题,可以追溯. 1.假定你的系统没有安装vnc的任何软件,那么,首先安装vnc yum -y install tigervnc-server tigervnc 2.Centos7之前的系统,如果安装vnc一般都需要配置 [root@localhost ~]# cat /etc/sysconfig/vncservers # THIS FILE HAS BEEN

vnc server配置、启动、重启与连接,图形管理linux系统

环境:RedHat Linux 5企业版.Xwindows:gnome (红帽默认安装的图形界面) 尽管我们可以使用SSH连接远程通过字符界面来操作Linux,但是对于更多熟悉图形人来说是很不方便的,因此开启Linux的远程桌面还是很有必要的.目前有两种比较流行的方式:XDM(X display manager)方案和VNC方案,而我个人比较倾向于VNC方案,一是因为VNC方案配置起来相对比较容易,二是VNC方案支持多种连接方式,比如通过浏览器访问Linux桌面,免去需要安装客户端的麻烦. 接下

Linux下VNC的安装和开机启动

1.确认VNC是否安装默认情况下,Red Hat Enterprise Linux安装程序会将VNC服务安装在系统上.确认是否已经安装VNC服务及查看安装的VNC版本[root@testdb ~]# rpm -q vnc-servervnc-server-4.1.2-9.el5[root@testdb ~]# 若系统没有安装,可以到操作系统安装盘的Server目录下找到VNC服务的RPM安装包vnc-server-4.1.2-9.el5.x86_64.rpm,安装命令如下rpm -ivh /mn

开启Linux VNC远程桌面

Xwindows:gnome (红帽默认安装的图形界面)   一, 确认及安装VNCSERVER. 1,首先确认你服务器是否配置了VNCSERVER,可以在命令行下敲入以下命令查看: [root@localhost: ~]#rpm -qa |grep vnc vnc-server-4.1.2-14.el5_3.1.i386.rpm    #返回VNCSEVER服务器端版本说明你已经安装了VNCSERVER. 2,如果没有安装VNCSEVER,那么从光盘找到安装包进行安装. 首先将光盘挂载(也叫解

linux系统中VNC安装配置方法详解

1.确认VNC是否安装 默认情况下,Red Hat Enterprise Linux安装程序会将VNC服务安装在系统上. 确认是否已经安装VNC服务及查看安装的VNC版本 [root@testdb ~]# rpm -q vnc-server vnc-server-4.1.2-9.el5 [root@testdb ~]# 若系统没有安装,可以到操作系统安装盘的Server目录下找到VNC服务的RPM安装包vnc-server-4.1.2-9.el5.x86_64.rpm,安装命令如下 rpm -i

CentOS下安装配置VNC

原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 .作者信息和本声明.否则将追究法律责任.http://navyaijm.blog.51cto.com/4647068/809453 1. 检查vnc客户端和服务器是否已经安装:      [root@datacenter7 smdata]# rpm -q vnc vnc-server    vnc-4.1.2-14.el5_6.6    vnc-server-4.1.2-14.el5_6.6   cent os 5已包含vnc的安装

配置vnc远程连接Linux和Unix远程服务器图形界面安装oracle

1.配置并开启vnc服务 [oracle@localhost ~]$ vncserver You will require a password to access your desktops. Password:              ---这里要求输入vnc客户端登录的密码并重复 Verify:               New 'localhost.localdomain:2 (oracle)' desktop is localhost.localdomain:2 Creating

配置vnc远程连接Linux和unix服务器图形界面安装Oracle

1.配置并开启vnc服务 [oracle@localhost ~]$ vncserver You will require a password to access your desktops. Password:              ---这里要求输入vnc客户端登录的密码并重复 Verify:               New 'localhost.localdomain:2 (oracle)' desktop is localhost.localdomain:2 Creating

轻量应用服务器 常见应用安装与配置:用VNC搭建Ubuntu VNC可视化界面

用VNC搭建Ubuntu VNC可视化界面 1. 创建Ubuntu服务器 访问轻量应用服务器购买页面,选择Ubuntu镜像,并选择套餐.购买时长,确认订单支付并确认. 2. 安装配置软件 创建服务器成功后,点击服务器列表页的Ubuntu轻量应用服务器卡片的远程连接按钮 连接成功后开始安装软件. VNC的安装与配置 安装之前先输入 apt-get update 获取最新套件的信息. 输入以下命令安装VNC,安装过程中需要输入Y来确认 apt-get install vnc4server 启动VNC