SlackwareThis Forum is for the discussion of Slackware 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 looking to streamline my current webserver (all I use/need is PHP, MySQL, Apache) so I can keep track of security a bit better, and keep things less complex. What packages from a default Slackware 10.0 install can I go without to remove the "bloat" that I don't need on a basic webserver setup? I went with a complete install originally, so I'm hoping I can just go back through with pkgtool and remove anything I don't need.
EDIT: I should note I do not need a GUI, console is just fine for me. I also do not make use of audio on this box.
Last edited by technician; 06-15-2005 at 03:37 PM.
You can start removing things with all window managers. Then X related and finally X.
After that, you've to start looking at the description of the packages and deciding.
Basically what's needed is all under the a/ and l/ section of Slackware pacakges. To run the servers you'll need more stuff like network.
Edit: I forgot to say that you can find info about this in Amigo Linux's homepage ( http://amigolinux.org/ ) that's based on Slackware and has some good information about running a minimal Slackware system.
I'd start with the /a, /d, and /l packages. You'll probably not need all of them, but at the very least you'll need gcc and related libraries. Download a new kernel, apache, mysql, and php and you should be able to compile your own.
Or if you'd rather do it the binary way, then /a and /l are all you really need. Again, pick and choose... you probably won't need the ogg-vorbis libraries or libmpg, for example.
and when your done, and know exactly what you need, make the tagfiles so that you can install slack very easy the next time you plan to install such a server
Originally posted by killerbob I'd start with the /a, /d, and /l packages. You'll probably not need all of them, but at the very least you'll need gcc and related libraries. Download a new kernel, apache, mysql, and php and you should be able to compile your own.
Or if you'd rather do it the binary way, then /a and /l are all you really need. Again, pick and choose... you probably won't need the ogg-vorbis libraries or libmpg, for example.
Errmm.. what about /n packages (networking)? You'll most likely need a majority of these..
And depending on if you use imagemagick for any web related stuff like image editing with php applications, you might need some X libs installed at the least but don't need X.
I'd say you need /a, /ap, /d, /l and /n packages..
Here's my package list on a Slackware web server I run.. pretty minimal too..
Originally posted by buddhahat If this box is only a web server than do you might not need man-1.5m2-i486-1 and man-pages-1.64-noarch-1. I don't have them on my web server.
If you're running MySQL then you can drop db3-3.3.11-i486-4, db31-3.1.17-i486-1
db4-4.2.52-i486-2.
You could eliminate the kernel source too.
Do you need mail from your web server? If not then you can remove sendmail-8.13.3-i486-2.
I'm not sure about all the archiving tools but I only run tar-1.15.1-i486-1 and haven't had any issues.
I also didn't install all the text editors, I only run vi.
If security is your concern then I would run nmap "servername" to see what ports are open.
Good luck!
That is true about the kernel sources and such since I even compile from source and don't use the Slackware packages, just left them there as they were harmless. The man pages are always nice to have around though, just in case and don't take up hardly any space.
I would imagine most webservers will need sendmail or another type of mail application for online forms and such for web pages, etc. I'd keep something like that around just in case.
And the db packages are dependencies for many other things, I'd keep them around.
Alot of the untilities and tools are good to keep around, I've been stuck in cases where I thought I never needed a tool so it was removed and then I found out the hard way when I could have used it, same reason for keep the man pages around, I doubt anyone really knows the flags and options for every single command..
Originally posted by trickykid
And the db packages are dependencies for many other things, I'd keep them around.
I'm curious to know what depends on the db packages?
Quote:
Originally posted by trickykid
Alot of the untilities and tools are good to keep around, I've been stuck in cases where I thought I never needed a tool so it was removed and then I found out the hard way when I could have used it, same reason for keep the man pages around, I doubt anyone really knows the flags and options for every single command.
I have certainly learned this the hard way! I started with (what I thought) was the minimum install and have run into some issues. For example I didn't install mhash and soon learned that Apache 2 requires it! But it's been a great learning experience.
Thanks a lot of the replies guys, they are all much appreciated. My plan is to create a really slim pure webserver running just PHP, MySQL, Apache, SSH, webmin and shorewall for a software firewall. I just want to keep things really simple, and as secure as possible. Assuming someone was able to break in via SSH it'd be a tad bit tougher to do damage without having access to compilers and the like.
I probably will need sendmail for online forms, but I'm unsure if that's going to be vital or not.
Wow, I wasn't aware that so many packages were dependent on the db packages. Thanks keefaz.
Out of curiosity, why do httpd and php depend on the db packages? I've been running my web server for a short time now without the db packages (only MySQL) and have not had any problems.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.