CD disc boot ,press [tab]
[e]
select 2th item.
[e]
Add string as below:
vga=791 noreplace-paravirt [enter]
[b]
//---
adjuest boot parameter for VGA, time-zone. off firewall
add nfs,samba,telnet,tftp
//---adjuest time-zone 時間不準 沒有和主電腦同步
login as "root"
\system\Administration\Date&Time
page of Time Zone
uncheck [System clock uses UTC]
//---adjuest boot parameter for VGA
gedit /etc/grub.conf
add below string at end of last 2th line
vga=791 noreplace-paravirt
//---off firewall
\system\administration\Firewall
\system\administration\SELinux Administration
system default enforcing mode = disable
\system\administration\server,把iptables及ip6tables都disable及stop
reboot
不然samba會出現NT_STATUS_HOST_UNREACHABLE的錯誤
telnet,tftp,nfs連不進去
//---
保留yum 所下載的檔案,需要修改 /etc/yum.conf 檔案 keepcache=1
/var/cache/yum/fedora/packages
//---add nfs
yum -y install nfs*
yum -y install system-config-nfs
\system\Administrator\NFS
\Add
/home/cat
192.168.123.*
[.]Read/Write
[ ]Treat remote root user as local root
test :
showmount -e 127.0.0.1
mount -t nfs 192.168.123.xx:/home/cat /mnt/nfs -o nolock -o proto=tcp
//---add telnet
yum -y install telnet-server
vi /etc/xinetd.d/telnet
disable=no
service xinetd restart
test:
telnet 127.0.0.1
//---add tftp
rpm -ivh xinetd
rpm -ivh tftp
rpm -ivh tftp-server
or
yum -y install xinetd
yum -y install tftp*
gedit /etc/xinetd.d/tftp
disable = no
server_args = -c -s /tftpboot
mkdir /tftpboot
chmod 777 /tftpboot/
/etc/init.d/xinetd restart
test:
tftp localhost
put 1.txt
get1.txt
or
tftp -p -l file_in_local.txt 192.168.123.xx
tftp -g -r fine_in_server.txt 192.168.123.xx
//---add samba
yum -y install samba*
yum -y install system-config-samba
vi /etc/samba/smb.conf
workgroup = WORKGROUP
host allow = 127. 192.168.123.
[public]
comment = Public Stuff
path = /home/cat
public = yes
writable = yes
browseable = yes
smbpasswd -a cat
/etc/init.d/smb restart
test:
testparm
testparm /etc/samba/smb.conf localhost 192.168.0.3
(使用 /etc/samba/smb.conf 設定檔測試 192.168.0.3 這台用戶可否連線到 localhost)
smbclient -L 192.168.123.2 -U cat
smbclient //192.168.0.2/public -U 'cat%123456'
mount -t cifs -o password="123456",username="cat",workgroup="WORKGROUP" //192.168.123.152/public /mnt/smb
//---start service
#! /bin/sh
/etc/init.d/xinetd restart
/etc/init.d/nfs restart
/etc/init.d/smb restart