PDA

View Full Version : Remastering



dugstratton
01-21-2004, 01:28 AM
Hi
Just wondering if it is possible to actually get into a KNOPPIX session you are trying to change.

The docs I have seen it looks like you copy it over, boot with another copy of the os run get-apt update. Hunt down config files and change them and then make an image of that.

So is there a way to install KNOPPIX, boot it, install/change to your hearts content and then make live cd from that???

Thanks :twisted:

Desertfox
02-12-2004, 04:18 PM
THATS EXACTLY what im trying to do.
But it wont work.


Anyone can help?
:(

dugstratton
02-12-2004, 06:13 PM
I got this response from another person on this forum. I have not had time to try it yet.

Let me know if you have any luck with it? problems? URL is the key

Hasse



Joined: 18 Dec 2003
Posts: 8

Posted: Sat Jan 31, 2004 10:32 pm

--------------------------------------------------------------------------------
dugstratton wrote:
(I am assuming I can't run KDE while chrooted to do this the normal way? Correct? if not tell me how)
I found this nice URL http://www.stirnimann.com/mystuff/doc/knoppix.txt in this forum a few days ago.

It tells you, step by step, how to remaster Knoppix. Take a special look att 3b and 3c, where you start a chroot:ed X -server!

arkaine23
02-13-2004, 01:23 AM
The easieist way to change the configurations for KDE or other GUI's is-

unpack the KNOPPIX cloop file to your hdd as described

boot a knoppix CD in text mode (knoppix 2)

backup /etc/resolv.conf and /etc/X11/XF86Config-4 and replace them with the ones generated by knoppix

mount your hdd partitions

backup /etc/resolv.conf and /etc/X11/XF86Config-4 and replace them with the ones generated by knoppix

chroot into the unpacked source filesystem, mount proc,

mkdir /home/knoppix
cp /etc/skel/.* /home/knoppix
chown -R knoppix:knoppix /home/knoppix
chmod 755 /home/knoppix
su knoppix
vi ~/.xinitrc (create a simple .xinitrc file to start your graphical environment of choice)
startx

make all the changes you want, you are now in the remastered version of Knoppix you're making.

when done,
as root-
rm -rf /etc/skel
mv /home/knoppix /etc/skel
chown -R root:root /etc/skel


Clean up your temporary stuff, clear apt-get's cache, edit scripts and do any final tasks, then exit chroot and remaster the CD.

Doing it this way, you don't have to xnest. but you do have to be aware of whether the shells you're working in are in the knoppix CD you booted or are chrooted to the filesystem you're working on. Some things are easier to do from outside the chroot, most must be done from inside the chroot'ed filesystem.