Ubuntu Home Server – Install, Samba and LAMP

To help improve our general knowledge of Unix systems, me and my housemate Nick set out to set up a Linux file server. After realising that Ubuntu Server didn’t seem to come with much of a GUI, and with us not knowing how to coax the ancient PCI Wireless adapter into life, let alone the commands to get it to join a network, we decided to install normal Ubuntu instead.

After installing the OS, we installed and configured Samba – all which turned out to be very trivial to complete. We quickly had it serving files with a static IP, so we could map network drives to it or directly access it’s shared folder.

We then had the idea of serving webpages too, so after installing LAMP (Linux, Apache, MySQL and PHP), we forwarded port 80 (HTTP) to its address in the router settings, as well as SSH port 22. This means that we can put our outward-facing, router IP address into a web browser and get redirected straight to the LAMP server on the linux machine. We can also now SSH into the external IP just as we would with the internal one.

Matt