ubuntu install vnc

Today I wiil tell you how to install the vnc in ubuntu

First I must have the vnc software.

$ sudo apt-get install vnc4-common vnc4server 

And next , set the password for your own vnc4server

$ vncpasswd  

And next,test you vnc is ok

  1. $ vncserver :1  
  2. $ vncserver -kill :1 

And next,copy you xsession for your vnc$ cp /etc/X11/Xsession ~/.vnc/xstartup 

ha,the last step,start your vnc with the geometry parameter .$ vncserver -geometry 1280x800 :1 

Good ,you start the vnc in your ubuntu.

猜你喜欢

转载自chenhailong.iteye.com/blog/1975875