2017-6-16·······························································VNC实例

来源:互联网 发布:程序员mac 编辑:程序博客网 时间:2024/06/05 19:54

学习日志


vnc的使用实例

  • windows自带

    1. windows系统自带的远程桌面连接服务是基于xrdp的,使用方法:
      linux端安装xrdp:

      [johnwick@raspberrypi~]$sudo apt-get -y install xrdp
    2. 启动vncserver:
      会要求输入一个八位密码,输入完成后,会提示New 'X' desktop is raspberrypi:2
      此时,我们在登录时的端口号就是:5902

      [johnwick@raspberrypi~]$vncserverYou will require a password to access your desktops.Password:Verify:Password too long - only the first 8 characters will be usedNew 'X' desktop is raspberrypi:2Creating default startup script /home/johnwick/.vnc/xstartupStarting applications specified in /home/johnwick/.vnc/xstartupLog file is /home/johnwick/.vnc/raspberrypi:2.log

      或者我们可以手动指定端口号:

      [johnwick@raspberrypi~]$vncserver :2New 'X' desktop is raspberrypi:2Starting applications specified in /home/johnwick/.vnc/xstartupLog file is /home/johnwick/.vnc/raspberrypi:2.log

      vncserver的手动关闭:

      [root@yqrh5u2 ~]# vncserver -kill :1Killing Xvnc process ID 12572kill 12572: No such process

      更多关于vncserver开启和关闭的内容请参考:

      Linux上VNC 启动和关闭 已经常见问题 - 千里足迹 - 博客频道 - CSDN.NEThttp://blog.csdn.net/techsupporter/article/details/52887199
    3. 登录:

      win+R打开运行,输入mstsc(音译:灭世天使城),即可打开“远程桌面连接

      (有时候不用输入:5901端口号,输入端口号反而提示错误,此处不明)

      后面有个xrdp的登录界面:

      输入账号和密码,即可进入系统桌面。
      桌面:

      登录成功。

  • tightvnc

    安装命令:

    [johnwick@raspberrypi~]$sudo apt-get install tightvncserver

    电脑上要安装tightvnc的软件,先启动tvnserver.exe,再打开tvnviewer.exe
    弹出如下窗口:

    点击连接后:

    输入密码即可登录。

原创粉丝点击