How can I move the window buttons to the top right of the window?

In this version of Ubuntu the close, maximize and minimize window buttons are placed at the top left of the window. If you would prefer them to be at the top right of the window, as in previous versions of Ubuntu and Windows, then follow these instructions:

  1. Press Alt+F2 to open the Run Application window.

  2. Type gconf-editor into the text box and click Run to start the Configuration Editor.

  3. Open /apps/metacity/general using the side pane and double-click the button_layout item.

  4. Change the value to say

    :minimize,maximize,close

    (the position of the colon determines which side of the window the buttons appear on).

  5. Click OK and the location of the windows buttons will change immediately.