SUSE 11远程桌面配置
1.远程桌面配置
SUSE安装时已经默认安装了vncserver
1.1.启动vnc服务
#vncserver start
You will require a password to access your desktops.
Password: <输入远程桌面密码>
Verify: <确认远程桌面密码>
Would you like to enter a view-only password (y/n)? n
TightVNC Server version 1.3.9
Usage: vncserver [<OPTIONS>] [:<DISPLAY#>]
vncserver -kill :<DISPLAY#>
<OPTIONS> are Xvnc options, or:
-name <DESKTOP-NAME>
-depth <DEPTH>
-geometry <WIDTH>x<HEIGHT>
-pixelformat rgb<NNN>
-pixelformat bgr<NNN>
See vncserver and Xvnc manual pages for more information.
启动后将在/root下生成.vnc的目录
1.2.启动一个远程桌面
#cd /root/.vnc
#vncserver :4
New 'X' desktop is oa1:4
Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/oa1:4.log
4表示桌面号,VNC服务使用的端口号与桌面号相关,VNC使用TCP端口从5900开始,对应关系如下:
:1对应的端口号为5901
:2对应的端口号为5902
……
:4对应的端口号为5904
基于JAVA的VNC客户程序Web服务TCP端口从5800开始,对应关系如下:1对应的端口号为5801
……
:4对应的端口号为5804
1.3.中断一个远程桌面
#vncserver –kill :4
1.4.使用远程图形界面
修改/root/.vnc/xstartup,最后一行增加(GNOME、KDE选择一种)gnome-session & #使用GNOME界面
startkde & #使用KDE界面
然后重新启动桌面
#vncserver –kill :4
#vncserver :4
2.系统配置
2.1.关闭高亮显示
/etc/vimrc
syntax on改为syntax off。