Code Sample |
losetup /dev/cloop[1-8] file.uci mkdir /opt/file mount /dev/cloop[1-8] /opt/file cd /opt/file tar -zvxf user.tar.gz -C / * Notes: cloop1 - cloop8 are available by default in DSL 8.0. Whichever you pick, pick for both. Also, I would suggest picking high when you're doing test-mounts; I don't know how DSL does accounting on uci's file is the name of the .uci extension in question, without the .uci at the end. for example, openoffice.uci mounts itself in /opt/openoffice |
Code Sample |
tar -xzvf httpd-2.0.50.tar.gz |
Code Sample |
cd httpd-2.0.50/ ./configure --help |
Code Sample |
./configure --prefix=/opt/apache2 ...[other options]... make make install Note: no header snafu. Sometimes, you'll have a library, but not the header to go with it. This is especially pertinant in DSL, as much has been removed to make room for functionality. If compilation stalls out on a function or other, go apt-get install or upgrade whatever libs it spits at you. As for the other options portion - you may not want to compile everything in; this method basically compiles apache as a monolith (2.2M with no configuration). I normally just compile in the stripped-down basic modules that I have in my Win32 version (that's what I used first) and live with a statically linked apache. Additionally, if you're going to distribute this extension to anybody, you have to select your architechture as i386 using environment variables. See the man pages for gcc, page 445. |
Code Sample |
mv /opt/apache2/conf/httpd.conf /home/dsl/.httpd scite /opt/apache2/conf/httpd.conf |
Code Sample |
Include "/home/dsl/.httpd" |
Code Sample |
/bin/rm -r /opt/apache2/htdocs |
Code Sample |
root@box:~# du -sh /opt/apache2 26M /opt/apache2 root@box:~# dd if=/dev/zero of=apache2.img bs=1M count=26 26+0 records in 26+0 records out 27262976 bytes transferred in 0.244728 seconds (111401094 bytes/sec) root@box:~# mke2fs apache2.img apache2.img is not a block special device. Proceed anyway? (y,n) Y ... This filesystem will blah blah every 29 mounts or blah blah blah root@box:~# mkdir apache2 root@box:~# mount apache2.img apache2 -o loop root@box:~# cd apache2 root@box:~/apache2# cp -a /opt/apache2/* . root@box:~/apache2# tar -cvzf user.tar.gz -C / /home/dsl/.httpd root@box:~# cd .. root@box:~# umount apache2 root@box:~# create_compressed_fs -b apache2.img 65536 > apache2.uci ....... [10] Block# ........ size 65536 -> ....... [compression ratio ...%, overall ...%] .......... |
Quote |
I don't know how DSL does accounting on uci's |
Quote (Guest @ Sep. 14 2004,08:16) |
if i try your method: create_compressed_fs -b remaster.img 65536 > remaster.ci then when i do a myDSL-load i get wrong: fs type, bad option ,.. and .ci doesnt load but when i do: mount remaster.img /mnt/test -o loop mkisofs -R /mnt/test | create_compressed_fs -b - 65536 > remaster.ci all goes well i think the newer cloop driver check for iso? |