注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

阿弥陀佛

街树飘影未见尘 潭月潜水了无声 般若观照心空静...

 
 
 

日志

 
 
关于我

一直从事气象预报、服务建模实践应用。 注重气象物理场、实况场、地理信息、本体知识库、分布式气象内容管理系统建立。 对Barnes客观分析, 小波,计算神经网络、信任传播、贝叶斯推理、专家系统、网络本体语言有一定体会。 一直使用Java、Delphi、Prolog、SQL编程。

网易考拉推荐

Sharing X display over VNC  

2014-01-08 09:12:28|  分类: IDV |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
Sharing X display over VNC
hu 21 July 2011 by Thejaswi Puthraya

Designing for browsers is hard! There are a multitude of browsers that have to be supported and each have their quirks. While there are tools to make this task easy, recently Sai (chief designer at Agiliq) had to checkout how a client's project looked in Chromium and Firefox on Linux based operating systems.

We could have setup VirtualBox and installed Ubuntu image and all related software but it sounded like a pain for a one-time exercise. We wanted some quick way to set up and ended sharing an X display over VNC.

Before I describe the process, let's take a small detour to understand some technicalities.

  • By default, X runs on display :0 or :0.0. Here's how you can check it out:

    $ echo $DISPLAY
    :0.0
    
  • The X process runs as root on most Linux based operating systems and you would generally require administrator access to run a new X display. We overcome this restriction by using Xvfb, a headless X server.

Things to setup before the you can share the display:

  • Install Xvfb
  • Install x11vnc
  • Install a VNC client on the client machine (We used RealVNC on Sai's windows machine)

Most of the above software can easily be installed through a package manager (say Ubuntu's apt-get or Fedora's yum).

Here's the process:

  • Run Xvfb on display :1 with a resolution of 1366x768, colour depth of 24 and on screen 0:

    xinit -- /usr/bin/Xvfb :1 -screen 0 1366x768x24
    
  • Point x11vnc to use the display :1 and forward to a VNC client:

    x11vnc -display :1
    
  • On the client, fire up your VNC client and enter the IP address of the box running the above setup.

There are a huge set of options for Xvfb and x11vnc (like authorization, caching etc) that may be set to tweak the display. Just check the man pages for more details.


  评论这张
 
阅读(432)| 评论(0)
推荐 转载

历史上的今天

在LOFTER的更多文章

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017