This is a video demonstrating how you can change the button position from the left side of the window to the right side of the window in Ubuntu 10.04.
Changing it is relatively simple and doesn’t require a restart.
Press Alt+F2 to bring up the Run Application dialog.
Type “gconf-editor” (without the quotes) into the box and press Run.
In the left pane, navigate to: apps > metacity > general
Click button_layout in the right pane and rename it (click once on the text saying close,maximize,minimize or similar)
Change the text already present to: “menu:minimize,maximize,close” (without quotes)
Then press enter. The buttons will change automatically.