个人工具

“UbuntuHelp:QuickTips”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
(新页面: {{From|https://help.ubuntu.com/community/QuickTips}} {{Languages|UbuntuHelp:QuickTips}} This page has small little "quick" tips to modify your ubuntu installation. === Tip #1 Hide Rec...)
 
第1行: 第1行:
 
{{From|https://help.ubuntu.com/community/QuickTips}}
 
{{From|https://help.ubuntu.com/community/QuickTips}}
 
{{Languages|UbuntuHelp:QuickTips}}
 
{{Languages|UbuntuHelp:QuickTips}}
 
 
 
This page has small little "quick" tips to modify your ubuntu installation.
 
This page has small little "quick" tips to modify your ubuntu installation.
 
 
 
=== Tip #1 Hide Recent Documents ===
 
=== Tip #1 Hide Recent Documents ===
 
 
==== What ====
 
==== What ====
 
Places --> Recent Documents lists all the recently opened documents. If you wish to disable it, you need to do the following:
 
Places --> Recent Documents lists all the recently opened documents. If you wish to disable it, you need to do the following:
 
 
==== Disable ====
 
==== Disable ====
 
Open a terminal and type:
 
Open a terminal and type:
 
 
<pre><nowiki>
 
<pre><nowiki>
 
chmod 400 ~/.recently-used
 
chmod 400 ~/.recently-used
 
</nowiki></pre>
 
</nowiki></pre>
 
 
==== Enable ====
 
==== Enable ====
 
 
If you have already disabled it, you can reenable Recent Documents by opening a terminal and typing:
 
If you have already disabled it, you can reenable Recent Documents by opening a terminal and typing:
 
 
<pre><nowiki>
 
<pre><nowiki>
 
chmod 600 ~/.recently-used
 
chmod 600 ~/.recently-used
 
</nowiki></pre>
 
</nowiki></pre>
 
 
------
 
------
 
=== Tip # 2 Change Gnome Foot to Ubuntu Logo on Panel ===
 
=== Tip # 2 Change Gnome Foot to Ubuntu Logo on Panel ===
 
 
==== What ====
 
==== What ====
 
Older versions of Ubuntu (before 5.10 Breezy Badger) came with the Gnome foot on the Applications menu. If you want you can change it to look like this:
 
Older versions of Ubuntu (before 5.10 Breezy Badger) came with the Gnome foot on the Applications menu. If you want you can change it to look like this:
 
 
https://help.ubuntu.com/community/QuickTips?action=AttachFile&do=get&target=App-button.png
 
https://help.ubuntu.com/community/QuickTips?action=AttachFile&do=get&target=App-button.png
 
 
Of course, you can also use these steps to put any image you want in that space - just create or find an image that suits you, and follow the steps below to put it in place.
 
Of course, you can also use these steps to put any image you want in that space - just create or find an image that suits you, and follow the steps below to put it in place.
 
 
==== Copy image to your PC ====
 
==== Copy image to your PC ====
 
 
All you need to do is right click on one image below, select <code><nowiki>Save image as..</nowiki></code> to a location you can remember and have permission to.
 
All you need to do is right click on one image below, select <code><nowiki>Save image as..</nowiki></code> to a location you can remember and have permission to.
 
 
{|border="1" cellspacing="0"
 
{|border="1" cellspacing="0"
 
|https://help.ubuntu.com/community/QuickTips?action=AttachFile&do=get&target=Gnome-logo-icon-transparent.png%7C%7Cattachment%3AUbuntuI.png%7C%
 
|https://help.ubuntu.com/community/QuickTips?action=AttachFile&do=get&target=Gnome-logo-icon-transparent.png%7C%7Cattachment%3AUbuntuI.png%7C%
 
|}
 
|}
 
 
==== From Command line ====
 
==== From Command line ====
 
 
Now all you have to do is run the following commands:  
 
Now all you have to do is run the following commands:  
 
<pre><nowiki>
 
<pre><nowiki>
第53行: 第34行:
 
</nowiki></pre>
 
</nowiki></pre>
 
replace '''[path]'''  where you downloaded the image & '''[image]''' with the name of the icon.
 
replace '''[path]'''  where you downloaded the image & '''[image]''' with the name of the icon.
 
 
You need to restart Gnome, logout then hit Ctrl+Alt+Backspace or via <code><nowiki>sudo killall gnome-panel</nowiki></code>
 
You need to restart Gnome, logout then hit Ctrl+Alt+Backspace or via <code><nowiki>sudo killall gnome-panel</nowiki></code>
 
 
 
{i} This also changes the icon of '''System->ABOUT GNOME'''
 
{i} This also changes the icon of '''System->ABOUT GNOME'''
 
 
------
 
------
 
=== Tip #3 Keychain - Manage ssh keys ===
 
=== Tip #3 Keychain - Manage ssh keys ===
 
 
==== What ====
 
==== What ====
 
Instead of constantly starting up ssh-agent and ssh-add, it is possible to use "keychain" to manage your ssh keys.
 
Instead of constantly starting up ssh-agent and ssh-add, it is possible to use "keychain" to manage your ssh keys.
 
 
==== Command Line ====
 
==== Command Line ====
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo apt-get install keychain
 
sudo apt-get install keychain
 
</nowiki></pre>
 
</nowiki></pre>
 
 
==== Edit File ====
 
==== Edit File ====
 
 
You then should add the following lines to your ${HOME}/.bashrc or /etc/bash.bashrc:
 
You then should add the following lines to your ${HOME}/.bashrc or /etc/bash.bashrc:
 
 
<pre><nowiki>
 
<pre><nowiki>
 
keychain id_rsa id_dsa
 
keychain id_rsa id_dsa
** ~/.keychain/`uname -n`-sh
+
# ~/.keychain/`uname -n`-sh
 
</nowiki></pre>
 
</nowiki></pre>
 
 
------
 
------
 
=== Tip #4 Check for and fix filesystem errors on boot ===
 
=== Tip #4 Check for and fix filesystem errors on boot ===
 
 
==== What ====
 
==== What ====
 
 
This little tip turns on filesystem check to run at boot. It will check for and fix errors (similar to windows chkdisk) but at the same time increase your boot time.
 
This little tip turns on filesystem check to run at boot. It will check for and fix errors (similar to windows chkdisk) but at the same time increase your boot time.
 
 
==== Edit File ====
 
==== Edit File ====
 
 
Open /etc/default/rcS with your text editor of choice (root permissions needed) and change this line:
 
Open /etc/default/rcS with your text editor of choice (root permissions needed) and change this line:
 
 
<pre><nowiki>
 
<pre><nowiki>
 
FSCKFIX=no
 
FSCKFIX=no
第97行: 第63行:
 
FSCKFIX=yes
 
FSCKFIX=yes
 
</nowiki></pre>
 
</nowiki></pre>
 
 
------
 
------
 
=== Tip #5 Some Gnome & Nautilus Tricks ===
 
=== Tip #5 Some Gnome & Nautilus Tricks ===
 
 
==== What ====
 
==== What ====
 
 
Gnome and its file manager, Nautilus, have some interesting, useful but hard to discover tricks built in. Among them:
 
Gnome and its file manager, Nautilus, have some interesting, useful but hard to discover tricks built in. Among them:
 
 
==== Actions ====
 
==== Actions ====
 
 
* Dragging a file with middle mouse button will show a menu upon release, allowing you to select among "move", "copy", "link to" and "cancel". Similar to right-mouse drag in Windows.  
 
* Dragging a file with middle mouse button will show a menu upon release, allowing you to select among "move", "copy", "link to" and "cancel". Similar to right-mouse drag in Windows.  
 
* Alt-left drag in any window will let you move that window, without having to hunt for the title bar. Just click anywhere in a window while the Alt key is pressed, and you can move the window.  
 
* Alt-left drag in any window will let you move that window, without having to hunt for the title bar. Just click anywhere in a window while the Alt key is pressed, and you can move the window.  
第112行: 第73行:
 
* Alt-right click anywhere in the window will bring up the window menu (the one that is usually located by pressing on the top left corner of the title bar).  
 
* Alt-right click anywhere in the window will bring up the window menu (the one that is usually located by pressing on the top left corner of the title bar).  
 
* Double-clicking on the title bar will expand a window to full-screen.
 
* Double-clicking on the title bar will expand a window to full-screen.
**** This behaviour can be modified in '''System menu --> Preferences --> Windows'''. Look for the "Titlebar Action" section - the "roll up when double-clicked" version can be very useful to manage the palettes and toolbars of applications like the GIMP, Inkscape or Scribus.
+
** This behaviour can be modified in '''System menu --> Preferences --> Windows'''. Look for the "Titlebar Action" section - the "roll up when double-clicked" version can be very useful to manage the palettes and toolbars of applications like the GIMP, Inkscape or Scribus.
 
* To add an item to your Places menu, as well as to the Places sidebar in Nautilus, navigate to that location in Nautilus, and choose Bookmarks>Add Bookmark.
 
* To add an item to your Places menu, as well as to the Places sidebar in Nautilus, navigate to that location in Nautilus, and choose Bookmarks>Add Bookmark.
 
 
 
----
 
----
 
[[category:CategoryDocumentation]]
 
[[category:CategoryDocumentation]]
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2007年11月30日 (五) 21:11的版本

This page has small little "quick" tips to modify your ubuntu installation.

Tip #1 Hide Recent Documents

What

Places --> Recent Documents lists all the recently opened documents. If you wish to disable it, you need to do the following:

Disable

Open a terminal and type:

chmod 400 ~/.recently-used

Enable

If you have already disabled it, you can reenable Recent Documents by opening a terminal and typing:

chmod 600 ~/.recently-used

Tip # 2 Change Gnome Foot to Ubuntu Logo on Panel

What

Older versions of Ubuntu (before 5.10 Breezy Badger) came with the Gnome foot on the Applications menu. If you want you can change it to look like this: QuickTips?action=AttachFile&do=get&target=App-button.png Of course, you can also use these steps to put any image you want in that space - just create or find an image that suits you, and follow the steps below to put it in place.

Copy image to your PC

All you need to do is right click on one image below, select Save image as.. to a location you can remember and have permission to.

https://help.ubuntu.com/community/QuickTips?action=AttachFile&do=get&target=Gnome-logo-icon-transparent.png%7C%7Cattachment%3AUbuntuI.png%7C%

From Command line

Now all you have to do is run the following commands:

cd /usr/share/pixmaps/
sudo mv gnome-logo-icon-transparent.png gnome-logo-icon-transparent.bak
sudo mv /[path]/[image].png ./gnome-logo-icon-transparent.png

replace [path] where you downloaded the image & [image] with the name of the icon. You need to restart Gnome, logout then hit Ctrl+Alt+Backspace or via sudo killall gnome-panel {i} This also changes the icon of System->ABOUT GNOME


Tip #3 Keychain - Manage ssh keys

What

Instead of constantly starting up ssh-agent and ssh-add, it is possible to use "keychain" to manage your ssh keys.

Command Line

sudo apt-get install keychain

Edit File

You then should add the following lines to your ${HOME}/.bashrc or /etc/bash.bashrc:

keychain id_rsa id_dsa
# ~/.keychain/`uname -n`-sh

Tip #4 Check for and fix filesystem errors on boot

What

This little tip turns on filesystem check to run at boot. It will check for and fix errors (similar to windows chkdisk) but at the same time increase your boot time.

Edit File

Open /etc/default/rcS with your text editor of choice (root permissions needed) and change this line:

FSCKFIX=no

to

FSCKFIX=yes

Tip #5 Some Gnome & Nautilus Tricks

What

Gnome and its file manager, Nautilus, have some interesting, useful but hard to discover tricks built in. Among them:

Actions

  • Dragging a file with middle mouse button will show a menu upon release, allowing you to select among "move", "copy", "link to" and "cancel". Similar to right-mouse drag in Windows.
  • Alt-left drag in any window will let you move that window, without having to hunt for the title bar. Just click anywhere in a window while the Alt key is pressed, and you can move the window.
  • Alt-middle drag allows you to resize a window without having to hunt for the edges of the window. Neat.
  • Alt-right click anywhere in the window will bring up the window menu (the one that is usually located by pressing on the top left corner of the title bar).
  • Double-clicking on the title bar will expand a window to full-screen.
    • This behaviour can be modified in System menu --> Preferences --> Windows. Look for the "Titlebar Action" section - the "roll up when double-clicked" version can be very useful to manage the palettes and toolbars of applications like the GIMP, Inkscape or Scribus.
  • To add an item to your Places menu, as well as to the Places sidebar in Nautilus, navigate to that location in Nautilus, and choose Bookmarks>Add Bookmark.