This section details some tips for using and customising Ubuntu's desktop environment (called GNOME), and the file manager (called Nautilus).
Ubuntu comes with the Alacarte Menu Editor, so you can customize your menus and add entries for applications that don't automatically appear after they are installed.
To add a new menu entry:
-
Open Alacarte with → → , or by right-clicking on any top-level menu and choosing .
-
In Alacarte's left-hand pane, choose the submenu the new entry should appear in.
-
Choose
→ . In the New Entry window, choose a Name, Comment, Command and Icon. The Command will usually be the package name, Name is what will appear on the menu, and the Comment will appear in the tooltip that appears near the menu entry. Icons are added to the/usr/share/pixmaps
directory by default, or can be chosen from anywhere in your files.
To change the order of menu entries, use the up and down arrows on the right-hand side of the Alacarte window.
To stop a menu entry from being displayed, use the checkboxes beside each entry. This does not erase the menu entry, so you can restore it later in the same way.
Sometimes it can be useful to start a program manually, for example when the program does not have an entry in the menu. This is easy to do with the Run Applications dialogue.
For an application you intend to use regularly that does not have a menu entry, it is also very easy to add a menu entry to Ubuntu. (see the section called “Menu Editing”)
-
Open the Run Applications dialogue by typing: Alt+F2
-
Enter the name of the program you wish to run, and press Enter.
-
Choose
→ → . -
Click on the
tab. -
Use the
, , and buttons to manage programs to run at startup. Some programs will automatically add themselves to this list when you configure them.
It is possible to login a user automatically when the computer boots. This is not recommended for most computers, as it is not secure and may allow other users access to your information
-
-
Select the
tab. Check the Enable Automatic Login checkbox option. -
Choose the user you wish to be automatically logged in.
Ubuntu's file manager Nautilus provides two modes in which you can interact with your filesystem: Spatial mode and Browser mode.
-
In Browser mode, the file manager window represents a browser, which can display any location. Opening a folder updates the current file manager window to show the contents of the new folder.
-
In Spatial mode, the file manager window represents a particular folder. Opening a folder opens the new window for that folder. Each time you open a particular folder, you will find its window displayed in the same place on the screen and the same size as the last time you viewed it (this the reason for the name).
Browser mode is the default setting on Ubuntu, but you may wish to change this:
-
In Nautilus, choose → .
-
Click on the Behavior tab.
-
Unselect the Always open in browser windows check box.
-
Close and reopen Nautilus.
-
In Nautilus, use the Ctrl+H shortcut keys to toggle hidden files and folders on and off, or select → .
-
To permanently show all hidden files and folders, choose
→ . -
Click on the Views tab.
-
Select the Show hidden and backup files check box.
The Location Bar is the bar in your file manager in which you can type an address. Toggle the bar on and off with: Ctrl+L shortcut keys.
→ You can also use the-
Make sure the Nautilus Location Bar is open (see the section called “Open the Location Bar in Nautilus”).
-
In the Location Bar, enter the following:
For SSH, use:
ssh://username@ssh.server.com
For FTP, use:
ftp://username@ftp.server.com
For SFTP, use:
sftp://username@sftp.server.com
Replace username with your username and replace everything after the @ symbol with the server's address. You will be prompted for a password if needed. If there is no username (anonymous) omit the username and the @ symbol.
Alternatively, to specify your password manually, change one of the above like so:
ftp://username:password@ftp.server.com
-
To access remote servers easily through Nautilus, add a permanent bookmark to the server by selecting → and entering the details for the remote server.
-
In Nautilus, right click on the file and choose from the menu that appears. The Properties dialog opens.
-
Click on the
tab. A list of applications appears. -
Select the default application you want for the file type. If the application is not on the list, use the
button to add the application to the list.
To enable support for opening files with administrative privileges from the file manager, you need to add a Nautilus script:
Please note that opening files with administrative privileges constitutes a security risk. Always ensure that you are familiar with the file that you are opening. |
-
Open a new file to edit in the relevant directory:
gedit $HOME/.gnome2/nautilus-scripts/Open\ as\ Administrator
-
Insert the following lines into the new file:
for uri in $NAUTILUS_SCRIPT_SELECTED_URIS; do gksudo "gnome-open $uri" & done
-
Save the edited file (an example)
-
Make the edited file executable:
chmod +x $HOME/.gnome2/nautilus-scripts/Open\ as\ Administrator
-
You can now open files as root by right clicking on the file and selecting
→
This section describes how to install extra fonts from the Ubuntu archives.
-
For international fonts, install the following packages from the Universe repository (see Chapter 2, Adding, Removing and Updating Applications):
xfonts-intl-arabic
xfonts-intl-asian
xfonts-intl-chinese
xfonts-intl-chinese-big
xfonts-intl-european
xfonts-intl-japanese
xfonts-intl-japanese-big
xfonts-intl-phonetic
-
For Microsoft TrueType core fonts, install the msttcorefonts package from the Multiverse repository (see Chapter 2, Adding, Removing and Updating Applications).
-
For Ghostscript fonts, install the gsfonts-x11 package (see Chapter 2, Adding, Removing and Updating Applications).
-
After installing any new font, rebuild the font information files by typing the following at a terminal prompt:
sudo fc-cache -f -v
If you prefer to download individual fonts by hand, you can install them simply and easily by opening a file manager, and typing fonts:/// into the location bar (See the section called “Open the Location Bar in Nautilus”). Then you can simply drag the font you downloaded into the group of existing fonts.
-
Install the rar package from the Multiverse repository (see Chapter 2, Adding, Removing and Updating Applications).
-
Run:
sudo ln -fs /usr/bin/rar /usr/bin/unrar
-
To open a rar file, double click on it.
gDesklets is a system for bringing mini programs (desklets), such as weather forecasts, news tickers, system information displays, or music player controls, onto your desktop, in a symbiotic relationship of eye candy and usefulness.
-
Install the gdesklets and gdesklets-data packages from the Universe repository (see Chapter 2, Adding, Removing and Updating Applications).
-
Choose:
→ → -
For more information, visit the gDesklets website
To hide Recent Documents from the Places menu, open a terminal and run the command:
chmod 400 ~/.recently-used
To enable it again, run the command:
chmod 600 ~/.recently-used
-
Open the Configuration Editor, by running the program
gconf-editor
(see the section called “Start a Program Manually”). -
Choose
→ → . -
Tick the box beside computer_icon_visible, home_icon_visible, and trash_icon_visible. The changes take effect immediately.
-
Choose
→ → -
Click on the
tab, and select the Custom option. -
In the Command text box, type
mozilla-thunderbird %s
, then close the dialog.
-
Save and close all open applications.
-
Use the Ctrl+Alt+Backspace shortcut keys to restart GNOME.
-
If Ctrl+Alt+Backspace is disabled, type
sudo /etc/init.d/gdm restart
(See the section called “Preventing the Ctrl-Alt-Backspace shortcut keys from restarting X” to disable Ctrl+Alt+Backspace.)
-
Make a backup copy of your existing
/etc/X11/xorg.conf
file:sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup
-
Open
/etc/X11/xorg.conf
for editing:gksudo gedit /etc/X11/xorg.conf
-
Add the following lines to the end of the file:
Section "ServerFlags" Option "DontZap" "yes" EndSection
-
Save the edited file (an example).
-
The change will take effect the next time you log in to GNOME. If you want the change to take effect immediately, restart GNOME manually. (See the section called “Restart GNOME without rebooting the computer”.)