Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
m having a desktop(P4 1.23 Ghz and 256 RAM) in spare an old one and m thinking to use it as a firewall n i want to code one in c/c++(it should support necessary libraries or able to install them later and a c/c++ compiler)and this is all that this system will be doing so any old linux OS that fits my need and compatible with that old configuration??? thanks
Debian will be fine. Use dnsmasq and a few other little tools. It can run in less than 32mb without much tweaking. After all, these cheap home router does it, so why not a P4. Mine have 256mb and with some more software, I never go over 40% usage.
Hi! There are new and up-to-date Linux distributions that will run smoothly on your machine. Some of them will install by default a lighter desktop environment; for example, Lubuntu has LXde, Xubuntu has Xfce. This could be the easiest way.
In my case I have been using Debian on even older machines. I usually install the base system and skip the other proposed tasks, then I add what I need: if I want a GUI I install Xorg, xdm or slim, then Xfce or a window manager like fluxbox, which is even lighter (you can have your system up and running with 50MB RAM and less). All depends on how much you feel comfortable using package managers and other system administration tools (but debian's apt is really powerful and has also a graphical and a semi graphical front end).
As a firewall you might consider arno-iptables-firewall: it is a powerful script firewall and has a straightforward tool for the most common configurations, including NAT. If you have special needs, there's a very well commented configuration file.
Last edited by Philip Lacroix; 02-08-2013 at 02:37 AM.
I had Debian Squeeze on a P4 until a flood killed it. I had a gig of RAM and ran a full Gnome 2 desktop with little issues. Granted, it was a 2.8GHz P4, but with some tweaking and a lighter desktop you should be fine.
@exgenome: I think Slackware actually deserves to be mentioned as a possible solution for your PC. Just don't run it with KDE, which uses quite a lot of resources. Use Xfce instead, or fluxbox, blackbox, window-maker... If you are not so new to Linux you will not have so much trouble to get it running. And when it's done, the system is rock solid and has all the necessary stuff for developers, right out-of-the-box.
If an example can be useful, to keep the footprint low I log in with xdm and start fluxbox: the used memory is about 72MB. I removed kde-plasma and other packages I don't need (being careful not to brake dependencies); probably one could do better and make the system even lighter.
Anyway, Slackware is a great distribution and helps you to know Linux better.
Last edited by Philip Lacroix; 02-11-2013 at 01:30 AM.
I'd advise running a GUI on the machine, instead connect via ssh from another machine, unless you want to develop a GUI firewall application (although, really, since you're just going to wind up hooking into the netfilter stuff in the kernel, what's wrong with iptables or one of its graphical front-ends?). You should be able to pick up more RAM for that box dirt cheap, and I'd recommend upgrading to 512 MB or 1 GB if at all possible. Doing that would allow you to run just about any distribution except for those using very resource-hungry GUIs. Personally, I like Arch Linux (has a very similar feel to Slackware, but is rolling release), but the other suggestions given here are all good.
Pentium 4's are a power-hungry choice for a 24/7 firewall. Since value of your old P4 is close to zero, the cost-effective solution would be something like a Raspberry Pi or Sheevaplug, or even just a plain old router with built-in firewall features, which will quickly pay for themselves in power saving.
If someone else pays your electric bill then disregard.
@snowpine hi there, m using p4 for a firewall to learn plus i have it in spare n m not planning to use it 24/7. But thanks i didnt know it consumes that much power!!
i also have problem installing Slackware 14.0 x86 Install ISO disc 1 (A/AP/E/F/L/N/Y, bootable installer, kernels, testing/, Slackbook)
it say, there was a falat error attempting to install /var/log/mount/slackware/a/cups-1.5.4-i486-2.txz. the package may be corrupt, the installation media may be bad. one of the drives may be full, or something else has caused the package unable to be read without error. you may hit enter to continue.
n when i hit enter it hangs at some package. help.