精华内容
下载资源
问答
  • CentOS8安装VNCServer1.9

    千次阅读 2020-06-21 23:24:27
    CentOS8安装VNCServer系统信息安装VNCServer复制配置文件编辑复制后的配置文件开启服务测试是否VNCServer是否开起来关闭防火墙或开启端口权限其他 系统信息 [root@centos8 ~]# cat /etc/redhat-release CentOS ...

    系统信息
    [root@centos8 ~]# cat /etc/redhat-release 
    CentOS Linux release 8.1.1911 (Core) 
    [root@centos8 ~]# 
    

    注意要安装桌面环境,如果没有安装桌面环境,登进去是黑屏。
    处理:
    1.安装桌面环境(yum groupinstall "Server with GUI"
    2.重启VNCServer(systemctl restart vncserver@:1.service

    安装VNCServer
    [root@centos8 ~]# yum install tigervnc-server
    CentOS-8 - AppStream                                                     5.6 kB/s | 4.3 kB     00:00    
    CentOS-8 - Base                                                          4.5 kB/s | 3.9 kB     00:00    
    CentOS-8 - Extras                                                        1.8 kB/s | 1.5 kB     00:00    
    Dependencies resolved.
    =========================================================================================================
     Package                     Architecture       Version                      Repository             Size
    =========================================================================================================
    Installing:
     tigervnc-server             x86_64             1.9.0-15.el8_1               AppStream             255 k
    
    Transaction Summary
    =========================================================================================================
    Install  1 Package
    
    Total download size: 255 k
    Installed size: 849 k
    Is this ok [y/N]: y
    Downloading Packages:
    tigervnc-server-1.9.0-15.el8_1.x86_64.rpm                                382 kB/s | 255 kB     00:00    
    ---------------------------------------------------------------------------------------------------------
    Total                                                                    119 kB/s | 255 kB     00:02     
    warning: /var/cache/dnf/AppStream-a520ed22b0a8a736/packages/tigervnc-server-1.9.0-15.el8_1.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 8483c65d: NOKEY
    CentOS-8 - AppStream                                                     949 kB/s | 1.6 kB     00:00    
    Importing GPG key 0x8483C65D:
     Userid     : "CentOS (CentOS Official Signing Key) <security@centos.org>"
     Fingerprint: 99DB 70FA E1D7 CE22 7FB6 4882 05B5 55B3 8483 C65D
     From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
    Is this ok [y/N]: y
    Key imported successfully
    Running transaction check
    Transaction check succeeded.
    Running transaction test
    Transaction test succeeded.
    Running transaction
      Preparing        :                                                                                 1/1 
      Installing       : tigervnc-server-1.9.0-15.el8_1.x86_64                                           1/1 
      Running scriptlet: tigervnc-server-1.9.0-15.el8_1.x86_64                                           1/1 
      Verifying        : tigervnc-server-1.9.0-15.el8_1.x86_64                                           1/1 
    
    Installed:
      tigervnc-server-1.9.0-15.el8_1.x86_64                                                                  
    
    Complete!
    [root@centos8 ~]# 
    

    这里检查一下,如果Installed是tigervnc-server-1.10.1-7.el8.x86_64,参考我的另一篇文章CentOS8安装VNCServer1.10

    复制配置文件
    [root@centos8 ~]# cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:1.service
    [root@centos8 ~]# 
    
    编辑复制后的配置文件
    [root@centos8 ~]# vim /etc/systemd/system/vncserver@\:1.service
    [root@centos8 ~]# 
    
    #修改前
    ExecStart=/usr/bin/vncserver_wrapper <USER> %i
    
    #把<USER>改成要登录的用户名(此处为root)
    
    #修改后
    ExecStart=/usr/bin/vncserver_wrapper root %i
    
    开启服务
    [root@centos8 ~]# systemctl daemon-reload
    [root@centos8 ~]# systemctl start vncserver@:1.service
    #如果是给非root创建的话需要切换到该用户下产生vncpasswd
    [root@centos8 ~]# su user
    [user@centos8 ~]$ vncpasswd
    Password:
    Verify:
    Would you like to enter a view-only password (y/n)? n
    A view-only password is not used
    [user@centos8 ~]$ exit
    exit
    [root@centos8 ~]#
    
    测试是否VNCServer是否开起来
    [root@centos8 ~]# nc -zv localhost 5901
    Ncat: Version 7.70 ( https://nmap.org/ncat )
    Ncat: Connected to ::1:5901.
    Ncat: 0 bytes sent, 0 bytes received in 0.01 seconds.
    [root@centos8 ~]# 
    
    关闭防火墙或开启端口权限

    关闭防火墙

    [root@centos8 ~]# systemctl status firewalld
    ● firewalld.service - firewalld - dynamic firewall daemon
       Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)
       Active: active (running) since Sun 2020-06-21 22:40:18 CST; 14min ago
         Docs: man:firewalld(1)
     Main PID: 890 (firewalld)
        Tasks: 2 (limit: 11460)
       Memory: 29.7M
       CGroup: /system.slice/firewalld.service
               └─890 /usr/libexec/platform-python -s /usr/sbin/firewalld --nofork --nopid
    
    Jun 21 22:40:16 centos8 systemd[1]: Starting firewalld - dynamic firewall daemon...
    Jun 21 22:40:18 centos8 systemd[1]: Started firewalld - dynamic firewall daemon.
    [root@centos8 ~]# systemctl stop firewalld
    [root@centos8 ~]# 
    

    开启端口权限
    –permanent永久生效,没有此参数重启后失效

    [root@centos8 ~]# firewall-cmd --zone=public --add-port=5901/tcp --permanent
    success
    [root@centos8 ~]# firewall-cmd --reload
    success
    [root@centos8 ~]# 
    
    其他

    亲试SELinux不关也不影响使用

    展开全文
  • Centos8安装vncserver

    千次阅读 2020-09-01 13:49:37
    CentOS8安装VNCServer 安装前说明 vnc在root用户,或者具有sudo权限的用户下面安装 vnc可以指定登录用户,也可以使用已有的用户,下面的部分步骤可以跳过 vnc登录需要输入2次密码:一次vnc密码,一次是系统用户...

    参考

    安装前说明

    • vnc在root用户,或者具有sudo权限的用户下面安装
    • vnc可以指定登录用户,也可以使用已有的用户,下面的部分步骤可以跳过
    • vnc登录需要输入2次密码:一次vnc密码,一次是系统用户(vncserver开启的用户)密码

    安装VNC过程

    1. SELINUX关闭
      1. 进入vncserver运行用户,此处我选择的是root
      2. 编辑/etc/sysconfig/selinux文件
      SELINUX=enforcing
      
      修改为:
      SELINUX=enforcing
      
      保存退出。
    2. 安装桌面环境
      该服务可以解决登录vnc黑屏的问题
    # yum install gnome*
    
    1. 安装 VNC Server
    dnf install tigervnc-server tigervnc-server-module -y
    
    1. Create New User and Set VNC Password
    vncuser和对应的密码根据需求修改
    # useradd vncuser
    
    设置vncuser用户密码,建议与下面vncpasswd一致,方便记忆
    # passwd vncuser
    
    进入vncuser用户
    # su - vncuser
    
    设置vnc连接时密码
    # vncpasswd
    Password:
    Verify:
    Would you like to enter a view-only password (y/n)? n
    A view-only password is not used
    
    初始化~/.vnc目录下面的log、pid、xstartup文件等
    # vncserver
    
    退出vncuser用户,进入到root
    # exit
    
    1. Create Systemd Service File for VNC
      (1). 创建vi /etc/systemd/system/vncserver@.service文件

      (2). 填写文件内容。以下是2种配置方法,选择其中一种进行设置

       注意,其中的`vncuser`需要替换为上述步骤4创建的用户名称。
       -  forking方式
      
       ```
       [Unit]
       Description=Remote Desktop VNC Service
       After=syslog.target network.target
       
       [Service]
       Type=forking
       WorkingDirectory=/home/vncuser
       User=vncuser
       Group=vncuser
       
       ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
       ExecStart=/usr/bin/vncserver -autokill %i
       ExecStop=/usr/bin/vncserver -kill %i
       
       [Install]
       WantedBy=multi-user.target
       ```
      
       -  simple方式 
       
       ```
       [Unit]
       Description=Remote desktop service (VNC)
       After=syslog.target network.target
       
       [Service]
       Type=simple
       
       # Clean any existing files in /tmp/.X11-unix environment
       ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
       ExecStart=/usr/bin/vncserver_wrapper vncuser %i
       ExecStop=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
       
       [Install]
       WantedBy=multi-user.target
       ```
      

      保存退出。

      1. reload the systemd daemon
      # systemctl daemon-reload
      
    2. 启动vncserver服务,并设置为开机启动

    // 启动服务
    # systemctl start vncserver@:1.service
    // 开机启动
    # systemctl enable vncserver@:1.service
    // 查看状态
    # systemctl status vncserver@:1.service
    // 查看端口
    # netstat -tunlp | grep 5901
    
    1. 配置防火墙,开放端口,不然vnc viewer无法连接
    配置开放5901端口
    # firewall-cmd --permanent --zone=public --add-port=5901/tcp
    
    重启防火墙
    # firewall-cmd --reload
    
    1. 通过VNC Viewer连接
    • 填写连接地址

    在这里插入图片描述

    • 连接成功
      在这里插入图片描述

    常用命令

    停止vnc
    # systemctl stop vncserver@:1.service
    
    重启vnc
    # systemctl restart vncserver@:1.service
    
    展开全文
  • CentOS8安装VNCServer1.10

    千次阅读 2020-12-11 21:30:01
    CentOS安装VNCServer1.10 系统信息 [root@centos8 ~]# cat /etc/redhat-release CentOS Linux release 8.1.1911 (Core) 安装VNCServer [root@centos8 ~]# yum install tigervnc-server Last metadata expiration ...

    CentOS安装VNCServer1.10

    系统信息

    [root@centos8 ~]# cat /etc/redhat-release 
    CentOS Linux release 8.1.1911 (Core)
    

    安装VNCServer

    [root@centos8 ~]# yum install tigervnc-server
    Last metadata expiration check: 0:01:14 ago on Fri 11 Dec 2020 08:01:37 PM CST.
    Dependencies resolved.
    ==============================================================================================================
     Package                             Architecture       Version                   Repository             Size
    ==============================================================================================================
    Installing:
     tigervnc-server                     x86_64             1.10.1-7.el8              AppStream             266 k
    Upgrading:
     tigervnc-server-minimal             x86_64             1.10.1-7.el8              AppStream             1.1 M
     selinux-policy                      noarch             3.14.3-54.el8             BaseOS                622 k
     selinux-policy-targeted             noarch             3.14.3-54.el8             BaseOS                 15 M
    Installing dependencies:
     tigervnc-selinux                    noarch             1.10.1-7.el8              AppStream              46 k
    
    Transaction Summary
    ==============================================================================================================
    Install  2 Packages
    Upgrade  3 Packages
    
    Total download size: 17 M
    Is this ok [y/N]: y
    Downloading Packages:
    (1/5): tigervnc-selinux-1.10.1-7.el8.noarch.rpm                                37 kB/s |  46 kB     00:01    
    (2/5): selinux-policy-3.14.3-54.el8.noarch.rpm                                141 kB/s | 622 kB     00:04    
    (3/5): tigervnc-server-1.10.1-7.el8.x86_64.rpm                                 26 kB/s | 266 kB     00:10    
    (4/5): selinux-policy-targeted-3.14.3-54.el8.noarch.rpm                       671 kB/s |  15 MB     00:23    
    (5/5): tigervnc-server-minimal-1.10.1-7.el8.x86_64.rpm                         26 kB/s | 1.1 MB     00:44    
    --------------------------------------------------------------------------------------------------------------
    Total                                                                         286 kB/s |  17 MB     01:01     
    warning: /var/cache/dnf/AppStream-a520ed22b0a8a736/packages/tigervnc-selinux-1.10.1-7.el8.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 8483c65d: NOKEY
    CentOS-8 - AppStream                                                          1.4 MB/s | 1.6 kB     00:00    
    Importing GPG key 0x8483C65D:
     Userid     : "CentOS (CentOS Official Signing Key) <security@centos.org>"
     Fingerprint: 99DB 70FA E1D7 CE22 7FB6 4882 05B5 55B3 8483 C65D
     From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
    Is this ok [y/N]: y
    Key imported successfully
    Running transaction check
    Transaction check succeeded.
    Running transaction test
    Transaction test succeeded.
    Running transaction
      Preparing        :                                                                                      1/1 
      Upgrading        : selinux-policy-3.14.3-54.el8.noarch                                                  1/8 
      Running scriptlet: selinux-policy-3.14.3-54.el8.noarch                                                  1/8 
      Running scriptlet: tigervnc-selinux-1.10.1-7.el8.noarch                                                 2/8 
      Installing       : tigervnc-selinux-1.10.1-7.el8.noarch                                                 2/8 
      Running scriptlet: tigervnc-selinux-1.10.1-7.el8.noarch                                                 2/8 
      Upgrading        : tigervnc-server-minimal-1.10.1-7.el8.x86_64                                          3/8 
      Installing       : tigervnc-server-1.10.1-7.el8.x86_64                                                  4/8 
      Running scriptlet: tigervnc-server-1.10.1-7.el8.x86_64                                                  4/8 
      Running scriptlet: selinux-policy-targeted-3.14.3-54.el8.noarch                                         5/8 
      Upgrading        : selinux-policy-targeted-3.14.3-54.el8.noarch                                         5/8 
      Running scriptlet: selinux-policy-targeted-3.14.3-54.el8.noarch                                         5/8 
      Cleanup          : selinux-policy-targeted-3.14.3-20.el8.noarch                                         6/8 
      Running scriptlet: selinux-policy-targeted-3.14.3-20.el8.noarch                                         6/8 
      Cleanup          : selinux-policy-3.14.3-20.el8.noarch                                                  7/8 
      Running scriptlet: selinux-policy-3.14.3-20.el8.noarch                                                  7/8 
      Cleanup          : tigervnc-server-minimal-1.9.0-10.el8.x86_64                                          8/8 
      Running scriptlet: tigervnc-selinux-1.10.1-7.el8.noarch                                                 8/8 
      Running scriptlet: tigervnc-server-minimal-1.9.0-10.el8.x86_64                                          8/8 
      Verifying        : tigervnc-selinux-1.10.1-7.el8.noarch                                                 1/8 
      Verifying        : tigervnc-server-1.10.1-7.el8.x86_64                                                  2/8 
      Verifying        : tigervnc-server-minimal-1.10.1-7.el8.x86_64                                          3/8 
      Verifying        : tigervnc-server-minimal-1.9.0-10.el8.x86_64                                          4/8 
      Verifying        : selinux-policy-3.14.3-54.el8.noarch                                                  5/8 
      Verifying        : selinux-policy-3.14.3-20.el8.noarch                                                  6/8 
      Verifying        : selinux-policy-targeted-3.14.3-54.el8.noarch                                         7/8 
      Verifying        : selinux-policy-targeted-3.14.3-20.el8.noarch                                         8/8 
    
    Upgraded:
      tigervnc-server-minimal-1.10.1-7.el8.x86_64                selinux-policy-3.14.3-54.el8.noarch              
      selinux-policy-targeted-3.14.3-54.el8.noarch              
    
    Installed:
      tigervnc-server-1.10.1-7.el8.x86_64                   tigervnc-selinux-1.10.1-7.el8.noarch                  
    
    Complete!
    

    这里检查一下,如果Installed是tigervnc-server-1.9.0-15.el8_1.x86_64,参考我的前一篇文章CentOS8安装VNCServer1.9

    编辑配置文件

    [root@centos8 ~]# vim /etc/tigervnc/vncserver.users
    # TigerVNC User assignment
    # 
    # This file assigns users to specific VNC display numbers.
    # The syntax is <display>=<username>. E.g.:
    #
    # :2=andrew
    # :3=lisa
    :1=root
    :2=user
    ~
    

    设置密码

    第一设置密码时要切换到该用户登录的shell下,不然不会在家目录创建.vnc目录。

    [root@centos8 ~]# vim /etc/tigervnc/vncserver.users
    [root@centos8 ~]# vncpasswd
    Password:
    Verify:
    Would you like to enter a view-only password (y/n)? n
    A view-only password is not used
    [root@centos8 ~]# su user
    [user@centos8 root]$ vncpasswd
    Password:
    Verify:
    Would you like to enter a view-only password (y/n)? n
    A view-only password is not used
    [user@centos8 root]$ exit
    exit
    

    开启服务

    这里开启服务不是永久开启,每次开机之后都要执行一遍。

    可以设置开启启动,但是**不建议开机启动,VNC这东西占内存,即用即关比较好。**所以设置开机启动的命令就不贴出来了。

    [root@centos8 ~]# systemctl start vncserver@:1
    [root@centos8 ~]# systemctl start vncserver@:2
    

    查看状态

    [root@centos8 ~]# systemctl status vncserver@:1
    ● vncserver@:1.service - Remote desktop service (VNC)
       Loaded: loaded (/usr/lib/systemd/system/vncserver@.service; disabled; vendor preset: disabled)
       Active: active (running) since Fri 2020-12-11 20:27:26 CST; 6min ago
      Process: 32350 ExecStart=/usr/libexec/vncsession-start :1 (code=exited, status=0/SUCCESS)
     Main PID: 32356 (vncsession)
        Tasks: 1 (limit: 12364)
       Memory: 1.5M
       CGroup: /system.slice/system-vncserver.slice/vncserver@:1.service
               ‣ 32356 /usr/sbin/vncsession root :1
    
    Dec 11 20:27:26 centos8 systemd[1]: Starting Remote desktop service (VNC)...
    Dec 11 20:27:26 centos8 systemd[1]: Started Remote desktop service (VNC).
    [root@centos8 ~]# systemctl status vncserver@:2
    ● vncserver@:2.service - Remote desktop service (VNC)
       Loaded: loaded (/usr/lib/systemd/system/vncserver@.service; disabled; vendor preset: disabled)
       Active: active (running) since Fri 2020-12-11 20:27:31 CST; 6min ago
      Process: 32379 ExecStart=/usr/libexec/vncsession-start :2 (code=exited, status=0/SUCCESS)
     Main PID: 32385 (vncsession)
        Tasks: 1 (limit: 12364)
       Memory: 1.5M
       CGroup: /system.slice/system-vncserver.slice/vncserver@:2.service
               ‣ 32385 /usr/sbin/vncsession user :2
    
    Dec 11 20:27:31 centos8 systemd[1]: Starting Remote desktop service (VNC)...
    Dec 11 20:27:31 centos8 systemd[1]: Started Remote desktop service (VNC).
    

    测试

    [root@centos8 ~]# nc -zv localhost 5901
    Ncat: Version 7.70 ( https://nmap.org/ncat )
    Ncat: Connected to ::1:5901.
    Ncat: 0 bytes sent, 0 bytes received in 0.01 seconds.
    [root@centos8 ~]# nc -zv localhost 5902
    Ncat: Version 7.70 ( https://nmap.org/ncat )
    Ncat: Connected to ::1:5902.
    Ncat: 0 bytes sent, 0 bytes received in 0.01 seconds.
    

    防火墙

    开启防火墙端口,–permanent是永久生效的意思

    [root@centos8 ~]# firewall-cmd --zone=public --add-port=5901/tcp --permanent
    success
    [root@centos8 ~]# firewall-cmd --zone=public --add-port=5902/tcp --permanent
    success
    [root@centos8 ~]# firewall-cmd --reload
    success
    

    或者关闭防火墙也行,但是不建议关闭防火墙

    [root@centos8 ~]# systemctl stop firewalld.service 
    

    分辨率

    • 默认配置

      [root@centos8 .vnc]# vim /etc/tigervnc/vncserver-config-defaults
      ## Default settings for VNC servers started by the vncserver service
      #
      # Any settings given here will override the builtin defaults, but can
      # also be overriden by ~/.vnc/config and vncserver-config-mandatory.
      #
      # See the following manpages for more details: vncserver(1) Xvnc(1)
      #
      # Several common settings are shown below. Uncomment and modify to your
      # liking.
      
      # securitytypes=vncauth,tlsvnc
      # desktop=sandbox
       geometry=2000x1200
      # localhost
      # alwaysshared
      ~ 
      [root@centos8 .vnc]# systemctl restart vncserver@:1
      [root@centos8 .vnc]# systemctl restart vncserver@:2
      
    • 强制配置

      [root@centos8 tigervnc]# vim vncserver-config-mandatory 
      ## Mandatory settings for VNC servers started by the vncserver service
      #
      # Any settings given here will override the builtin defaults and
      # settings specified in ~/.vnc/config or vnc-config-defaults.
      #
      # See the following manpages for more details: vncserver(1) Xvnc(1)
      #
      # Several common settings are shown below. Uncomment and modify to your
      # liking.
      
      # securitytypes=vncauth,tlsvnc
      # desktop=sandbox
      # geometry=2000x1200
      # localhost
      # alwaysshared
      ~  
      [root@centos8 .vnc]# systemctl restart vncserver@:1
      [root@centos8 .vnc]# systemctl restart vncserver@:2
      
    • 个性配置

      root新增文件/root/.vnc/config

      非root新增文件/home/user/.vnc/config

      [root@centos8 .vnc]# vim /root/.vnc/config
      geometry=2000x1200
      ~ 
      [root@centos8 .vnc]# systemctl restart vncserver@:1
      
    • 优先级(以谁的为准)

      强制配置 > 个性配置 > 默认配置

    展开全文
  • CentOS 安装VNCserver 并开启远程桌面

    千次阅读 2017-10-19 15:05:11
    CentOS 6.5安装VNCserver 并开启远程桌面VNC介绍 VNC,Virtual NetworkConsole,虚拟网络控制台。 VNC分服务器和客户端,服务器需要安装VNCServer,客户端安装VNC Viewer来访问服务器桌面,本文介绍Tigervnc作为...

    CentOS安装VNCserver 并开启远程桌面

    VNC介绍
    VNC,Virtual NetworkConsole,虚拟网络控制台。
    VNC分服务器和客户端,服务器需要安装VNCServer,客户端安装VNC Viewer来访问服务器桌面,本文介绍Tigervnc作为例子。

    Tigervnc下载地址
    Tigervnc server:https://bintray.com/tigervnc/stable/download_file?file_path=tigervnc-1.8.0.x86_64.tar.gz
    Tigervnc viewer:https://www.realvnc.com/en/connect/download/viewer/

    在centos服务器上的安装步骤

    1、查看当前centos系统是否安装了VNCserver

    rpm -q tigervnc-server

    如果出现如下显示,则说明没有安装

    package vnc is not installed

    2、下载安装VNCserver

    yum install tigervnc tigervnc-server -y

    3、切换到目录/usr/bin/vncserver启动vncserver

    vncserver :1

    4、配置当前用户的vnc登陆密码,连续输入两次即可。这个密码是vnc连接密码,和系统密码没有关系。可以不一样。

    [root@localhost ~]# vncpasswd 
    Password:
    Verify:
    [root@localhost ~]#

    5、检查启动情况,启动成功,存在端口5901

    netstat -lntp

    6、 防火墙设置,我们需要配置防火墙来让 VNC 服务正常工作。

    sudo firewall-cmd --permanent --add-service vnc-server
    sudo systemctl restart firewalld.service

    从客户及登录服务器
    运行vncviewer.exe
    这里写图片描述
    输入vnc server密码,进入桌面,
    这里写图片描述
    按esc出现登陆界面,输入用户名密码,进入桌面。
    这里写图片描述
    按alt+ctl+shift+F,退出全屏。

    展开全文
  • Centos7 vncserver安装

    千次阅读 2016-02-23 18:16:33
    第二步,修改配置信息,在/etc/systemd/system/下建立文件夹vncserver@:1.service 把example config 文件从/lib/systemd/system/vncserver@.service复制到里面 [root@gpu ~]# cp /lib/systemd/system/vncserver...
  • Centos7启动vncserver

    千次阅读 2019-01-22 14:24:22
    1.检验是否已经安装vncserver rpm -ivh vnc-server-10.09.rpm –nodeps 2.没有安装vncserver,进行安装 yum groupinstall "GNOME Desktop" yum install tigervnc-server tigervnc-server-module cp /...
  • CentOS7 vncserver安装配置

    千次阅读 2020-07-30 19:31:27
    ## 注意:CentOS7和CentOS6安装vncserver有很大区别。 步骤: 1. 安装 yum -y install tigervnc-server tigervnc 2. 创建vncserver@:1.service cp /lib/systemd/system/vncserver@.service/lib/systemd/...
  • CentOS7安装vncserver

    万次阅读 2018-11-05 15:41:30
    1、关闭防火墙和selinux systemctl stop firewalld.service setenforce 0 2、安装图形支持 yum groups install "GNOME Desktop"...3、安装vncserver yum -y install tigervnc-server 4、...
  • centos安装vncserver

    2018-12-11 15:42:05
    步骤如下: 1. 安装tigervnc-...由于vncserver可以同时启动多个服务,各个vncserver之间用显示编号(display number)来区分,启动vncserver时后面所跟的数字即为服务编号,注意vncserver和冒号之间有一个空格,...
  • CentOS7.6安装VNCServer

    千次阅读 2019-09-04 11:17:49
    操作系统:CentOS 7.6 64位 1、安装图形界面 [root@localhost ~]# yum groupinstall "X Window System" [root@localhost ~]# yum install gnome-classic-session gnome-terminal nautilus-open-terminal control-...
  • centos 7 安装和配置vncserver

    万次阅读 2019-05-19 12:55:34
    我这里输入的是 vncserver :2 因为端口1已经被另外一个小伙伴用了(注意vncserver :2中vncserver和冒号之间有个空格哦!!) New 'dw:2 (lincanran)' desktop is dw:2 Starting applications ...
  • CentOS7启动vncserver命令

    2019-12-21 21:18:05
    CentOS7上,使用yum安装vncserver,默认会安装tigerVNC,安装配置完成后,启动vncserver的命令如下(通过systemctl启动): systemctl restart vncserver@:1.service 这个命令将会启动1号vncserver,使用vnc...
  • CentOS 7 实现vncserver 多用户同时登录

    千次阅读 2020-08-11 10:50:05
    配置root用户vncserver 参见:CentOS7 vncserver安装配置 如果想创建多个用户 1.配置该用户vncpasswd su - xxx vncpasswd 2.新建vncserver@:2.service,创建其他用户,以此类推 cp /lib/systemd/system/...
  • centos7安装配置vncserver

    万次阅读 2018-11-21 10:06:20
     在Linux界面(你自己的用户下)运行vncserver(就是在cmd 行输入vncserver,看看跳出来的是多少号,记录这个号码,作为端口号), 我运行性的结果如下: You will require a password to access your ...
  • centos7.2 vncserver配置安装

    千次阅读 2017-06-14 17:58:08
    远程连接linux图形化界面 vncserver
  • centos6.5安装vncserver 简介 VNC (Virtual Network Computer)是虚拟网络计算机的缩写,VNC 是一款优秀的远程控制工具软件。 安装VNC服务 首先确认虚拟机已经安装了桌面环境,例如:gnome等 # vi /etc/inittab ...
  • centos6.5 vncserver安装与配置一、首先服务器端需要运行级别为5的图形界面,且GNOME桌面图形界面已经安装。可以使命令进行查询一下rpm-qa gnomerunlevel二、用yum安装vncserver并配置1、使用vncserver 命令配置vnc...
  • centos7.6环境下安装vnc服务 二、平台 [root@xserver ~]# cat /etc/redhat-release CentOS Linux release 7.6.1810 (Core) 三、解析 1.要想用vnc客户端链接到服务器,那么服务器必定得装过了GUI桌面程序,不然...
  • vncserver@:1.service – Remote desktop service (VNC) Loaded: loaded (/usr/lib/systemd/system/vncserver@:1.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Mon 2020-...
  • 安装vnc-server 前题: Linux桌面程序已安装安装 vnc-server以root用户运行以下命令来安装vncserver;yum install tigervnc-server tigervnc-server-module关闭防火墙systemctl stop firewalld.service #临时systemctl...
  • 一、简介 VNC(Virtual Network Console),即虚拟网络控制台。它是一款优秀的远程控制工具软件,而且是基于 UNIX 和 Linux 操作... 另外一部分是服务器端的应用程序(vncserver); yum -y install tigervnc-serve...
  • centos 安装VNCSERVER

    2017-05-11 13:39:14
    cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:1.service vi /etc/systemd/system/vncserver@:1.service 关闭防火墙: [root@vhost ~]# systemctl stop firewalld ...
  • sed -i "s//${username}/g" /lib/systemd/system/vncserver@:${userid}.service \ && sudo systemctl enable vncserver@:${userid} # start sudo systemctl start vncserver@:${userid} done 8. to jumpserver 1. ...
  • Centos7安装VNCSERVER

    2020-06-30 13:08:52
    操作系统:CentOS Linux release 7.5.1804 检查操作系统当前默认启动模式 [root@A5-303-NF5280M4-2018-150 ~]# systemctl get-default graphical.target #graphical.target:analogous runlevel 5 图形模式 #...
  • 记新装CentOS 7离线安装VNCServer流程 步骤目录配置本地yum源仓库安装并配置tigervnc-server验证vncserver 配置本地yum源仓库 配置本地yum源仓库之前,先检查是否挂载ios镜像,需要用到ios包里的安装文件 [root@...
  • 操作系统: CentOS6.3一.环境部署:1.关闭iptables和SELINUX# service iptables stop# setenforce 0# vi /etc/sysconfig/selinux---------------SELINUX=disabled---------------# yum install "*vnc*" pixman pixman-...
  • Centos安装vncserver服务

    2016-11-17 22:24:00
    6.vncserver 至此Centos远程成功  7.其他小知识:   1> 设置为开机启动  [root@localhost ~]# chkconfig --add vncserver  [root@localhost ~]# chkconfig vncserver on  2>重启vncserver  [root@...

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 5,603
精华内容 2,241
关键字:

centos8vncserver