01 > ȸҰ

 
작성일 : 12-06-08 18:20
linux host 컴퓨터 network 환경 설정 하기
 글쓴이 : 이로직…
조회 : 5,825  
1. bootps file 만들기
/etc/xinetd.d/vi bootps 엔터
service bootps
{
disable=no
socket_type= dgram
protocol=udp
wait=yes
user=root
server=/usr/sbin/bootpd
}
2. bootptab file만들기
/etc/vi bootptab
default:\
:hd=/tftpboot:bf=null:\
:sm=255.255.255.0
PXA255_PRO:ht=1:ha=0x123456789abc:tc=.default:ip=192.168.0.25

3. tftp file 만들기
/etc/xinetd.d/vi tftp
service tftp
{
disable= no
socket_type= dgram
protocol= udp
wait= yes
user= root
server= /usr/sbin/in.tftpd
server_args= -s /tftpboot
per_source= 11
cps= 100 2
flags= IPv4
}

4.swat file 만들기
/etc/xinetd.d/vi swat
service swat
{
disable= no
port= 901
socket_type= stream
wait = no
#only_from = 127.0.0.1
user= root
server= /usr/sbin/swat
log_on_failure+= USERID
}

5. host file 만들기
/etc/vi hosts
127.0.0.1localhost.localdomainlocalhost
192.168.0.2note.localdomain
192.168.0.3
192.168.0.4
192.168.0.11
6. exports file 만들기
/etc/vi exports
/nfslocalhost(rw,insecure)
/home/192.168.0.3/20(rw,insecure)
/root/ 192.168.0.3/20(rw,insecure)

7. samba conf 만들기
/etc/samga/ vi smb.conf
# Samba config file created using SWAT
# from UNKNOWN (192.168.0.4)
# Date: 2006/07/15 23:28:05
# Global parameters
[global]
workgroup = HOME
server string = Samba Server
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
unix password sync = Yes
max log size = 0
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = No
username map = /etc/samba/smbusers
printing = nt
[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No
[root]
path = /
writeable = yes
create mask = 0777
directory mask = 0777

8. deamon 실행하기