Step 1: Prepare the Computer
anyway on to prepping the computer. your computer should have:
-at least 64MB of RAM (not too hard to get passed that these days)
-an intel or AMD processor (still not too hard)
-a cd-rom drive (still not hard)
-at least 600MB of space (you're going to want more than that since this is a server!)
-and the ability to boot from a CD
-an ethernet port
all in all, most of these requirements are easy to accomplish. since we will be using server edition for this install, this computer won't necessarily need 4GB RAM and a 500GB hard drive, though it would be nice...
Step 2: Get the Operating System
you can download a cd image from this link:
make sure you choose "Server Edition" and select a mirror near you.
to burn the image, download an image burning software like MagicISO, or DVD Decrypter
or you could request free cds, but that takes time... 3-4 weeks to be exact...
Step 3: Install the Operating System
all you need to do really is put the cd of Ubuntu Server into the optical drive and boot from the cd in BIOS. it's different for all computers but you can normally access BIOS from the first boot-up screen (aka the first thing that pops onto the monitor once you press the power button) and pressing F12 or Delete on the keyboard
a few pictures were not taken, such as keyboard layout and proxy information, you should know what to put here...(proxy is blank for me)
look at the pics to see all the steps taken in the install.
images from: http://www.howtoforge.com/perfect-server-ubuntu8.04-lts-p2
after the installation of software, it will spit the cd back out, congratulations! you have just installed Ubuntu Server!
Step 4: Webmin
once you log in with the username and password you set up, input these commands:
sudo apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl
sudo wget http://prdownloads.sourceforge.net/webadmin/webmin_1.430_all.deb
sudo dpkg -i webmin_1.430_all.deb
and you now have webmin installed!
access webmin by typing this into your browser address bar:
and now you can log in!
Step 5: Port Forwarding
open up your router's homepage by typing in the router's IP address (default is 192.168.1.1)
log in with user the username and pass (default is admin for both username and pass if you haven't changed it, consult router's documentation or google otherwise)
now go to the tab that says "Applications or Gaming" or "Port Forwarding" or something like that.
there will be a table-like form, you enter the applications name, the port-to-port forwarding, the protocol, and then your server's IP. for example: HTTP 80 80 TCP 192.168.1.xxx
enter these values:
HTTP 80 80 TCP serverIP
FTP 21 21 TCP/UDP serverIP
SSH 22 22 TCP serverIP
enable these forwards and then click "Save Settings" or "Save"
Step 6: Get a free domain name
a good free domain site is called http://www.no-ip.com/
they use your internet IP as a domain name. just make a new account and follow the on-screen instructions. it is really easy to set up
Step 7: Test out your website!
you should see a It works! message in your browser window.
if not, try your server's IP address, if that doesn't work, then you must of done something wrong with the port forwarding...
Step 8: Permissions
go your server once again and execute these commands:
sudo chown yourusername:www-data /var/www
sudo chmod 775 /var/www
you have just changed the folder "/var/www" 's permissions (/var/www is the root folder of your website).
now go to your main computer whether it's windows or mac, i haven't tried it on a mac but on windows this works fine. download a program called "WinSCP" and install it on your computer.
enter your domain name in the host name form and your server username and password in the username and password form
it should connect you to your server, and you should be able to see all the files on your server. go up a few directories until you see the var folder, enter the var folder and then the www folder
you can now copy new website material into those folders to update your website to make it cooler and more complex.
to remotely execute commands, use PuTTY, an SSH client program, google it and download it to your computer as well
Step 9: Other Thoughts...
another Instructable which helped me get started a few moths ago was made by CalcProgrammer1
if you wish to see his instructable follow this link: http://www.instructables.com/id/Set-up-your-very-own-Web-server/?ALLSTEPS
if there is anything that i have missed, please feel free to comment
also, if everything works as it should, you have no need of a monitor or a keyboard anymore, which means that you can configure this computer to turn on automatically in BIOS at a given time, so essentially, you can store this server in a closet and not have to access it physically anymore. how great is that?!
my server is on variably...mon-fri 11-5 eastern time, check out my site