How can I turn off my server when i am in the login screen?

view story

http://askubuntu.com – I would like to turn off my server by pressing the power button. The problem is if I am in the login screen (I haven't logged in yet). Pressing the power button will not shutdown my server. How can I solve this problem ? (HowTos)