Ubuntu 10.04 / 10.10 :
Step1: Press Alt+F2 to bring up the Run Application dialog box, enter “gconf-editor” in the text field, and click on Run.
Step2: Click on the + button next to the “apps” folder, then beside “metacity” in the list of folders expanded for apps, and then click on the “general” folder.
Step3: The button layout can be changed by changing the “button_layout” key and Change the text in the Value text field to:
menu:maximize,minimize,close
Ubuntu 11.04 / 11.10 :
Run the following command on terminal :
Ubuntu 12.04 / 12.10 :
Or, open dconf-editor and navigate to org/gnome/desktop/wm/preferences, and then change the value of button layout to :minimize,maximize,close
Step1: Press Alt+F2 to bring up the Run Application dialog box, enter “gconf-editor” in the text field, and click on Run.
Step2: Click on the + button next to the “apps” folder, then beside “metacity” in the list of folders expanded for apps, and then click on the “general” folder.
Step3: The button layout can be changed by changing the “button_layout” key and Change the text in the Value text field to:
menu:maximize,minimize,close
Ubuntu 11.04 / 11.10 :
Run the following command on terminal :
gconftool-2 --set /apps/metacity/general/button_layout \
--type string "menu:minimize,maximize,close
"
Ubuntu 12.04 / 12.10 :
Run the following command on terminal:
gsettings set org.gnome.desktop.wm.preferences \
button-layout ':minimize,maximize,close'
Or, open dconf-editor and navigate to org/gnome/desktop/wm/preferences, and then change the value of button layout to :minimize,maximize,close