For a file server, you'd normally install Samba (for Windows clients) or NFS (for Linux/Unix clients). I'm not sure what you'd use for Mac, I'm afraid :/
On Ubuntu, install the samba4 or nfs-kernel-server packages, plus any dependencies.
If you have a dedicated box, then installing
FreeNAS on it is probably the easiest option.