1 # hdw - linux INSTALL file
3 this is a short introduction on how to install hdw-linux. you should have build
4 your hdw distro already or at least have the hdw-linux sources installed to use
5 the hdw-get script to install from precompiled binaries.
6 it is supposed to work at least for me. though this is dev and may hurt your
7 baby, be warned. i mean it!
9 there are two possibilities for installation. the first one assumes you have
10 build your hdw distro and are ready to rock. the second assumes that you have
11 created/got the binarie tarballs and want to install them using hdw-get. mention
12 that hdw-get may fetch the binaries from a http/ftp server too. i keep trying to
13 offer the binaries of the latest hdw development version on my site.
14 the third step explains how to configure your installed system and make it ready
19 1. way - hdw-distro ready to rock
20 ---------------------------------
22 in case your hdw-build directory alreday has been mounted on a seperated
23 partition you may skip the following and read on at chapter 'final steps'.
24 otherwise copy over the hdw system to your target partition.
28 mke2fs <target partition>
29 mount <target partition> /mnt/hdw-target
31 umount $hdw_build_dir/dev
32 umount $hdw_build_dir/proc
33 cp -a $hdw_build_dir/* /mnt/hdw-target
35 (where /mnt/hdw-target is the mountpoint the target partition was mounted to)
40 if you didnt build and create the hdw distro by your own, make sure you have the
41 hdw-get script present which can be found in the hdw-linux sources. the way of
42 installation differs whether you have the binaries on your host or if you want
43 to download them via network/internet.
45 binaries exist on local host
46 ----------------------------
47 in that case just do the following:
51 mke2fs <target partition>
52 mount <target partition> /mnt/hdw-target
53 (feel free to create more partitions, e.g. for usr, var and stuff)
55 for i in /point/to/binaries/*/*.tar.bz2; do
56 hdw-get install /mnt/hdw-target $i
59 binaries from network/internet
60 ------------------------------
61 if you want to fetch them from the internet you need to configure
62 hdw-get. after that you are able to download the binaries which get
63 installed afterwards. please notice that there is currently just 586
64 optimized binaries on my server. feel free to add mirrors and contact
66 as we dont have the sources on our local computer we need Helper script
67 to figure out what we are going to install (also available in the hdw
69 you will need wget installed for hdw-get to work!
73 cat > /etc/hdw-get.conf << EOF
74 net_addr="http://hackdaworld.dyndns.org/download"
75 # note that there doesnt exist binaries of all versions/archs
77 hdw_arch="ia32" ; hdw_arch_opt="i586"
80 . misc/hdw-tools/hdw-get install /mnt/hdw-target 00-dirtree
82 ./scripts/Helper -show buildorder $i | grep -v '^#' >> foobar
84 cat foobar | while read a b c; do
85 . misc/hdw-tools/hdw-get install /mnt/hdw-target $c
92 chroot to your new build system and compile a new kernel (default optimized for
97 chroot /mnt/hdw-target /bin/bash \
98 PATH="/sbin:/bin:/usr/sbin:/usr/bin" --login
101 (make sure to always enable devfs support!)
102 make dep bzImage modules modules_install
104 yo may want to set a root password.
109 (type your password, yes, type it 2 times :)
111 leave the chroot (beside you are not installing from rescue disks) and make the
117 cp /mnt/hdw-target/usr/src/linux/arch/i386/boot/bzImage \
123 have a look at the config files in /mnt/hdw-target/etc/* and adjust to your
124 needs. reboot then - good luck! ;)
134 - visit: irc.hackdaworld.dyndns.org, #hackdaworld
135 - visit: http://www.hackdaworld.dyndns.org/contents/mailing-list/
136 - visit: www.linuxfromscratch.org, www.linuxdoc.org, www.rocklinux.org ;)