当前位置:   article > 正文

Linux: bash: vncserver: command not found_-bash: vncserver: command not found

-bash: vncserver: command not found

 问题: 

  1. [root@*** database]# vncserver
  2. bash: vncserver: command not found

解决方法:如果不是root用户,则需要切换到root用户

  1. [oracle@*** database]$ su root
  2. Password:
  3. [root@*** database]#

命令:yum install tigervnc-server

  1. [root@*** database]# yum install tigervnc-server
  2. Loaded plugins: fastestmirror, langpacks
  3. Loading mirror speeds from cached hostfile
  4. * base: 100.125.0.40
  5. * extras: 100.125.0.40
  6. * updates: 100.125.0.40
  7. Resolving Dependencies
  8. --> Running transaction check
  9. ---> Package tigervnc-server.x86_64 0:1.8.0-13.el7 will be installed
  10. --> Processing Dependency: xorg-x11-xinit for package: tigervnc-server-1.8.0-13.el7.x86_64
  11. --> Processing Dependency: tigervnc-server-minimal for package: tigervnc-server-1.8.0-13.el7.x86_64
  12. --> Processing Dependency: libXtst.so.6()(64bit) for package: tigervnc-server-1.8.0-13.el7.x86_64
  13. --> Processing Dependency: libXdamage.so.1()(64bit) for package: tigervnc-server-1.8.0-13.el7.x86_64
  14. --> Running transaction check
  15. ---> Package libXdamage.x86_64 0:1.1.4-4.1.el7 will be installed
  16. ---> Package libXtst.x86_64 0:1.2.3-1.el7 will be installed
  17. ---> Package tigervnc-server-minimal.x86_64 0:1.8.0-13.el7 will be installed
  18. --> Processing Dependency: xorg-x11-xkb-utils for package: tigervnc-server-minimal-1.8.0-13.el7.x86_64
  19. --> Processing Dependency: xkeyboard-config for package: tigervnc-server-minimal-1.8.0-13.el7.x86_64
  20. --> Processing Dependency: tigervnc-license for package: tigervnc-server-minimal-1.8.0-13.el7.x86_64
  21. --> Processing Dependency: mesa-dri-drivers for package: tigervnc-server-minimal-1.8.0-13.el7.x86_64
  22. --> Processing Dependency: libxshmfence.so.1()(64bit) for package: tigervnc-server-minimal-1.8.0-13.el7.x86_64
  23. --> Processing Dependency: libpixman-1.so.0()(64bit) for package: tigervnc-server-minimal-1.8.0-13.el7.x86_64
  24. --> Processing Dependency: libXfont2.so.2()(64bit) for package: tigervnc-server-minimal-1.8.0-13.el7.x86_64
  25. --> Processing Dependency: libXdmcp.so.6()(64bit) for package: tigervnc-server-minimal-1.8.0-13.el7.x86_64
  26. --> Processing Dependency: libGL.so.1()(64bit) for package: tigervnc-server-minimal-1.8.0-13.el7.x86_64
  27. ---> Package xorg-x11-xinit.x86_64 0:1.3.4-2.el7 will be installed
  28. --> Running transaction check
  29. ---> Package libXdmcp.x86_64 0:1.1.2-6.el7 will be installed
  30. ---> Package libXfont2.x86_64 0:2.0.3-1.el7 will be installed
  31. --> Processing Dependency: libfontenc.so.1()(64bit) for package: libXfont2-2.0.3-1.el7.x86_64
  32. ---> Package libglvnd-glx.x86_64 1:1.0.1-0.8.git5baa1e5.el7 will be installed
  33. --> Processing Dependency: libglvnd(x86-64) = 1:1.0.1-0.8.git5baa1e5.el7 for package: 1:libglvnd-glx-1.0.1-0.8.git5baa1e5.el7.x86_64
  34. --> Processing Dependency: mesa-libGL(x86-64) >= 13.0.4-1 for package: 1:libglvnd-glx-1.0.1-0.8.git5baa1e5.el7.x86_64
  35. --> Processing Dependency: libGLdispatch.so.0()(64bit) for package: 1:libglvnd-glx-1.0.1-0.8.git5baa1e5.el7.x86_64
  36. ---> Package libxshmfence.x86_64 0:1.2-1.el7 will be installed
  37. ---> Package mesa-dri-drivers.x86_64 0:18.0.5-4.el7_6 will be installed
  38. --> Processing Dependency: libdrm >= 2.4.83 for package: mesa-dri-drivers-18.0.5-4.el7_6.x86_64
  39. --> Processing Dependency: mesa-filesystem(x86-64) for package: mesa-dri-drivers-18.0.5-4.el7_6.x86_64
  40. --> Processing Dependency: libLLVM-6.0-rhel.so(LLVM_6.0)(64bit) for package: mesa-dri-drivers-18.0.5-4.el7_6.x86_64
  41. --> Processing Dependency: libglapi.so.0()(64bit) for package: mesa-dri-drivers-18.0.5-4.el7_6.x86_64
  42. --> Processing Dependency: libLLVM-6.0-rhel.so()(64bit) for package: mesa-dri-drivers-18.0.5-4.el7_6.x86_64
  43. ---> Package pixman.x86_64 0:0.34.0-1.el7 will be installed
  44. ---> Package tigervnc-license.noarch 0:1.8.0-13.el7 will be installed
  45. ---> Package xkeyboard-config.noarch 0:2.24-1.el7 will be installed
  46. ---> Package xorg-x11-xkb-utils.x86_64 0:7.7-14.el7 will be installed
  47. --> Processing Dependency: libxkbfile.so.1()(64bit) for package: xorg-x11-xkb-utils-7.7-14.el7.x86_64
  48. --> Running transaction check
  49. ---> Package libdrm.x86_64 0:2.4.74-1.el7 will be updated
  50. ---> Package libdrm.x86_64 0:2.4.91-3.el7 will be an update
  51. ---> Package libfontenc.x86_64 0:1.1.3-3.el7 will be installed
  52. ---> Package libglvnd.x86_64 1:1.0.1-0.8.git5baa1e5.el7 will be installed
  53. ---> Package libxkbfile.x86_64 0:1.0.9-3.el7 will be installed
  54. ---> Package llvm-private.x86_64 0:6.0.1-2.el7 will be installed
  55. ---> Package mesa-filesystem.x86_64 0:18.0.5-4.el7_6 will be installed
  56. ---> Package mesa-libGL.x86_64 0:18.0.5-4.el7_6 will be installed
  57. ---> Package mesa-libglapi.x86_64 0:18.0.5-4.el7_6 will be installed
  58. --> Finished Dependency Resolution
  59. Dependencies Resolved
  60. ==============================================================================================================================================================================================================================================================================
  61. Package Arch Version Repository Size
  62. ==============================================================================================================================================================================================================================================================================
  63. Installing:
  64. tigervnc-server x86_64 1.8.0-13.el7 base 215 k
  65. Installing for dependencies:
  66. libXdamage x86_64 1.1.4-4.1.el7 base 20 k
  67. libXdmcp x86_64 1.1.2-6.el7 base 34 k
  68. libXfont2 x86_64 2.0.3-1.el7 base 143 k
  69. libXtst x86_64 1.2.3-1.el7 base 20 k
  70. libfontenc x86_64 1.1.3-3.el7 base 31 k
  71. libglvnd x86_64 1:1.0.1-0.8.git5baa1e5.el7 base 89 k
  72. libglvnd-glx x86_64 1:1.0.1-0.8.git5baa1e5.el7 base 125 k
  73. libxkbfile x86_64 1.0.9-3.el7 base 83 k
  74. libxshmfence x86_64 1.2-1.el7 base 7.2 k
  75. llvm-private x86_64 6.0.1-2.el7 base 21 M
  76. mesa-dri-drivers x86_64 18.0.5-4.el7_6 updates 6.6 M
  77. mesa-filesystem x86_64 18.0.5-4.el7_6 updates 17 k
  78. mesa-libGL x86_64 18.0.5-4.el7_6 updates 162 k
  79. mesa-libglapi x86_64 18.0.5-4.el7_6 updates 44 k
  80. pixman x86_64 0.34.0-1.el7 base 248 k
  81. tigervnc-license noarch 1.8.0-13.el7 base 29 k
  82. tigervnc-server-minimal x86_64 1.8.0-13.el7 base 1.0 M
  83. xkeyboard-config noarch 2.24-1.el7 base 834 k
  84. xorg-x11-xinit x86_64 1.3.4-2.el7 base 58 k
  85. xorg-x11-xkb-utils x86_64 7.7-14.el7 base 103 k
  86. Updating for dependencies:
  87. libdrm x86_64 2.4.91-3.el7 base 153 k
  88. Transaction Summary
  89. ==============================================================================================================================================================================================================================================================================
  90. Install 1 Package (+20 Dependent packages)
  91. Upgrade ( 1 Dependent package)
  92. Total download size: 31 M
  93. Is this ok [y/d/N]: y
  94. Downloading packages:
  95. Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
  96. (1/22): libXdamage-1.1.4-4.1.el7.x86_64.rpm | 20 kB 00:00:00
  97. (2/22): libXdmcp-1.1.2-6.el7.x86_64.rpm | 34 kB 00:00:00
  98. (3/22): libXfont2-2.0.3-1.el7.x86_64.rpm | 143 kB 00:00:00
  99. (4/22): libdrm-2.4.91-3.el7.x86_64.rpm | 153 kB 00:00:00
  100. (5/22): libfontenc-1.1.3-3.el7.x86_64.rpm | 31 kB 00:00:00
  101. (6/22): libXtst-1.2.3-1.el7.x86_64.rpm | 20 kB 00:00:00
  102. (7/22): libglvnd-1.0.1-0.8.git5baa1e5.el7.x86_64.rpm | 89 kB 00:00:00
  103. (8/22): libglvnd-glx-1.0.1-0.8.git5baa1e5.el7.x86_64.rpm | 125 kB 00:00:00
  104. (9/22): libxshmfence-1.2-1.el7.x86_64.rpm | 7.2 kB 00:00:00
  105. (10/22): mesa-filesystem-18.0.5-4.el7_6.x86_64.rpm | 17 kB 00:00:00
  106. (11/22): mesa-libGL-18.0.5-4.el7_6.x86_64.rpm | 162 kB 00:00:00
  107. (12/22): mesa-libglapi-18.0.5-4.el7_6.x86_64.rpm | 44 kB 00:00:00
  108. (13/22): libxkbfile-1.0.9-3.el7.x86_64.rpm | 83 kB 00:00:00
  109. (14/22): pixman-0.34.0-1.el7.x86_64.rpm | 248 kB 00:00:00
  110. (15/22): tigervnc-license-1.8.0-13.el7.noarch.rpm | 29 kB 00:00:00
  111. (16/22): tigervnc-server-1.8.0-13.el7.x86_64.rpm | 215 kB 00:00:00
  112. (17/22): tigervnc-server-minimal-1.8.0-13.el7.x86_64.rpm | 1.0 MB 00:00:00
  113. (18/22): mesa-dri-drivers-18.0.5-4.el7_6.x86_64.rpm | 6.6 MB 00:00:02
  114. (19/22): xkeyboard-config-2.24-1.el7.noarch.rpm | 834 kB 00:00:00
  115. (20/22): xorg-x11-xinit-1.3.4-2.el7.x86_64.rpm | 58 kB 00:00:00
  116. (21/22): xorg-x11-xkb-utils-7.7-14.el7.x86_64.rpm | 103 kB 00:00:00
  117. (22/22): llvm-private-6.0.1-2.el7.x86_64.rpm | 21 MB 00:00:03
  118. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  119. Total 8.0 MB/s | 31 MB 00:00:03
  120. Running transaction check
  121. Running transaction test
  122. Transaction test succeeded
  123. Running transaction
  124. Installing : mesa-libglapi-18.0.5-4.el7_6.x86_64 1/23
  125. Installing : libxshmfence-1.2-1.el7.x86_64 2/23
  126. Installing : libXdamage-1.1.4-4.1.el7.x86_64 3/23
  127. Updating : libdrm-2.4.91-3.el7.x86_64 4/23
  128. Installing : libfontenc-1.1.3-3.el7.x86_64 5/23
  129. Installing : libXfont2-2.0.3-1.el7.x86_64 6/23
  130. Installing : llvm-private-6.0.1-2.el7.x86_64 7/23
  131. Installing : libXdmcp-1.1.2-6.el7.x86_64 8/23
  132. Installing : tigervnc-license-1.8.0-13.el7.noarch 9/23
  133. Installing : pixman-0.34.0-1.el7.x86_64 10/23
  134. Installing : mesa-filesystem-18.0.5-4.el7_6.x86_64 11/23
  135. Installing : mesa-dri-drivers-18.0.5-4.el7_6.x86_64 12/23
  136. Installing : 1:libglvnd-1.0.1-0.8.git5baa1e5.el7.x86_64 13/23
  137. Installing : 1:libglvnd-glx-1.0.1-0.8.git5baa1e5.el7.x86_64 14/23
  138. Installing : mesa-libGL-18.0.5-4.el7_6.x86_64 15/23
  139. Installing : libXtst-1.2.3-1.el7.x86_64 16/23
  140. Installing : xkeyboard-config-2.24-1.el7.noarch 17/23
  141. Installing : libxkbfile-1.0.9-3.el7.x86_64 18/23
  142. Installing : xorg-x11-xkb-utils-7.7-14.el7.x86_64 19/23
  143. Installing : tigervnc-server-minimal-1.8.0-13.el7.x86_64 20/23
  144. Installing : xorg-x11-xinit-1.3.4-2.el7.x86_64 21/23
  145. Installing : tigervnc-server-1.8.0-13.el7.x86_64 22/23
  146. Cleanup : libdrm-2.4.74-1.el7.x86_64 23/23
  147. Verifying : libdrm-2.4.91-3.el7.x86_64 1/23
  148. Verifying : 1:libglvnd-glx-1.0.1-0.8.git5baa1e5.el7.x86_64 2/23
  149. Verifying : mesa-dri-drivers-18.0.5-4.el7_6.x86_64 3/23
  150. Verifying : xorg-x11-xkb-utils-7.7-14.el7.x86_64 4/23
  151. Verifying : xorg-x11-xinit-1.3.4-2.el7.x86_64 5/23
  152. Verifying : libxkbfile-1.0.9-3.el7.x86_64 6/23
  153. Verifying : xkeyboard-config-2.24-1.el7.noarch 7/23
  154. Verifying : libXtst-1.2.3-1.el7.x86_64 8/23
  155. Verifying : 1:libglvnd-1.0.1-0.8.git5baa1e5.el7.x86_64 9/23
  156. Verifying : mesa-libGL-18.0.5-4.el7_6.x86_64 10/23
  157. Verifying : mesa-filesystem-18.0.5-4.el7_6.x86_64 11/23
  158. Verifying : libXdamage-1.1.4-4.1.el7.x86_64 12/23
  159. Verifying : libXfont2-2.0.3-1.el7.x86_64 13/23
  160. Verifying : pixman-0.34.0-1.el7.x86_64 14/23
  161. Verifying : tigervnc-license-1.8.0-13.el7.noarch 15/23
  162. Verifying : libxshmfence-1.2-1.el7.x86_64 16/23
  163. Verifying : tigervnc-server-minimal-1.8.0-13.el7.x86_64 17/23
  164. Verifying : libXdmcp-1.1.2-6.el7.x86_64 18/23
  165. Verifying : llvm-private-6.0.1-2.el7.x86_64 19/23
  166. Verifying : libfontenc-1.1.3-3.el7.x86_64 20/23
  167. Verifying : mesa-libglapi-18.0.5-4.el7_6.x86_64 21/23
  168. Verifying : tigervnc-server-1.8.0-13.el7.x86_64 22/23
  169. Verifying : libdrm-2.4.74-1.el7.x86_64 23/23
  170. Installed:
  171. tigervnc-server.x86_64 0:1.8.0-13.el7
  172. Dependency Installed:
  173. libXdamage.x86_64 0:1.1.4-4.1.el7 libXdmcp.x86_64 0:1.1.2-6.el7 libXfont2.x86_64 0:2.0.3-1.el7 libXtst.x86_64 0:1.2.3-1.el7 libfontenc.x86_64 0:1.1.3-3.el7 libglvnd.x86_64 1:1.0.1-0.8.git5baa1e5.el7
  174. libglvnd-glx.x86_64 1:1.0.1-0.8.git5baa1e5.el7 libxkbfile.x86_64 0:1.0.9-3.el7 libxshmfence.x86_64 0:1.2-1.el7 llvm-private.x86_64 0:6.0.1-2.el7 mesa-dri-drivers.x86_64 0:18.0.5-4.el7_6 mesa-filesystem.x86_64 0:18.0.5-4.el7_6
  175. mesa-libGL.x86_64 0:18.0.5-4.el7_6 mesa-libglapi.x86_64 0:18.0.5-4.el7_6 pixman.x86_64 0:0.34.0-1.el7 tigervnc-license.noarch 0:1.8.0-13.el7 tigervnc-server-minimal.x86_64 0:1.8.0-13.el7 xkeyboard-config.noarch 0:2.24-1.el7
  176. xorg-x11-xinit.x86_64 0:1.3.4-2.el7 xorg-x11-xkb-utils.x86_64 0:7.7-14.el7
  177. Dependency Updated:
  178. libdrm.x86_64 0:2.4.91-3.el7
  179. Complete!

 

 

如果有写的不对的地方,请大家多多批评指正,非常感谢!

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/2023面试高手/article/detail/661098
推荐阅读
相关标签
  

闽ICP备14008679号