用VNC远程控制Fedora8桌面

安装了Fedora8,由于不能在办公的地方放两台电脑,因此我把其中一台放到了机房,除了ssh之外,难道不可以象windows一样远程控制着Linux的桌面吗?看到Fedora8本身就有“远程桌面”的选项,我选择了之后不知道该怎么用,在网络上查找部分资料后发现,vnc有forlinux版本的,我之前一直对vnc有个不太好的认识,,认为他就是个后台软件、黑客软件。今天发现这个东西功能也蛮强大的。下面是我配置VNC的过程:1:安装vnc执行命令 yum install vnc-server安装的过程中提示:Importing GPG key 0x4F2A6FD2 “Fedora Project <fedora@RedHat.com>” from /etc/pki/rpm-gpg/RPM-GPG-KEY-fedoraIs this ok [y/N]: yImporting GPG key 0xDB42A60E “Red Hat, Inc <security@redhat.com>” from /etc/pki/rpm-gpg/RPM-GPG-KEYIs this ok [y/N]: y我全部选择了y。2:启动vncserver:[root@localhost ~]# vncserverYou will require a password to access your desktops.Password:Verify:xauth: creating new authority file /root/.XauthorityNew ‘localhost.localdomain:1 (root)’ desktop is localhost.localdomain:1Creating default startup script /root/.vnc/xstartupStarting applications specified in /root/.vnc/xstartupLog file is /root/.vnc/localhost.localdomain:1.log3:编辑xstartup,修改成如下内容:vi /root/.vnc/xstartup [root@localhost ~]# vi /root/.vnc/xstartup # Uncomment the following two lines for normal desktop:unset SESSION_MANAGERexec /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 80×24+10+10 -ls -title “$VNCDESKTOP Desktop” &#twm &配制iptables:[root@localhost ~]# iptables -I INPUT 1 -p TCP –dport 5901 -j ACCEPT[root@localhost ~]# iptables -I INPUT 1 -p TCP –dport 5801 -j ACCEPT查看iptables内容:[root@localhost ~]# iptables -LChain INPUT (policy ACCEPT)target prot opt source destination ACCEPT tcp — anywhere anywhere tcp dpt:5801 ACCEPT tcp — anywhere anywhere tcp dpt:5901 不要忘记保存service iptables save结束了。

漫无目的的生活就像出海航行而没有指南针

用VNC远程控制Fedora8桌面

相关文章:

你感兴趣的文章:

标签云: