2024年6月11日发(作者:)
Vnc 服务器的安装
VNCServer 配置 及Vncview的使用
1、vncserver服务的启动
redhat 及fedora 一般都自动安装了vncserver了 只要在服务列表中选中启动一下
就可以了
2、vncserver的配置
通过编辑文件$HOME/.vnc/xstartup来启动你喜欢的窗口管理器。使用startkde &
来启动KDE,使用gnome-session &来启动GNOME,fvwm2 &来启动FVWM2 。下
面是一个例子
#####################################################
#!/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
#startkde
#twm &
##########################################################
3:[root@test1 ~]# cat /etc/sysconfig/vncservers
# The VNCSERVERS variable is a list of display:user pairs.
#
# Uncomment the lines below to start a VNC server on display :2
# as my 'myusername' (adjust this to your own). You will also


发布评论