How to put the windows close button on the right?

Solution 1:

Just paste the following in your terminal,

gconftool-2 --set "/apps/metacity/general/button_layout" --type string ":minimize,maximize,close"

Now you can see that your buttons are placed in the right side.

To revert:

gconftool-2 --set "/apps/metacity/general/button_layout" --type string "minimize,maximize,close:"

Solution 2:

If you are less comfortable with then command line, then this is also a feature present in Ubuntu Tweak. This application helps you "tweak" many things on your Ubuntu installation, and I find it very useful (and very well maintained!).

Solution 3:

Or you just install gconf-editor on your Ubuntu, then open it and look for apps >> metacity >> general >> button_layout

change the value to:

:minimize,maximize,close

Which means "fill with blank space, minimize, maximize, close", making the buttons to be shown at right.