Turning a Linux PC into a Server

Written by:  • Edited by: J. F. Amprimoz
Updated Jul 5, 2011
• Related Guides: Application Server

Creating a server from a Linux personal computer is not as hard as you may think. Actually, you probably already have most of the software installed. The largest decision you will have to make is the type of server you are creating.

Types of Servers

There are multiple types of servers--file servers, print servers, database servers, web servers, network servers and application servers. A basic personal computer running Linux can function as one type of server or multiple types at the same time. For instance, you can have a single PC running as a file server, print server and streaming audio server all at the same time.

Hardware

The more traffic that your server will handle, the more resources will be necessary. You can create a simple home on older hardware, but if your traffic will be heavier than just your family, you will probably want a larger CPU and as much RAM as you can cram into the machine. The size of the hard drive will depend on the amount of data you plan to host.

Software

The type of server you decide on will determine the software you want installed. If you want a file server, you will want Samba and ssh installed. A print server will need Samba and CUPS. Apache HTTP server will be needed if you want a web server.

Unless you are creating an application server, you will not need office suites, games, graphic software, etc. It is a good idea to remove these applications. Removing the unnecessary applications deters other users from using the computer for something other than what it's designated for. It also frees up resources and disk space. When you are finished configuring the software, you should even turn off the X-server. You can always turn it back on if you need to.

Security

Your server will need to be secure, no matter what you are using it for. Make sure to close any unused ports and install and run anti virus software. Also, consider severely limiting the number of users who have root access and disable remote root access. If you absolutely need to give someone the ability to change the system, consider placing the user in the /etc/sudoers file so that they never have to have the root password.

Conclusion

As you can see, there is really nothing mysterious about a server. It is simply a computer that's purpose is to serve data or applications. What makes a server a server is the software installed, not the machinery.

Look around the Linux channel here at Bright Hub and you will find many articles with detailed instructions on how to create the different types of servers on any computer.


Comments

Showing all 2 comments
 
Kristen Grubb Nov 26, 2009 8:10 PM
RE: Turning a Linux PC into a Server
Yes, you could turn your HP into a home server. You would have to decide on what type of server - do you want a network server, file server, or streaming media server?
Alex Gibeau Nov 26, 2009 11:12 AM
home server setup help
Hi,
My name is Alex Gibeau and as a newbie running Linux Mint 7 Gloria on my HP Quad Core 9500 Desktop with 3 gig of ram
and my wife runs Windows Vista on a Acer
Pentium Dual-Core laptop with 2 Gig Ram.
I would like to set-up a home server, I have a 2Wire
wireless and wired routerand I would like to se-up my HP as home server???
 
blog comments powered by Disqus
Email to a friend