Make Gnome System Monitor appear when Ctrl AltDelete is hit

Windows NT, 2000, XP and Vista all bring-up the Windows Task Manager application when [Ctrl ]+[Altj+[Delete is hit. Under Ubuntu, this key combination brings-up the shutdown window. If you want to switch to the Windows way of working, and start GNOME System Monitor each time [Ctrl]+[Alt]+[Delete] is hit, follow these instructions:

1. Start by removing the existing key binding. Click System ^ Preferences ^ Keyboard Shortcuts and scroll down to the entry under the Desktop heading that reads Log out. Click Ctrl+Alt+Delete on the right-hand side of the window and, once it's highlighted, hit the

Applications Places System £ j(j(| Tue Jun 24, 11:35 AM 0 ^elr

Applications Places System £ j(j(| Tue Jun 24, 11:35 AM 0 ^elr

Figure 3.31: A QOTD message appearing after logon (see Tip 183, on page 221)

Figure 3.31: A QOTD message appearing after logon (see Tip 183, on page 221)

[Backspace key. It should now read Disabled. Close the Keyboard Shortcuts window.

2. Start gconf-editor and navigate to /apps/metacity/keybinding_commands, and double-click the command_1 key. In the Value box ofthe dialog that appears, type gnome-system-monitor. Then hit OK. Now navigate to /apps/metacity/global_keybindings in gksu gconf-editor. Look for the key that reads run_command_1 and double-click it. In the Value text field of the dialog that appears, type the following (type the actual words, including the enclosing angle brackets—don't hit the actual keys!): <Control><Alt>Delete.

Following this, Gnome System Monitor should start whenever you hit [Ctrl ]+[ Alt ]+Del ete ]. Unlike with Windows, you will be prompted to type your administrator password. Bear in mind that Gnome System Monitor will be running with full administrator privileges. You can kill any program by right-clicking its entry in the list under the Processes tab and selecting Kill Process.

When you first installed Ubuntu you were offered the chance to set the Ubuntu hostname, which is what appears at the command-prompt and is also how your computer is identified should you activate services such as file sharing.

You probably ended-up with something like john-desktop. To change the hostname to something more exiting, you'll need to edit both the /etc/hosts and /etc/hostname files. This is best done in run level 1 (rescue mode), when practically no other software is running.

Here are the steps required:

1. Logout so you return to the login screen and then switch to a virtual console. Login and type sudo telinit 1. This will switch you to rescue mode. At the text menu that appears, use the cursor keys to select Root - drop to root shell prompt and hit (Enter).

2. Type nano /etc/hosts. Identify your hostname within the file (it will most likely be on the second line) and change it to what you wish. Remember that hostnames only involve letters and/or numbers, and no spaces. You should also steer-clear of symbols. When you've finished making your edits, hit [Ctrl]+Q to quit the program. Type Q to save the modified buffer (ie save the file), and then hit (Enter) to actually save the file and quit the program.

3. Repeat the step above, this time editing the /etc/hostname file. This file contains only the hostname. Change it to exactly what you typed earlier (it must be completely identical!). Then save the file and quit nano.

4. Reboot the computer by typing telinit 6.

When the computer reboots you should find that your hostname is changed. If the computer shares files with other computers, they may find that any shortcuts they created to your computer's shared resources

Change your computer's name (hostname)

no longer work. They will now have to recreate them afresh by browsing for your computer as if you had just started sharing folders.

If you've used Wubi to install Ubuntu into your Windows file system, you'll be used to seeing the Windows boot menu, from which you can either choose Windows or Ubuntu. Ifyou're an impatient type you might like to know you can reduce the number of seconds this menu appears. To do so, open C:\boot.ini in Notepad from within Windows, and look for the line that reads timeout. Change the value following this to the number of seconds you want the menu to appear for. For example, for a five second delay, change the line to read timeout=5.

Don't change the value to zero! This will mean the menu won't appear.

You won't be able to save the file until you change its read-only status— using a file browsing window, right-click the file, click Properties, and remove the check from the Read only box under the Attributes heading.

Note that if you can't see the boot.ini file, you'll need to configure Windows to show hidden files. Open My Computer, click Tools ^ Folder Options, and then click the View tab in the dialog that appears. In the list under Advanced settings, ensure Show Hidden Files and Folders is checked, and ensure both Hide Extensions for Known File Types and also Hide Protected Operating System Files are unchecked.

For more Wubi tips, see Tip 19, on page 77, and Tip 217, on page 252.

Was this article helpful?

0 0

Post a comment