5 explains how to setup a networked computer acting as dhcp/pxeboot/nfsroot fully
6 automated installation server to automate installing your favorite hdw-linux
19 1) install mnimal nfsroot binaries
21 vi Config [enter default as a target, specify arch*]
23 note: default target is enough. you dont need to specify fai-server.
24 we are just going to install the nfsroot which will automate
25 the install process. fai-server is actually the target you will
26 need as a running system to have pxeboot/nfsutils and stuff.
28 note: you might want to fetch hdw binaries from a mirror.
29 edit your /etc/hdw-get.conf file.
31 ./scripts/Create-FAI <nfsroot>
33 where <nfsroot> is the directory to install the fairoot.
35 2) edit the following files to match your needs, and restart services
40 /tftpboot/pxelinux.cfg/{default,*}
42 (have a look at chapter "fai server configuration")
44 note: again you might want to use a mirror. edit hdw-get.conf, but make
45 sure it is the one from fairoot.
47 3) adapt configs in ./fai (see chapter "fai config files")
49 4) pxeboot your install candidates. this is actually not fully
52 - type "fai" on pxeboot prompt
53 - after first bootup, use cfdisk to partition your harddisk
54 - touch a disk_ready file in configuration space
55 (after using cfdisk, sync to disk file!)
56 - reboot and finaly wathc your target system to get hdw'ed :)
58 5) login, build a new kernel. copy new bzImage to /boot/vmlinuz_hdw
59 and run lilo again. reboot and enjoy! good luck.
65 config files reside in 1) ./fai/config/<client_ip>/ and 2) ./fai/files/
70 - the files reside in a subdirectory, which is simply the
71 clients ip address, as different clients may need different
77 disk file is used to determine the partition layout and
78 used harddisk. the format: (example, its intuitive!)
86 packages file contains packages to get installed. you
87 may use ./scripts/Helper -create_dist_files to create
88 one. make sure that all the packages are available on
89 the mirror, otherwise the fai install routine will
90 break. hint: switch the partitions to "preserve" and
91 hdw-get will not install already installed packages
96 - files called DEFAULT in a special directory will be copied to
97 every client to the file of its dirname.
98 - files named like a clients ip address will be only copied to
99 that client (again, the file will be the dirname)
103 ./fai/files/etc/X11/XF86Config/DEFAULT will be copied to all
104 clients as /etc/X11/XF86Config file.
107 fai server configuration
108 ------------------------
110 there are several files you need to hack. here we go:
114 file: /etc/dhcpd.conf
116 examples rule, have a look at the configuration for my fai
120 option routers 192.168.10.10;
121 option domain-name-servers 192.168.10.50, 194.25.134.203;
123 fixed-address 192.168.10.80;
124 hardware ethernet 00:50:8b:cb:8e:d2;
127 next-server hackstation; # the fai server
128 server-name hackstation;
129 filename "pxelinux.0";
133 - tftpboot (you will need tftp-hpa as tftpserver)
135 the scripts prepared a working fai config file at
136 /tftpboot/pxelinux.cfg, just add a symbolic link of your clients
137 ip address (in hex, use: gethostip) pointing to fai.
138 ofcourse you need to have the package syslinux installed.
144 the scripts added export entries. just substitute "foobar" to
145 the name or ip address of your fai clients.
149 file: /etc/inetd.conf
151 make sure the tftpboot line is uncommented. if you have problems
152 of tftpd switching to user nobody google for solutions. if you
153 are too lazy substitute "nobody" by "root in inetd.conf. this
154 is dangerous though, you have been warned.
156 note: restart all the mentioned services.
161 contact me! -> http://www.hackdaworld.dyndns.org/contents/contact/
162 email: hackbard@hackdaworld.dyndns.org
163 irc: irc.hackdaworld.dyndns.org - #hackdaworld
168 good luck now, you are own your own! enjoy hdw. :)