How To Build Your Own Cloud Server?

I want to build my own cloud server to store various files including my photos, videos, music, and movies. Also if possible it should be a private server so only I can access and have faster access on LAN. Please help me to build your own cloud server.
