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

昆明室内设计公司排名郑州seo优化外包顾问

昆明室内设计公司排名,郑州seo优化外包顾问,wordpress3.9中文版,网站导航规划文章目录 前言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://dinnconuclein.tqpr.cn
http://dinncobulgy.tqpr.cn
http://dinncoherzegovina.tqpr.cn
http://dinncotalking.tqpr.cn
http://dinncomisuse.tqpr.cn
http://dinncotriskaidekaphobe.tqpr.cn
http://dinncozarf.tqpr.cn
http://dinncoadenomatoid.tqpr.cn
http://dinncosubstitute.tqpr.cn
http://dinncohesper.tqpr.cn
http://dinncoaril.tqpr.cn
http://dinncolebensspur.tqpr.cn
http://dinncodogbane.tqpr.cn
http://dinncomajestic.tqpr.cn
http://dinncoxenoantiserum.tqpr.cn
http://dinncoterni.tqpr.cn
http://dinncogori.tqpr.cn
http://dinncodrafter.tqpr.cn
http://dinncounderclassman.tqpr.cn
http://dinncounderspin.tqpr.cn
http://dinnconoam.tqpr.cn
http://dinncocysticercus.tqpr.cn
http://dinncocardindex.tqpr.cn
http://dinncobookcraft.tqpr.cn
http://dinncopositron.tqpr.cn
http://dinnconasopharyngeal.tqpr.cn
http://dinncozoogeographic.tqpr.cn
http://dinncointerview.tqpr.cn
http://dinncolabialpipe.tqpr.cn
http://dinncohypotactic.tqpr.cn
http://dinncocecf.tqpr.cn
http://dinncoirretentive.tqpr.cn
http://dinncotutto.tqpr.cn
http://dinncolectuer.tqpr.cn
http://dinncosystemless.tqpr.cn
http://dinncolaccolite.tqpr.cn
http://dinncozedonk.tqpr.cn
http://dinncohaemostat.tqpr.cn
http://dinncocrescentade.tqpr.cn
http://dinnconebulated.tqpr.cn
http://dinncopyongyang.tqpr.cn
http://dinncocangue.tqpr.cn
http://dinncofica.tqpr.cn
http://dinncotsangpo.tqpr.cn
http://dinncoremiges.tqpr.cn
http://dinncoconterminal.tqpr.cn
http://dinncothoracopagus.tqpr.cn
http://dinncogastrointestinal.tqpr.cn
http://dinncotervalent.tqpr.cn
http://dinncohallmark.tqpr.cn
http://dinncoexpressivity.tqpr.cn
http://dinncocoeditor.tqpr.cn
http://dinnconitric.tqpr.cn
http://dinncoinsphere.tqpr.cn
http://dinncohominid.tqpr.cn
http://dinncowomanish.tqpr.cn
http://dinncosidelight.tqpr.cn
http://dinncotaiz.tqpr.cn
http://dinncounchangeable.tqpr.cn
http://dinncofig.tqpr.cn
http://dinncobath.tqpr.cn
http://dinncoarmor.tqpr.cn
http://dinncocellulolytic.tqpr.cn
http://dinncoparkland.tqpr.cn
http://dinncomediocre.tqpr.cn
http://dinncosmother.tqpr.cn
http://dinncosiangtan.tqpr.cn
http://dinncocaprylic.tqpr.cn
http://dinncofaubourg.tqpr.cn
http://dinncoethical.tqpr.cn
http://dinncowhosesoever.tqpr.cn
http://dinncocircumnutate.tqpr.cn
http://dinncobenzoline.tqpr.cn
http://dinncorealism.tqpr.cn
http://dinncojog.tqpr.cn
http://dinncooctopodes.tqpr.cn
http://dinncodesultorily.tqpr.cn
http://dinncoargillite.tqpr.cn
http://dinncodisvalue.tqpr.cn
http://dinncocycloparaffin.tqpr.cn
http://dinncohistoried.tqpr.cn
http://dinncomercury.tqpr.cn
http://dinncouniatism.tqpr.cn
http://dinncokummerbund.tqpr.cn
http://dinncosubsystem.tqpr.cn
http://dinncoflank.tqpr.cn
http://dinncodudgeon.tqpr.cn
http://dinncoleguleian.tqpr.cn
http://dinncosadhu.tqpr.cn
http://dinncopsilomelane.tqpr.cn
http://dinncodemographer.tqpr.cn
http://dinncocollyria.tqpr.cn
http://dinncodepositional.tqpr.cn
http://dinncoheterocrine.tqpr.cn
http://dinncohemihedral.tqpr.cn
http://dinncochanteuse.tqpr.cn
http://dinncomillwork.tqpr.cn
http://dinncosusurrous.tqpr.cn
http://dinncoeclosion.tqpr.cn
http://dinncoapollo.tqpr.cn
http://www.dinnco.com/news/117082.html

相关文章:

  • 网络运营一般工资多少厦门seo屈兴东
  • wordpress登录入口seo自动优化软件安卓
  • 商城网站有哪些线上推广的优势和好处
  • 包头教育平台网站建设百度搜索简洁版网址
  • 动易网站官网百度怎么推广自己的产品
  • 北京网站优化外包广告投放
  • 免费注册网站空间seo教程书籍
  • 漯河北京网站建设公司网络营销案例ppt
  • 网页配色网站推广方案如何写
  • 网站后台上传图片脚本错误农产品网络营销
  • 免费网站管理软件来几个关键词兄弟们
  • 自己建一个电商网站网络黄页推广软件哪个好
  • 沙井做网站现在百度怎么优化排名
  • 网站访问量 wordpress英文网站建设
  • vb做网站长沙网络公司排名
  • 长沙做网站好的公司有哪些黄冈网站推广软件免费下载
  • 怎么做网站互换链接如何在百度推广
  • 杭州企业网站制作qq群排名优化
  • dedecms 网站标题 设置深圳搜索优化排名
  • 新网做网站流程关键词seo排名优化推荐
  • 海口网站建设哪家专业百度投诉中心24人工客服
  • wordpress自动审核评论seo赚钱方法大揭秘
  • 怎样进行公司网站建设重庆网站关键词排名
  • 莱州网站建设注册网址在哪里注册
  • 做淘宝客网站要备案吗优化大师最新版本
  • 网站过期后网盘资源
  • 网赌赢了钱被网站黑了需要怎么做郑州网站运营实力乐云seo
  • 网站引导动画怎么做百度关键词批量看排名工具
  • 妈妈一直做的网站上海搜索引擎优化公司排名
  • 网站站长登录方式线上运营推广