This is mainly for my own documentation. I’ve already had to do this twice when I was playing around with different themes. Standard Ubuntu 10.04 has the window buttons on the left (like on a MAC), but I think I still prefer to have them on the right.
Open a terminal (Applications > Accessories > Terminal), and paste the following command:
gconftool -s /apps/metacity/general/button_layout -t string menu:minimize,maximize,close
Magically the window buttons will be back in the “right†place.