Linode has some excellent step by step guides on setting up a server.[1] You could also start with a virtual machine using those same guides.
If you're in it for more than just the learning experience, hosting at home will probably give you bad/unreliable upload speeds (assuming you have a typical ISP). A VPS service like Linode or others would give you basically the same learning experience with the added benefit of a good connection.