CentOS 6.3上配置VNC远程桌面链接

一、U盘安装CentOS 6.3 html

二、配置开启sshd session

   service sshd start ssh

   配置开启自启动 chkconfig sshd on tcp

   chkconfig 命令说明 spa

三、安装时添加的用户链接ssh后配置VNC .net

   0、建立用户 useradd moyo server

   一、vi /etc/sysconfig/vncservers htm

       VNCSERVERS="1:moyo" ip

       VNCSERVERARGS[1]="-geometry 1024x768" get

       PS 配置多个用户使用空格间隔,如:"1:moyo 2:client",并在下面添加一条VNCSERVERARGS[2]的属性

       PS 设置属性 VNCSERVERARGS[*] 能够针对每一个用户

   二、su moyo

       vncpasswd  生成链接VNC的密码

   三、service vncserver start 启动服务

       会提示 New '*:1 (USERNAME)' desktop is *:1

           那个数字 1 是桌面号,要记住 ,VNC链接时会须要

   四、编辑 vi /home/moyo/.vnc/xstartup

           注释掉最后一行的 twm & ,添加一行 gnome-session &

           编辑后为

               xsetroot -solid grey

               xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &

               #twm &

               gnome-session &

   五、chkconfig vncserver on 开机自启动

   六、下载 TigerVNC http://sourceforge.net/projects/tigervnc/files/tigervnc/

            启动 VNC Viewer

           输入 CentOS的IP地址:桌面号,好比 192.168.1.121:1

           而后输入 moyo 的密码

 

   七、防火墙配置 

       vi /etc/sysconfig/iptables

       添加

       -A INPUT -m state --state NEW -m tcp -p tcp --dport 5901:5910 -j ACCEPT

 

   八、Remote 界面没法开启防火墙配置程序  system-config-firewall

       解决 http://lists.fedoraproject.org/pipermail/users/2011-January/389884.html

相关文章
相关标签/搜索