remastering


Forum: HD Install
Topic: remastering
started by: charleswong

Posted by charleswong on May 06 2004,07:09
Hi,

I'm trying further stripped down Damn Small Linux by removing all X server and clients and all related X stuff. Yes, console mode is enough.

I follow the steps in Knoppix remastering howto: < http://www.knoppix.net/docs/index.php/KnoppixRemasteringHowto >

First I remove unwanted package by issueing commands: apt-get remove and dpkg -P.

After all, I issued this command: mkisofs -R -U -V "KNOPPIX.net filesystem" -P "KNOPPIX www.knoppix.net" -hide-rr-moved -cache-inodes -no-bak -pad /mnt/had1/knx/source/KNOPPIX | nice -5 /usr/bin/create_compressed_fs - 65536 > /mnt/had1/knx/master/KNOPPIX/KNOPPIX

After the compression was finished, the size of KNOPPIX was 48M. Why does the size is still 48M after I have removed X11 server, clients and all related stuff?

Posted by ed on May 07 2004,19:04
most likely because of the dpkg package database
Posted by charleswong on May 08 2004,03:51
Yes, it is caused by the dpkg database. Now the size is 42M. But the size of Xserver, client and related X stuff is 6M only?

By the way, I was told that DSL contains debian packages and non-debian packages applications. How can remove these non-debian applications? I want to stripp down to around 16M. Is it possible?

Posted by cbagger01 on May 08 2004,15:26
rm filename

Seriously,  for non-Debian programs the only way that I know of to remove them is to search for an delete the program files individually.

If a "real" Debian package exists for this program, you may be able to get some hints as to where the files might be located located by going here:

< http://www.debian.org/distrib/packages >

Type in the name of the package at the Search entry box that is farther down towards the bottom of the page.

Then click on the package name in the Results.

Finally, scroll down to the "Download" section and click on the "list of files" link that is below the "i386" button. This will give you a list of files and their official locations.

You can then go into your distribution and try to find these files and delete them.

Good Luck.

Posted by charleswong on May 08 2004,15:35
Thanks for your reply.

Just "rm filename"? What about configuration file? Do I have to update configuration after I rm an application? Is there an uninstall routine like MS windows to remove application?

I can use dpkq-query -l to know what debian packages are installed in DSL. How can I know what non-debian applications are installed in DSL?

Oh! So many questions!!! I hope this will not bother you too much.

Posted by cbagger01 on May 09 2004,04:16
Please don't interpret this reply as insulting, but what I hinted at during my last reply is more bluntly stated here:

No, there is no uninstall routine.  You need to figure out things for yourself and manually delete each file including the configuration files for every program that you wish to remove from DSL.

The non-Debian programs do not appear to be "installed" via a package management system, so there is no easy way to uninstall them.  It would be analogous to copying a folder containing an old MSDOS™ program to your Windows™ computer.  Because the Windows™ "Add/Remove Programs" manager is unaware of the existance of this MSDOS program, it is not possible to uninstall it from this screen.

The only way to uninstall it is to open the Windows™ explorer file manager or an MSDOS™ command prompt window and manually delete all of the files.

Your chances for success are better if you have even a "best guess" as to the names and location of these files, so my previous suggestion was to look at the file lists for Debian packages at the Debian web site and use the official list for your specific program as a guide that you can use to (hopefully) find and manually delete the files that are associated with the customized version of the program that is included with DSL.

Hope this helps. Good Luck.

Posted by charleswong on May 09 2004,04:24
No, it is not inuslting. Thanks for you detail explaination. I'll try your suggestion.
Posted by ed on May 09 2004,15:54
Shouldn't we ask why are these non-deb programs installed in DSL in the first place?.. I think I'm also having the same problem!
Posted by roberts on May 09 2004,17:14
Two reasons:
Some programs are not available as debian packages.
Some debian packages require dependenices that are not appropriate for DSL (size issues), i.e., some may dictate CUPS, or some other such mandate. Any package maintainer ends up making such decisions. Just try installling some deb packages and see "all the other stuff" the package maintainer has decided that you should have. Many times a smaller alternative is already included in DSL. There is  a link on the site for a small debian installer type system, if that is what you are looking for.

Posted by cbagger01 on May 09 2004,23:47
DSL != Debian

DSL is a custom distribution that is based on Debian, but is not a pure Debian system.

You would not have all of the features and programs that are packed into a 50MB distro like DSL if it were a pure Debian system.  In fact, my guess is that you wouldn't even have XWindows as part of a Debian system that is this small.

Posted by rolf on May 14 2004,17:13
if i were you, i'd build it from the ground up rather than stripping DSL down. go get busybox and the 2.4 kernel, maybe steal some dsl packages. i dont know.

rolf
vong@gmx.net

Posted by charleswong on May 15 2004,02:51
But is it easy to build knoppix things, such as cloop, cdrom and usb boot stuff, etc. from scratch?
Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.