Regardless of your operating system, you must begin by downloading the server software from the minecraft download page, and save it to the directory ...
minecraft.gamepedia.com