Thursday, 15 September 2011

Auto Mount Drives at System Startup


Ubuntu is capable of reading and writing files stored on Windows formatted partitions, but partitions must be 'mounted' before they can be accessed each time you start up the system. With these steps, you can auto mount the drives or partitions without the need to manually mount them for access.
  1. Storage Device ManagerInstall Storage Device Manager if it has not been added.
    1. Go to Applications (or Main Menu) > Ubuntu Software Center.
    2. Enter pysdm in the Search Box.
    3. Select Storage Device Manager, click the "Install" button.
  2. Go to System > Administration > Storage Device Manager.
  3. Extend the list of sda and select the sda you want to auto mount, click 'OK' to configure.
  4. Click the "Assistant" button.
  5. Uncheck "Mount file system in read only mode" and keep "The file system is mounted at boot time" checked.
  6. Click the "Mount", "Apply" then "Close" button, and restart the system.
In case you wish to remove the auto-mount of a certain drive or partition, you can similarly use Storage Device Manager to do the setting.
   If you need to identify disk partitions by label, paste ls /dev/disk/by-label -gin Terminal, or to view partition sizes and file systems, enter sudo fdisk -l. Disk Utility mentioned in "Name or Label a Partition" also gives you a glance of device numbers, partition types, sizes and labels.

Install Extra Fonts


Do you prefer Windows TrueType fonts to the default fonts installed by Ubuntu? The mscorefonts package containing most Microsoft fonts can be installed and configured easily in a few steps below:
  1. Ubuntu Extra FontsGo to Applications (or Main Menu) > Accessories > Terminal.
  2. Paste sudo apt-get install ttf-mscorefonts-installer into the Terminal (by pressing Ctrl-Shift-V in the Terminal after copying the highlighted code).
  3. Go to System > Preferences > Appearance > Fonts.
  4. Click each of them, pick a font and size to configure for window title and so on.
   How about installing more TrueType fonts? With your font files, you can manually add them into the system following the steps below:
  1. Press Alt+F2 to bring up "Run Application" window.
  2. Paste gksu nautilus /usr/share/fonts/truetype into the box, click "Run" to open Nautilus in the right folder.
  3. Create a new sub-folder and copy your files ending with .ttf into the sub-folder.
  4. Enter sudo fc-cache -f -v in the Terminal to rebuild the font information.
   Besides this, you can run an application such as Font-Manager to view, install, remove fonts and so on.
   If you like the Tahoma font which is not included in the mscorefontspackage, you might want to copy the two files tahoma.ttf and tahomabd.ttf from /Windows/Fonts and install them.

Disable or Change Login Sound


Each time when you login to Ubuntu, it plays a login sound. If you don't like to listen to it each time you login, you can easily disable it, or you can even change it to your favorite sound.
To disable the login sound:
  1. Go to System > Preferences > Startup Applications.
  2. Under the "Startup Programs" tab, untick "GNOME Login Sound"
  3. Click Close
To change the login sound, tick the above "GNOME Login Sound" if it's unticked, then follow these steps:
  1. Press Alt+F2 to bring up "Run Application" window.
  2. Paste gksu nautilus /usr/share/sounds/ubuntu/stereo into the box, click "Run" to open Nautilus in the right folder.
  3. Rename the original file desktop-login.ogg to another such as desktop-login-original.ogg for backup
  4. Copy your sound file in ogg format to the above folder and name the file asdesktop-login.ogg
  5. Log out and log back in to listen to the new login sound.

Re-start System without Rebooting


If you press Ctrl+Alt+Delete, Ubuntu brings you a menu to shut down, restart, or suspend your system. But for some reason you might encounter that the system freezes, the mouse cursor can't move, neither pressing Ctrl+Alt+Delete can work.
Remember that there's a shortcut key Alt+PrintScreen+K that can bring you back to the log-in screen immediately without the need to reboot the system. That's a time saver.
As an alternative, you can also use Ctrl+Alt+Backspace to do the same after you've enabled the shortcut key by the following steps:
  1. Go to System > Preferences > Keyboard.
  2. Select the “Layouts” tab and click the “Options” button.
  3. Select “Key sequence to kill the X server” and enable “Control + Alt + Backspace”.

Wednesday, 14 September 2011

Create an Advanced File Manager


In the Ubuntu file system, you can use Nautilus file manager to browse most files but can only write files in your home folder /home/your_name and its sub-folders such as Desktop and Documents. If you have to rename a folder or write files outside of your home folder using the file manager, you won't be able to but you can create an advanced file manager for this purpose.
  1. Advanced File ManagerGo to System > Preferences > Main Menu
  2. Select "Accessories" in the left panel and click "New Item" in the right panel.
  3. Enter a name such as Advanced Nautilus in the "Name" box.
  4. Enter gksu nautilus in the "Command" box.
  5. Click the "OK" button and the "Close" button.
Now you can go to Applications (or Main Menu) > Accessories and see that the Advanced Nautilus is ready for use. But be careful since you can use it to delete or change any files on your system.

Terminate Unresponsive Programs


Xkill is part of the X11 utilities pre-installed in Ubuntu and a tool for terminating misbehaving X clients or unresponsive programs. You can easily add a shortcut key to launch xkill with the steps below.
  1. xkillGo to System > Preferences > Keyboard Shortcuts.
  2. Click the Add button to create a custom shortcut.
  3. Enter xkill to both the Name and Command boxes and click the Apply button.
  4. Click on Disabled at the xkill row in the Keyboard Shortcuts window (Disabledis then changed to New shortcut...).
  5. Press a new key combination, e.g. Ctrl+Alt+X (New shortcut... is then changed to Ctrl+Alt+X).
  6. Click the Close button.
Xkill is ready for use. Press the above key combination to turn the cursor to an X-sign, move the X-sign and drop it into a program interface to terminate the unresponsive program, or cancel the X-sign with a right-click.

Add or Change Keyboard Shortcuts


Keyboard shortcuts are preset in the system, but you can add new ones or change them easily. For instance, change the default shortcut Ctrl+Alt+T (Run a Terminal) to Win+R (press R while holding down the Windows key, also known as Super key) by the following steps:
  1. Keyboard ShortcutsGo To System > Preferences > Keyboard Shortcuts
  2. Browse to Desktop > "Run a terminal"
  3. Click on the Shortcut, and it shows "New shortcut..."
  4. Press Win+R, and it shows Mod4+R
  5. Click the Close button and try the new shortcut.
   To disable a shortcut, press Backspace when it shows "New shortcut..." after the step 3 above.
   Shortcuts begin with XF86 refer to special keys available to some multimedia keyboards.
   Keyboard shortcuts can also be set by changing keybinding values with Configuration Editor. Press Alt+F2 and enter gconf-editor, then navigate to apps > gnome_settings_daemon > keybindings, or apps > metacity > global_keybindings and window_keybindings.