LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Distributions (https://www.linuxquestions.org/questions/linux-distributions-5/)
-   -   want to turn old PC into server, need distro help (https://www.linuxquestions.org/questions/linux-distributions-5/want-to-turn-old-pc-into-server-need-distro-help-253242/)

Avatar 11-10-2004 10:32 AM

want to turn old PC into server, need distro help
 
Hi, I KNOW this has been asked a million times, and YES I did a search... the link for choosing your distribution at the start of this forum has a link to an article that no longer exists. ALSO I read the link for http://wiki.linuxquestions.org/wiki/...x_distribution that a helpful LQ user posted to another user.

Here's my situation. I have an older IBM PC300GL, which I believe is a PII 333 MHz with about 32 MB of RAM (or is it 64? I forget). I have about 1 GB of hard disk space.

Anyhow, this computer is being used as an HTTP server with Apache and PHP and MySQL. In the future it might act as a firewall and/or DHCP but right now, it isn't. All it does is serve web pages and do database queries.

Currently it has Mandrake 10.0. While the HTTP response is fine, the computer is SOOOOOO Sloooooowwwww when I have to edit or copy any documents on it. All I ever do on that system is bring up the command prompt (which takes like 5 minutes) and use vi. So, I don't need Mandrake's fancy desktop, word processors, games, or anything like that. I tried using it to browse the Internet one time, and it took so long to bring up the browser and change pages that I gave up.

Thanks to the article posted above, I looked into VectorLinux/Slackware, but that too is geared for a desktop system. A desktop is fine but really this computer is so slow as to be nearly unusable, so I just need a "DOS-like" environment so I can just copy files, and edit and delete stuff. I don't need word processors. I DO need apache, php, mySQL, and the Internet (Lynx at least) and the ability to boot into command line mode if the distro has a desktop. (or at least, bring up the console in under a minute ;) )

I did not find any information in this forum about FreeBSD. Isn't that Linux? I've heard it's small and fast and for servers. Or would VectorLinux be right for me with a few modifications? I've only ever used mandrake, so this is my first venture into the realm of distros. Thank you very much.

kevinatkins 11-10-2004 10:49 AM

Hi,

I'd have a go with Debian..

I was in a similar situation, albeit with an old imac - an old 333MHz G3 (equivalent to pentium 700Mhz-ish), but only 64MB RAM. Anything GUI was ridiculously slow...

So I installed the Debian base system - no X, just a basic install. If you've got a high speed internet connection, this is the way I'd go - it's fairly straightforward to download the base system (~100MB iso if I remember), then use apt-get to fetch whatever else you want. Beauty of this is that you're only downloading what you need, so it's quicker to get up and running..

PBSchmidt 11-10-2004 10:57 AM

I would also recommend debian - if you really *need* a GUI (you should not for a server), use something lightweight like fluxbox.

My debian server runs on 350 MHz PII, 196 MB and, well now, a 120G disk (needed a file server). No, it does not run, i flies!

Apps on the box:

apache / php
mysql
cvs (pserver)
sshd
nessusd

HTH, Peter

Avatar 11-10-2004 01:21 PM

Hmm, debian eh. Thanks for your input. I will definitely look into this.

J.W. 11-10-2004 03:21 PM

Regardless of the distro, if you're only running 32Mg of RAM, performance is going to suffer. I'd suggest putting the max RAM into the box as will fit. It's well worth it. Good luck with it either way -- J.W.

apolinsky 11-10-2004 03:41 PM

With 32 megs of memory, you may find that Slackware will be more responsive. I am running Sarge (Debian testing) and Slackware 10 on a different equally low end machine. I find the Slackware machine much more responsive; Sarege will have more readily available software (they're up to 14 disks now), but the tasks you are trying to accomplish are relatively straight forward.

Avatar 11-15-2004 09:27 AM

Will there be a significant difference between Slackware and Debian, since I probably won't have a GUI? It's true the system is quite low on memory. I would like an OS that automatically mounts the file systems on boot, since I use the floppy drive regularly.

PBSchmidt 11-15-2004 11:52 AM

hm, judging from my 330 MHz Box, I think 64 MB *could* do - it uses lots of the memory for caching.
Code:

# cat /proc/meminfo
        total:    used:    free:  shared: buffers:  cached:
Mem:  196886528 193351680  3534848        0 12464128 133513216
Swap: 998604800 114896896 883707904
MemTotal:      192272 kB
MemFree:          3452 kB
MemShared:          0 kB
Buffers:        12172 kB
Cached:        103460 kB
SwapCached:      26924 kB
Active:          14680 kB
Inactive:      161480 kB
HighTotal:          0 kB
HighFree:            0 kB
LowTotal:      192272 kB
LowFree:          3452 kB
SwapTotal:      975200 kB
SwapFree:      862996 kB
pinguin:/home/pbschmidt#

Avatar, did you try to start the box on Knoppix yet? If you have the chance, try this (look at the "cheatcodes" document how to test 2.4 and 2.6 kernel in console-only mode), this could give you a first impression how well the memory performs.

Knoppix is based on debian, but IMHO, it should make no difference *where* (from which distro) the running apps and demons come from.

When you are about to set the box up, keep in mind to choose only the things you *really* need - in fact, this is always a good advice, if not for ressource reasons, then for security. A process not running simply cannot be attacked, cannot deadlock or whatever.

A friend of mine set up a quite nice iptables firewall on a 32 Megs 166 MHz box, it serves 20 Clients in a small company very well.

I am excited about your progresses, I would love to see "your" success story soon!

HTH, Peter

Avatar 11-15-2004 01:44 PM

Thank you Peter!

I have not used Knoppix. This system is up and running right now with Mandrake Linux 10.0, (2.6.X kernel), it's just really slow.

I have more information on my system this time. It's IBM PC300GL; Original description: CELERON 366MHz 128KB 64MB 8.4GB HDD IDE PCI/ISA 4X4 32XCD WIN98 SMB/OFFICE

It's possible that it has a 4 GB hard disk because I might have switched it with an older Aptiva.

Anyway, I am still having trouble deciding between Slackware and Debian. I am leaning with Slackware, because with Debian, having to download all the packages with apt seems somewhat steep for a Linux-newbie. But then, Debian seems more suited to older computers. **sigh** Eeenie, meenie, miney, moe............

MikeZila 11-15-2004 03:32 PM

I have a web-server box that is loaded with Slack10. Just install with a minimal set of packages and use swaret or slapt-get to install apache, mysql, php, perl, or whatever else you want. Just about any distro will work well as a webserver if you strip it down to just the AMP

PBSchmidt 11-16-2004 08:19 AM

Hello Avatar,

hm, just mere speculation, but maybe the 2.6 kernel could be a bit too optimistic for your box - did you try a 2.4 or even 2.2? There should not be hardware on that old box that really requires a 2.6 kernel, and kernel provided security also seems not to be the matter.

Working with apt is not difficult for a newbie - quite the contrary, it provides a good package versioning and does not try to keep you unaware of the config files you have to get acquainted to if you really want to manage your box.

You do not have to download every package with apt - if you get the first two or three Woody Cd's, there should be almost everything you need to run your mini-server.

I suggest Woody because
  • it is stable, so the apt-get upgrade does not bring up as much daily changes as Sarge or Sid do
  • it matches your Hardware
  • it uses apt to maintain security upgrades and package integrity.

On the other side, you do not need the latest KDE because you will not use a GUI at all, and plenty of server software is already included in Woody.

Good luck, and feel free to come back whenever you think we could help you!

Cheers, Peter

Doolspin 11-16-2004 12:43 PM

I'd have to agree with a lot of the other's Slack is your best choice. Its ran on everything I ever owned, Pentium pro, pII, pIII, celeron, P4. I think, with the right kernel and enough ram, Slack could run on a washing machine. :)

floppywhopper 11-17-2004 02:45 AM

Have you looked into SME Server 6.0
built on Red Hat
I heard pretty good reviews on it
and I plan on using it myself

live long and prosper
floppy


All times are GMT -5. The time now is 03:17 PM.