If you have the Ubuntu system which comes with the default Gnome window manager installed in your PC, you might find these tips and tricks useful for working with the system.
Note: The steps described in this article work with Ubuntu 10.10 and Ubuntu 10.04.
Tips and Tricks |
- Delete the bottom panel: right-click over it and click "Delete This Panel".
- Move the top panel to bottom: right-click over it, select "Properties" and change Orientation from "Top" to "Bottom".
- Add running program buttons: right-click the panel, select "Add to Panel", scroll down and select "Window List", click "Add".
- Replace the Menu Bar ("Applications-Places-System") with the "Main Menu" to save space in the panel:
- Right-click the "Menu Bar" and select "Remove From Panel".
- Right-click the panel, select "Add to Panel" and choose "Main Menu", click "Add".
- Right-click the items (Firefox, etc) and untick "Lock to Panel".
- Right-click the added "Main Menu", select "Move" to relocate it to the far left. (See Note 1 below)
Note 1: The Main Menu shows the "Lock Screen", "Log Out" and "Shut Down" items if you remove the "Indicator Applet Session" item (which shows your username and the shutdown button to the right of the panel). These three items are hidden from the Main Menu when the Indicator Applet Session item is on the panel.
Note 2: If you need to restore the panels to the original state, enter the following commands into the Terminal and re-start the system:
- sudo gconftool-2 --shutdown
- sudo rm -rf .gconf/apps/panel
- sudo pkill gnome-panel
When you set the panel to be transparent in the default Ambiance theme in Ubuntu 10.10 or 10.04, you will find that some panel items' backgrounds are not transparent, but you can make them transparent and consistent with others, following these steps:
- Go to Applications (or Main Menu) > Accessories > Terminal.
- Enter cp -R /usr/share/themes/Ambiance ~/.themes/
- Enter gedit ~/.themes/Ambiance/gtk-2.0/apps/gnome-panel.rc (for Ubuntu 10.10) OR gedit ~/.themes/Ambiance/gtk-2.0/gtkrc (for Ubuntu 10.04), to open the file with gedit.
- Search for this line bg_pixmap[NORMAL] = "img/panel.png" (for Ubuntu 10.10) OR bg_pixmap[NORMAL] = "panel_bg.png" (for Ubuntu 10.04)
- Comment out the line by placing a # at the beginning of the line, like this: # bg_pixmap[NORMAL] = ...
- Save the file.
- Go to System > Preferences > Appearance, switch to the other theme and then back to the Ambiance theme.
Themes in Ubuntu can be customized to match the applications or suit your needs. I once tried the "New Wave" theme and the menu (File, Edit, View, etc) was hardly visible on the dark background in OpenOffice. These are easy steps to customize a theme, for example, "New Wave" so that the menu can be more visible in OpenOffice.
- Go To System > Preferences > Appearance.
- Under the "Theme" tab, click the "Customize" button while the "New Wave" theme is selected.
- Under the "Controls" tab, click any other control item such as "Ambiance" and click the "Close" button.
- Now it becomes your Custom theme and you can save it as a new theme, such as "New Wave with Ambiance Controls".
The font type and color of the panel clock follow the windows text in a theme by default. In particular, if the font color is black and shown on a dark background through a transparent panel, you can't read the clock clearly, but you can tweak it by changing the font color. And you can define the font type for your panel clock as well.
The code in Step 1 below sets the font color to white and applies DS-Digital font (Note 1), bold and size 16.
- Open up the text editor Gedit and paste the following code:
style "my-panel-clock"
{
fg[NORMAL] = "#FFFFFF"
font_name = "DS-Digital Bold 16"
}
widget "*.clock-applet-button.*" style "my-panel-clock" - Save the file as .gtkrc-2.0 (including the dot in front of the filename) inside your home directory /home/your_user_name.
- Log out and log back in (OR enter killall gnome-panel into the Terminal) to see the change.
Note 2: The filename leading by a dot represents it's a hidden file and visible by toggling the key Ctrl-H in the Nautilus file browser.
In Ubuntu you can set nearly the same aero glass effect to window borders with alpha transparency as available in Windows 7.
- Press Alt+F2 to bring up "Run Application" window.
- Type gconf-editor into the box, click "Run" to bring up Configuration Editor.
- Browse to apps > gwd, look for "metacity_theme_active_opacity" on the right panel.
- Change the value in "metacity_theme_active_opacity" from 1 to 0.75 (or smaller such as 0.5 for more transparency).
- Then go to System > Preferences > CompizConfig Settings Manager
- Select "Effects" from the left panel.
- Tick "Blur Windows" and click the "Close" button. (Note: default values in Blur Windows can be applied.)
Frequently used programs can be easily pinned to the panel.
- Browse to the program from "Applications" or "Main Menu".
- Drag and drop the program to an empty space in the panel, or right-click the program and select "Add this launcher to panel".
- Right click the program icon, select "Move" and drop it to a new place in the panel.
- Right click the program icon and select "Lock to Panel".
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:
- Go To System > Preferences > Keyboard Shortcuts
- Browse to Desktop > "Run a terminal"
- Click on the Shortcut, and it shows "New shortcut..."
- Press Win+R, and it shows Mod4+R
- Click the Close button and try the new shortcut.
Note 2: Shortcuts begin with XF86 refer to special keys available to some multimedia keyboards.
Note 3: 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.
Ubuntu adds an icon to the desktop for every removable drive that you attach to your system. The icons can be hidden by these steps:
- Press Alt+F2 to bring up "Run Application" window.
- Type gconf-editor into the box, click "Run" to bring up Configuration Editor.
- Browse to apps > nautilus > desktop.
- Untick "volumes_visible" and close the window.
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:
- Press Alt+F2 to bring up "Run Application" window.
- Type gconf-editor into the box, click "Run" to bring up Configuration Editor.
- Browse to apps > metacity > general, look for "button_layout" on the right panel.
- Change the value in the "button_layout" from close,minimize,maximize: to menu:minimize,maximize,close and press the Enter key.
Windows Explorer allows for users to set a default view to all folders. In almost the same way, Ubuntu's Nautilus File Browser allows for these settings:
- Go to "Places" and open a folder.
- At the top of the File Browser, click "Edit" and "Preference".
- Under Default View, change "Icon View" to "List View", to see more details in columns.
- Tick "Show hidden and backup files" if that's your choice.
When running an application without maximized, Ubuntu always puts it in the left-top corner of the desktop by default, but you are allowed to set a program window to open up in the center of the desktop area.
- Go to System > Preferences > CompizConfig Settings Manager
- Select "Windows Management" from the left panel.
- Click "Place Windows".
- Change Placement Mode from "Smart" to "Centered", click "Back" and "Close".
Ubuntu enables "Desktop Wall" by default. By holding Ctrl-Alt keys and pressing the left-arrow or right-arrow key each time, it slides through desktop workspaces horizontally for you to choose one to work on. Alternatively, you can change this to a "rotate cube" effect.
- Go To System > Preferences > CompizConfig Settings Manager
- Select "Desktop" from the left panel.
- Tick "Rotate Cube".
- Select "Eable Desktop Cube" as this plugin is required by "Rotate Cube".
- Select "Disable Desktop Wall".
In Windows 7, frequently used programs can be pinned to the taskbar (hence called Superbar). Likewise, DockBarX, a Gnome panel plugin, can be added to Ubuntu to achieve almost the same effect to pin and unpin or launch the applications from the panel.
- Go to Ubuntu Software Center > Edit > Software Source.
- Select "Other Software" and click "Add"
- At APT line, enter ppa:dockbar-main/ppa, click "Add Source" and "Close"
- At the left panel of Ubuntu Software Center, select "PPA for Dockbar Main Group", which is added after the above steps
- At the right panel, select DockbarX and click "Install"
- Right click the panel and click “Add to Panel”.
- Select the DockBarX Applet and click "Add".
In Windows 7, you can click and drag a window to the left or right edge of the desktop and it will fill half of the screen, or snap a window to the top edge of the desktop and it will be maximized.
In Ubuntu, you can click and drag a window to the left, right or top edge of the desktop to achieve the same result.
- In addition to CompizConfig Settings Manager, install WmCtrl if not added.
- Go to Applications (or Main Menu) > Accessories > Terminal.
- Enter sudo apt-get install wmctrl
- Enter password when prompted.
- Go To System > Preferences > CompizConfig Settings Manager.
- Select "General" from the left panel and click "Commands".
- In Command line 0, 1 and 2, paste the following codes:
- Command line 0, paste WIDTH=`xdpyinfo | grep 'dimensions:' | cut -f 2 -d ':' | cut -f 1 -d 'x'` && HALF=$(($WIDTH/2)) && wmctrl -r :ACTIVE: -b add,maximized_vert && wmctrl -r :ACTIVE: -e 0,0,0,$HALF,-1
- Command line 1, paste WIDTH=`xdpyinfo | grep 'dimensions:' | cut -f 2 -d ':' | cut -f 1 -d 'x'` && HALF=$(($WIDTH/2)) && wmctrl -r :ACTIVE: -b add,maximized_vert && wmctrl -r :ACTIVE: -e 0,$HALF,0,$HALF,-1
- Command line 2, paste wmctrl -r :ACTIVE: -b add,maximized_vert,maximized_horz
- In the same window, click "Edge Bindings" tab.
- Change Run Command 0, 1 and 2 from "None" to "Left", "Right" and "Top" respectively.
- Click "Back" button and select "General Options", change "Edge Trigger Delay" to about 500.
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.
- Install Storage Device Manager if it has not been added.
- Go to Applications (or Main Menu) > Ubuntu Software Center.
- Enter pysdm in the Search Box.
- Select Storage Device Manager, click the "Install" button.
- Go to System > Administration > Storage Device Manager.
- Extend the list of sda and select the sda you want to auto mount, click 'OK' to configure.
- Click the "Assistant" button.
- Uncheck "Mount file system in read only mode" and keep "The file system is mounted at boot time" checked.
- 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.
Note: In the background, Storage Device Manager follows your setting to edit the configuration file /etc/fstab which contains the necessary info to automate the process of mounting partitions. (See Introduction to fstab)
A USB storage device plugged into the system usually mounts automatically, but if for some reasons it doesn't automount, it's possible to manually mount it with these steps.
- Go to Applications (or Main Menu) > Accessories > Terminal.
- Enter sudo mkdir /media/usb to create a mount point called usb.
- Enter sudo fdisk -l to look for the USB drive already plugged in, let's say the drive you want to mount is /dev/sdb1.
- Enter sudo mount -t vfat /dev/sdb1 /media/usb -o uid=1000,gid=100,utf8,dmask=027,fmask=137 to mount a USB drive formatted with FAT16 or FAT32 system. OR:
Enter sudo mount -t ntfs-3g /dev/sdb1 /media/usb to mount a USB drive formatted with NTFS system.
Ubuntu only includes completely free software by default and does not configure proprietary media formats such as mp3 and mp4 'out of the box'. The required codecs however can be easily installed for the default player to playback these files following a few simple steps below.
- Double click an mp3 file in a folder.
- Click "Search" button when the the default player shows up with a "Search for suitable plugin?" window.
- Click the "Install" and "Confirm" buttons to download and install the restricted software.
- Restart the player after the package files are installed.
When I first installed Ubuntu onto a PC with an integrated audio device and tried to play a media file on a player, it had no sound. I tried these simple steps in setting Sound Preferences and then it had sound. It works for me for the audio device I have.
- Go to System > Preferences > Sound to bring up the Sound Preferences window.
- Under the Hardware tab, change Profile to Analog Stereo Duplex from the drop-down menu.
- Under the Output tab, change Connector to Analog Output (LFE)/Amplifier from the drop-down menu.
Playing a media file in a proprietary format on a player might also have no sound if the required codecs are not installed. In this case, see Enable Media Playback in this article.
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:
- Go to System > Preferences > Startup Applications.
- Under the "Startup Programs" tab, untick "GNOME Login Sound"
- Click Close
- Press Alt+F2 to bring up "Run Application" window.
- Paste gksu nautilus /usr/share/sounds/ubuntu/stereo into the box, click "Run" to open Nautilus in the right folder.
- Rename the original file desktop-login.ogg to another such as desktop-login-original.ogg for backup
- Copy your sound file in ogg format to the above folder and name the file as desktop-login.ogg
- Log out and log back in to listen to the new login sound.
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.
- Go to System > Preferences > Keyboard Shortcuts.
- Click the Add button to create a custom shortcut.
- Enter xkill to both the Name and Command boxes and click the Apply button.
- Click on Disabled at the xkill row in the Keyboard Shortcuts window (Disabled is then changed to New shortcut...).
- Press a new key combination, e.g. Ctrl+Alt+X (New shortcut... is then changed to Ctrl+Alt+X).
- Click the Close button.
After full installation, Ubuntu is set to be the default operating system to boot up if no key is pressed within a few seconds on a multi-boot system. You might want to set your preferred operating system to boot up by default. This can be done easily with StartUp-Manager.
- Go to Applications (or Main Menu) > Accessories > Terminal.
- Enter sudo apt-get install startupmanager (OR copy the highlighted code and, in the Terminal, press Ctrl-Shift-V to paste it).
- Enter password used upon installation of Ubuntu.
- Go to System > Administration > StartUp-Manager
- Enter the same password to perform pre-configuration tasks, which include searching bootloaders to operating systems.
- Select the default operating system from the pull-down menu, click "Close" to perform post-configuration tasks.
Each time when Ubuntu updates to a new Linux kernel, the old one is left behind and the boot menu gets longer. If your new Linux kernel works well, it's safe to remove the old one and clean up the boot menu. Do take these steps carefully as incorrect removal of the items can make your system unbootable.
- Go to Applications (or Main Menu) > Accessories > Terminal.
- Enter uname -r to print the Linux kernel version you're running (e.g. 2.6.32-22-generic).
- Go to System > Administration > Synaptic Package Manager.
- Click Status from the left panel and select Installed.
- Enter the main version number (e.g. 2.6.32) in the Search box.
- Right-click the items with smaller sub version number (e.g. 2.6.32-21) for older Linux kernel and select Mark for Complete Removal. The files for the older version to remove may include linux-headers-2.6.32-21, linux-headers-2.6.32-21-generic and linux-image-2.6.32-21-generic.
- Click Apply from the top panel.
- Click Apply again from the pop-up window to confirm removal of the marked packages. The boot menu will be cleaned up automatically after the removal is confirmed.
A simple command can be entered in the Terminal to schedule a time for the system to shut down.
- Go to Applications (or Main Menu) > Accessories > Terminal.
- 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). - Enter password and minimize the Terminal window.
GShutdown is a GUI program for scheduling a time to shutdown the system but the current version 0.2 is noted not working well in the newer Ubuntu system.
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:
- Go to Applications (or Main Menu) > Accessories > Terminal.
- Paste sudo apt-get install ttf-mscorefonts-installer into the Terminal (by pressing Ctrl-Shift-V in the Terminal after copying the highlighted code).
- Go to System > Preferences > Appearance > Fonts.
- Click each of them, pick a font and size to configure for window title and so on.
- Press Alt+F2 to bring up "Run Application" window.
- Paste gksu nautilus /usr/share/fonts/truetype into the box, click "Run" to open Nautilus in the right folder.
- Create a new sub-folder and copy your files ending with .ttf into the sub-folder.
- Enter sudo fc-cache -f -v in the Terminal to rebuild the font information.
Note: If you like the Tahoma font which is not included in the mscorefonts package, you might want to copy the two files tahoma.ttf and tahomabd.ttf from /Windows/Fonts and install them.
Screenlets are small applications to represent things such as sticky notes, clocks, calendars around on your desktop. You can launch a pre-installed screenlet from Screenlet Manager, or install a new one into the Manager for launching it. Here are the steps for installing and launching a screenlet, for example, WaterMark System Information.
- Install Screenlets Manager if it has not been added.
- Go to Applications (or Main Menu) > Ubuntu Software Center.
- Enter screenlets in the Search Box.
- Select Screenlets, click the "Install" button.
- Download the screenlet "WaterMark System Information" to a folder.
- Go to Applications (or Main Menu) > Accessories > Screenlets.
- Click Install, select Install Screenlet and click OK.
- Browse to the folder, select the file downloaded and click "Open" to install the screenlet into the Screenlets Manager.
- Select the screenlet "WaterMark" and click "Launch/Add". (Tips: you can add more than one WaterMark screenlet and set it to display other system information.)
Ubuntu uses OpenJDK by default, but I note that some web services such as ezyZip.com might need the Sun Java Runtime Environment (JRE) to be installed in the system for running the services properly. If you would like to get the proprietary Sun Java packages for your system, you can download and install them from the Canonical Partner Repository with the steps below:
- Go to Applications (or Main Menu) > Accessories > Terminal.
- Enter sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner" to add the partner repository.
- Enter sudo apt-get update to update the source list.
- Enter sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts to download and install the Sun Java packages. (If asked to accept the Distributor License for Java (DLJ) terms, use the left/right key to navigate and select Yes, then press the Enter key for installation).
- Enter sudo java -version to check the version of the Java used in the system.
- Enter sudo update-alternatives --config java to choose the default Java for use in the system when necessary.
Ubuntu Software Center lets you search and get free software. If an application you need is not included in the Center, you can go to System > Administration > Synaptic Package Manager, type in an application name to search and install a software package from the repositories.
Alternatively, you can get the latest freeware applications by clicking the Install this now button from the GetDeb Repository after the getdeb package is installed with the instructions given.
See also our Best Free Software for Linux.
Note |
CompizConfig Settings Manager (ccsm), if not added yet, can be installed this way:
Thanks to: http://www.techsupportalert.com/content/ubuntu-tips-and-tricks.htm |
No comments:
Post a Comment