Noob Questions

Sorry for the noob question.. Here is the thing. I live in Japan and have used cpanel for us a lot but the servers in japan is too much expensive so i want to try to put on server running in my office... what do i need (hardware and software). how do i set the dns names, how do i set the server to be running