You are on page 1of 3

IP del servidor: 192.168.1.

1
Direccin de red: 192.168.1.0
Direccin broadcast: 192.168.1.255
Mscara de red: 255.255.255.0
apt-get
apt-get
apt-get
apt-get
apt-get
apt-get
apt-get
apt-get
apt-get

install
install
install
install
install
install
install
install
install

isc-dhcp-server
tftpd-hpa
openbsd-inetd
lftp
syslinux
tftp
xinetd
nfs-kernel-server
initramfs-tools

nano /etc/dhcp/dhcpd.conf
allow booting;
allow bootp;
authoritative;
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.10 192.168.1.100;
option broadcast-address 192.168.1.255;
option routers 192.168.1.1;
option domain-name-servers 8.8.8.8;
next-server 192.168.1.1;
filename "/pxelinux.0";
}
nano /etc/default/isc-dhcp-server
INTERFACES="eth0"
service isc-dhcp-server restart
/etc/init.d/isc-dhcp-server restart
nano /etc/inetd.conf
tftp
dgram
pd -s /tftpboot

udp

wait

root /usr/sbin/in.tftpd /usr/sbin/in.tft

En el CLI le damos la siguiente instruccin


update-inetd --enable BOOT
nano /etc/default/tftpd-hpa
RUN_DAEMON="yes"
OPTIONS="-l -s /tftpboot"
TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/tftpboot"
TFTP_ADDRESS="192.168.1.1:69"
TFTP_OPTIONS="--secure"
Creamos esta carpeta asi como esta
mkdir -p /tftpboot/pxelinux.cfg
cp /usr/lib/syslinux/pxelinux.0 /tftpboot

nano /tftpboot/pxelinux.cfg/default
default vesamenu.c32
prompt 0
timeout 300
ONTIMEOUT LinuxMint
menu
menu
menu
menu
menu
menu
menu
menu
menu
menu
menu
menu

rows
5
vshift
6
color border
0 #ffffffff #ee000000 std
color title
0 #ffffffff #ee000000 std
color sel
0 #ffff0000 #85000000 std
color unsel
0 #ffffffff #ee000000 std
color pwdheader
0 #ff000000 #99ffffff rev
color pwdborder
0 #ff000000 #99ffffff rev
color pwdentry
0 #ff000000 #99ffffff rev
color hotkey
0 #ff00ff00 #ee000000 std
color hotsel
0 #ffffffff #85000000 std
resolution
800 600

LABEL LinuxMint
MENU LABEL ^1) Arrancar Linux Mint 16 (CINNAMON) Live
KERNEL linuxmint/casper/vmlinuz
APPEND boot=casper netboot=nfs nfsroot=192.168.1.1:/tftpboot/linuxmint initr
d=linuxmint/casper/initrd.lz splash -copiamos los siguientes archivos
cp
cp
cp
cp

/usr/lib/syslinux/vesamenu.c32 /tftpboot
/usr/lib/syslinux/menu.c32 /tftpboot
/usr/lib/syslinux/chain.c32 /tftpboot
/usr/lib/syslinux/mboot.c32 /tftpboot

mkdir /tftpboot/linuxmint
cd /tftpboot/linuxmint
COPIAR TODOS LOS ARCHIVOS DE LA IMAGEN DE LINUXMINT A /tftpboot/linuxmint
cp -R /media/asolarte/80BC-C8B4/* /tftpboot/linuxmint
mount -o loop /tftpboot/linuxmint/ubuntu-11.10-desktop-i386.iso /mnt/mint/
nano /etc/xinetd.d/tftp
service tftp
{
protocol
= udp
port
= 69
socket_type
= dgram
wait
= yes
user
= nobody
server
= /ucp sr/sbin/in.tftpd
server_args
= /tftpboot
disable
= no
}
Se le asignan los respectivos permisos
chmod -R 777 /tftpboot
chown -R nobody /tftpboot

nano /etc/exports
/tftpboot/linuxmint

192.168.1.0/24(ro,async,no_root_squash,no_subtree_check)

exportfs -av
nano /etc/initramfs-tools/initramfs.conf
BOOT=nfs
/etc/init.d/network-manager stop
stop network-manager
ifconfig eth0 192.168.1.1/24 up
service isc-dhcp-server restart
/etc/init.d/openbsd-inetd restart
/etc/init.d/xinetd restart
/etc/init.d/tftpd-hpa restart

You might also like