【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
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/22664653/viewspace-712086/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 有用過grpc的嗎?Couldn't find descriptorRPC
- Flutter雜症(couldn't find "libflutter.so")Flutter
- 記一次 報錯:Android ClassNotFoundException: Didn't find class on pathAndroidException
- Flutter: 解決執行時錯誤 java.lang.UnsatisfiedLinkError...couldn't find "libflutter.so"FlutterJavaError
- iOS:The operation couldn’t be completed. (DVTCoreSimulatorAdditionsErrorDomain eiOSErrorAI
- Hugging Face 無法連線問題 OSError: We couldn‘t connect to ‘https://huggingface.co‘ to load this file 解決方案Hugging FaceErrorHTTP
- Couldn‘t run wireshark in child process:許可權不夠
- go path 存在的問題Go
- MySQL: Couldn't execute 'SET OPTION SQL_QUOTE_SHOW_CREATE=1MySql
- std::string的find問題研究
- t02_問題
- SSL - SSLHandshakeException: unable to find valid certification path to requested targetException
- Supervisor 解決 can't find command *
- 遇到的cannot find module 'xxx' 問題
- vncserver使用教程,2步掌握vncserver的使用教程VNCServer
- _get_usbfs_fd libusb couldn‘t open the usb 許可權不夠
- 小白:關於處理“can't find '__main__' module in ”這個問題的詳細處理方式!AI
- 深度學習問題記錄:Building your Deep Neural深度學習UI
- eslint --fix 報錯 can't not find modulesEsLint
- find /path/to/search -type d -perm -o=x ! -perm -o=rw
- 解決問題-There appears to be trouble with your network connection. Retrying...APP
- 【已解決】報錯 NVIDIA-SMI has failed because it couldn‘t communicate with the NVIDIA driverAI
- T^T問題(生氣易爆炸的T的T次方最後一位數)
- 安裝caffe時候找不到boost怎麼辦?(boost的引用問題make can‘t find Boost‘s include files)
- ubuntu安裝vncserver,ubuntu安裝vncserver的使用教程,教程詳解UbuntuVNCServer
- 不同使用者python path 許可權問題Python
- 關於/usr/bin/ld: cannot find -lXX的問題
- 小鳥雲管理終端(VNC連線)常見問題VNC
- 解決問題:啟動不了VM,提示 Your VM has become “inaccessible…
- Hadoop問題解決:Unable to load native-hadoop library for your platform...HadoopPlatform
- MongoDB 備份恢復啟動後執行操作報錯:Error:couldn't add user:not masterMongoDBErrorAST
- 呼叫https介面時報錯:PKIX path building failed 的問題HTTPUIAI
- [20210708]find -mtime +0 0 -0時間問題補充.txt
- [20210626]find -mtime +N N -N時間問題補充.txt
- [20210625]find -mtime +N N -N時間問題補充.txt
- vnc viewer透過外網訪問,vnc viewer透過外網訪問8個步驟VNCView
- VNC,什麼是VNC,如何使用VNC?VNC
- vnc遠端訪問,推薦四款免費又好用的vnc遠端訪問軟體VNC
- [20210624]find -mtime +N N -N的時間範圍問題.txt