Get the highlights in your inbox every week.
How to restore a single-core computer with Linux | Opensource.com
How to restore a single-core computer with Linux
Let's have some geeky fun refurbishing your prehistoric Pentium with Linux and open source.
In a previous article, I explained how I refurbish old dual-core computers ranging from roughly five to 15 years old. Properly restored, these machines can host a fully capable lightweight Linux distribution like Mint/Xfce, Xubuntu, or Lubuntu and perform everyday tasks. But what if you have a really old computer gathering dust in your attic or basement? Like a Pentium 4 desktop or Pentium M laptop? Yikes! Can you even do anything with a relic like that?
Why restore a relic?
For starters, you might learn a bit about hardware and open source software by refurbishing it. And you could have some fun along the way. Whether you can make much use of it depends on your expectations.
A single-core computer can perform well for a specific purpose. For example, my friend created a dandy retro gaming box (like I describe below) that runs hundreds of Linux and old Windows and DOS games. His kids love it!
Another friend uses his Pentium 4 for running design spreadsheets in his workshop. He finds it convenient to have a dedicated machine tucked into a corner of his shop. He likes that he doesn't have to worry about heat or dust ruining an expensive modern computer.
My romance author acquaintance employs her Pentium M as a "novelist's workstation" lodged in her cozy attic hideaway. The laptop functions as her private word processor.
I've used old computers to teach beginners how to build and repair hardware. Old equipment makes the best testbed because it's expendable. If someone makes a mistake and fries a board, it doesn't much matter. (Contrast this to how you would feel if you wrecked your main computer!)
The web suggests many other potential uses for old Pentiums: security cam monitors, network-attached storage (NAS) servers, SETI boxes, torrent servers, anonymous Tails servers, Bitcoin miners, programming workstations, thin clients, terminal emulators, routers, file servers, and more. To me, many of these applications sound more like fun projects than practical uses for single-core computers. That doesn't mean they aren't worth your while; it's just that you want to be clear-eyed about any project you take on.By current standards, P-4s and Ms are terribly weak processors. For example, using them for web surfing is problematic because webpage size and programming complexity have grown exponentially. And the open web is closing—increasingly, sites won't allow you access unless you let them run all those ads that can overwhelm old processors. (I'll discuss web surfing performance tricks later in this article.) Another shortcoming of old computers is their energy consumption. Better electricity-to-performance ratios often make newer computers more sensible. This especially true when a tablet or smartphone can fulfill your needs.
Nevertheless, you can still have fun and learn a lot by tinkering with an old P-4 or M. They're great educational tools, they're expendable, and they can be useful in dedicated roles. Best of all, you can get them for free. I'll tell you how.
Still reading? Okay, let's have some geeky fun refurbishing your prehistoric Pentium.
Understand hardware evolution
As a quick level-set, here are the common names for the P-4 and M class processors and their rough dates of manufacture:
- Pentium 4
- Pentium 4 HT (Hyper-Threading)
- Pentium 4 EE (Extreme Edition)
- Pentium D (early dual-core)
- Pentium M
- Pentium 4-M
- Mobile Pentium 4
- Mobile Pentium 4 HT
Machines hosting these processors typically use either DDR2 or DDR memory. Dual-core processors entered the market in 2005 and displaced single-core CPUs within a few years. I'll assume you have some version of what's in the above table. Or you might have an equivalent AMD or Celeron processor from the same era.
The big draw of this old hardware is that you can get it for free. People consider it junk. They'll be only too glad to give you their castoffs. If you don't have a machine on hand, just ask your friends or family. Or drop by the local recycling center. Unless they have strict rules, they'll be happy to give you this old equipment. You can even advertise on Craigslist, Freecycle, or other reuse websites.
A quick tip: Grab more than one machine. With old hardware, you often need to cannibalize parts from several computers to build one good working one.
Prepare the hardware
Before you can use your old computer, you must refurbish it. The steps to fixing it up are:
- Clean it
- Identify what hardware you have
- Verify the hardware works
Start by opening up the box and cleaning out the dirt. Dust causes the heat that kills electronics. A can of compressed air helps.
Always keep yourself grounded when touching things so that you don't harm the electronics. And don't rub anything with a cleaning rag! Even a shock you can't feel can damage computer circuitry.
While you've got the box open, learn everything you can about your hardware. Write it all down, so you remember it later:
- Count the open memory slots, if any. Is the RAM DDR or DDR2 (or something else)?
- Read the hard drive label to learn its capacity and age. (It'll probably be an old IDE drive. You can identify IDE drives by their wide connector ribbons.)
- Check the optical drive label to see what kinds of discs it reads and/or writes, at what speed, and to what standard(s).
- Note other peripherals, add-in cards, or anything unusual.
Close and boot the machine into its boot-time BIOS panels. This list tells you what program function (PF) key to press to access those startup panels for your specific computer. Now you can complete your hardware identification by rounding out the details on your processor, memory, video memory, and more.
Verify the hardware
Once you know what you've got, verify that it all works. Test:
- Peripherals (optical drive, USB ports, sound, etc.)
Run any diagnostic tests in the computer's boot or BIOS panels. Free resource kits like Hiren's BootCD or the Ultimate Boot CD can round out your testing with any diagnostics your boot panels lack. These kits offer dozens of testing programs: all are free, but not all are open source. You can boot them off a live USB or DVD so that you don't have to install anything on the computer.
Be sure to run the "extended" or long tests for the memory and disk drive. Run tests overnight if you have to. Do this job right! If you miss a problem now, it could cause you big headaches later.
If you find a problem, refer to my Quick guide to fixing hardware to solve common issues.
Essential hardware upgrades
You'll want to make two key hardware upgrades. First, increase memory to the computer's maximum. (You can find the maximum for your computer with a quick web search for its specs.) The practical minimum to run many lightweight Linux distros is 1GB RAM; 2GB or more is ideal. While the maximum allowable memory varies by the machine, the great majority of these computers will upgrade to at least 2GB.
Second—if the desktop doesn't already have one—add a video card. This offloads graphics processing from the motherboard to the video card and increases the computer's video memory. Bumping up the VRAM from 32 or 64MB to 256MB or more greatly increases the range of applications an old computer can run. Especially if you want to run games.
Be sure the video card fits your computer's video slot (AGP, PCI, or PCI-Express) and has the right cable connector (VGA or DVI). You can issue a couple of Linux line commands to see how much VRAM your system has, or look in the BIOS boot panels.
These two simple upgrade hacks—increasing memory and video power—take a marginal machine and make it way more functional. Your goal is to build the most powerful P-4 or M ever. That way, you can squeeze the most performance from this aging design.
The good news is that with the old computers we're talking about, you can get any parts you need for free. Just cannibalize them from other discarded PC's.
Select the software
Open source software is the way to go. Many Linux distributions are specifically designed for older computers. And with Linux, you can install, move, copy, and clone the operating system and its apps at will. This makes your job easier: You won't run into activation or licensing issues, and it's all free.
Which distribution should you pick? Assuming you have at least 2GB of memory, start your search by trying a lightweight distribution—these feature resource-stingy desktop environments. Xfce or LXQt are excellent desktop environment choices. Products that consume more resources or produce fancier graphics—like Unity, GNOME, KDE, MATE, and Cinnamon—won't perform well.
The lightweight Linux distros I've enjoyed success with are Mint/Xfce, Xubuntu, and Lubuntu. The first two use Xfce while Lubuntu employs LXQt. You can find many other excellent candidate distros beyond these three choices that I can vouch for.
Be sure to download the 32-bit versions of the operating systems; 64-bit versions don't make much sense unless a computer has at least 4GB of memory.
The lightweight Linux distros I've cited offer friendly menus and feature huge software repositories backed by active forums. They'll enable your old computer to do everything it's capable of. However, they won't run on every computer from the P-4 era. If one of these products runs on your computer and you like it, great! You've found your distro.
If your computer doesn't perform well with these selections, won't boot, or you have less than 2GB of memory, try an ultralight distribution. Ultralights reduce resource use by replacing desktop environments with window managers like Fluxbox, FLWM, IceWM, JWM, or Openbox. Window managers use fewer resources than desktop environments. The trade-off is that they're less flexible. As an example, you may have to dip into code to alter your desktop or taskbar icons.
My go-to ultralight distro is Puppy Linux. It comes in several variants that run well on Pentium 4's and M's with only 1GB of memory. Puppy's big draw is that it has versions designed specifically for older computers. This means you'll avoid the hassles you might run into with other distros. For example, Puppy versions run on old CPUs that don't support features like PAE or SSE3. They'll even help you run an older kernel or obsolete bootstrap program if your hardware requires it.
And Puppy runs fast on limited-resource computers! It optimizes performance by loading the operating system entirely into memory to avoid slow disk access. It bundles a full range of apps that have been carefully selected to use minimal hardware resources.
Puppy is also user-friendly. Even a naive end user can use its simple menus and attractive desktop. But be advised—it takes expertise to install and configure the product. You might have to spend some time on Puppy's forum to get oriented. The forum is especially useful because many who post there work with old computers.
A fun alternative to Puppy is Tiny Core Linux. With Tiny Core, you install only the software components you want. So you build up your environment from the absolute minimum. This takes time but results in a lean, mean system. Tiny Core is perfect for creating a dedicated server. It's a great learning tool, too, so check out its free eBook.
If you want a quick, no-hassles install, you might try antiX. It's Debian-based, offers a selection of lightweight interfaces, and runs well on machines with only a gigabyte of memory. I've had excellent results installing antiX on a variety of old PCs.
Caution: Many distros casually claim that they run on "old computers" when they really mean that they run on limited-resource computers. There's a big difference. Old computers sometimes do not support all the CPU features required by newer operating systems. Avoid problems by selecting a Linux proven to run on your hardware.
Don't know if a distro will run on your box? Save yourself some time by posting a message on the distro's forum and asking for responses from folks using hardware like yours. You should receive some success stories. If nobody can say they've done what you're trying to do, I'd avoid that product.
How to use your refurbished computer
Will you be happy using your restored PC? It depends on what you expect.
People who use aging systems learn to leverage minimal resources. For example, they run resource-stingy programs like GNOME Office in place of LibreOffice. They forgo CPU-intense programs like emulators, graphics-heavy apps, video processing, and virtual machine hosting. They focus on one task at a time and don't expect much concurrency. And they know how to manage machine resources proactively.
Old hardware can perform well in dedicated situations. Earlier, I mentioned my friends who use their old computers for design spreadsheets and as a writer's workbench. And I wrote this article on my personal retro box—a Dell GX280 desktop with a Pentium 4 at 3.2GHz, with 2GB DDR-2 RAM and two 40GB IDE disks, dual-booting Puppy and antiX.
Create a retro game box
You can also create a fantastic retro game box. First, install an appropriate distro. Then install Wine, a program designed to run Windows software on Linux. Now you'll be able to run nearly all your old Windows XP, ME/98/95, and 3.1 games. DOSBox supports tons more free DOS games. And Linux offers over a thousand more.
I've enjoyed nostalgic fun on a P-4 running antiX and all the old games I remember from years ago. Just be sure you've maxed out system memory and added a good video card for the best results.
Access the web
The big challenge with old computers is web surfing. This study claims that average website size has increased 100% over a three-year period, while this article tells how bloated news sites have become. Videos, animation, images, trackers, ad requests—they all make websites slower than just a few years ago.
Worse, websites increasingly refuse you access unless you allow them to run their ads. This is a problem because the ads can overwhelm old CPUs. In fact, for most websites, the resources required to run ads and trackers are way greater than that required for the actual website content.
Here are the performance tricks you need to know if you web surf with an older computer:
- Run the fastest, lightest browser possible. Chrome, Firefox, and Opera are probably the top mainstream offerings.
- Try alternative minimalist browsers to see if they can meet your needs: Dillo, NetSurf, Dooble, Lynx, Links, or others.
- Actively manage your browser.
- Don't open many browser tabs.
- Manually start and stop processing in specific tabs.
- Block ads and trackers:
- Offload this chore to your virtual private network (VPN) if at all possible.
- Otherwise, use a browser extension.
- Don't slow down your browser by installing add-ons or extensions beyond the minimum required.
- Disable autoplay for videos and Flash.
- Ensure the browser renders text before graphics.
- Don't run background tasks while web surfing.
- Manually clear cookies to avoid page-access limits on some websites.
- Linux means you don't have to run real-time anti-malware (which consumes a CPU core on many Windows PCs).
Employing some of these tricks, I happily use refurbished dual-core computers for all my web surfing. But with today's internet, I find single-core processors inadequate for anything beyond the occasional web lookup. In other words, they're acceptable for web access but insufficient for web surfing. That's just my opinion. Yours may vary depending on your expectations and the nature of your web activity.
Enjoy free educational fun
However you use your refurbished P-4 or M, you'll know a lot more about computer hardware and open source software than when you started. It won't cost you a penny, and you'll have some fun along the way!
Please share your own refurbishing experiences in the comments.