Original Page: http://bier.kicks-ass.net/tiki-index.php?page=KnoppixRemastered
Print

Table of contents


Knoppix Remastered


We compiled a new Knoppix 3.6 and Tikiwiki 1.9DR for you. Download mirrors at KnoppixTiki


(Original Page (external link))

Ever wanted to add/remove some things in Knoppix? here (external link) you find a german article that describes how it works. Because this article is in german and some things are not explained best, i tried to create a step by step receipe how to remaster a knoppix CD:

First you need some harddrive space. You'll need around 5GB. Create a build directory and go there. Copy a knoppix iso image somewhere near (or in the build dir).

We setup some directorys:

mkdir knoppix_cd
 mkdir knoppix_fs
 mkdir mountpoint

Mount the knoppix image (you could also mount a knoppix CD in a cdrom drive):


mount -o loop,ro knoppix.iso mountpoint


Copy the knoppix CD:

cp -a mountpoint knoppix_cd
 umount mountpoint

Make it writeable:

chmod -R u+w knoppix_cd

Now we need to uncompress the image. Therefore we need the cloop tools. Download them from developer.linuxtag.net/knoppix/sources (external link). And compile the tools (we do not need the kernel module)

tar -xzf cloop_2.00-1.tar.gz
cd cloop-2.00
make create_compressed_fs
make extract_compressed_fs
mv create_compressed_fs ..
mv extract_compressed_fs ..

Uncompress the image:

./extract_compressed_fs knoppix_cd/mountpoint/KNOPPIX/KNOPPIX > cimage.iso

Copy image contents (the rsync seems to be necessary to avoid duplication of hardlinks):

mount -o loop,ro cimage.iso mountpoint
rsync -Hav mountpoint knoppix_fs

Change something in the knoppix filesystem:

chroot knoppix_fs/mountpoint
mount -t tmpfs none /tmp
mount -t proc none /proc

now you can use all debian packaging tools to add/remove packages, and whatever u want. Keep in mind that the knoppix image is at the limit of a 800MB CD and you have to remove things if you want to add new ones. Remove temporary files and .bash_history things and that. If finished, exit the chroot:

umount /proc ; umount /tmp

Press CTRL-D to exit chroot. Next we create a compressed image:

mkisofs -pad -l -R -U knoppix_fs/mountpoint | ./create_compressed_fs - 65536 > KNOPPIX.new

This step needs large amount of RAM! You can slit the pipe in two parts, but then you need another 2GB harddisk space.

Now we copy the compressed image back to the copy of the knoppix CD:

cp KNOPPIX.new knoppix_cd/mountpoint/KNOPPIX/KNOPPIX

Create a new Knoppix CD image:

mkisofs -l -r -J -b KNOPPIX/boot.img -c KNOPPIX/boot.cat knoppix_cd/mountpoint > knoppix_remastered.iso

Burn it:

cdrecord -v -pad knoppix_remastered.iso

TikiWiki on a Knoppix CD

What do i have to do to get Tikiwiki running at startup of a Knoppix CD:

Install Tiki somewhere. Create the database, fill it, configure your tiki. Go to admin->system and precompile the templates for the languages you want to use. Then

cp -a tiki knoppix_fs/mountpoint/var/www

Copy the mysql database (example: /var/lib/mysql/tiki) to your knoppix filesystem

cp -a /var/lib/mysql/tiki knoppix_fs/mountpoint/var/lib/mysql/tikilive

Make a symlink in yout knoppix fs

cd knoppix_fs/mountpoint/var/lib/mysql
ln -s /tmp/tiki tiki

Make a tiki startscript in knoppix_fs/mountpoint/etc/init.d/tiki
#!/bin/sh
PATH=/bin:/usr/bin:/sbin:/usr/sbin

case "${1}" in
("start")
echo -n "Starting Tikiwiki LiveCD Environment: "
cp -pr /KNOPPIX/var/lib/mysql/tikilive /tmp
mv /tmp/tikilive /tmp/tiki
;;
("stop")
exit 0
;;
("restart" | "force-reload")
"${0}" stop
"${0}" start
;;
(*)
echo "Usage: /etc/init.d/tiki {start|stop|restart}" >&2
exit 3
;;
esac

Automatic startup:


cd knoppix_fs/mountpoint/etc/rc5.d
 ln -s ../init.d/apache S90apache
 ln -s ../init.d/tiki S91tiki
 ln -s ../init.d/mysql S92mysql


Download a ready made tiki-enabled Knoppix-Tiki CD =-


Yeah, just start a gnutella client like BearShare?, Limewire or mutella and search for "knoppix-tiki.iso". The sha1 hash should be "MCLBECC3L7TDXF4LEPOYMSOSMXDAGXS6" and the image is about 692 MB. Share the image in your gnutella client to increase bandwidth!

More download possibilities will follow.

http://lamppix.tinowagner.com/ (external link)


Contributors to this page: redflo216 points  and DennisDaniels908 points  .
Page last modified on Sunday 14 November 2004 21:39:41 CET by redflo216 points .

Search Wiki PageName [toggle]

What theme do you use the most? [toggle]

To help determine the themes to include in the next Tiki release, please indicate what theme you now use (or use most). (Login necessary to vote.)

What theme do you use?
  • Bluegreen
  • Boreal
  • Codex
  • Damian
  • Dblue
  • Default
  • Elegant
  • Fmsc
  • Gemsi
  • Geo
  • Hec
  • Jalist
  • Lesjetesdelencre
  • Moreneat
  • Mose
  • Mozilla
  • Neat
  • Olive
  • Simple
  • Smartiki
  • Subsilver
  • Tceti
  • Tikigod
  • Tikineat
  • Tranquil
  • Trollparty
  • Whitebluegrey
  • (Other)
View Results
(Votes: 70)
Cookies must be allowed to vote

Menu [toggle]

Chatroom [toggle]

Click here to login to the TikiWiki IRC chatroom


Pop ups must be allowed by your browser.

Shoutbox [toggle]

chibaguy1239 points : New themes available to logged-in users: go to your MyTiki user prefs page. :-)
Darkbee50 points : Woohoo, 2.0 is here and it's looking good. Great work ladies and gents!
SEWilco37 points : Today's date is 2008-07-28.
Darkbee50 points : Apparently there was a power outage that caused some down-time.
Darkbee50 points : Has there been problems with the tikiwiki.org site? I haven't been able to get on all morning.
amateurathlete5 points : I have 1.9.10.1 now, should I bother upgrading to 1.9.11 before 2.0 is officially released?
Darkbee50 points : Have I missed an announcement about 1.10 becoming 2.0?
Frodoger2 points : twversion.class.php how to disable? Our tikiwiki don#t has internet access
CodyLoco23 points : @marclaporte: Is this a finished feature in 1.10? I'm running 1.10 on my site: www.clipsharewiki.com
marclaporte6764 points : CodyLoco: coming soon (1.10), yes
Powered by Tikiwiki Powered by PHP Powered by Smarty Powered by ADOdb Made with CSS Powered by RDF powered by The PHP Layers Menu System
RSS feed Wiki RSS feed Blogs RSS feed Articles RSS feed Image Galleries RSS feed File Galleries RSS feed Forums RSS feed Directories