Saturday 1 October 2011

Auto Shutdown the System

A simple command can be entered in the Terminal to schedule a time for the system to shut down.
  1. Go to Applications (or Main Menu) > Accessories > Terminal.
  2. Enter sudo shutdown -h +m (replace m with the number of minutes, e.g. +60).
    OR: enter sudo shutdown -h hh:mm (replace hh:mm with the time on the 24hr clock, e.g. 23:15).
  3. Enter password and minimize the Terminal window.
The system will then shut down within the minutes or at the time specified. To cancel a scheduled time, entersudo shutdown -c in the Terminal.
   Alternatively, you might want to download and install GShutdown, which is a GUI program for scheduling a time to shutdown the system.

Move Window Control Buttons to the Right

If your Ubuntu system sets the Minimize, Maximize and Close buttons to the left in a window and you prefer to change them to the right, then follow these simple steps:
  1. Move buttons to rightPress Alt+F2 to bring up "Run Application" window.
  2. Type gconf-editor into the box, click "Run" to bring up Configuration Editor.
  3. Browse to apps > metacity > general, look for "button_layout" on the right panel.
  4. Change the value in the "button_layout" from close,minimize,maximize: tomenu:minimize,maximize,close and press the Enter key.

Set Fully Transparent Panel


Set Fully Transparent Panel
When you set the panel to be transparent in the default Ambiance theme in Ubuntu, you will find that some panel items' backgrounds are not transparent, but you can make them transparent and consistent with others, following these steps:
  1. Ubuntu DesktopGo to Applications (or Main Menu) > Accessories > Terminal.
  2. Enter cp -R /usr/share/themes/Ambiance ~/.themes/
  3. Enter gedit ~/.themes/Ambiance/gtk-2.0/apps/gnome-panel.rc (for Ubuntu 11.04 or 10.10) OR gedit ~/.themes/Ambiance/gtk-2.0/gtkrc(for Ubuntu 10.04), to open the file with gedit.
  4. Search for this line bg_pixmap[NORMAL] = "img/panel.png" (for Ubuntu 11.04 or 10.10) ORbg_pixmap[NORMAL] = "panel_bg.png" (for Ubuntu 10.04)
  5. Ubuntu DesktopComment out the line by placing a # at the beginning of the line, like this: #   bg_pixmap[NORMAL] = ...
  6. Save the file.
  7. Go to System > Preferences > Appearance, switch to the other theme and then back to the Ambiance theme.
   If you'd to change to the New Wave theme, then enter cp -R /usr/share/themes/"New Wave" ~/.themes/in step 2, enter gedit ~/.themes/"New Wave"/gtk-2.0/gtkrc in step 3, search for and comment out this linebg_pixmap[NORMAL] = "Images/Panel/PanelBarLong.png" in steps 4 and 5 respectively.