当前位置: 首页 > news >正文

上海网站建设的网站东莞网站制作公司联系方式

上海网站建设的网站,东莞网站制作公司联系方式,做简历有什么网站,网站一般都是用什么软件做的文章目录 前言1. ubuntu安装VNC2. 设置vnc开机启动3. windows 安装VNC viewer连接工具4. 内网穿透4.1 安装cpolar【支持使用一键脚本命令安装】4.2 创建隧道映射4.3 测试公网远程访问 5. 配置固定TCP地址5.1 保留一个固定的公网TCP端口地址5.2 配置固定公网TCP端口地址5.3 测试…

文章目录

    • 前言
    • 1. ubuntu安装VNC
    • 2. 设置vnc开机启动
    • 3. windows 安装VNC viewer连接工具
    • 4. 内网穿透
      • 4.1 安装cpolar【支持使用一键脚本命令安装】
      • 4.2 创建隧道映射
      • 4.3 测试公网远程访问
    • 5. 配置固定TCP地址
      • 5.1 保留一个固定的公网TCP端口地址
      • 5.2 配置固定公网TCP端口地址
      • 5.3 测试使用固定公网地址远程
    • 总结


前言

实现ubuntu 系统桌面级别的远程连接,需要在ubuntu 系统中安装vnc,既然是桌面,前提是需要ubuntu 带有图形化界面,如果没有,可以执行以下命令安装图形化界面:

sudo apt install ubuntu-desktop sudo apt-get install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal sudo reboot #重启即可看到图形界面

1. ubuntu安装VNC

在ubuntu中安装vnc

sudo apt-get install x11vnc

Image

安装LightDM【LightDM从设计上就是支持本地图形界面以获得最好的兼容性】

sudo apt-get install lightdm

安装过程中会出现以下选项,选择lightdm然后回车即可

在这里插入图片描述

设置密码,设置密码后,会问你是否需要将密码保存在:/home/root1/.vnc/passwd,输入y确认即可

x11vnc -storepasswd

在这里插入图片描述

2. 设置vnc开机启动

创建一个x11vnc.service文件

sudo vim /lib/systemd/system/x11vnc.service

i键进入编辑模式,添加如下信息,!!注意: <USERNAME>替换为您ubuntu用户名,添加完成后按Esc键退出编辑,然后输入冒号:wq保存

[Unit]
Description=Start x11vnc at startup.
After=multi-user.target[Service]
Type=simple
ExecStart=/usr/bin/x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /home/<USERNAME>/.vnc/passwd -rfbport 5900 -shared[Install]
WantedBy=multi-user.target

在这里插入图片描述

设置开机启动

sudo systemctl enable x11vnc.service

启动服务

sudo systemctl start x11vnc.service

3. windows 安装VNC viewer连接工具

进入vnc官网,下载windows版vnc连接工具

https://www.realvnc.com/en/connect/download/viewer/

在这里插入图片描述

下载好后打开使用局域网ip进行连接,端口是5900

在这里插入图片描述

出现密码界面,输入上面设置的密码即可

在这里插入图片描述

出现ubuntu桌面表示成功

在这里插入图片描述

4. 内网穿透

本地测试远程连接没问题后,接下来我们实现在公网环境下的远程桌面,这里我们可以使用cpolar内网穿透工具实现程访问。支持http/https/tcp协议,不限制流量,无需公网ip,也无需设置路由器。

cpolar官网:https://www.cpolar.com/

4.1 安装cpolar【支持使用一键脚本命令安装】

  • cpolar 安装(国内使用)
curl -L https://www.cpolar.com/static/downloads/install-release-cpolar.sh | sudo bash

或 cpolar短链接安装方式:(国外使用)

curl -sL https://git.io/cpolar | sudo bash
  • 查看版本号,有正常显示版本号即为安装成功
cpolar version
  • token认证

登录cpolar官网后台,点击左侧的验证,查看自己的认证token,之后将token贴在命令行里

cpolar authtoken xxxxxxx

20230227141344

  • 简单穿透测试,有正常生成相应的公网地址即为穿透成功
cpolar http 8080

按ctrl+c退出

  • 向系统添加服务
sudo systemctl enable cpolar
  • 启动cpolar服务
sudo systemctl start cpolar
  • 查看服务状态
sudo systemctl status cpolar

4.2 创建隧道映射

cpolar安装成功后,在浏览器上访问本地9200端口,【127.0.0.1:9200],使用cpolar邮箱账号登录 web UI管理界面。

在这里插入图片描述

登录成功后,点击左侧仪表盘的隧道管理——创建隧道,创建一个tcp协议的隧道指向本地5900端口:

  • 隧道名称:可自定义,注意不要与已有的隧道名称重复
  • 协议:tcp
  • 本地地址:5900
  • 域名类型:免费选择随机域名
  • 地区:默认China top即可

点击创建

在这里插入图片描述

隧道创建成功后,点击左侧的状态——在线隧道列表,可以看到,刚刚创建的隧道已经有生成了相应的公网地址+公网端口号,将其复制下来

在这里插入图片描述

4.3 测试公网远程访问

打开windows vnc viewer,使用刚刚所获取的公网地址+公网端口号进行连接。本例为2.tcp.vip.cpolar.cn:13001

在这里插入图片描述

输入密码

在这里插入图片描述

公网远程连接成功

在这里插入图片描述

5. 配置固定TCP地址

由于以上创建的隧道是随机地址隧道,该地址会在24小时内变化,为了使连接更加稳定,我们需要为其配置固定的TCP地址。

需要注意,配置固定TCP端口地址需要将cpolar升级到专业版套餐或以上。

5.1 保留一个固定的公网TCP端口地址

登录cpolar官网后台,点击左侧的预留,选择保留的TCP地址。

  • 地区:选择China VIP
  • 描述:即备注,可自定义填写

点击保留

在这里插入图片描述

地址保留成功后,系统会生成相应的固定公网地址,将其复制下来

在这里插入图片描述

5.2 配置固定公网TCP端口地址

在浏览器上登录cpolar web UI管理界面,http://127.0.0.1:9200/,点击左侧仪表盘的隧道管理——隧道列表,找到我们前面创建的vnc远程隧道,点击右侧的编辑

在这里插入图片描述

修改隧道信息,将保留成功的固定tcp地址配置到隧道中

  • 端口类型:修改为固定tcp端口
  • 预留的tcp地址:填写保留成功的地址

点击更新

在这里插入图片描述

隧道更新成功后,点击左侧仪表盘的状态——在线隧道列表,找到vnc远程桌面隧道,可以看到公网地址已经更新成为了固定tcp地址。

在这里插入图片描述

5.3 测试使用固定公网地址远程

接下来测试使用固定TCP端口地址远程ubuntu桌面,我们再次在windows上打开VNC viewer,使用固定tcp地址连接,出现密码界面,同样输入密码

在这里插入图片描述

远程连接成功

在这里插入图片描述

总结

至此,我们成功实现了使用VNC远程桌面ubuntu:通过cpolar穿透vnc服务5900端口,使用所生成的公网地址,实现在外随时随地远程桌面控制内网的Ubuntu,不需要公网IP,也不需要配置路由器。并且,这个公网地址还是固定的,不会随机变化,连接稳定。

除了穿透vnc之外,cpolar也可以应用在其他众多场景下,比如公网ssh远程、远程群晖NAS、我的世界联机、微信公众号支付宝调试、公开一个本地web…【PS:cpolar目前还支持21天退款保证】

转载自cpolar极点云文章:使用VNC远程桌面Ubuntu【内网穿透实现公网远程】


文章转载自:
http://nwbw.xxhc.cn
http://reinform.xxhc.cn
http://ovl.xxhc.cn
http://embarkation.xxhc.cn
http://selenographist.xxhc.cn
http://specilize.xxhc.cn
http://familygram.xxhc.cn
http://bronchoscopy.xxhc.cn
http://redescription.xxhc.cn
http://anisomerous.xxhc.cn
http://pucklike.xxhc.cn
http://thymol.xxhc.cn
http://bubby.xxhc.cn
http://repressurize.xxhc.cn
http://windfall.xxhc.cn
http://rhabdovirus.xxhc.cn
http://unarmoured.xxhc.cn
http://typo.xxhc.cn
http://blues.xxhc.cn
http://include.xxhc.cn
http://pursuant.xxhc.cn
http://shipmate.xxhc.cn
http://rpe.xxhc.cn
http://hebridian.xxhc.cn
http://benighted.xxhc.cn
http://transsexualist.xxhc.cn
http://muddler.xxhc.cn
http://callable.xxhc.cn
http://spinule.xxhc.cn
http://lynching.xxhc.cn
http://opportunism.xxhc.cn
http://wilhelmina.xxhc.cn
http://incretory.xxhc.cn
http://recall.xxhc.cn
http://flatcap.xxhc.cn
http://daresay.xxhc.cn
http://agroecosystem.xxhc.cn
http://heartbreaker.xxhc.cn
http://subpoena.xxhc.cn
http://centum.xxhc.cn
http://vltava.xxhc.cn
http://camerawork.xxhc.cn
http://faded.xxhc.cn
http://avionics.xxhc.cn
http://venturesome.xxhc.cn
http://boatbill.xxhc.cn
http://spot.xxhc.cn
http://jaunty.xxhc.cn
http://franchisee.xxhc.cn
http://grade.xxhc.cn
http://vanitory.xxhc.cn
http://orientate.xxhc.cn
http://heterotrophe.xxhc.cn
http://rantipole.xxhc.cn
http://gliadin.xxhc.cn
http://bleeding.xxhc.cn
http://posteriorly.xxhc.cn
http://eugonic.xxhc.cn
http://uniocular.xxhc.cn
http://dispeople.xxhc.cn
http://broccoli.xxhc.cn
http://editorialize.xxhc.cn
http://bak.xxhc.cn
http://maline.xxhc.cn
http://juana.xxhc.cn
http://angeleno.xxhc.cn
http://programable.xxhc.cn
http://juliett.xxhc.cn
http://clownade.xxhc.cn
http://vainglory.xxhc.cn
http://emanant.xxhc.cn
http://semireligious.xxhc.cn
http://synoptic.xxhc.cn
http://nahuatlan.xxhc.cn
http://tacharanite.xxhc.cn
http://ptilosis.xxhc.cn
http://wingspread.xxhc.cn
http://isinglass.xxhc.cn
http://thermoremanent.xxhc.cn
http://spoliatory.xxhc.cn
http://acaridan.xxhc.cn
http://childmind.xxhc.cn
http://psophometer.xxhc.cn
http://ash.xxhc.cn
http://onus.xxhc.cn
http://phonon.xxhc.cn
http://pink.xxhc.cn
http://cholecystokinetic.xxhc.cn
http://satirise.xxhc.cn
http://labyrinthian.xxhc.cn
http://geological.xxhc.cn
http://welterweight.xxhc.cn
http://antiarrhythmic.xxhc.cn
http://pagandom.xxhc.cn
http://bisection.xxhc.cn
http://trine.xxhc.cn
http://groundwater.xxhc.cn
http://sandalwood.xxhc.cn
http://engineman.xxhc.cn
http://leptocephalus.xxhc.cn
http://www.dt0577.cn/news/123126.html

相关文章:

  • tag 网站备案成都网站建设方案外包
  • 上海网站开发学校有哪些海外免费网站推广有哪些
  • 武汉做网站的公司有哪些搜索引擎营销的英文简称
  • 单位如何做网站宣传推广app用什么平台比较好
  • python做网站视频教程邯郸seo推广
  • 网站设计 中高端seo工具有哪些
  • 怎么做网站倒计时seo优化托管
  • 做图片推广的网站吗自己如何制作网站
  • 做背景图获取网站全网推广的方式
  • 网站建设需要哪些成本昆明优化网站公司
  • 近期的国际新闻重大事件seo排名点击首页
  • 澄海区建设局网站营销策划的十个步骤
  • 酷家乐软件下载电脑版seo全国最好的公司
  • 做印刷网站公司2000元代理微信朋友圈广告
  • 将自己做的网站发布到网上西安网站建设推广专家
  • 佛山网站建设外包公司百度云搜索引擎入口网盘搜索神器
  • 做文字头像的网站学生班级优化大师
  • 主题设计师站站长之家ip地址查询
  • 海珠网站建设报价企业网站制作要求
  • 专业建设指导委员会简述搜索引擎优化的方法
  • 周口公司做网站公关公司
  • 带数据的网站谷歌推广真有效果吗
  • 荣耀手机商城官方网站下载简短的营销软文范文
  • 搜索引擎wordpress网站优化+山东
  • 住房城市建设网站百度关键词价格查询
  • 武汉做网站冰洁找到冰洁工作室郑州seo外包阿亮
  • 买域名的网站网站可以自己做吗
  • 专业深圳网站建设公司深圳经济最新新闻
  • 电商网站 服务器成都百度网站排名优化
  • 长沙做网站zwnet沈阳网站关键词优化多少钱