• x11vnc


    http://cisight.com/how-to-setup-vnc-server-remote-desktop-in-ubuntu-11-10-oneiric/

    Install VNC server in Ubuntu 11.10 Oneiric for remote-desktop is very easy. Here are the steps to install :


    sudo apt-get install x11vnc
    sudo x11vnc -storepasswd yourpasswordhere /etc/x11vnc.pass
    sudo chmod 744 /etc/x11vnc.pass

    如果没有安装Ubuntu桌面:

    sudo apt-get install x-window-system-core

    sudo apt-get install ubuntu-desktop

    然后安装管理器lightdm:

    #sudo apt-get install lightdm

    Now you should edit your lightdm :



    sudo vim /etc/lightdm/lightdm.conf

    #加入下面的一行,重启服务器

    greeter-setup-script=/usr/bin/x11vnc -auth /var/run/lightdm/root/:0 -noxrecord -noxfixes -noxdamage -rfbauth /etc/x11vnc.pass -forever -bg -rfbport 5900 -o /tmp/x11vnc.log

    #如果这个文件没有的话,说明lightdm没有安装或者没有启动执行lightdm来启动

    #如果连接vnc的时候Failed to load session "ubuntu"的解决办法
    '''
    sudo apt-get update
    sudo apt-get install ubuntu-desktop
    sudo apt-get -f install
    sudo dpkg-reconfigure ubuntu-desktop
    sudo reboot
    sudo apt-get install gnome-session
    sudo apt-get install lightdm
    sudo apt-get install unity-greeter
    sudo dpkg-reconfigure lightdm

    '''

    To run manually :

    sudo x11vnc -rfbauth /etc/x11vnc.pass -o /var/log/x11vnc.log -forever -bg -rfbport 5900 -nomodtweak

    or


    sudo x11vnc -auth /var/run/lightdm/root/:0 -noxrecord -noxfixes -noxdamage -rfbauth /etc/x11vnc.pass -forever -bg -rfbport 5900 -o /tmp/x11vnc.log

    Happy remote desktop! :)

  • 相关阅读:
    如何闪开安装VS2013必须要有安装IE10的限制
    Java从键盘输入
    Java基本数据类型和关键字
    openssl windows编译 32位&64位
    eclipse代码提示配置
    手动启动Android模拟器
    Android编程中的实用快捷键
    pat1023. Have Fun with Numbers (20)
    pat1022. Digital Library (30)
    pat1020. Tree Traversals (25)
  • 原文地址:https://www.cnblogs.com/maseng/p/3630313.html
Copyright © 2020-2023  润新知