Other Help Topics :: ReMastering HOWTO for DSL



Oops, again that was a typo in the post and not what I was running. I did use create_compressed_fs.  My problem with that post is that I am using VMware, and I do not have VMware Tools installed, and as such I cannot copy/paste between virtual machines. I entered the command in the post by hand.  I edited/corrected the post above.
I'm still working on this (but not posting every 5 hours) and it is going well. My problem with mkisofs went away, when I retraced my steps and recreated the dev environment. mkisofs creates a KNOPPIX image that I insert into the ISO image (using ISOMASTER) and it will boot. The programs I added with apt-get install are present and run.

I  patched the kernel with the netfilter patch utility just fine, and saw added choices in the kernel config, Networking Options -> Netfilter Configuration. I can compile a test kernel and the config runs with no errors, I get a new vmlinuz-2.4.26 image in /boot.
Code Sample
make menuconfig (and load the existing .config file)
make dep
make clean
make bzImage
make install
I was a little confused on using make mrproper before the above steps, as that seemed to remove the old .config file (I hoped to start with the existing DSL kernel config, then remove things).

My problem now seems to be installing iptables from source. I had originally installed iptables with apt-get, but the www.netfilter.org docs say that you should compile it against the new kernel image after it's patched. I removed iptables with apt-get remove, got the iptables source and tar -zxvf in /usr/src. The www.netfilter.org instructions say:
Once your new kernel is installed, you can go ahead and compile and install the ``iptables'' package, from the `userspace/' directory as follows :
# make && make install

My vmlinuz-2.4.26 is in /boot, so I proceed as suggested in the INSTALL file:
Code Sample
# cd /usr/src/iptables-1.3.6
# make KERNEL_DIR=/boot
Extensions found:
cc -O2 -Wall -Wunused -I/boot/include -Iinclude/ -DIPTABLES_VERSION=\"1.3.6\"  -D_UNKNOWN_KERNEL_POINTER_SIZE -fPIC -o extensions/libipt_ah_sh.o -c extensions/libipt_ah.c
make: cc: Command not found
make: *** [extensions/libipt_ah_sh.o] Error 127

This make: cc: error is what is puzzling me now. I think it means that gcc is not installed (or perhaps more accurately, it cannot find it). gcc is installed, and should be available:
Code Sample
#  which gcc
/usr/bin/gcc
What am I missing here? It looks like everything should be in place for this to work.

Once this is working, should I just point the default entry in /boot/grub/menu.lst to the /boot/vmlinuz-2.4.26 image, or will I need to make changes in /boot/minirt24.gz
thx

I thought DSL was netfilter/iptables capable out-of-box ?

Anyways, you can link cc to gcc
Code Sample
# cd /usr/bin
# ln -s gcc cc

or probably set CC=gcc
Code Sample
# export CC=gcc

though this might seem a bit off-topic.

Great, thanks for the tip! I wondered if I should have to symlink something, since it was there but not finding it.

I am wanting to add some custom kernel modules to iptables, so it looks like I need to compile that as well. And apt-get install was so easy...

I will try it tomorrow, it's late and I have to sleep.
Thanks again.

Quote
# cd /usr/src/iptables-1.3.6
# make KERNEL_DIR=/boot

Maybe you need "./configure --prefix=/usr" after the first line?

Quote
Once this is working, should I just point the default entry in /boot/grub/menu.lst to the /boot/vmlinuz-2.4.26 image, or will I need to make changes in /boot/minirt24.gz

When the boot process pauses at the DSL "splash" screen, you can just enter "vmlinuz-2.4.26" <cr> where you would normally enter boot options and your new image will load.

Next Page...
original here.