• x0vncserver Fatal server error: no screens found


    I make a connection through SSH and  then I type:

    # x0vncserver --PasswordFile=/home/hello/.vnc/passwd

    x0vncserver: unable to open display ""

    ~ImageCleanup called


    the reason is :

           x0vncserver is an X-Windows CLIENT program. Where is the X-Windows SERVER on which the display you want to poll is presented? Presumably defined by the DISPLAY environment variable. What output do you get from the ssh shell level if you enter
    #$ echo $DISPLAY [return]

    I suspect it will be empty, so your X client (x0vncserver) won't know what to try to connect to. [Which is what it is telling you - unable to open display "" ]

    Either make the ssh connection set up a tunnel for the X-windows stuff [you'll need a manual for your ssh client to do that], or set the DISPLAY variable to point to the server. (Only you know where it is, but the command will be something like
    $ export DISPLAY=":0.0")

    or run x0vncserver -h to see if there is a command line option to set the display as you start the program.
    I typed echo $DISPLAY on the main-console(or on your linux host ) and it echos :0.0
    so i set DISPLAY environment 

    export DISPLAY=":0.0"

    then i retype the command 

    # x0vncserver --PasswordFile=/home/xiaoyang/.vnc/passwd


    Tue Sep 4 13:33:29 2012

     main:        XTest extension present - version 2.2

     main:        Listening on port 5900


    SO, It's OK !! 

    About x0vncserver see http://blog.csdn.net/gpstrive/article/details/24905023 

  • 相关阅读:
    Linux命令未找到(command not found),误删Linux path原始路径
    Linux安装JDK1.8
    Python批量修改文件夹内所有json文件中部分内容
    [转]jQuery插件开发精品教程,让你的jQuery提升一个台阶
    使用apache的ab对页面进行压力测试
    http_load压力测试
    php json_encode数据格式化2种格式[]和{}
    PHP接收JSON格式的数据
    新浪短链接API接口示例
    一个提示样式
  • 原文地址:https://www.cnblogs.com/hrhguanli/p/3903146.html
Copyright © 2020-2023  润新知