安装了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-fedora
Is this ok [y/N]: y
Importing GPG key 0xDB42A60E “Red Hat, Inc <security@redhat.com>” 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 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 -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
结束了。
用VNC远程控制Fedora8桌面
转载请注明出处:服务器评测 » 用VNC远程控制Fedora8桌面
相关推荐
- PLiKhost – 可靠且经济实惠的专用服务器 – 雅加达、新加坡、美国、德国
- *💥 [促销] DARKVPS – 高级裸机 RDP 15% 经常性折扣 – WHT 独家💥
- 热卖:Intel Xeon E50-3 可享受 1230% 的折扣 — Amanah Tech 的 0 个设置、免费 /29 个 IP
- 专用服务器仅在 69.99 美元/月|2xE5-2697V3|32GB DDR4 内存|960 GB NVME|1Gbps DDOS
- *存储服务器 48 TB 仅 65 美元/月 |120 TB 和 10 Gbps 仅 169 美元/月 |NetDynamics 有限责任公司
- 凉存储服务器 48 TB 仅 65 美元/月 |120 TB 和 10 Gbps 仅 169 美元/月 |NetDynamics 有限责任公司
- 🔥托管 cPanel 专用服务器 – 英国 |新加坡 |美国🔥免费 cPanel ★ WHMCS ★ Softaculous
- *██ 井喷式特卖!██ AMD RYZEN 7 █ 128G RAM █ 1TB NVMe █ IPMI █ /24 IPv4 ██ 24 美元起
服务器评测





