免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3034 | 回复: 0
打印 上一主题 下一主题

fedora8的远程桌面的配制 [复制链接]

论坛徽章:
1
15-16赛季CBA联赛之北控
日期:2022-03-04 22:35:50
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-03-30 11:01 |只看该作者 |倒序浏览

 来源: www.linuxdiyf.com 作者:tJbwhy
刚装的fedora8,因为不能在办公桌旁放2台计算机,所以我把一台放到了机房,除了ssh之外,难道不可以想windows一样控制着linux的桌面吗?
看到fedora8本身就有“远程桌面”的选项,我选择了之后不知道该怎么用,在网络上查找部分资料后发现,vnc有forlinux版本的,我之前一直对vnc有个不太好的认识,认为他就是个后台软件、黑客软件。
今天发现这个东西功能也蛮强大的。
下面是我配置vnc的过程:
1:安装vnc
执行命令 yum install vnc-server
安装的过程中提示:
Importing GPG key 0x4F2A6FD2 "Fedora Project " from /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
Is this ok [y/N]: y
Importing GPG key 0xDB42A60E "Red Hat, Inc " from /etc/pki/rpm-gpg/RPM-GPG-KEY
Is this ok [y/N]: y
我全部选择了y。
2:启动vncserver:
[root@localhost ~]# vncserver
You will require a password to access your desktops.
Password:
Verify:
xauth: creating new authority file /root/.Xauthority
New 'localhost.localdomain:1 (root)' desktop is localhost.localdomain:1
Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/localhost.localdomain:1.log
3:编辑xstartup,修改成如下内容:
vi /root/.vnc/xstartup
[root@localhost ~]# vi /root/.vnc/xstartup
# 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" &
#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 -L
Chain 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
结束了。


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/31/showart_511777.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP