特殊:Badtitle/NS100:QuickTips:修订间差异
小 新页面: {{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... |
小无编辑摘要 |
||
(未显示同一用户的8个中间版本) | |||
第1行: | 第1行: | ||
{{From|https://help.ubuntu.com/community/QuickTips}} | {{From|https://help.ubuntu.com/community/QuickTips}} | ||
{{Languages|UbuntuHelp:QuickTips}} | {{Languages|UbuntuHelp:QuickTips}} | ||
These tips are meant to help you on your way to breaking in Ubuntu. The tips found here are meant to be quick and easy to execute, and provide a small but marked difference in how Ubuntu operates. The tips should also not be overly simple, such as changing the desktop background, but rather be along the lines of changing how Ubuntu reacts. The important thing to remember is that whatever it does, it needs to make life easier in some way. | |||
=== 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 re-enable Recent Documents by opening a terminal and typing: | |||
If you have already disabled it, you can | |||
<pre><nowiki> | <pre><nowiki> | ||
chmod 600 ~/.recently-used | chmod 600 ~/.recently-used | ||
</nowiki></pre> | </nowiki></pre> | ||
------ | ------ | ||
=== Tip # 2 Change | === Tip # 2 Change Ubuntu Logo to Another image on Panel === | ||
==== Note ==== | |||
==== | 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 follow these instructions as well: | ||
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 | |||
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 | ||
Following these instructions, you can 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 | |https://help.ubuntu.com/community/QuickTips?action=AttachFile&do=get&target=Gnome-logo-icon-transparent.png||https://help.ubuntu.com/community/QuickTips?action=AttachFile&do=get&target=UbuntuI.png | ||
|} | |} | ||
==== 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> | ||
cd /usr/share/pixmaps/ | cd /usr/share/pixmaps/ | ||
sudo mv gnome-logo-icon-transparent.png gnome-logo-icon-transparent.bak | sudo mv gnome-logo-icon-transparent.png gnome-logo-icon-transparent.bak | ||
sudo mv /[path]/[image].png ./gnome-logo-icon-transparent.png | sudo mv /[path]/[image].png ./gnome-logo-icon-transparent.png | ||
</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 by logging out and back in, or typing <code><nowiki>sudo /etc/init.d/gdm restart</nowiki></code> or via <code><nowiki>sudo killall gnome-panel</nowiki></code> | |||
You need to restart Gnome, | |||
{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 | Instead of constantly starting up '''ssh-agent''' and '''ssh-add''', it is possible to use '''keychain''' to manage your ssh keys. To install '''keychain''', you can just click '''''[[UbuntuHelp:apt:keychain|here]]''''', or use [[UbuntuHelp:SynapticHowto|Synaptic]] to do the job or [[UbuntuHelp:AptGet/Howto|apt-get]] from the command line. | ||
==== Command line ==== | |||
==== Command | Another way to install the file is to open the terminal (Application->Accessories->Terminal) and type: | ||
<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 | |||
</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 chkdisk found in Windows) but at the same time increase your boot time. Ubuntu automatically checks for errors after every 20-30 boots | |||
This little tip turns on filesystem check to run at boot. It will check for and fix errors (similar to | |||
==== 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 | ||
</nowiki></pre> | </nowiki></pre> | ||
to | to | ||
<pre><nowiki> | <pre><nowiki> | ||
FSCKFIX=yes | FSCKFIX=yes | ||
</nowiki></pre> | </nowiki></pre> | ||
==== Please note ==== | |||
To gain superuser powers for a graphical program for such as gedit you should '''not''' use sudo. Example of a incorrect command: | |||
<pre><nowiki> | |||
sudo gedit | |||
</nowiki></pre> | |||
For Ubuntu you should instead use gksudo. Example: | |||
<pre><nowiki> | |||
gksudo gedit | |||
</nowiki></pre> | |||
------ | ------ | ||
=== Tip #5 Some Gnome & Nautilus Tricks === | === Tip #5 Some Gnome & Nautilus Tricks === | ||
Gnome and its file manager, Nautilus, have some interesting, useful but hard to discover tricks built in. Here is a short selection: | |||
Gnome and its file manager, Nautilus, have some interesting, useful but hard to discover tricks built in. | |||
==== 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 | |||
* 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. | ||
* Alt-middle drag allows you to resize a window without having to hunt for the edges of the window | * Alt-middle drag allows you to resize a window without having to hunt for the edges of the window. | ||
* 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. | |||
* 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. | ||
------ | |||
=== Tip #6 Change the Default program === | |||
---- | Sometimes for whatever reason, the default program that opens when we double click a file is not the one we want. | ||
==== Check first ==== | |||
First, check to make sure it's installed. If this is a new install, the program you remember having for a long time, may no longer be present, either because it is no longer pre-installed, or because your backup scripts didn't install it. | |||
==== Changing the Defaults ==== | |||
To change the default program, right click the file, select '''Properties''', and chose the '''Open With''' tab. Then click on one of the radio buttons to chose one of the programs that Ubuntu recognizes as a valid program to view/manipulate the file. If the program is not there, click the '''Add''' button, and chose from another, longer list of programs. | |||
====== Extra step ====== | |||
If it's still not there, or you want it to be opened with special flags, try '''Use a custom command''' option to type in the command to the program. Then click '''Add''' | |||
==== Final Step ==== | |||
Finally Close the properties box, and double click the file. It should now open with your program of choice. Please note that if you make the program, say VLC, open .flv files, it will not automatically open .mp4 files. | |||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2009年11月17日 (二) 20:27的最新版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/QuickTips }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:QuickTips | UbuntuHelp:QuickTips | {{#if: | :}}QuickTips}}/af | • {{#if: UbuntuHelp:QuickTips|Afrikaans| [[::QuickTips/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuickTips | UbuntuHelp:QuickTips | {{#if: | :}}QuickTips}}/ar | • {{#if: UbuntuHelp:QuickTips|العربية| [[::QuickTips/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuickTips | UbuntuHelp:QuickTips | {{#if: | :}}QuickTips}}/az | • {{#if: UbuntuHelp:QuickTips|azərbaycanca| [[::QuickTips/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuickTips | UbuntuHelp:QuickTips | {{#if: | :}}QuickTips}}/bcc | • {{#if: UbuntuHelp:QuickTips|جهلسری بلوچی| [[::QuickTips/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuickTips | UbuntuHelp:QuickTips | {{#if: | :}}QuickTips}}/bg | • {{#if: UbuntuHelp:QuickTips|български| [[::QuickTips/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuickTips | UbuntuHelp:QuickTips | {{#if: | :}}QuickTips}}/br | • {{#if: UbuntuHelp:QuickTips|brezhoneg| [[::QuickTips/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuickTips | UbuntuHelp:QuickTips | {{#if: | :}}QuickTips}}/ca | • {{#if: UbuntuHelp:QuickTips|català| [[::QuickTips/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuickTips | UbuntuHelp:QuickTips | {{#if: | :}}QuickTips}}/cs | • {{#if: UbuntuHelp:QuickTips|čeština| [[::QuickTips/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuickTips | UbuntuHelp:QuickTips | {{#if: | :}}QuickTips}}/de | • {{#if: UbuntuHelp:QuickTips|Deutsch| [[::QuickTips/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuickTips | UbuntuHelp:QuickTips | {{#if: | :}}QuickTips}}/el | • {{#if: UbuntuHelp:QuickTips|Ελληνικά| [[::QuickTips/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuickTips | UbuntuHelp:QuickTips | {{#if: | :}}QuickTips}}/es | • {{#if: UbuntuHelp:QuickTips|español| [[::QuickTips/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuickTips | UbuntuHelp:QuickTips | {{#if: | :}}QuickTips}}/fa | • {{#if: UbuntuHelp:QuickTips|فارسی| [[::QuickTips/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuickTips | UbuntuHelp:QuickTips | {{#if: | :}}QuickTips}}/fi | • {{#if: UbuntuHelp:QuickTips|suomi| [[::QuickTips/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuickTips | UbuntuHelp:QuickTips | {{#if: | :}}QuickTips}}/fr | • {{#if: UbuntuHelp:QuickTips|français| [[::QuickTips/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuickTips | UbuntuHelp:QuickTips | {{#if: | :}}QuickTips}}/gu | • {{#if: UbuntuHelp:QuickTips|ગુજરાતી| [[::QuickTips/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuickTips | UbuntuHelp:QuickTips | {{#if: | :}}QuickTips}}/he | • {{#if: UbuntuHelp:QuickTips|עברית| [[::QuickTips/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuickTips | UbuntuHelp:QuickTips | {{#if: | :}}QuickTips}}/hu | • {{#if: UbuntuHelp:QuickTips|magyar| [[::QuickTips/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuickTips | UbuntuHelp:QuickTips | {{#if: | :}}QuickTips}}/id | • {{#if: UbuntuHelp:QuickTips|Bahasa Indonesia| [[::QuickTips/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuickTips | UbuntuHelp:QuickTips | {{#if: | :}}QuickTips}}/it | • {{#if: UbuntuHelp:QuickTips|italiano| [[::QuickTips/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuickTips | UbuntuHelp:QuickTips | {{#if: | :}}QuickTips}}/ja | • {{#if: UbuntuHelp:QuickTips|日本語| [[::QuickTips/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuickTips | UbuntuHelp:QuickTips | {{#if: | :}}QuickTips}}/ko | • {{#if: UbuntuHelp:QuickTips|한국어| [[::QuickTips/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuickTips | UbuntuHelp:QuickTips | {{#if: | :}}QuickTips}}/ksh | • {{#if: UbuntuHelp:QuickTips|Ripoarisch| [[::QuickTips/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuickTips | UbuntuHelp:QuickTips | {{#if: | :}}QuickTips}}/mr | • {{#if: UbuntuHelp:QuickTips|मराठी| [[::QuickTips/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuickTips | UbuntuHelp:QuickTips | {{#if: | :}}QuickTips}}/ms | • {{#if: UbuntuHelp:QuickTips|Bahasa Melayu| [[::QuickTips/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuickTips | UbuntuHelp:QuickTips | {{#if: | :}}QuickTips}}/nl | • {{#if: UbuntuHelp:QuickTips|Nederlands| [[::QuickTips/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuickTips | UbuntuHelp:QuickTips | {{#if: | :}}QuickTips}}/no | • {{#if: UbuntuHelp:QuickTips|norsk| [[::QuickTips/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuickTips | UbuntuHelp:QuickTips | {{#if: | :}}QuickTips}}/oc | • {{#if: UbuntuHelp:QuickTips|occitan| [[::QuickTips/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuickTips | UbuntuHelp:QuickTips | {{#if: | :}}QuickTips}}/pl | • {{#if: UbuntuHelp:QuickTips|polski| [[::QuickTips/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuickTips | UbuntuHelp:QuickTips | {{#if: | :}}QuickTips}}/pt | • {{#if: UbuntuHelp:QuickTips|português| [[::QuickTips/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuickTips | UbuntuHelp:QuickTips | {{#if: | :}}QuickTips}}/ro | • {{#if: UbuntuHelp:QuickTips|română| [[::QuickTips/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuickTips | UbuntuHelp:QuickTips | {{#if: | :}}QuickTips}}/ru | • {{#if: UbuntuHelp:QuickTips|русский| [[::QuickTips/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuickTips | UbuntuHelp:QuickTips | {{#if: | :}}QuickTips}}/si | • {{#if: UbuntuHelp:QuickTips|සිංහල| [[::QuickTips/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuickTips | UbuntuHelp:QuickTips | {{#if: | :}}QuickTips}}/sq | • {{#if: UbuntuHelp:QuickTips|shqip| [[::QuickTips/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuickTips | UbuntuHelp:QuickTips | {{#if: | :}}QuickTips}}/sr | • {{#if: UbuntuHelp:QuickTips|српски / srpski| [[::QuickTips/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuickTips | UbuntuHelp:QuickTips | {{#if: | :}}QuickTips}}/sv | • {{#if: UbuntuHelp:QuickTips|svenska| [[::QuickTips/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuickTips | UbuntuHelp:QuickTips | {{#if: | :}}QuickTips}}/th | • {{#if: UbuntuHelp:QuickTips|ไทย| [[::QuickTips/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuickTips | UbuntuHelp:QuickTips | {{#if: | :}}QuickTips}}/tr | • {{#if: UbuntuHelp:QuickTips|Türkçe| [[::QuickTips/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuickTips | UbuntuHelp:QuickTips | {{#if: | :}}QuickTips}}/vi | • {{#if: UbuntuHelp:QuickTips|Tiếng Việt| [[::QuickTips/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuickTips | UbuntuHelp:QuickTips | {{#if: | :}}QuickTips}}/yue | • {{#if: UbuntuHelp:QuickTips|粵語| [[::QuickTips/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuickTips | UbuntuHelp:QuickTips | {{#if: | :}}QuickTips}}/zh | • {{#if: UbuntuHelp:QuickTips|中文| [[::QuickTips/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuickTips | UbuntuHelp:QuickTips | {{#if: | :}}QuickTips}}/zh-hans | • {{#if: UbuntuHelp:QuickTips|中文(简体)| [[::QuickTips/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuickTips | UbuntuHelp:QuickTips | {{#if: | :}}QuickTips}}/zh-hant | • {{#if: UbuntuHelp:QuickTips|中文(繁體)| [[::QuickTips/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:QuickTips|:QuickTips|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :QuickTips/zh | | {{#ifexist: QuickTips/zh | | {{#ifeq: {{#titleparts:QuickTips|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:QuickTips|1|-1|}} | zh | | }}
These tips are meant to help you on your way to breaking in Ubuntu. The tips found here are meant to be quick and easy to execute, and provide a small but marked difference in how Ubuntu operates. The tips should also not be overly simple, such as changing the desktop background, but rather be along the lines of changing how Ubuntu reacts. The important thing to remember is that whatever it does, it needs to make life easier in some way.
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 re-enable Recent Documents by opening a terminal and typing:
chmod 600 ~/.recently-used
Tip # 2 Change Ubuntu Logo to Another image on Panel
Note
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 follow these instructions as well: Following these instructions, you can 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.
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 by logging out and back in, or typing sudo /etc/init.d/gdm restart
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. To install keychain, you can just click here, or use Synaptic to do the job or apt-get from the command line.
Command line
Another way to install the file is to open the terminal (Application->Accessories->Terminal) and type:
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 chkdisk found in Windows) but at the same time increase your boot time. Ubuntu automatically checks for errors after every 20-30 boots
Edit File
Open /etc/default/rcS with your text editor of choice (root permissions needed) and change this line:
FSCKFIX=no
to
FSCKFIX=yes
Please note
To gain superuser powers for a graphical program for such as gedit you should not use sudo. Example of a incorrect command:
sudo gedit
For Ubuntu you should instead use gksudo. Example:
gksudo gedit
Tip #5 Some Gnome & Nautilus Tricks
Gnome and its file manager, Nautilus, have some interesting, useful but hard to discover tricks built in. Here is a short selection:
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.
- 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.
Tip #6 Change the Default program
Sometimes for whatever reason, the default program that opens when we double click a file is not the one we want.
Check first
First, check to make sure it's installed. If this is a new install, the program you remember having for a long time, may no longer be present, either because it is no longer pre-installed, or because your backup scripts didn't install it.
Changing the Defaults
To change the default program, right click the file, select Properties, and chose the Open With tab. Then click on one of the radio buttons to chose one of the programs that Ubuntu recognizes as a valid program to view/manipulate the file. If the program is not there, click the Add button, and chose from another, longer list of programs.
Extra step
If it's still not there, or you want it to be opened with special flags, try Use a custom command option to type in the command to the program. Then click Add
Final Step
Finally Close the properties box, and double click the file. It should now open with your program of choice. Please note that if you make the program, say VLC, open .flv files, it will not automatically open .mp4 files.