美文网首页
Centos7安装VNCSERVER

Centos7安装VNCSERVER

作者: Atman666 | 来源:发表于2019-11-19 17:29 被阅读0次
    # VNC
    yum -y groupinstall "X Window System" "Desktop" "Chinese Support" "Fonts"
    yum install gnome-classic-session gnome-terminal nautilus-open-terminal control-center liberation-mono-fonts
    unlink /etc/systemd/system/default.target
    ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target
    reboot
    yum -y install tigervnc-server
    vncserver
    # 启动服务
    vncserver :1
    # 停止服务
    vncserver -kill :1
    # 10.x.x.x:5901
    # 修改vnc密码
    echo xxxxxx | vncpasswd -f > ~/.vnc/passwd
    # 开机启动
    echo -e 'VNCSERVERS="1:root"\nVNCSERVERARGS[1]="-geometry 1280x960 -alwaysshared"' >> /etc/sysconfig/vncservers
    chkconfig vncserver on
    # 共享剪贴板
    vncconfig &>/dev/null
    

    参考文档:
    https://blog.csdn.net/ccwwff/article/details/78830953
    客户端下载地址:
    https://www.realvnc.com/en/connect/download/viewer/
    连接10.x.x.x:5091

    相关文章

      网友评论

          本文标题:Centos7安装VNCSERVER

          本文链接:https://www.haomeiwen.com/subject/rdrgictx.html