




************ [[CCoommmm]] ̣  ************
GGrriiggoorryy MMiilleevv _w_e_e_k_ ___ _a_l_t_l_i_n_u_x_._r_u
  27 16:09:20 MSD 2003
    *  : _[_C_o_m_m_]_ __________ ________
    *  : _[_C_o_m_m_]_ ____________ __ _N_T_/_2_0_0_0_ _______ __ _s_a_m_b_a_3_/_2_._2_._8
    * ,,  :: _[_ _____ _] _[_ __________ _] _[_ _____ _] _[_ _______ _]
===============================================================================
>>>>> "Wiener" == Wiener  <_u_h_g_n_e_t_ ___ _y_a_n_d_e_x_._r_u> writes:

    Wiener>    ̣   ... xinitd
    Wiener>   tftpd...  xinitd   
    Wiener>   ...  tftpd  bootpd  
    Wiener> ̣   - got fragmented packege. reconfigure
    Wiener> server...   ޣ   xinitd     
    Wiener> ...?!    bootpd  dhcpd ( 
    Wiener>    ) ?!   ...



,       + ,   KERNEL
IP autoconfig+DHCP, NFS    + nfsroot.


cp /boot/vmlinuz /var/lib/tftpboot/linux
cp /usr/lib/syslinux/pxelinux.0 /var/lib/tftpboot/

mkdir -p /var/lib/tftpboot/pxelinux.cfg
cat >/var/lib/tftpboot/pxelinux.cfg/default <<EOF
KERNEL linux
DEFAULT linux
APPEND nfsroot=$SERVER_IP:/<nfs_root_dir>
IPAPPEND 1
EOF

cat >/etc/dhcpd.conf <<EOF
not authoritative;
ddns-update-style none;
default-lease-time         21600;
max-lease-time             21600;
use-host-decl-names        on;
option domain-name         "mydomain";
option domain-name-servers $SERVER_IP;
option routers             $ROUTER_IP;
option subnet-mask         $SUBNET_MASK;
option broadcast-address   $BCAST;

allow booting;
allow bootp;
subnet <$subnet ex: 192.168.0.0> netmask 255.255.255.0 {
    range <$ip_from ex: 192.168.0.100> <$ip_to ex:192.168.0.200>;
    filename "pxelinux.0";
}
EOF

cat >/etc/exports <<EOF
/<nfs_root_dir> *(ro,no_root_squash,sync,insecure)
EOF

subst "s|\(.*server_args.*=\).*|\1 -u tftp -s $TFTPDIR -r blksize|" /etc/
xinetd.d/tftp
subst "s|\(.*only_from.*=\).*|\1 127.0.0.1 <$subnet ex: 192.168.0.0>|" /etc/
xinetd.conf


chkconfig tftp on
service xinetd restart
service dhcpd start
service portmap start
service nfs start
exportfs -a




+--------------------------------------------------------+
Grigory Milev	mailto:_w_e_e_k_ ___ _a_l_t_l_i_n_u_x_._r_u
ALT Linux Team	_h_t_t_p_:_/_/_w_w_w_._a_l_t_l_i_n_u_x_._r_u
+--------------------------------------------------------+
Life too beautiful and interesting. Don't worry, be happy.
-----------   -----------
      ...
     : 
     : application/pgp-signature
  : 188 
: 
Url     : /pipermail/community/attachments/20030827/5ec08ca1/attachment.bin

===============================================================================
    *  : _[_C_o_m_m_]_ __________ ________
    *  : _[_C_o_m_m_]_ ____________ __ _N_T_/_2_0_0_0_ _______ __ _s_a_m_b_a_3_/_2_._2_._8
    * ,,  :: _[_ _____ _] _[_ __________ _] _[_ _____ _] _[_ _______ _]
===============================================================================
__________ ___________ __ _______ _________ _C_o_m_m_u_n_i_t_y
