Suse下網(wǎng)絡(luò)配置
一、FTP配置
建議使用vsftp,如果使用了pure-ftpd,需要屏蔽掉pure-ftpd服務(wù)。
(1)Root用戶執(zhí)行yast2---》network services--》network services (inetd)
將/usr/sbin/pure-ftpd 和/usr/sbin/vsftpd
分別將pure-ftp的狀態(tài)置為off,vsftpd的狀態(tài)置為on,然后單擊按鈕,修改完成。
(2)vi /etc/vsftpd.conf 注釋掉下面的四項(xiàng)
#write_enable=YES
#local_enable=YES
#ascii_upload_enable=YES
#ascii_download_enable=YES
(3)vi /etc/ftpuser 將root用戶注釋掉
(4)重啟網(wǎng)絡(luò)服務(wù):/etc/init.d/xinetd restart
二、Telnet設(shè)置
(1). 用vi命令編輯/etc/hosts.deny文件,放開telnet登錄權(quán)限控制,
# vi /etc/hosts.deny:
在ALL: ALL 行前加“#”號(hào)注釋,注銷該行。
(2). 用vi命令編輯/etc/hosts.allow文件,放開root用戶登錄權(quán)限控制:
添加一行ALL : ALL
(3). 用vi命令編輯/etc/xinetd.d/telnet文件,放開telnet:
用”#”注銷disable=yes,或者修改為 disable=no
(4). 命令編輯/etc/pam.d/login文件,放開root用戶登錄權(quán)限控制,
# vi /etc/pam.d/login:
在auth required /lib/security/pam_securetty.so行前加“#”號(hào)注釋,注銷該行。
(5). 啟動(dòng)xinetd服務(wù),
#/etc/init.d/xinetd stop
#/etc/init.d/xinetd start
三、xmanager配置
1. /etc/X11/xdm/Xaccess 文件,去掉這行的注釋。
# * #any host can get a login windows
――變成
* #any host can get a login windows
2. /etc/X11/xdm/xdm-config 文件,注釋掉這一樣。
"Display Manager .Requestport 0"
3./etc/opt/gnome/gdm/gdm.conf文件,[xdmcp]部分,把Enable 改為 true 去掉#Port=177的注釋
4. /etc/opt/kde3/share/config/kdm/kdmrc文件,[Xdmcp]部分,把enable 改為 true 去掉#Port=177的注釋
5.檢查 /etc/inittab 修改運(yùn)行級(jí)別為5 (X11) ,如果為3的話,你看到的將不是桌面,而是命令行窗口。
init 0(halt,不要將其設(shè)置為系統(tǒng)的initdefault)
init 1(single user mode,單使用者模式)
init 2(multiuser,without nfs,多用戶模式,不帶NFS)
init 3(Full multiuser mode,多用戶模式,帶NFS)
init 4(unused,保留)
init 5(X11,圖形界面多用戶模式)
init 6(reboot,不要將其設(shè)置為系統(tǒng)的initdefault)
id:5:initdefault:
6. 關(guān)閉防火墻
修改防火墻配置文件/etc/sysconfig/ipchains可能是/etc/sysconfig/iptable,
在文件頭部加入如下內(nèi)容,
# If you want to use GNOME/KDE, add the following line.
-A input -p udp -s 0/0 -d 0/0 177 -j ACCEPT
7. reboot
連接:
Xmanager同網(wǎng)段打開Xmanager-broadcast,跨網(wǎng)段在Xbrowser 中輸入IP 即可。
使用Exceed 同一網(wǎng)段XDMCP使用broadcast模式(可自動(dòng)發(fā)現(xiàn)主機(jī)),跨網(wǎng)段使用query。
XManager登錄SuSE的xWindow,root用戶不能登錄,其他用戶都可以
1./etc/sysconfig/displaymanager里有關(guān)root登錄的項(xiàng)目需要設(shè)置---OK
將 DISPLAYMANAGER_ROOT_LOGIN_REMOTE="no"
改為 DISPLAYMANAGER_ROOT_LOGIN_REMOTE="yes"
2、新建文件/etc/rc.config,添加下面一行:ROOT_LOGIN_REMOTE="yes"。
新聞熱點(diǎn)
疑難解答
圖片精選