20 Essential Tips Every Ubuntu User Should Know
Manually Run Programs
Many times, you will need to run a program and it may not be in the Applications menu. Normally, you would have to open a terminal and launch the program from there, but there is an easier way. By pressing ALT and F2, you can initiate a Run dialog that allows you to launch a program (with any necessary switches/options) without having to bind it to a terminal.
By default, programs launched with this method run with your own account's permission levels, but it is possible to launch programs that need superuser permissions by running “gksu $program”. Gksu is a frontend for Sudo that allows temporary privilege escalation. You can also view a full list of programs (hidden by default) and populate the run dialog with them by clicking on the list entry. Both native and Wine programs will appear in the list.
Gksu has its own benefits as well. Although it defaults to root, running gksu by itself will produce a dialog that shows a list of ALL users and services. You may then launch a program from any account.
Handy Window Tricks
Ubuntu offers many options for working with open windows. Some require compositing to be enabled while others will still work on non-accelerated systems:
• To shade a window, (i.e. hide all but the title bar) ensure that compositing effects are enabled and move your pointer to the title bar. To hide a window, scroll up with your mouse wheel. To show the window again, scroll down.
• Sometimes, it is necessary to keep a window on top of the others even when it loses focus. To do this, right-click on the title bar and select the “Always On Top” checkbox. To restore normal behavior, clear the checkbox by clicking on it again.
• Since Ubuntu and most other distros have support for multiple desktops, (also called workspaces) it is convenient to allocate open programs between them to keep things from getting too crowded on your monitor. To move a program to a different desktop, right-click on the title bar and select either “Move to Workspace Left/Right” or “Move to Another Workspace”. Furthermore, it is possible to drag windows from one desktop to another using the mouse if certain compositing effects are enabled.
Import Documents from Windows
When you are setting up a dual-boot system with Ubuntu, it is possible to import your documents and settings (web browser favorites, etc.) During installation, Ubiquity (the Ubuntu installer) will detect any Windows partitions that exist on the system and will present you with an opportunity to migrate your settings to Ubuntu. By expanding the list, you are able to pick and choose which parts of the system to import (selecting the main checkbox will import all of them).
Encrypt Your Home Directory
Home directory encryption is a feature that was introduced in Ubuntu 9.04. During installation you have the option of checking a box in the setup utility that will cause your home directory to be encrypted automatically. This will help prevent your files from being compromised. Encryption/decryption is automatically handled behind the scenes, so you don't need to worry about securing your files manually. On the first boot after setting up an encrypted home directory, you will be prompted to learn the master password for your home directory. (To view it again, run the “encryptfs-unwrap-passphrase” command.) This master encryption password is automatically generated by Ubuntu and is NOT your login password. You will need this master password to recover your files if you are not able to boot normally, so store a hard copy of it in a safe place.
