Ubuntu dapper

出自Ubuntu中文

from:http://ubuntuguide.org/index.php?title=Ubuntu_dapper


Image:Ubuntuguide_logo.png

[编辑] Unofficial Ubuntu 6.06 (Dapper Drake) Starter Guide

Ubuntu Edgy Eft 6.10 version: in progress... Your help in testing and perfecting this guide is needed.


This guide was started by Chua Wen Kiat (Kuala Lumpur, Malaysia). It is now being maintained by the Linux Center of University of Latvia, and everyone else who is willing to contribute.


This guide can be discussed at the official UbuntuGuide.org Forum at ubuntuforums.org. Stop by and join the discussion.


Unfortunately, because of wiki-vandalism, only registered users can edit this wiki, and only registered users can create you an account. If you wish to join and help, let me know [ ubuntuguide -at- ubuntuguide.org ]. Don't forget to say what username you would like and why do you need it (what would you like to change or add to guide).


Contributors: OrvilsQuashJiyuu0CargoMikrobartBytecopekrampoSimosStubbyeljacoshaiThunderMHasileadammichaelroachBelisarivsCheatorHankKaotikssoniahKutanMehdirichuxShadymanHavarillLouisShadymanshanlot751EtienneRabid9797Mantas Smelevičiusperspectoffphloseadogsmalugo2debugPakosRedBassCyberAngelCogeeldineroycorreUficAntidrugueVahidLouis KingRsinghBorut-TCinglallsTownrayand other friends of our community. edit


Template:UbuntuLanguageBar


Template:BreezyLanguageBar



目录


[编辑] General Notes

  1. This is an Unofficial Ubuntu 6.06 (Dapper Drake) Starter Guide. It is not associated with Ubuntu and Canonical Ltd.
  2. This guide can be discussed at the official UbuntuGuide.org Forum at ubuntuforums.org. Stop by and join the discussion.
  3. This guide is tested on a full installation of the Ubuntu 6.06 x86 Install CD (Dapper Drake).
  4. If you see a bluish box, this means you have to execute the commands in Terminal mode (Applications -> Accessories -> Terminal) or use the content of that box as mentioned in some other instructions.
  5. To reduce typo mistakes, copy and paste the commands into the Terminal (right click on the commands -> "Copy" or "Paste". You can also use Ctrl+C to copy and Shift+Insert to paste it, or just highlight to copy and middle click to paste).
  6. sudo or gksudo means superuser do. sudo will prompt for "Password:". Please specify your user password.
  7. If you want more information about any command, simply look at the manual page for it using the man command. For example, man sudo will display the manual page for the sudo command.
  8. If you are tired of typing apt-get all the time, Read #How to apt-get the easy way (Synaptic).
  9. apt-get and wget require an Internet connection to install/update/download programs.
  10. To download a file, right click on the link -> Select "Save Link As..." -> Make sure file name and extension are correct
  11. If you wish to help translate Ubuntu to your native language or to help Ubuntu otherwise visit https://launchpad.net/
  12. May the "humanity to others" spirit be with you always...


If you are using Kubuntu you don't need to install gedit anymore, because now there's a symbolic link from gedit to kate, so you can use all the commands below with no problems. By the way, if you want to use gedit as your editor, do:
sudo apt-get install gedit
If the "gedit" command (symbolic link) is not working, you could also create it:
sudo ln -s /usr/bin/kate /usr/bin/gedit
If you are using 64-bit version replace any "i386" with "amd64"

[编辑] Getting Started

[编辑] What is Ubuntu

[编辑] What is new in Ubuntu 6.06 Dapper Drake

[编辑] Where to view Ubuntu screenshots / screencast

Videos

[编辑] Where to view Kubuntu screenshots / screencast

Kubuntu Installation Guide

Videos

http://osvids.com/files/page3-108-pop.html

[编辑] Where to find a list of all the programs and libraries that come with Ubuntu

[编辑] Where to download Ubuntu

[编辑] Where to order Ubuntu CDs absolutely FREE

Please note that CDs may take four to six weeks to be delivered. You are encouraged to copy, modify, and redistribute the disks as much as possible.

[编辑] Where to find help for Ubuntu

[编辑] Where to look for new programs

[编辑] Where to look for style elements for your desktop

[编辑] Repositories

[编辑] How to add extra repositories

sudo cp -p /etc/apt/sources.list /etc/apt/sources.list_backup
gksudo gedit /etc/apt/sources.list
  • Replace everything with the following lines
To use your local mirror you can add "cc." before archive.ubuntu.com (cc = your country code)
e.g. deb http://lv.archive.ubuntu.com/ubuntu dapper main restricted universe multiverse
## Add comments (##) in front of any line to remove it from being checked.   
## Use the following sources.list at your own risk.  

deb http://archive.ubuntu.com/ubuntu dapper main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu dapper main restricted universe multiverse

## MAJOR BUG FIX UPDATES produced after the final release
deb http://archive.ubuntu.com/ubuntu dapper-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu dapper-updates main restricted universe multiverse

## UBUNTU SECURITY UPDATES
deb http://security.ubuntu.com/ubuntu dapper-security main restricted universe multiverse
deb-src http://security.ubuntu.com/ubuntu dapper-security main restricted universe multiverse

## BACKPORTS REPOSITORY (Unsupported.  May contain illegal packages.  Use at own risk.)
deb http://archive.ubuntu.com/ubuntu dapper-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu dapper-backports main restricted universe multiverse

## PLF REPOSITORY (Unsupported.  May contain illegal packages.  Use at own risk.)
deb http://medibuntu.sos-sts.com/repo/ dapper free non-free
deb-src http://medibuntu.sos-sts.com/repo/ dapper free non-free

## CANONICAL COMMERCIAL REPOSITORY (Hosted on Canonical servers, not Ubuntu
## servers. RealPlayer10, Opera and more to come.) 
deb http://archive.canonical.com/ubuntu dapper-commercial main
  • Save the edited file
wget -q http://medibuntu.sos-sts.com/repo/medibuntu-key.gpg -O- | sudo apt-key add -
sudo apt-get update
  • You may also replace your sources.list with this very complete list: sources.list (be sure to replace "it" from "it.archive.ubuntu.com" with your country code) Use at own risk.
  • Modify the default Ubuntu sources.list only if you understand what you're doing. Mixing repos can cause breakage.

[编辑] Ubuntu Updates

[编辑] How to manually update Ubuntu

sudo apt-get update
sudo apt-get upgrade

OR

Use Update Manager: System -> Administration -> Update Manager

[编辑] How to automatically update Ubuntu

NOTE: Depending on how many packages need to be downloaded and updated, your machine can slow down significantly during the first update.
sudo crontab -e
  • Add the following line to the crontab file
NOTE: The second 0 is the time of the day this command is run. This can be changed to whatever time is appropriate for you (0-23)
0 0 * * * apt-get -y update && apt-get -y upgrade && apt-get -y dist-upgrade && apt-get -y clean
  • Save and exit the file
  • This creates a cron job that runs every day at 12:00 am, it will update apt-get with new packages from the repository, update the packages (including new kernels) and clean off old downloaded packages so they do not slowly eat up your hard drive space.

[编辑] Add-On Applications

[编辑] How to use Easy Ubuntu

  • Read #General Notes
  • Easy Ubuntu is a small straight-forward utility that allows novice users to easily install a wide variety of content for Ubuntu such as media codecs, fonts, Macromedia Flash and Sun Java.
wget http://easyubuntu.freecontrib.org/files/easyubuntu-3.023.tar.gz
tar -zxf easyubuntu-3.023.tar.gz
cd easyubuntu
sudo python easyubuntu.in
  • From the Easy Ubuntu window, check the appropriate boxes to download and install content to Ubuntu.
  • Note: Users of the previous EasyUbuntu 3.0 version may experience issues with installing Flash and Java.

[编辑] How to install Automatix2 on Ubuntu, Kubuntu, and Xubuntu

  • Read #General Notes
  • Automatix2 is a graphical interface for automating the installation of the most commonly requested applications in Ubuntu/Kubuntu/Xubuntu linux.
  • Note: Before installing, please note that certain codecs it provides may be prohibited in certain countries. You are responsible for ensuring those laws are not broken.
  • using your favorite text editor (kwrite, gedit)
gksudo gedit /etc/apt/sources.list
  • Add the following line to the end of the file.
  • NOTE: Kubuntu/Xubuntu users will need to uncomment (remove the # before the word "deb") all the additional sources as well as add the automatix repository.
deb http://www.getautomatix.com/apt dapper main
  • Save the file and close it
  • Now save and close /etc/apt/sources.list and run the following commands from terminal (one by one, hitting enter after each step)
wget http://www.getautomatix.com/apt/key.gpg.asc
gpg --import key.gpg.asc
gpg --export --armor 521A9C7C | sudo apt-key add -
  • Run the following commands to install Automatix
sudo apt-get update
sudo apt-get install automatix2
  • Automatix2 can be started from the command line
automatix2
  • It will be added to the Menu, as well
Menu -> System -> Automatix-Kubuntu

[编辑] How to install Clipboard Daemon for GNOME

wget -c http://easylinux.info/uploads/gnome-clipboard-daemon-1.0.bin.tar.bz2
sudo tar jxvf gnome-clipboard-daemon-1.0.bin.tar.bz2 -C /usr/bin/
sudo chown root:root /usr/bin/gnome-clipboard-daemon
sudo chmod 755 /usr/bin/gnome-clipboard-daemon
sudo gnome-clipboard-daemon &
export EDITOR=gedit && crontab -e
  • Add the following line at the end of file
@reboot gnome-clipboard-daemon
  • Save the edited file

[编辑] How to install J2SE Runtime Environment (JRE) with Plug-in for Mozilla Firefox

sudo apt-get install sun-java5-jre sun-java5-plugin
  • When asked, agree with DLJ license terms.
  • To configure J2SE as the default JVM (necessary for programs such as Frostwire, Freenet, RSSOwl and as a plugin for Mozilla Firefox):
sudo update-alternatives --config java

Then choose the option that corresponds to J2SE.

[编辑] How to install JRE v5.0 Update 10

Note: Program included in Automatix2. I you have already used Automatix2, this program may have been installed

Choose "Java Runtime Environment (JRE) 5.0 Update 10" and click on "Download"
Accept License Agreement 
Download the "Linux self-extracting file"
  • Install the required tool :
sudo apt-get install java-package
  • Create the Ubuntu package :
fakeroot make-jpkg jre-1_5_0_10-linux-i586.bin
  • Install the resulting package :
sudo dpkg -i sun-j2re1.5_1.5.0+update10_i386.deb


  • Restart Mozilla Firefox
  • If you get an error, try changing the 10's in the filenames to the appropriate version number.

[编辑] How to install Flash Player (Macromedia Flash) Plug-in for Mozilla Firefox

sudo apt-get install flashplugin-nonfree
sudo update-flashplugin
  • Restart Mozilla Firefox

Note: if sound doesn't work in Flash Player (for example on YouTube):

sudo apt-get install alsa-oss
gksudo gedit /etc/firefox/firefoxrc

Change:

FIREFOX_DSP=""

To:

FIREFOX_DSP="aoss"
  • Restart Mozilla Firefox. Now sound should work in Flash Player.

[编辑] How to install PDF Reader (Adobe Reader) with Plug-in for Mozilla Firefox

sudo apt-get install acroread mozilla-acroread acroread-plugins

Note: Adobe Reader 7.0 will not run if SCIM is running. You are running SCIM if you have installed another language to Ubuntu via System -> Administration -> Language Support. To circumvent, do the following

gksudo gedit /usr/bin/acroread

Change:

#!/bin/sh
#

to:

#!/bin/sh
#
GTK_IM_MODULE=xim

Save the file. Now Adobe Reader 7.0 should work.

See also:

[编辑] How to install gv (a PostScript and PDF viewer)

sudo apt-get install gv