开启辅助访问 切换到窄版

Ubuntu 18配置vnc4server服务开启远程VNC连接服务

[复制链接]
作者:hanhongwen 
版块:
Linux Linux-常用服务搭建 发布时间:2020-1-7 15:47:44
360

管理员

积分
10633
QQ
hanhongwen 发表于 2020-1-7 15:47:44 | 显示全部楼层 |阅读模式
1、修改YUM源地址并更新系统及系统软件
# vi /etc/apt/sources.list

  1. deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
  2. deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse

  3. deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
  4. deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse

  5. deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
  6. deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse

  7. deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
  8. deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse

  9. deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
  10. deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
复制代码


2、更新系统及系统软件及vnc4server

  1. # apt-get -y update && apt-get -y upgrade
  2. # apt-get -y install vnc4server xfce4 xfce4-goodies
复制代码

11.png

3、配置密码
  1. # vnc4passwd
复制代码

12.png

4、启动服务,让系统自动生成xstartup
  1. # vnc4server :1
复制代码

13.png

5、停止服务并修改文件
# vnc4server -kill :1
# vi ~/.vnc/xstartup

  1. #!/bin/sh
  2. unset SESSION_MANAGER
  3. unset DBUS_SESSION_BUS_ADDRESS
  4. startxfce4 &
复制代码


6、启动服务
  1. # vnc4server -geometry 1920x1080 :1
复制代码


7、使用远程工具进行连接
http://www.realvnc.com/download/viewer/
https://www.realvnc.com/download/viewer/
14.png


以上为Ubuntu 18配置vnc4server服务开启远程VNC连接服务的简单操作步骤,祝你成功


    15561578755
回复

使用道具 举报

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

本版积分规则

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