We’ll be using Arch Linux as the operating system for our file server, because it is small,and has only the minimum packages required for a working system. This means that we can set up the file server without wasting resources on a graphical user interface and other unnecessary packages. Arch Linux comes with hardly any RAM allocated to the GPU by default, which is exactly how we want it for use as a headless server.
http://www.linuxuser.co.uk/features/build-a-file-server-with-the-raspberry-pi