ubuntu 14.04 lxde + tightvncserver

Ref:http://vandorp.biz/2012/01/installing-a-lightweight-lxdevnc-desktop-environment-on-your-ubuntudebian-vps/#.VyCPOHVSuko


Suppose that, you have installed lxde environment. (lxde, lxde-common, lxde-core, lxde-icon-theme)


Step 1,  install tightvncserver

aptitude install tightvncserver

Step 2, Start VNC to create config file

tightvncserver :1


Step 3 , Then stop VNC


tightvncserver -kill :1


Step 4,  Edit config file to start session with LXDE:


vim  ~/.vnc/xstartup   (该文件可以删除,下次运行tightvncserver :1时,系统会自动给创建一个标准的这样的文件。但是如果该文件存在,下次运行tightvncserver :1时,该命令会直接运行该文件里的脚本。)


Step 5, Add this at the bottom of the file:
lxterminal &
/usr/bin/lxsession -s LXDE &


Step6,  Restart VNC

tightvncserver :1


Notes:

If want to use xfce4 not lxde, you only need to modify step 5 as following(Add this at the bottom of the file:):

xfce4-session
x-sesion-manager & 
xfdesktop & 
xfce4-panel & 
xfce4-menu-plugin & 
xfsettingsd & 
xfconfd &
xfwm4 &

===========================

Client:

how  to connect this vnc server:

For windows:

run "mstsc"  --> input IP --->  Module: vnc-any , IP is your vnc server ip, port : 5901,  ---> Success!

For linux:

$ remote-viewer vnc://$IP:5901

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值