the easiest way is to download a program that does it for you..
www.webattack.com has them.. do a search.. amd and intel both have progs that will do it too.. WOL has to be enabled in the bios as well as the operating system.. in windows sometimes the wol stuff is called RWU for remote wake up..