DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm trying to reduce the size of my debian install, I used netinst to install and selected no extras. I've put on apache2, php5, mysql, webmin and samba which are the main things I'll be using. I've also ran localepurge and debfoster/deborphan as well. Here is the list from dpkg --get-selections:
No I was wondering about that myself, so you think I can get rid of that three packages?
EDIT: Tried to remove libdb4.4
Code:
Failed to delete package libdb4.4 :
dpkg: dependency problems prevent removal of libdb4.4:
apt-utils depends on libdb4.4; however:
Package libdb4.4 is to be removed.
libapache2-mod-php5 depends on libdb4.4.
perl depends on libdb4.4.
apache2-utils depends on libdb4.4.
libaprutil1 depends on libdb4.4.
apache2-mpm-prefork depends on libdb4.4.
dpkg: error processing libdb4.4 (--remove):
dependency problems - not removing
Errors were encountered while processing:
libdb4.4
After removal of laptop-detect it's sitting at 648744K, that's without hosting any sites or files. I have added avast AV (to scan the win share folders) since the list that started this post.
As for final size, just as small as it can be with no un-needed packages running or installed. I'm thinking of removing some on the docs that come with this lot. I don't use man much, normally just --help or google. Is there an easy way to find all the documentation?
EDIT: df reports 648744K, webmin reports 1023.1Mb used... which is correct?
One thing I could suggest you take out is the ncurses packages (unless they're needed by another package that you absolutely need).
When you say df reports 648744K, did you run "df -k"? Try running "df -h" and see if that gives you an answer closer to webmin.
And not to mention, is webmin REALLY that necessary? If you're looking to cut back on size, you might want to leave webmin for just ssh and a text editor (in this case, nano). Don't get me wrong, webmin is really quite nice, it's just a bit bulky.
Another trick you could try is substituting packages. Instead of apache2 use lighttpd, and so on and so forth.
I think I will remove ncurses, looking at the package I don't think I'll need it on this install. - just tried and it tried to remove the kernal and several commands as well, maybe not such a good idea! All I did was an
Code:
apt-get remove ncurses-base ncurses-bin
Is there a better way to remove without breaking everything else?
Is lighttpd as easy to configure as apache2? I'm used to apache and have been using it for years on both linux and MS platforms. Also how easy is it to get it talking with php and mysql?
Okay, perhaps trying to remove ncurses isn't that great of an idea. I didn't realize it was THAT tied into everything else (especially the kernel - eep).
Lighttpd is a breeze to do basic configuration with. The conf file is not as extensive as Apache's, but it gets you pretty much the same, desired result. It's modular, too (like Apache). So, you can load mods for PHP and MySQL.
EDIT: OK, I've installed - looks good like, conf file seems easy enough. Now is MySQL or SQLite the way to go, I'm not seeing anything to do with sqlite/lighttpd but haven't read much into it. Would that be easy enough to do?
If you read a bit about php5 installing apache things then please ignore. I'm being a bit dim. Meant to install php5-cgi NOT php5...
I know the Lighttpd site has a list of the supported modules, and their installation HOWTOs.
I avoid SQL DBs like the plague. I prefer writing my own DB engines, but the beauty of that is I rarely have to (I do LAN system management as a side project, no web hosting).
I remember, back when I used Mandrake/Mandriva, if I wanted a particular module for my HTTP daemon (whatever it be), I just ran URPMI (the Mandrake equiv. to APT-GET) and installed the module there. Debian just might provide the same deal. Check APTITUDE for any installable HTTPD modules.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.