Bo's Oracle Station

查看: 790|回复: 0

RHEL8打开vnc极简单配置:

[复制链接]

1005

主题

1469

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12012
发表于 2020-8-7 09:51:35 | 显示全部楼层 |阅读模式
  1. [root@server3 ~]# vncpasswd
  2. Password:
  3. Verify:
  4. Would you like to enter a view-only password (y/n)? n
  5. A view-only password is not used
  6. [root@server3 ~]# vncserver
  7. bash: vncserver: command not found...
  8. Install package 'tigervnc-server' to provide command 'vncserver'? [N/y] ^C
  9. [root@server3 ~]# yum -y install "*vnc*server*"
  10. Failed to set locale, defaulting to C
  11. Updating Subscription Management repositories.
  12. Unable to read consumer identity
  13. This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
  14. Last metadata expiration check: 15:35:33 ago on Thu Aug  6 18:13:14 2020.
  15. Package libvncserver-0.9.11-9.el8.x86_64 is already installed.
  16. Package tigervnc-server-minimal-1.9.0-9.el8.x86_64 is already installed.
  17. Dependencies resolved.
  18. ================================================================================
  19. Package                Arch   Version                          Repository
  20.                                                                            Size
  21. ================================================================================
  22. Installing:
  23. tigervnc-server        x86_64 1.9.0-9.el8                      AppStream 252 k
  24. tigervnc-server-applet noarch 1.9.0-9.el8                      AppStream 601 k
  25. tigervnc-server-module x86_64 1.9.0-9.el8                      AppStream 252 k
  26. Installing dependencies:
  27. copy-jdk-configs       noarch 3.7-1.el8                        AppStream  27 k
  28. java-1.8.0-openjdk     x86_64 1:1.8.0.201.b09-2.el8            AppStream 278 k
  29. java-1.8.0-openjdk-headless
  30.                         x86_64 1:1.8.0.201.b09-2.el8            AppStream  32 M
  31. javapackages-filesystem
  32.                         noarch 5.3.0-1.module+el8+2447+6f56d9a6 AppStream  30 k
  33. javapackages-tools     noarch 5.3.0-1.module+el8+2447+6f56d9a6 AppStream  44 k
  34. ttmkfdir               x86_64 3.0.9-54.el8                     AppStream  62 k
  35. tzdata-java            noarch 2018i-1.el8                      AppStream 188 k
  36. xorg-x11-fonts-Type1   noarch 7.5-19.el8                       AppStream 522 k
  37. lksctp-tools           x86_64 1.0.18-3.el8                     BaseOS    100 k
  38. Enabling module streams:
  39. javapackages-runtime          201801                                          

  40. Transaction Summary
  41. ================================================================================
  42. Install  12 Packages

  43. Total download size: 35 M
  44. Installed size: 116 M
  45. Downloading Packages:
  46. (1/12): copy-jdk-configs-3.7-1.el8.noarch.rpm   1.2 MB/s |  27 kB     00:00   
  47. (2/12): java-1.8.0-openjdk-1.8.0.201.b09-2.el8.  11 MB/s | 278 kB     00:00   
  48. (3/12): javapackages-filesystem-5.3.0-1.module+ 1.2 MB/s |  30 kB     00:00   
  49. (4/12): javapackages-tools-5.3.0-1.module+el8+2 1.2 MB/s |  44 kB     00:00   
  50. (5/12): tigervnc-server-1.9.0-9.el8.x86_64.rpm   11 MB/s | 252 kB     00:00   
  51. (6/12): tigervnc-server-applet-1.9.0-9.el8.noar  26 MB/s | 601 kB     00:00   
  52. (7/12): tigervnc-server-module-1.9.0-9.el8.x86_ 8.5 MB/s | 252 kB     00:00   
  53. (8/12): ttmkfdir-3.0.9-54.el8.x86_64.rpm        3.3 MB/s |  62 kB     00:00   
  54. (9/12): tzdata-java-2018i-1.el8.noarch.rpm      5.8 MB/s | 188 kB     00:00   
  55. (10/12): xorg-x11-fonts-Type1-7.5-19.el8.noarch 9.8 MB/s | 522 kB     00:00   
  56. (11/12): lksctp-tools-1.0.18-3.el8.x86_64.rpm   3.3 MB/s | 100 kB     00:00   
  57. (12/12): java-1.8.0-openjdk-headless-1.8.0.201.  75 MB/s |  32 MB     00:00   
  58. --------------------------------------------------------------------------------
  59. Total                                            79 MB/s |  35 MB     00:00     
  60. Running transaction check
  61. Transaction check succeeded.
  62. Running transaction test
  63. Transaction test succeeded.
  64. Running transaction
  65.   Running scriptlet: copy-jdk-configs-3.7-1.el8.noarch                      1/1
  66.   Running scriptlet: java-1.8.0-openjdk-headless-1:1.8.0.201.b09-2.el8.x8   1/1
  67.   Preparing        :                                                        1/1
  68.   Installing       : javapackages-filesystem-5.3.0-1.module+el8+2447+6f    1/12
  69.   Installing       : lksctp-tools-1.0.18-3.el8.x86_64                      2/12
  70.   Running scriptlet: lksctp-tools-1.0.18-3.el8.x86_64                      2/12
  71.   Installing       : tzdata-java-2018i-1.el8.noarch                        3/12
  72.   Installing       : ttmkfdir-3.0.9-54.el8.x86_64                          4/12
  73.   Installing       : xorg-x11-fonts-Type1-7.5-19.el8.noarch                5/12
  74.   Running scriptlet: xorg-x11-fonts-Type1-7.5-19.el8.noarch                5/12
  75.   Installing       : tigervnc-server-1.9.0-9.el8.x86_64                    6/12
  76.   Running scriptlet: tigervnc-server-1.9.0-9.el8.x86_64                    6/12
  77.   Installing       : copy-jdk-configs-3.7-1.el8.noarch                     7/12
  78.   Installing       : java-1.8.0-openjdk-headless-1:1.8.0.201.b09-2.el8.    8/12
  79.   Running scriptlet: java-1.8.0-openjdk-headless-1:1.8.0.201.b09-2.el8.    8/12
  80.   Installing       : java-1.8.0-openjdk-1:1.8.0.201.b09-2.el8.x86_64       9/12
  81.   Running scriptlet: java-1.8.0-openjdk-1:1.8.0.201.b09-2.el8.x86_64       9/12
  82.   Installing       : javapackages-tools-5.3.0-1.module+el8+2447+6f56d9a   10/12
  83.   Installing       : tigervnc-server-applet-1.9.0-9.el8.noarch            11/12
  84.   Installing       : tigervnc-server-module-1.9.0-9.el8.x86_64            12/12
  85.   Running scriptlet: copy-jdk-configs-3.7-1.el8.noarch                    12/12
  86.   Running scriptlet: java-1.8.0-openjdk-1:1.8.0.201.b09-2.el8.x86_64      12/12
  87.   Running scriptlet: tigervnc-server-module-1.9.0-9.el8.x86_64            12/12
  88.   Verifying        : copy-jdk-configs-3.7-1.el8.noarch                     1/12
  89.   Verifying        : java-1.8.0-openjdk-1:1.8.0.201.b09-2.el8.x86_64       2/12
  90.   Verifying        : java-1.8.0-openjdk-headless-1:1.8.0.201.b09-2.el8.    3/12
  91.   Verifying        : javapackages-filesystem-5.3.0-1.module+el8+2447+6f    4/12
  92.   Verifying        : javapackages-tools-5.3.0-1.module+el8+2447+6f56d9a    5/12
  93.   Verifying        : tigervnc-server-1.9.0-9.el8.x86_64                    6/12
  94.   Verifying        : tigervnc-server-applet-1.9.0-9.el8.noarch             7/12
  95.   Verifying        : tigervnc-server-module-1.9.0-9.el8.x86_64             8/12
  96.   Verifying        : ttmkfdir-3.0.9-54.el8.x86_64                          9/12
  97.   Verifying        : tzdata-java-2018i-1.el8.noarch                       10/12
  98.   Verifying        : xorg-x11-fonts-Type1-7.5-19.el8.noarch               11/12
  99.   Verifying        : lksctp-tools-1.0.18-3.el8.x86_64                     12/12
  100. Installed products updated.

  101. Installed:
  102.   tigervnc-server-1.9.0-9.el8.x86_64                                            
  103.   tigervnc-server-applet-1.9.0-9.el8.noarch                                    
  104.   tigervnc-server-module-1.9.0-9.el8.x86_64                                    
  105.   copy-jdk-configs-3.7-1.el8.noarch                                             
  106.   java-1.8.0-openjdk-1:1.8.0.201.b09-2.el8.x86_64                              
  107.   java-1.8.0-openjdk-headless-1:1.8.0.201.b09-2.el8.x86_64                     
  108.   javapackages-filesystem-5.3.0-1.module+el8+2447+6f56d9a6.noarch               
  109.   javapackages-tools-5.3.0-1.module+el8+2447+6f56d9a6.noarch                    
  110.   ttmkfdir-3.0.9-54.el8.x86_64                                                  
  111.   tzdata-java-2018i-1.el8.noarch                                                
  112.   xorg-x11-fonts-Type1-7.5-19.el8.noarch                                       
  113.   lksctp-tools-1.0.18-3.el8.x86_64                                             

  114. Complete!
  115. [root@server3 ~]# vncserver
  116. perl: warning: Setting locale failed.
  117. perl: warning: Please check that your locale settings:
  118.         LANGUAGE = (unset),
  119.         LC_ALL = (unset),
  120.         LANG = "zh_CN.UTF-8"
  121.     are supported and installed on your system.
  122. perl: warning: Falling back to the standard locale ("C").
  123. xauth:  file /root/.Xauthority does not exist

  124. New 'server3.example.com:1 (root)' desktop is server3.example.com:1

  125. Creating default startup script /root/.vnc/xstartup
  126. Creating default config /root/.vnc/config
  127. Starting applications specified in /root/.vnc/xstartup
  128. Log file is /root/.vnc/server3.example.com:1.log

  129. [root@server3 ~]# firewall-cmd  --permanent --add-port 5901/tcp
  130. success
  131. [root@server3 ~]# firewall-cmd  --reload
  132. success
  133. [root@server3 ~]#
复制代码


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-5-3 12:24 , Processed in 0.044337 second(s), 24 queries .

快速回复 返回顶部 返回列表