Differences between revisions 10 and 11
Revision 10 as of 2008-10-15 23:01:22
Size: 2623
Editor: FrBrGeorge
Revision 11 as of 2008-10-16 23:53:09
Size: 497
Editor: FrBrGeorge
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:

отдельный /srv > 8G
Для скачивания одной странички в HTML:
Line 8: Line 7:
apt-get install tftp-server dhcp-server nfs-server isolinux
[root@server ~]# cat /etc/exports
/srv/boot *(ro,no_root_squash)
[root@server ~]# chkconfig tftp on
[root@server ~]# cat /etc/net/ifaces/eth1/options
[root@server ~]# cat /etc/net/ifaces/eth1/ipv4address
[root@server ~]# chkconfig dhcpd on
[root@server ~]# cat /etc/dhcp/dhcpd.conf
# See dhcpd.conf(5) for further configuration

ddns-update-style none;

subnet netmask {
        option routers;
        option subnet-mask;

        option nis-domain "domain.org";
        option domain-name "domain.org";
        option domain-name-servers;

        filename "pxelinux.0";

        range dynamic-bootp;
        default-lease-time 21600;
        max-lease-time 43200;

[root@server tftpboot]# cat /var/lib/tftpboot/pxelinux.cfg/default
default live
prompt 1
timeout 30

label live
  kernel alt0/vmlinuz
  append initrd=alt0/full.cz fastboot live lang=ru_RU showopts automatic=method:nfs,network:dhcp stagename=livefs

label rescue
  kernel alt0/vmlinuz
  append initrd=alt0/full.cz live fastboot automatic=method:nfs,network:dhcp stagename=rescue

[root@server tftpboot]# sed -i 's/only_from/#only_from/' /etc/xinetd.conf

[root@server tftpboot]# cp /usr/lib/syslinux/pxelinux.0 /var/lib/tftpboot/
[root@server tftpboot]# mkdir /var/lib//tftpboot/pxelinux.cfg
[root@server tftpboot]# cp -a /media/cdrom/syslinux/alt0 /var/lib//tftpboot/

mount -t squashfs -o loop /srv/boot/live /mnt/cdrom/
cp -a /mnt/cdrom/ /srv/boot/livefs

# THIS DOESN'T DO[ root@server tftpboot]# sed -i 's/ --retry-failed/ --subsystem-nomatch=net --retry-failed/' /srv/boot/livefs/etc/init.d/udevd-final
[root@server tftpboot]# chroot /srv/boot/livefs/ /sbin/chkconfig udevd-final off

[root@server tftpboot]# sed -i 's/=ro/=nfsro/' /srv/boot/livefs/etc/init.d/remount_rw
[root@server tftpboot]# cat /srv/boot/livefs/etc/rc.d/rc.local
dhcpcd -p -H eth0

[root@server tftpboot]# chmod +x /srv/boot/livefs/etc/rc.d/rc.local

wget --user-agent="" wget -p -k -E --follow-tags=a,img,link "http://uneex.ru/FrBrGeorge/PspoThickClient?action=print"

Всевозможные черновики

Для скачивания одной странички в HTML:

wget --user-agent="" wget -p -k -E --follow-tags=a,img,link "http://uneex.ru/FrBrGeorge/PspoThickClient?action=print"

FrBrGeorge/Draft (last edited 2009-09-23 09:31:42 by eSyr)