Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (85) </ ... 69 70 71 72 73 [74] 75 76 77 78 79 ... >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: ReMastering HOWTO for DSL, Also for newbies and other enthusiasts< Next Oldest | Next Newest >
un-master Offline





Group: Members
Posts: 19
Joined: April 2007
Posted: April 26 2007,13:47 QUOTE

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.
Back to top
Profile PM 
un-master Offline





Group: Members
Posts: 19
Joined: April 2007
Posted: May 02 2007,05:20 QUOTE

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
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: May 02 2007,05:50 QUOTE

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.
Back to top
Profile PM 
un-master Offline





Group: Members
Posts: 19
Joined: April 2007
Posted: May 02 2007,06:50 QUOTE

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.
Back to top
Profile PM 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: May 02 2007,10:21 QUOTE

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.
Back to top
Profile PM 
422 replies since April 14 2004,19:11 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (85) </ ... 69 70 71 72 73 [74] 75 76 77 78 79 ... >/
reply to topic new topic new poll
Quick Reply: ReMastering HOWTO for DSL

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code