在CentOS 5 下安装配置VNC
2008-06-03 10:43
369 查看
1. 检查vnc客户端和服务器是否已经安装:
[gavin@centos ~]$ rpm -q vnc vnc-server
package vnc is not installed
vnc-server-4.0-8.1
cent os 5已包含vnc的安装包
2. 将用户名称加入到配置文件:
(注:这里的“用户名”是指linux系统用户的名称)
[gavin@centos ~]# vi /etc/sysconfig/vncservers
#
# Uncomment the line below to start a VNC server on display :1
# as my ????myusername???? (adjust this to your own). You will also
# need to set a VNC password; run ????man vncpasswd???? to see how
# to do that.
#
# DO NOT RUN THIS SERVICE if your local area network is
# untrusted! For a secure way of using VNC, see
# .
# VNCSERVERS="1:myusername"
# VNCSERVERS="1:gavin 2:john" # use the method for more user
VNCSERVERS="1:gavin 2:root 3:root"
# VNCSERVERARGS[1]="-geometry 800x600"
VNCSERVERARGS[1]="-geometry 1024x768"
3. 设置用户gavin的密码
[gavin@centos ~]$ vncpasswd
Password:
Verify:
4. 启动VNC服务
[gavin@centos ~]# /sbin/service vncserver start
Starting VNC server: 1:gavin [ OK ]
5. 修改用户目录下的相关文件
[gavin@centos ~]$ cd ~/.vnc/
[gavin@centos .vnc]$ vi xstartup
#!/bin/sh
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
gnome-session & #set starting GNOME desktop
#startkde & #kde desktop
#twm & #Text interface
6. 重启vncserver
[gavin@centos ~]# /sbin/service vncserver restart
Shutting down VNC server: 1:gavin [ OK ]
Starting VNC server: 1:gavin [ OK ]
7. Windows登陆到VNC Server
启动:vnc-E4_2_8-x86_win32_viewer.exe
输入:server:192.168.1.13:1 (这里,我的VNC服务器在192.168.1.13上,用的是Display1(对应gavin帐号))
Encryption:Let Server Choose(Default)
本文转自
http://blog.csdn.net/Allan8212/archive/2007/11/29/1907182.aspx
[gavin@centos ~]$ rpm -q vnc vnc-server
package vnc is not installed
vnc-server-4.0-8.1
cent os 5已包含vnc的安装包
2. 将用户名称加入到配置文件:
(注:这里的“用户名”是指linux系统用户的名称)
[gavin@centos ~]# vi /etc/sysconfig/vncservers
#
# Uncomment the line below to start a VNC server on display :1
# as my ????myusername???? (adjust this to your own). You will also
# need to set a VNC password; run ????man vncpasswd???? to see how
# to do that.
#
# DO NOT RUN THIS SERVICE if your local area network is
# untrusted! For a secure way of using VNC, see
# .
# VNCSERVERS="1:myusername"
# VNCSERVERS="1:gavin 2:john" # use the method for more user
VNCSERVERS="1:gavin 2:root 3:root"
# VNCSERVERARGS[1]="-geometry 800x600"
VNCSERVERARGS[1]="-geometry 1024x768"
3. 设置用户gavin的密码
[gavin@centos ~]$ vncpasswd
Password:
Verify:
4. 启动VNC服务
[gavin@centos ~]# /sbin/service vncserver start
Starting VNC server: 1:gavin [ OK ]
5. 修改用户目录下的相关文件
[gavin@centos ~]$ cd ~/.vnc/
[gavin@centos .vnc]$ vi xstartup
#!/bin/sh
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
gnome-session & #set starting GNOME desktop
#startkde & #kde desktop
#twm & #Text interface
6. 重启vncserver
[gavin@centos ~]# /sbin/service vncserver restart
Shutting down VNC server: 1:gavin [ OK ]
Starting VNC server: 1:gavin [ OK ]
7. Windows登陆到VNC Server
启动:vnc-E4_2_8-x86_win32_viewer.exe
输入:server:192.168.1.13:1 (这里,我的VNC服务器在192.168.1.13上,用的是Display1(对应gavin帐号))
Encryption:Let Server Choose(Default)
本文转自
http://blog.csdn.net/Allan8212/archive/2007/11/29/1907182.aspx
相关文章推荐
- CentOS 7 安装配置 VNC 详解
- CentOS6.4安装与配置VNC
- Centos下VNC的安装和配置
- CentOS 6安装和配置VNC
- CentOS 6.4安装和配置VNC服务
- CentOS_6.5_x64:VNC安装配置
- CentOS7下安装配置vncserver/vncviewer
- centos 7下安装和配置VNC
- CentOS 7.0 上安装和配置 VNC 服务器 + CentOS 7.0 上安装图形界面
- 怎样在 CentOS 7.0 上安装和配置 VNC 服务器
- CentOS VNC 安装与配置,方便进行运程桌面连接
- 怎样在 CentOS 7.0 上安装和配置 VNC 服务器
- Centos5.6 VNC安装配置
- CentOS 7.0 上安装和配置 VNC 服务器
- CentOS下VNC配置和安装
- Centos6.8安装并配置VNC
- CentOS6下VNC的安装与配置
- centos配置安装vnc
- CentOS6.5下安装配置VNC
- CentOS 7.0 上安装和配置 VNC 服务器