Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2356122
  • 博文数量: 609
  • 博客积分: 10061
  • 博客等级: 上将
  • 技术积分: 5920
  • 用 户 组: 普通用户
  • 注册时间: 2008-06-25 08:30
文章分类

全部博文(609)

文章存档

2010年(13)

2009年(39)

2008年(558)

我的朋友

分类: LINUX

2008-09-15 13:56:52

Install VNC under CentOS 5

[1]     Install VNC Server to operate Fedora with GUI remotely from Windows client. VNC is already installed if you already build Desktop Environment. If it's not installed, Install by a command 'yum -y install vnc-server'.

[root@ns ~]# vi /etc/sysconfig/vncservers
 
// line 20: make valid and set as '(diplay number):(user name)' like follwing example

VNCSERVERS="1:cent"
 
// line 21: make valid and remove '-localhost' like below
// And set any screen resolution you like

VNCSERVERARGS[1]="-geometry 1024x768  -nolisten tcp -nohttpd"
 
[root@ns ~]# su - cent
// switch to a user

[cent@ns ~]$ vncpasswd
// set VNC password

Password: // input

Verify: // verify

[cent@ns ~]$ su -

Password:

[root@ns ~]# /etc/rc.d/init.d/vncserver start

Starting VNC server: 1:cent
New 'ns.server-linux.info:1 (cent)' desktop is ns.server-linux.info:1
 
Creating default startup script /home/cent/.vnc/xstartup
Starting applications specified in /home/cent/.vnc/xstartup
Log file is /home/cent/.vnc/ns.server-linux.info:1.log
 
[  OK  ]


[2]     Install VNC viewer on client computer next. Download from the site below to install.
 

 
Start VNC viewer after installing. Then following scrren is shown. Input [(Server's hostname):(display number)] like following example.


[3] Password is required. Input VNC password you set in the section [1].


[4] Done to connect. However, this is very simple interface and it's not useful.



[5]     Well, Change to Gnome DeskTop environmet.

[root@ns ~]# vi /home/cent/.vnc/xstartup
 
#twm &  // bottom: make it comment

exec gnome-session &  // add ( use gnome )
 
[root@ns ~]# /etc/rc.d/init.d/vncserver restart

Shutting down VNC server: 1:cent [  OK  ]
Starting VNC server: 1:cent
New 'ns.server-linux.info:1 (cent)' desktop is ns.server-linux.info:1
 
Starting applications specified in /home/cent/.vnc/xstartup
Log file is /home/cent/.vnc/ns.server-linux.info:1.log
                                 [  OK  ]

  Connect with VNC again. Just changed to Gnome like below.


阅读(1516) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~