国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 系統 > Linux > 正文

用VNC遠程控制Fedora8桌面

2024-08-28 00:14:21
字體:
來源:轉載
供稿:網友
安裝了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 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

結束了。
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 内江市| 陵川县| 政和县| 唐河县| 河曲县| 呼玛县| 吉木萨尔县| 攀枝花市| 凌海市| 西林县| 宁陵县| 雷山县| 保靖县| 两当县| 曲水县| 商洛市| 大冶市| 洞头县| 扎兰屯市| 凤台县| 山东| 响水县| 隆子县| 泰兴市| 蓬溪县| 突泉县| 五大连池市| 射阳县| 杭锦旗| 宜兴市| 孝昌县| 赤壁市| 郎溪县| 松阳县| 凤城市| 宁化县| 兰考县| 正宁县| 沙河市| 乌海市| 临猗县|