Ubuntu:Feisty:修订间差异

来自Ubuntu中文
跳到导航跳到搜索
Oneleaf留言 | 贡献
无编辑摘要
Oneleaf留言 | 贡献
无编辑摘要
 
(未显示同一用户的2个中间版本)
第1行: 第1行:
form:[https://wiki.ubuntu.com/php5 https://wiki.ubuntu.com/php5]
{{from|http://ubuntuguide.org/wiki/Ubuntu:Feisty/}}
{{Languages|Ubuntu:Feisty}}
{{Languages|Ubuntu:Feisty}}



2007年5月10日 (四) 13:41的最新版本

{{#ifexist: :Ubuntu:Feisty/zh | | {{#ifexist: Ubuntu:Feisty/zh | | {{#ifeq: {{#titleparts:Ubuntu:Feisty|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:Ubuntu:Feisty|1|-1|}} | zh | | }}


模板:Ubuntu:Feisty/Intro

Full list of all the subpages: Ubuntu:Feisty/TOC


概述

  1. 以下是非官方 Ubuntu 7.04 (Feisty Fawn) 新手指南,与Ubuntu或Canonical Ltd.都无关。
  2. 可以在官方的UbuntuGuide.org 论坛讨论这个指南的内容。过来看看,加入讨论吧。
  3. 如果你看见一个淡蓝色的方框,这表示你要到终端模式下(应用程序 -> 附件 -> 终端)去执行那些命令,或者采用方框中的内容(这些内容可能是其他指南中提及的)。
  4. 为了减少打字错误,建议把命令代码复制、粘贴到终端(在命令代码上点右键->“复制”或“粘贴”。也可以用Ctrl+C复制,Shift+Insert粘贴)。
  5. "sudo" 的意思是用其他用户身份执行命令。 "sudo" 后会提示你输入密码“Pssword: ”,这时输入该用户密码。比如你可以这样用系统中另外一个用户的身份:sudo -u peter <command> 这样就能以系统中用户peter的身份来执行某个命令。
  6. 如果想多了解一下任一命令的详细信息,只需用"man"命令看看手册中的说明。例如 "man sudo"会显示"sudo"这一命令的手册页。
  7. 如果实在不想总是输入"aptitude"命令,读一下 #怎样使用 aptitude 的简易方式 (新立得)
  8. "aptitude" 和 "wget" 需要你有Internet连接才能安装/更新/下载程序。
  9. 关于"apt-get"的所有参考内容都已经被"aptitude"取代了。不过愿意的话你仍然可以使用"apt-get",没有问题。在Ubuntu 论坛可能有讨论。
  10. 要下载文件,在链接上点右键然后选择 "链接另存为...",请确认文件名和扩展名无误。
  11. 如果希望帮忙将Ubuntu翻译成你自己的母语,或者以其他方式帮助Ubuntu,请访问 https://launchpad.net/
  12. 愿 "humanity to others" 精神永远与你同在...


如果你用的是64位版本,请用"amd64"代替所有的"i386"

Requests

If you have requests that you would like to be part of this guide, put them here.


  • How to add the (k)ubuntu CD or DVD as a repository for sources.list

Solution, please move to appropriate chapter:

Insert the CD or DVD and in the terminal write:

sudo apt-cdrom add

如果对这部分有要求的,请把他们写在这个板块

模板:Ubuntu:Feisty/GettingStarted

从 Ubuntu Edgy 更新到 Ubuntu Feisty

如何添加额外的软件源

  • 阅读 #概述
  • 可以用"软件源"应用程序添加额外的源,见系统 -> 系统管理 -> 软件源。在你认为需要的源(main, universe, restricted, multiverse)前面打勾。你可能不需要'源代码'这个源。推荐用这种方法添加额外的源。
  • 添加源还有一种方法,用以下步骤 (风险自负):
  • 创建一个你现在使用的源列表的备份
sudo cp -p /etc/apt/sources.list /etc/apt/sources.list_backup
  • 用任一文本编辑器打开源的列表
Ubuntu (GNOME) 用户:
sudo gedit /etc/apt/sources.list
Kubuntu (KDE) 用户:
sudo kate /etc/apt/sources.list
其他用户 (在上面这些都不行的情况下):
sudo nano /etc/apt/sources.list
  • 以下面这些行作为模板,自己在sources.list中编辑源:
可试着用下面这几行代替sources.list中的当前内容
要使用你所在地的镜像,在archive.ubuntu.com前面加上"cc.", 其中 cc = 你所在国家的代码
例如 deb http://lv.archive.ubuntu.com/ubuntu feisty main restricted universe multiverse
## See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
## newer versions of the distribution.

## Add comments (##) in front of any line to remove it from being checked.   
## Use the following sources.list at your own risk.  

## Uncomment deb-src if you wish to download the source packages

## If you have a install CD you can add it to the reposity using 'apt-cdrom add'
## which will add a line similar to the following:
#deb cdrom:[Ubuntu 7.04 _Feisty Fawn_ - Beta i386 (20070322.1)]/ feisty main restricted
deb http://us.archive.ubuntu.com/ubuntu/ feisty main restricted
#deb-src http://us.archive.ubuntu.com/ubuntu/ feisty main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ feisty-updates main restricted
#deb-src http://us.archive.ubuntu.com/ubuntu/ feisty-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://us.archive.ubuntu.com/ubuntu/ feisty universe
#deb-src http://us.archive.ubuntu.com/ubuntu/ feisty universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ feisty multiverse
#deb-src http://us.archive.ubuntu.com/ubuntu/ feisty multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ feisty-backports main restricted universe multiverse
#deb-src http://us.archive.ubuntu.com/ubuntu/ feisty-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu feisty-security main restricted
#deb-src http://security.ubuntu.com/ubuntu feisty-security main restricted
deb http://security.ubuntu.com/ubuntu feisty-security universe
#deb-src http://security.ubuntu.com/ubuntu feisty-security universe
deb http://security.ubuntu.com/ubuntu feisty-security multiverse
#deb-src http://security.ubuntu.com/ubuntu feisty-security multiverse

## PLF REPOSITORY (Unsupported.  May contain illegal packages.  Use at own risk.)
## Medibuntu - Ubuntu 7.04 "feisty fawn"
## Please report any bug on https://launchpad.net/products/medibuntu/+bugs
deb http://medibuntu.sos-sts.com/repo/ feisty free non-free
#deb-src http://medibuntu.sos-sts.com/repo/ feisty free non-free

## CANONICAL COMMERCIAL REPOSITORY (Hosted on Canonical servers, not Ubuntu
## servers. RealPlayer10, Opera, DesktopSecure and more to come.) 
deb http://archive.canonical.com/ubuntu feisty-commercial main

## enlightenment e17 beta, use at your own risk
## E17 is in Beta and may break or break your system
#deb http://edevelop.org/pkg-e/ubuntu feisty e17
#deb http://e17.dunnewind.net/ubuntu feisty e17
#deb-src http://edevelop.org/pkg-e/ubuntu feisty e17

  • 保存编辑过的文件
  • 下载需要的 gpg keys; 比如可以下面的命令得到 PLF 源的 gpg key:
wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add -
  • 要想试用 E17 beta, 还需要下载其 gpg key:
wget -q http://lut1n.ifrance.com/repo_key.asc -O- | sudo apt-key add -
  • 刷新包列表:
sudo aptitude update


  • 只有在知道自己在做什么的前提下才可修改默认的Ubuntu sources.list! 把不同的源混杂在一起可能使你的系统 崩溃

更新Ubuntu

关于 Apt、软件和包的基本知识

这里说的是如何使用 Apt 包管理工具的一些基本信息。

  • 安装包
sudo aptitude install <packagename>

例:

sudo aptitude install mpd sbackup
  • 删除包:
sudo aptitude remove <packagename>

例:

sudo aptitude remove mpd sbackup
  • 搜索包:
sudo aptitude search <keywords>

例:

sudo aptitude search Music MP3
sudo aptitude search "Text Editor"
  • 更新 Apt 数据库 (添加/删除Apt源后再使用)
sudo aptitude update
  • 更新包:
sudo aptitude upgrade
  • 更新整个发布(distribution):
sudo aptitude dist-upgrade
  • 安装已下载的 Ubuntu (Debian) 包 (.deb)
sudo dpkg -i package.deb
  • 删除 (Debian) 包
sudo dpkg -r package
  • 重新配置/修复已安装的包
sudo dpkg-reconfigure package

例:

sudo dpkg-reconfigure mpd
  • 处理 ".tar.gz" (Tar/GZip) 存档/压缩文件

提取:

tar xvzf package.tar.gz

创建:

tar cvfz package.tar.gz folder
  • 处理 ".tar.bz" (Tar/BZip) 存档/压缩文件

提取:

tar xvjf package.tar.bz

创建:

tar cvjf package.tar.bz folder
  • 提取 ".bz" 存档/压缩文件
bunzip2 file.bz
  • 提取 ".gz" 存档/压缩文件
gunzip file.gz
  • 由源创建 Building from Source

确认已经安装了所有需要的开发工具 (如库、编译器和头文件)

sudo aptitude install build-essential
sudo aptitude install linux-headers-`uname -r`

提取包 (上面有详细描述)

tar xvzf package.tar.gz

开始编译过程

cd /path/to/extracted/package
./configure
make
make install

如果编译成功,可以考虑创建一个deb包供将来使用:

安装打包工具:

sudo aptitude install checkinstall

用"checkinstall"重新创建包:

cd /path/to/extracted/package
./configure
make
checkinstall

把创建好的 ".deb" 文件留作将来使用。安装时可用以下命令:

sudo dpkg -i package.deb

注:这些只是一般性的指导,可能不会总是成功。有的包需要其他的依赖并指明一些可选参数值才能成功编译。

手动更新 Ubuntu

sudo aptitude update
sudo aptitude upgrade
sudo aptitude dist-upgrade

或者

用更新管理器: 系统 -> 系统管理 -> 更新管理器

ThqLbh <a href="http://tmzcijdcyxaa.com/">tmzcijdcyxaa</a>, [url=http://tptzhxdwflqn.com/]tptzhxdwflqn[/url], [link=http://wjobxbaqnmsm.com/]wjobxbaqnmsm[/link], http://izlqplbcnfhs.com/

模板:Ubuntu:Feisty/OtherDesktopEnvironments

模板:Ubuntu:Feisty/EyeCandy

模板:Ubuntu:Feisty/CommercialApplications

模板:Ubuntu:Feisty/UserAdministration

模板:Ubuntu:Feisty/Hardware

模板:Ubuntu:Feisty/CDDVDBurning

模板:Ubuntu:Feisty/Networking

远程登录

通过XDMCP 远程登录

什么是 XDMCP?

GNOME视窗能够同时支持几个不同的用户。不像只是复制当前的屏幕内容到一个终端的vncviewer那样,XDMCP允许几个不同的用户在同一时间登陆和运行不同的GNOME进程.所以如果你有一台运行Ubuntu的性能良好的电脑,其他电脑性能不好的用户可以登录进入你的电脑,并且运行在你电脑上能够使用的大型程序。

怎么开启XDMCP的功能

在性能良好的电脑上开启XDMCP,点击如下菜单

System -> Administration -> Login Window 

在Login Window首选项对话窗选择如下:

Remote Tab -> Style: Same as Local -> Close the dialog window -> Restart the PC
How to login from another PC running Ubuntu
1. Reboot the slow PC and stop at the login screen
2. Click Options at the lower left corner of the login screen
3. Select "Remote Login via XDMCP"
4. On the dialog window, type in the host name or ip of the fast computer you want to login to


Remote Desktop Sharing/Duplication via VNC

How to configure remote desktop (not secure)
Warning! Remote Desktop will only work if there's a GNOME login session
Leaving computer with an unattended GNOME login session is not secure
Use (System -> Lock Screen) and switch off the monitor when computer is left unattended
  • System -> Preferences -> Remote Desktop
  • Remote Desktop Preferences
Sharing ->
Allow other users to view your desktop (Checked)
Allow other users to control your desktop (Checked)
Security ->
Ask you for confirmation (Un-Checked)
Require the user to enter this password: (Checked)
Password: Specify the password
怎样远程连接 Ubuntu桌面
例如: 假定远程UBUNTU电脑已经配置好远程控制桌面
参考 #How to configure remote desktop (not secure)
远程电脑地址为: 192.168.0.1,使用下面的命令
vncviewer -fullscreen 192.168.0.1:0  
  • 退出控制
按 'F8' -> 退出远程显示
怎样使用windos 远程登录ubuntu 桌面
e.g. Assumed that remote Ubuntu machine have configured Remote Desktop
Read #How to configure remote desktop (not secure)
Remote Ubuntu machine: 192.168.0.1
  • If you have a router remember to open the appropiate port. The default one is 5900
This process is called port forwarding port forwarding
  • Download DotNetVNC: Here or RealVNC Here
this is a free DotNet version that require the DotNet framework available from microsoft here
The RealVNC website was created and maintained by the original developers of VNC during their time at AT&T. RealVNC comes in Free, Personal, and Enterprise editions - the latter two costing money.
  • Open the VNC client you have chosen, and insert the connection string formatted like this <LINUX BOX IP><:DESKTOP NUMBER>|<::PORT>
In example use: 192.168.1.2:0 or 192.168.1.2::5900 to connect to desktop 0, to connect to desktop 1 use 192.168.1.2:1 or 192.168.1.2::5901 and so on
How to connect into remote Ubuntu desktop via OSX
e.g. Assumed that remote Ubuntu machine have configured Remote Desktop
Read #How to configure remote desktop (not secure)
Remote Ubuntu machine: 192.168.0.1
  • If you have a router remember to open the appropiate port the default one is 5900
This process is called port forwarding port forwarding
  • Download ChickenOfTheVNC: Here
  • Open ChickenOfTheVNC, and insert the host (IP address of remote machine), the display number (0 is default and is port 5900) and the password.
In example use: Host: 192.168.0.1, Display 0, Password: password

模板:Ubuntu:Feisty/Windows

模板:Ubuntu:Feisty/Security

模板:Ubuntu:Feisty/BootMenu

模板:Ubuntu:Feisty/TipsAndTricks

模板:Ubuntu:Feisty/Servers

模板:Ubuntu:Feisty/Troubleshooting

模板:Ubuntu:Feisty/UpgradingUbuntu