个人工具

“Ubuntu:Hardy/zh”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
(新页面: {{From|http://ubuntuguide.org/wiki/Ubuntu:Hardy}} {{Languages|Ubuntu:Hardy}} = ''''' Ubuntu 8.04 LTS (Hardy Heron) ''''' = '''Ubuntu Hardy Heron, Gutsy Gibbon 的后续版本,发布...)
 
(已恢复1.202.39.53对话)的编辑至220.164.101.201的最后一个修订版本)
 
(未显示14个用户的44个中间版本)
第4行: 第4行:
 
= ''''' Ubuntu 8.04 LTS (Hardy Heron) ''''' =
 
= ''''' Ubuntu 8.04 LTS (Hardy Heron) ''''' =
  
'''Ubuntu Hardy Heron, Gutsy Gibbon 的后续版本,发布于2008年4月24日. 请帮助测试和完善本指南.'''
+
'''Ubuntu Hardy Heron, 发布于2008年4月24日,是 [[Ubuntu:Gutsy|Gutsy Gibbon]] 的延续. 请帮助测试和完善本指南.'''
  
 +
本指南是由 [[User:Jiyuu0|Chua Wen Kiat]] (Kuala Lumpur, 马来西亚) 开始编写。
  
 
__TOC__
 
__TOC__
== ''''' 序言 ''''' ==
+
== ''''' 前言 ''''' ==
  
 
=== 关于 Hardy  ===
 
=== 关于 Hardy  ===
  
* Ubuntu 8.04 发布于2008-04-24 .
+
* Ubuntu 8.04 发布于2008年4月24日 。
* 发行版被称为 Hardy Heron,是 Ubuntu 7.10 Gutsy Gibbon 的后续版.
+
* 代号叫做 Hardy Heron ,是 Ubuntu 7.10 Gutsy Gibbon 的延续版本 。
* * Hardy Heron LTS (长期支持) 版本 ,拥有在服务器版本5年/桌面3年的安全升级支持.
+
* * Hardy Heron 是一个 LTS (长期支持) 版本 , 将提供服务器版本五年和桌面版本三年的安全性升级支持。
  
=== How to find out what version of Ubuntu you're using ===
+
=== 如何找出您正在使用的哪个版本 ===
  
Use this command:
+
使用这个命令:
  
 
  lsb_release -a
 
  lsb_release -a
  
=== How to find out the Kernel version of the Ubuntu release you're using ===
+
=== 如何找出您正在使用的Ubuntu发行版的内核版本 ===
  
Use this command:
+
使用这个命令:
 
    
 
    
 
   uname -r
 
   uname -r
  
=== Newer Versions of Ubuntu ===
+
=== Ubuntu的版本更新 ===
  
* Ubuntu uses a six month release cycle
+
* Ubuntu 使用6个月的发布周期
* These releases occur in April and October
+
* 发布时间为4月和10月
* The next release is scheduled for the 30th of October, 2008 and will be Ubuntu 8.10 (Intrepid Ibex) which is Hardy+1.
+
* 下一个发行版计划于2009年10月30日,命名为  Ubuntu9.10 (代号Karmic Koala )
  
=== About Ubuntu and Official Ubuntu Derivatives ===  
+
=== 关于 Ubuntu 和官方的 Ubuntu 衍生版 ===  
  
==== Ubuntu 8.04 Guides and Links ====
+
==== Ubuntu 8.04 指南和链接 ====
  
*[http://www.ubuntu.com/ Ubuntu Official Website]
+
*[http://www.ubuntu.com/ Ubuntu 官方站点]
*[http://www.ubuntu.com/products/whatisubuntu Official About Ubuntu Page]
+
*[http://www.ubuntu.com/products/whatisubuntu 关于Ubuntu的官方页面]
*[http://ubuntuforums.org/ Official Ubuntu Forums]
+
*[http://ubuntuforums.org/ Ubuntu 官方论坛]
*[http://en.wikipedia.org/wiki/Ubuntu_(Linux_distribution) Wikipedia: Ubuntu (Linux Distribution)]
+
*[http://zh.wikipedia.org/wiki/Ubuntu 维基百科 Ubuntu (Linux 发行版)]
*[http://www.ubuntugeek.com/ Ubuntu Geek includes Tips,Howtos,Tutorials and Articles about Ubuntu Linux]
+
*[http://www.ubuntugeek.com/ Ubuntu Geek 包括了 技巧,指南,和关于Ubuntu的教程和文章]
 +
*[http://www.ubuntu.org.cn/ Ubuntu 中文官方站点]
 +
*[http://forum.ubuntu.org.cn/ Ubuntu 中文官方论坛]
 +
*[http://wiki.ubuntu.org.cn/ Ubuntu 中文官方知识库]
  
===== Ubuntu Screenshots =====
+
===== Ubuntu 抓图 =====
  
[http://www.debianadmin.com/ubuntu-804-hardy-heron-screenshots-tour.html Ubuntu 8.04 Screenshots Gallery]
+
[http://linux.ubuntu.org.cn/screen/Ubuntu_8.04_Hardy_Heron_LTS/ Ubuntu 8.04 屏幕抓图]
  
== Useful Knowledge ==
+
===== Kubuntu 抓图 =====
  
This section contains information useful in following this guide.
+
[http://linux.ubuntu.org.cn/screen/Kubuntu_8.04_Hardy_Heron_LTS/ Kubuntu 8.04 屏幕抓图]
  
=== Using the console / terminal / shell ===
+
== 有用的知识 ==
  
The console, terminal, and shell refer to the same thing - a command line interface. It can be used to control the system instead of the graphical user interface (GUI). Many of the tasks within the guide can be performed using the GUI, but it is simpler for many users to use the command line.
+
此小节包含了对本手册有用的辅助信息。
  
To open the console:
+
=== 使用 控制台 / 终端 / shell ===
  
Applications --> Accessories --> Terminal
+
控制台, 终端, 和 shell 意味着同样一件事 - 一个命令行界面. 他可以用来控制系统从而代替图形用户界面 (GUI)。 这个指南本的大部分任务都可以使用GUI来完成, 但对于大多数用户而言使用命令行更加简单。
  
Any command prefixed by 'sudo' is given administrative (or root) access. You will be prompted for your user password.
+
打开一个控制台:
  
=== Using manpages to display command-line options and help===
+
应用程序 --> 附件 --> 终端
  
Most programs and commands have a help manual or screen, named "manpages".
+
任何一个使用 'sudo' 作为前缀的命令都需要拥有管理员 (或 root) 访问权限。 所以在输入命令之后你会被提示输入当前使用中用户的密码。
  
A command's function and command-line options can be displayed by typing in the terminal window (i.e. from the command line):
+
=== 使用 manpages 显示命令行的参数和帮助
 +
大多数的程序和命令都含有一个帮助手册或者屏幕,称为 "manpages"。
 +
 
 +
一个命令函数和命令行选项可以通过在终端输入下面的命令显示出来:
  
 
  man <command>
 
  man <command>
  
For example,  
+
例如,  
  
 
  man apt-get
 
  man apt-get
  
will show the options for the command apt-get.
+
将显示 apt-get 命令的选项。
 +
 
 +
=== Windows 和 Ubuntu 双启动  ===
 +
 
 +
您可能遇到Ubuntu 和 基于 Windows Vista 新引导程序的双启动问题。 Wubi (Windows Based Ubuntu Installer, 基于 Windows 的 Ubuntu 安装程序) 是一个正式支持双启动的安装程序。 如果你使用 Wubi 有任何问题, EasyBCD 是一个免费的 Windows 程序,可以快速和安全的完成 Windows Vista 和 Ubuntu (或其它发行版)的双启动.  
 +
 
 +
*[http://www.wubi-installer.org/ Wubi 安装程序]
 +
*[http://neosmart.net/dl.php?id=1 下载 EasyBCD]
 +
*[http://neosmart.net/wiki/display/EBCD/Ubuntu Ubuntu 和 Windows Vista 双启动说明]
  
== Keeping the system up-to-date ==
+
== 保持系统不断更新 ==
  
*It is important to have the system updated with the latest patches, security fixes and package upgrades from the repositories.
+
*这里存放着系统升级包,仓库里包含了最新的补丁,安全修复和软件包。
  
*Ensure that the correct repositories are enabled:
+
*确信有正确的仓库设置:
  
  System --> Administration --> Software Sources
+
  系统 --> 系统管理 --> 软件源
  
*Open the command-line terminal:
+
*打开命令行终端:
  
   Applications --> Accessories --> Terminal
+
   应用程序 --> 附件 --> 终端
  
*Update the repositories:
+
*更新源:
  
 
   sudo apt-get update
 
   sudo apt-get update
  
(The system will ask for your user password.)
+
(系统将提示输入您的用户密码。)
  
*Upgrade the packages of the currently installed version:
+
*升级当前已经安装包的版本:
  
 
   sudo apt-get upgrade
 
   sudo apt-get upgrade
  
*If you wish to upgrade to the newest version, use:
+
*如果你希望更新到一个新版本,使用:
  
 
   sudo apt-get dist-upgrade
 
   sudo apt-get dist-upgrade
  
:Upgrading to a new version should be done with caution. Make sure you are not using a system that requires a specific version of Ubuntu to function. Some applications are not compatible with newer releases and may stop functioning when you do a distribution upgrade. This is especially true if you are using an "[http://en.wikipedia.org/wiki/Computer_appliance appliance]" version of Ubuntu. These often should only have a distribution upgrade in co-ordination with a complete appliance upgrade.
+
:升级到一个新的版本需要谨慎行事。 确保你没有使用一个特定 Ubuntu 版本的功能。 一些应用程序并不兼容新版本,当你做了发行版升级后,可能会停止工作。
  
== Installing packages (programs) and libraries ==
+
== 安装包 (程序) 和 库 ==
  
In Ubuntu there are two ways to install packages into your system.
+
Ubuntu 有两种办法安装包到您的系统。
  
You can install packages from the command-line Terminal or from the Synaptic Package Manager
+
您可以从命令行安装包或者从新立得软件包管理器
  
=== How to install a package with Apt (from the command-line terminal) ===
+
=== 如何使用 Apt 安装包 (从命令行终端) ===
*Apt is the Debian Package Manager and is used in Ubuntu as well.
+
*Apt Debian 包管理器,同样也在 Ubuntu 下使用良好。
  
*Start the command line terminal:
+
*启动一个命令行终端:
  
   System --> Accessories --> Terminal
+
   应用程序 --> 附件 --> 终端
  
*Install a package by typing:
+
*使用输入来安装一个包:
  
 
   sudo apt-get install package
 
   sudo apt-get install package
  
:*To install the music player Amarok, for example:
+
:*例如,安装音乐播放器 Amarok:
  
 
   sudo apt-get install amarok
 
   sudo apt-get install amarok
  
*Remove a package:
+
*删除一个软件包:
  
 
   sudo apt-get remove package
 
   sudo apt-get remove package
  
:*To remove the Exaile music player, for example:
+
:*例如,删除 Exaile 音乐播放器:
  
 
   sudo apt-get remove exaile
 
   sudo apt-get remove exaile
  
*Apt checks the dependencies of a program automatically it is installed or removed.
+
*当在安装或者删除时, Apt 将自动检查程序的依赖关系。
  
===How to install a package with Synaptic Package Manager ===
+
===如何使用新立得软件包管理器安装包 ===
  
*Start Synaptic Package Manager:
+
*启动新立得软件包管理器:
  
  System --> Administration --> Synaptic Package Manager
+
  系统 --> 系统管理 --> 新立得软件包管理器
  
*Search for a complete or package using the Search Button.
+
*使用搜索按钮来搜索包。
  
*Click the box(es) of the package(s) to be installed; it/(they) will be entered into the installation queue.
+
*点击包前面的方块来安装它; 它将被加入到安装队列中。
  
*Press "Apply". Synaptic calculates the dependencies and installs the selected package as well as the packages on which it is dependent.
+
*点击 "应用"。 新立得将计算选择包的依赖关系,将其一并安装到系统。
 +
test
  
== Searching for a package/program ==
+
== 查找软件包/程序 ==
  
There are several ways to find packages in the repositories.
+
有几种方法可以在仓库里找到软件包
  
===Find a package in Synaptic ===
+
===在新立得查找软件包 ===
  
*Open Synaptic:
+
*打开新立得软件管理器
  
  System --> Administration --> Synaptic Package Manager
+
  系统 --> 系统管理 --> 新立得软件包管理器
  
*Press the Search button.
+
*点击搜索按钮。
  
=== Select the fastest mirror ===
+
=== 选择一个最快的镜像 ===
  
*See [http://www.ubuntugeek.com/how-to-select-fastest-mirror-in-ubuntu.html How to select the fastest mirror].
+
*参考 [http://www.ubuntugeek.com/how-to-select-fastest-mirror-in-ubuntu.html 如何去选择一个最快的镜像].
  
===Find a package on the Ubuntu website ===
+
=== 在Ubuntu站点查找一个软件包 ===
  
*Go to [http://packages.ubuntu.com/ the Ubuntu Packages website].
+
*浏览 [http://packages.ubuntu.com/ the Ubuntu 软件包页面].
  
*Search the Hardy packages at:
+
*搜索 Hardy 软件包:
  
 
:*http://packages.ubuntu.com/hardy/
 
:*http://packages.ubuntu.com/hardy/
第173行: 第189行:
 
:*http://packages.ubuntu.com/hardy-backports/ :*http://packages.ubuntu.com/hardy-backports/main/newpkg
 
:*http://packages.ubuntu.com/hardy-backports/ :*http://packages.ubuntu.com/hardy-backports/main/newpkg
  
=== Find a package with Apt ===
+
=== 使用 Apt 查找软件包 ===
  
*Open a command-line terminal:  
+
*启动一个命令行终端:  
  
   Applications --> Accessories --> Terminal
+
   应用程序 --> 附件 --> 终端
  
*Search for a package-name in the cache.
+
*在缓存中搜索软件包名称。
  
 
   sudo apt-cache search <package-name>
 
   sudo apt-cache search <package-name>
  
:*Example:
+
:*例如:
  
 
   sudo apt-cache search music player
 
   sudo apt-cache search music player
  
=== Find a package in Aptitude ===
+
=== Aptitude 搜索软件包 ===
  
*Aptitude is a menu-driven version of apt. It is invoked from the command-line terminal.
+
*Aptitude 是带有菜单版本的 apt. 它来源于命令行终端。
  
  Applications --> Accessories --> Terminal
+
  应用程序 --> 附件 --> 终端
 
  user> aptitude
 
  user> aptitude
  
*Use the Search option similar to Synaptic Package Manager.
+
*使用搜索选项,类似于新立得软件包管理器
  
== Add a program to the Applications menu ==
+
== 增加程序到应用程序菜单 ==
  
*''Right click'' on the menu bar to edit the menus.
+
*在菜单栏上''点击右键'' 编辑菜单.
  
*Optionally, from the command-line terminal:
+
*可选,从命令行终端:
  
 
  alacarte
 
  alacarte
  
*To find the location of the application on the hard drive:
+
*在硬盘上查到本地的应用程序位置:
 
   locate <applicationname>
 
   locate <applicationname>
  
== Graphics cards and displays ==
+
== 显卡和显示 ==
  
=== Installation of ATI and nVidia Graphics drivers ===
+
=== 安装 ATI nVidia 显卡驱动 ===
==== Install latest EnvyNG driver (ATI & nVidia) ====
+
====安装受限制的驱动====
*Ensures you are always running the latest version of the drivers.
+
===== NVidia 驱动 =====
*Read [http://albertomilone.com/envyngfaq.html#A this faq].
+
  
*Install the gtk package:
+
更多NVIDIA驱动安装详细信息(参阅http://wiki.ubuntu.org.cn/NVIDIA)
  
  sudo apt-get install envyng-gtk
+
*确定您现在运行的内核版本:
  
==== Install drivers from the repository (ATI & nVidia) ====
+
user@localhost:~$ uname -a
 +
Linux ubuntu804server 2.6.24-17-server #1 SMP Thu May 1 14:28:06 UTC 2008 x86_64 GNU/Linux
  
*From Synaptic Package Manager:
+
*我有一个 '''server''' 内核, 因此我需要安装下面的:
  
  System --> Administration --> Hardware Drivers
+
sudo apt-get install linux-restricted-modules-server
  
*Choose your Graphics Card and desired options.
+
你也可以从新立得软件包管理器来安装
  
*Reboot.
+
*点击 '''''系统 > 系统管理 > 硬件驱动''''' 并打开驱动.
  
==== Open Source rRadeon driver (ATI)====
+
*重启
*For those that have older ATi GPU installed
+
*See [https://help.ubuntu.com/community/RadeonDriver these instructions].
+
  
==== RadeonHD driver (ATI only)====
+
*有些用户可能得到如下错误信息: "这个 nvidia-glx-new 包的软件来源并不被允许启动." 可以如下修复,到 '''''系统 > 系统管理 > 软件源''''' 在"可从互联网下载"页面,勾选下面所有的选项, 点击关闭将重新更新包列表. NVidia 驱动能通过上面的办法可用。
*For those that own the latest ATi cards (2xxx and 3xxx generations) and can't have appropriate display with the latest ATi drivers (via EnvyNG) or with the repository driver.
+
  
*Make sure that you don't have another ATI driver installed.
+
*您可以选择启动时不显示 NVidia 标志:
*Also see this location for [http://www.phoronix.com/scan.php?page=article&item=842&num=1 more info].
+
sudo nvidia-xconfig --no-logo
  
*Search Synaptic Package Manager for the package:
+
==== 安装 EnvyNG 驱动 (ATI & nVidia) ====
 +
*确保您正在运行最新版本的驱动程序.
 +
*阅读 [http://albertomilone.com/envyngfaq.html#A 这个指南].
 +
 
 +
*安装 gtk 软件包:
 +
<pre>sudo apt-get install envyng-gtk</pre>
 +
 
 +
对于最新的ATI/AMD二进制驱动的apt-get安装
 +
<pre>sudo add-apt-repository ppa:ubuntu-x-swat/x-updates</pre>
 +
<pre>sudo apt-get update</pre>
 +
<pre>sudo apt-get install fglrx</pre>
 +
 
 +
==== 安装驱动从软件仓库 (ATI & nVidia) ====
 +
 
 +
*从新立得软件包管理器:
 +
 
 +
  系统 > 系统管理 > 硬件驱动
 +
 
 +
*选择您的显卡和所需的选项:
 +
 
 +
*重启.
 +
 
 +
==== 开源的 rRadeon 驱动 (ATI)====
 +
*针对于那些老的 ATi GPU
 +
*参考 [https://help.ubuntu.com/community/RadeonDriver 这些指示].
 +
 
 +
==== RadeonHD 驱动 (ATI only)====
 +
*对于那些最新的 ATi 显卡 (2xxx 和 3xxx) 并且使用最新的ATi驱动无法显示 (通过 EnvyNG) 或者软件仓库带的驱动.
 +
 
 +
*确保您没有安装其它的 ATI 驱动.
 +
*也可以阅读这里 [http://www.phoronix.com/scan.php?page=article&item=842&num=1 更多信息].
 +
 
 +
*在新立得软件包管理器搜索下面的软件包:
  
 
   xf86-video-radeonhd
 
   xf86-video-radeonhd
  
==== Fix for Video Playback Problem in Compiz-Fusion ====
+
==== 修复在 Compiz-Fusion 下视频回放的问题 ====
Problem:
+
问题:
While running Compiz-Fusion in fullscreen, a blue screen appears instead of special effects (3D cube, expo window viewing, video while moving the window).
+
当在 Compiz-Fusion 下全屏时, 一个蓝色的屏幕代替了应该出现的特效。
  
Solution:
+
解决方案:
Try [http://www.ubuntugeek.com/fix-for-video-playback-problem-in-compiz-fusion.html this fix].
+
尝试 [http://www.ubuntugeek.com/fix-for-video-playback-problem-in-compiz-fusion.html 这个修复].
  
Note: This fix is not a permanent fix. It makes your CPU render the video, not your graphic card. The video will seem pixelated when re-sized at a higher resolution because the CPU is not able to post-process the video (and taxes your system resources). There seems to be no current fix for this video playback issue. This is a driver problem at the X-Server side.
+
注意:此修补不是一个永久性的修复。它使用您的CPU渲染视频,而不是您的显卡。当在高分辨率下改变大小时,视频将显示一格一格的点,因为 CPU 是无法后处理的视频(额外消耗您的系统资源) 。似乎目前无法修复此视频播放问题,这是一个X服务器端的驱动程序问题。
  
=== Configuring multiple monitors with a nVidia graphics card ===
+
=== 配置 nVidia 显卡的多个显示器 ===
  
Install the nVidia graphics control panel:  
+
安装 nVidia 显卡控制面板:  
  
 
   sudo apt-get install nvidia-settings
 
   sudo apt-get install nvidia-settings
  
And then run the configuration utility:
+
并运行配置工具:
  
   sudo nvidia-settings
+
   gksu nvidia-settings
  
You should be able to configure all your monitors, set them to seperate resolutions, and change their positioning relative to one another. When you are finished, make sure you click 'Save to X Configuration File'. It is possible that you may have problems with the boundries of monitors; logging off and back on again should resolve this.
+
您可以配置您的所有显示器,设置单独的刷新率,并改变相对于其它的定位。当您完成时,请务必按一下'储存到X配置文件' 。某些显示器可能有问题; 注销再重新登录可解决这个问题。
  
== How to install multimedia support on Hardy Heron ==
+
==无线网卡==
 +
大多数的无线设备都工作正常。 可以点击 ''系统 -> 系统管理 -> 网络工具'' 来配置它们。
 +
=== Atheros 5007EG 和 madwifi 于 i386 平台 ===
  
=== Installing Codecs ===
+
对于那些, 使用 Atheros 5007EG 芯片的用户将无法使用 ndiswrapper 工作.这个手册仅仅适合 i386 平台, 因此如果您运行 x64 linux, 那么您继续尝试 ndiswrapper 或从 atheros 和 madwifi 等待一个新的解决方案.
  
Open a terminal and type :
+
[http://www.ubuntugeek.com/atheros-5007eg-with-madwifi-on-i386-platform.html atheros 和 madwifi]
  
  sudo -s -H
+
=== Atheros AR5007 wireless 和 madwifi 于 Ubuntu 8.04 (Hardy heron) ===
  
or
+
如果您使用 Atheros AR5007 无线网卡,按照下面的步骤让它在 ubuntu 8.04 下正常工作
  
  sudo -i
+
[http://www.ubuntugeek.com/atheros-ar5007-wireless-with-madwifi-on-ubuntu-804-hardy-heron.html Atheros AR5007 wireless 和 madwifi]
  
and then enter your user password.
+
===Atheros ar242x===
 +
atheros ar242x 无线网卡的驱动作为一个私有的驱动看起来已经可以用了 (参考 ''系统 > 系统管理 > 硬件驱动'')。 您可以注意到在您的网路工具 (系统 > 系统管理 > 网络)并没有发现无线网卡。 以下的步骤可能会解决您的问题,从而无需安装 ndiswrapper 支持 Windows 驱动程序。
 +
 +
http://madberry.org/2008/08/how-to-get-atheros-ar242x-wireless-to-work-2/
  
After that :
+
注意:这种做法的坏处是,每一个新的内核更新后,您将不得不重新编译驱动。
  
  apt-get update
+
===Intel Corporation PRO/Wireless 2915ABG 网络===
 +
虽然这个支持已经预先建立在了 ubuntu hardy...但对于有一些笔记本电脑,例如 Acer Travelmate C200, 无线按钮没有反应,用户不能知道设备是否在工作。一个非常简单的解决办法如下:
  
  apt-get upgrade
+
第一步:
 +
        sudo cat > ipw2200.modprobe << "EOF"
 +
        options ipw2200 led=1
 +
        EOF
  
To be upgraded. '''Please check that you have all repositories enabled in Software sources.'''
+
第二步:
 +
        sudo mv ipw2200.modprobe /etc/modprobe.d/
  
Then these commands :
+
第三步:
  
  apt-get install gstreamer0.10-plugins-ugly-multiverse gstreamer0.10-plugins-bad-multiverse
+
        运行 "lsmod |grep ipw2200" 来检查 ipw2200 模块是否被装载....重新启动系统即可享受乐趣!
  gstreamer0.10-plugins-bad gstreamer0.10-plugins-ugly gstreamer0.10-ffmpeg libxine1-ffmpeg libdvdread3
+
  
Now you have the most of the codecs needed to play most of multimedia you may own.
+
== 如何备份您的 Ubuntu 桌面 ==
  
=== Installing DVD Support ===
+
=== Pybackpack - 一个针对 Ubuntu Linux 桌面的友好文件备份工具 ===
  
If you want to install codecs in i386 and 64 bit check [http://www.ubuntugeek.com/install-mplayer-and-multimedia-codecs-libdvdcss2w32codecsw64codecs-in-ubuntu-804-hardy-heron.html This]
+
图形化的工具使文件备份简单。提供了一个友好的用户界面可让您备份您的文件到一个压缩档,或者 CD/DVD 或者使用 SSH 的远程位置。
  
At the console, type:
+
包含了截图的安装指南 [http://www.ubuntugeek.com/pybackpack-a-user-friendly-file-backup-tool-for-ubuntu-linux-desktop.html 点击这里]
 +
 
 +
 
 +
== 如何在 Hardy Heron 上安装多媒体支持 ==
 +
 
 +
=== 安装解码包 ===
 +
 
 +
  sudo apt-get update
 +
 
 +
准备好后. 请检查你所有的仓库源都开启了,位于 '''''系统 > 系统管理 > 软件源'''''.
 +
 
 +
然后运行下面命令:
 +
 
 +
  sudo apt-get install ubuntu-restricted-extras
 +
 
 +
现在您已经有了用来播放您自己多媒体的大部分解码器。
 +
 
 +
=== 安装 DVD 支持 ===
 +
 
 +
如果您需要安装解码器在 i386 和 64 位,点击 [http://www.ubuntugeek.com/install-mplayer-and-multimedia-codecs-libdvdcss2w32codecsw64codecs-in-ubuntu-804-hardy-heron.html 这个]
 +
 
 +
如果您需要一个自动运行的脚本,到 [http://www.hildoersystems.com/index.php/home/62 这里].
 +
 
 +
在控制台,输入:
  
 
   sudo gedit /etc/apt/sources.list
 
   sudo gedit /etc/apt/sources.list
  
Αnd paste in the end of the file the below:
+
在文件的最后增加下面的内容:
  
 
   ## Medibuntu - Ubuntu 8.04 "hardy"  
 
   ## Medibuntu - Ubuntu 8.04 "hardy"  
第306行: 第383行:
 
   deb http://packages.medibuntu.org/ hardy free non-free
 
   deb http://packages.medibuntu.org/ hardy free non-free
  
save the document and then in the terminal type:
+
保存文档后在终端输入:
  
 
   wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add -
 
   wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add -
  
in order to receive the appropriate key.
+
用来得到相对应的密钥。
  
Finally, at the terminal, type:
+
最后,在终端输入:
  
 
     sudo apt-get update  
 
     sudo apt-get update  
 
      
 
      
 
     sudo apt-get install libdvdcss2
 
     sudo apt-get install libdvdcss2
 +
 +
== 校订 ==
 +
我用了这个方法,但是 DVD 影片却不能预览,或让我回到主菜单。
 +
当语言设置为自动时,英文的DVD却使用法文或西班牙文播放。
 +
 +
我使用了这个 [http://ubuntuforums.org/showthread.php?t=828342&highlight=dvd+xinelink 论坛页面]上的方法来让我的 DVD 影片工作,并且运行的很好!甚至不只是在 Xubuntu 下能用。
 +
 +
这个是全自动完成,适合所有 Ubuntu 版本: [http://www.hildoersystems.com/index.php/home/62 http://www.hildoersystems.com/index.php/home/62].
 +
 +
方法 1:
 +
我仅仅新开了一个窗口, 下面的方法将 dvd/cd 回放的问题处理的很好。
 +
运行下面的命令:
 +
 +
代码:
 +
      sudo wget http://www.medibuntu.org/sources.list.d/hardy.list -O /etc/apt/sources.list.d/medibuntu.list
 +
 +
      sudo apt-get update && sudo apt-get install medibuntu-keyring && sudo apt-get update
 +
 +
      sudo apt-get install vlc libdvdcss2 ubuntu-restricted-extras w32codecs
 +
 +
就这些。
 +
 +
用于增加更好的 totem-xine 播放器用来取代缺省的 totem 播放器
 +
 +
      sudo apt-get install totem-xine
 +
 +
      sudo update-alternatives --config totem
 +
 +
方法 2
 +
 +
编辑 : libdvdread3/install-css.sh 这个有些过时了, 最好的选择是从 medibuntu 获得您需要的库,解码器和播放器,在一些少见的案例中,当前的 libdvdcss2 无法在你的系统上工作,下面是另外的选择
  
 
=== Pulseaudio ===
 
=== Pulseaudio ===
  
On Xubuntu, you may experience some glitches with Pulseaudio like no sound at all after upgrading from Gutsy. The reason may be that the Pulseaudio daemon is not started. Take note that the sound server is not started at boot time (to reduce the risk of inter-user audio corruption), but at login time. So, you will have to add an entry to your autostarted applications for Pulseaudio. Here is an example:
+
Xubuntu, 您可以体验到一些小问题,从 Gutsy 升级后 Pulseaudio 没有声音。 原因可能是 Pulseaudio 服务没有启动。 音效服务没有在启动时自动启动 (为了降低使用音效崩溃的风险), 但在登录后。 因此, 您可以为 Pulseaudio 增加一个项目到自动启动程序中。 下面是一个范例:
  
 
  :[Desktop Entry]<br>
 
  :[Desktop Entry]<br>
第333行: 第441行:
 
  :Hidden=false<br>
 
  :Hidden=false<br>
  
=== Installing VLC Media Player ===
+
=== 安装 VLC Media 播放器 ===
  
At the console, type:
+
在控制台输入:
  
 
   sudo apt-get install vlc
 
   sudo apt-get install vlc
  
To remove,
+
删除,
  
 
  sudo apt-get --purge autoremove vlc
 
  sudo apt-get --purge autoremove vlc
  
If you encounter sound problems (due to PulseAudio ), type:
+
如果您遇到声音的问题 (因为 PulseAudio ), 输入:
  
 
     sudo apt-get install vlc-plugin-pulse
 
     sudo apt-get install vlc-plugin-pulse
  
and choose PulseAudio as output in VLC options.
+
并在 VLC 选项中选择 PulseAudio 作为输出。
  
==== How to make VLC open when you insert a DVD ====
+
==== 如何当您插入一个 DVD 时,使用 VLC 打开 ====
Totem is the default program for DVD-playback in Hardy, and there is no obvious way to change it. A lot of tips that worked in previous versions no longer work. The main problem is that VLC does not register itself as a DVD-capable application.
+
有些用户使用 Totem 播放 DVD 时有些问题。 Totem 是 Hardy 缺省的 DVD-回放程序, 而且没有明显的办法修改。 很多之前版本的技巧不再适合。 这个主要的问题在于 VLC 没有将自己注册为一个可以播放 DVD 的程序。 下面的步骤可以设置 VLC 媒体播放器作为您缺省的 DVD 播放器。
  
At the console, type:
+
如果不存在此目录,就建立一个新的,作为自定义设置,在控制台输入:
  
     cp /usr/share/applications/vlc.desktop /home/hildenae/.local/share/applications/vlc-dvd.desktop
+
     mkdir ~/.local/share/applications
  
edit the file
+
复制独立的 VLC 设置文件。输入:
 +
 
 +
    cp /usr/share/applications/vlc.desktop ~/.local/share/applications/vlc-dvd.desktop
 +
 
 +
编辑 vlc-dvd.desktop。输入:
  
 
     gedit ~/.local/share/applications/vlc-dvd.desktop
 
     gedit ~/.local/share/applications/vlc-dvd.desktop
  
replace the line
+
卷动,并找到下面的行:
  
 
     Exec=vlc %U
 
     Exec=vlc %U
  
with either
+
使用下面的一行替换上面的行
:1. (all you really need)
+
:1. (你只需要)
  
 
     Exec=vlc %f
 
     Exec=vlc %f
  
:2. (recommended settings from ubuntuforums for better dvd playback)
+
:2. (ubuntu论坛中更好的 dvd 回放设置)
  
 
     Exec=vlc --vout-filter deinterlace --deinterlace-mode blend --volume 512 %f
 
     Exec=vlc --vout-filter deinterlace --deinterlace-mode blend --volume 512 %f
  
:3. (recommended settings from ubuntuforums for better dvd playback and automatic full screen playback)
+
:3. (ubuntu论坛中更好的 dvd 回放设置,并自动全屏播放)
  
 
     Exec=vlc --vout-filter deinterlace --deinterlace-mode blend --volume 512 --fullscreen %f
 
     Exec=vlc --vout-filter deinterlace --deinterlace-mode blend --volume 512 --fullscreen %f
  
Save the file and close gedit. At the console, type:
+
保存文件并关闭 gedit, 然后打开 mimeapps.list。 在控制台输入:
  
 
     gedit ~/.local/share/applications/mimeapps.list
 
     gedit ~/.local/share/applications/mimeapps.list
  
make the line «x-content/video-dvd=» under [Added Associations] read:
+
在大多数的情况下应该是一个新的空白文件, 而你仅仅需要从下面的行贴上。 如果 mimeapps.list 已经存在, 滚动到你找到这个[Added Associations]下面的 «x-content/video-dvd» 为止, 并修改到下面蚊子 (当你找不到时,直接贴上下面的行)。
  
 
     [Added Associations]
 
     [Added Associations]
 
     x-content/video-dvd=vlc-dvd.desktop;totem.desktop;
 
     x-content/video-dvd=vlc-dvd.desktop;totem.desktop;
  
Open Nautilus (default file manager), and navigate to Edit->Preferences>Media>DVD Video and select VLC media player (you should be able to choose between Totem and VLC)
+
保存文件并关闭 gedit。 检查是否设置正确, 从 Gnome 菜单 位置 -> 主文件夹, 接着在文件浏览器菜单编辑 Edit -> 首选项 -> 介质, 和 «DVD 视频» 设置到 «打开 VLC media player» (您应该可以在 Totem/Move Player 和 VLC 之间选择)
  
=== Installing Amarok (a Music Player) ===
+
=== 安装 Amarok (音乐播放器) ===
  
Whilst Amarok is a KDE/Qt application, it will work fine on Ubuntu, and can be installed by typing:
+
虽然 Amarok 是一个 KDE/Qt 程序, 但它可以在 Ubuntu 下良好工作, 输入下面的命令来安装:
  
 
   sudo apt-get install amarok
 
   sudo apt-get install amarok
  
=== Installing Exaile (Amarok-like Music Player) ===
+
=== 安装 Exaile (类似 Amarok 的音乐播放器) ===
  
Exaile is a GTK, Amarok-like Music Player. From the command-line terminal:
+
Exaile 是一个 GTK, 类似 Amarok 的音乐播放器。 在命令行终端:
  
 
   sudo apt-get install exaile
 
   sudo apt-get install exaile
  
Make sure you have the appropriate [http://ubuntuguide.org/wiki/Ubuntu:Hardy#Installing_Codecs multimedia codecs ] installed.
+
确信您已经安装了多媒体解码器。
  
=== Installing Pulseaudio Tools ===
+
=== 安装 Pulseaudio 工具 ===
  
This will install pulseaudio utilities such as individual application volume controls and audio server tools.
+
这将安装 pulseaudio 工具,包含了专有的应用程序声音控制和音效服务器控制工具。
  
Open a Terminal window and type the following:
+
打开一个终端窗口输入下面的:
  
 
   sudo apt-get install libasound2-plugins "pulseaudio-*" paman padevchooser paprefs pavucontrol pavumeter libflashsupport
 
   sudo apt-get install libasound2-plugins "pulseaudio-*" paman padevchooser paprefs pavucontrol pavumeter libflashsupport
  
Run Pulseaudio Device Manager from the Applications > Sound and Video menu to access the tools.
+
从 应用程序 -> 影音 菜单来访问这个工具-运行 Pulseaudio 设备管理员。
 
+
=== Installing XMMS ===
+
 
+
Note: XMMS is no longer included in the package tree and must be installed from source. This guide is based on <http://blog.sartek.net/2008/04/install-xmms-on-ubuntu-804-hardy-heron.html>.
+
 
+
 
+
 
+
  
'''''Be extra carefull'''. The installation of a package out of PMS (package management system, that means apt and its frontend, Synaptic) may be dangerous, since the system doesn't have a trace of the binaries that are installed after the compilation.
+
=== 安装 XMMS ===
  
''Be sure that you know very well what you do.
+
备注: XMMS 不再包含到软件库,必须从源码安装。 手册在 <http://blog.sartek.net/2008/04/install-xmms-on-ubuntu-804-hardy-heron.html>.
  
Instead of that you should consider of making a .deb package so that you may do an appropriate installation''''
 
  
 +
'''''特别小心'''. 不通过 PMS (软件包管理系统, 意味着 apt 和它的前端, Synaptic) 可能有风险, 因为系统不会追踪编译完成后安装的二进制文件。
  
 +
''你确信清楚你在做什么。
  
 +
如果您想合适的安装,可以考虑制作一个 .deb 软件包''''
  
XMMS depends on a lot of packages; install them by typing the following into a terminal:
+
XMMS 依赖很多软件包; 在终端输入下面的命令安装他们:
  
 
   sudo apt-get install autotools-dev automake1.9 libtool gettext libasound2-dev libaudiofile-dev  
 
   sudo apt-get install autotools-dev automake1.9 libtool gettext libasound2-dev libaudiofile-dev  
第434行: 第541行:
 
   libsm-dev libvorbis-dev libxxf86vm-dev libxml-dev libssl-dev build-essential make
 
   libsm-dev libvorbis-dev libxxf86vm-dev libxml-dev libssl-dev build-essential make
  
Download the source from the XMMS website and unpack the .tar.gz:
+
XMMS 站点下载源代码,解压缩 .tar.gz:
  
 
   http://xmms.org/
 
   http://xmms.org/
  
From a terminal move to the newly untarred director and type:
+
从一个终端进入到新解压的目录并输入:
  
 
   ./configure --prefix=/usr
 
   ./configure --prefix=/usr
  
Compile the code:
+
编译代码:
  
 
   make
 
   make
  
Then install:
+
然后安装:
 
    
 
    
 
   sudo make install
 
   sudo make install
  
You can remove the untarred directory if you so desire. To make audio output work properly, you may have to change the output audio plugin to ALSA from the OSS driver. This is done by opening xmms and navigating through the Options-Preferences menus.
+
如果您喜欢,可以删除解压缩出来的目录。 如果想要声音输出正常, 您可以修改声音输出插件从 OSS 驱动到 ALSA。 打开 xmms 浏览 选项-偏好设置 菜单来修改。
  
== Systems and Network Monitoring ==
+
=== 安装 Real Player 11 和配置 Mozilla 插件 ===
  
=== Install the Zenoss stack ===
+
以下步骤显示如何安装 Real Player 11 和运行在 Hardy Heron 上的 Firefox 3.0 浏览器的 Mozilla 插件。
  
Zenoss is a full-featured open source networking monitoring application. To
+
下载 Real Player 11 从:
install a version of Zenoss which includes all dependencies, first add the
+
 
repository by typing:
+
  www.real.com/linux
   
+
 
    sudo gedit /etc/apt/sources.list
+
開啟終端機(terminal)並切換到剛剛下載好的檔案所在的目錄。將權限設定允許執行,並用以下指令執行安裝設定:
 +
打开一个终端并切换到文件下载的目录。 赋予可执行权限并使用下面的命令进行安装:
 +
 
 +
  chmod 770 RealPlayer11GOLD.bin
 +
  sudo ./RealPlayer11GOLD.bin
 +
 
 +
安装时使用了下面的缺省安装目录:
 +
 
 +
  /opt/real/RealPlayer
 +
 
 +
安装程序将复制文件和建立菜单快捷方式。然后运行下面命令。
 +
 
 +
  cd /usr/lib/firefox-addons/plugins
 +
  sudo ln -s /opt/real/RealPlayer/mozilla/nphelix.xpt nphelix.xpt
 +
  sudo ln -s /opt/real/RealPlayer/mozilla/nphelix.so nphelix.so
 +
  sudo mv /usr/lib/totem/gstreamer/libtotem-complex-plugin.so ~/.
 +
 
 +
打开 Firefox 在地址栏输入 about:plugins 。 卷动并查找到下面的条目。
 +
 
 +
  Helix DNA Plugin: RealPlayer G2 Plug-In Compatible
 +
  File name: /opt/real/RealPlayer/mozilla/nphelix.so
 +
  Helix DNA Plugin: RealPlayer G2 Plug-In Compatible version 0.4.0.4005 built with gcc 3.4.3 on Feb 25 2008
 +
 
 +
如果发现,您的 Real 插件已经安装好了!
 +
 
 +
== 系统和网络监视 ==
 +
 
 +
=== 安装 Zenoss stack  ===
 +
 
 +
Zenoss 是一个充满特色的开源网络监听程序。 如果安装包含了所有依赖的 Zenoss 版本, 首先需要增加软件库,输入:
 +
 
 +
  sudo gedit /etc/apt/sources.list
  
Αnd paste in the end of the file:
+
在文件的最后面粘贴:  
  
 
   ## Zenoss - Ubuntu
 
   ## Zenoss - Ubuntu
第468行: 第606行:
 
   deb http://dev.zenoss.org/deb main stable
 
   deb http://dev.zenoss.org/deb main stable
  
Save the file and exit. Then type:
+
保存文件并退出。
 +
 
 +
为了接收到密钥,输入:
 +
 
 +
  wget -q http://dev.zenoss.org/deb/zenoss-gpg.key -O- | sudo apt-key add -
 +
 
 +
然后再输入:  
  
 
     sudo apt-get update
 
     sudo apt-get update
第474行: 第618行:
 
     sudo apt-get install zenoss-stack
 
     sudo apt-get install zenoss-stack
  
Start zenoss:
+
启动 zenoss:  
  
 
     sudo /etc/init.d/zenoss-stack start
 
     sudo /etc/init.d/zenoss-stack start
  
Then in your browser, visit http://yourhost:8080, where yourhost is the FQDN of
+
然后在您的浏览器, 访问 http://yourhost:8080, 其中 yourhost 是你安装了 Zenoss 的 FQDN 服务器。 Zenoss 文档在 http://docs.zenoss.com
the server on which you installed Zenoss. Zenoss docs are available at
+
http://docs.zenoss.com.
+
  
== Internet and Web Development ==
+
== Internet Web 开发 ==
  
=== Install a LAMP server on a Desktop ===
+
== 远程桌面 ==
 +
这里有几种办法远程访问您的 Ubuntu 桌面, 请权衡每一种方法,并按照您的需要选择。
 +
=== 如何安装和使用 Windows 下的 Xming ===
 +
软件 [http://www.straightrunning.com/XmingNotes/ Xming] 可以用于在 Windows 电脑上访问一个 Ubuntu 远程桌面。 运行在 Windows XP 上的 Xming 提供了一个 XDMP 接口的 X 服务器。
 +
* 下载 Xming 软件和字体安装包从 [http://sourceforge.net/projects/xming SourceForge.net]
 +
* 首先安装 Xming , 然后安装字体。
 +
* 下一步您确信您的 Windows 防火墙没有阻止连接到您的 Linux 电脑。  在您的防火墙设置的 "例外" 页面,增加输入下面的端口配置:
 +
名称: Any name
 +
端口: 16001
 +
TCP -> 选择
  
LAMP stands for Linux, Apache, MSQL and PHP. You can install an integrated package that includes all four from the Synaptic Package manager (if you are using a Desktop Edition).
+
名称: Any name
 +
端口: 6000
 +
TCP -> 选择
  
  System-->Administration-->Synaptic Package Manager-->
+
  名称: Any name
  Edit-->Mark Packages by Task-->LAMP server -->Apply
+
端口: 177
 +
UDP -> 选择
 +
* 到您的 Ubuntu 电脑上允许远程桌面: (Gnome)
 +
系统 -> 首选项 -> 远程桌面
 +
"允许其他人查看您的桌面" -> 选择
 +
  "允许其他用户控制您的桌面" -> 选择
 +
在同样的页面上选择您的安装设置方式。
 +
* 确保您的 Linux 电脑没有拦截通过 TCP 访问 XDMP :
 +
在您的 Linux 电脑 (Gnome) 点击 系统 -> 系统管理 -> 登录窗口 -> 安全。 确保 "禁止 TCP 连接到 X 服务器" 没有被选择。
 +
* 到您的 Windows 电脑的您安装的 Xming 目录并点击运行 XLaunch.exe
 +
* 选择其它所有的选项除了 "Multiple Windows", 点击 "Next".
 +
* 选择 Open session via XDMCP, "Next".
 +
* 选择 Connect to host. 输入您的 Linux 电脑名字或者 IP 地址, "Next".
 +
* 允许 Clipboard.
 +
* 保存配置 & 点击 Finish.
 +
现在您可以从 Ubuntu 获得一个登录窗口了。
  
=== Install a LAMP server for local web development ===
+
==== 潜在问题 ====
 +
可能有一个潜在的问题,在您远程桌面上鼠标滚轮不工作。 要修复这个问题到您的 linux 电脑上编辑这个文件: /etc/X11/xorg.conf. 在Section "InputDevice", Identifier "Configured Mouse" 增加下面的行: (这是一个通用的 PS2 两键滚轮鼠标)
 +
Option    "Protocol" "IMPS/2"
 +
Option    "ZAxisMapping" "4 5"
 +
Option    "Buttons"  "3"
 +
'''警告: 请确定这样做,它将修改您的 X 服务配置'''
  
This will install Apache2, PHP5, MySql5, and PHPMyAdmin.
+
在条件和参数之间使用 <Tab> 来间隔。
 +
*重启您的 Ubuntu 电脑,使配置生效。
  
Firstly, type the following command at the console:
+
== 指南: 在 Ubuntu/Linux 上通过 sysctl 调整和最大化网络带宽! ==
 +
 
 +
我会在这里展示一些隐藏的设置,这些可以增加您的 internet 速度, 并且适合于所有的 linux 操作系统,包括 Ubuntu:
 +
 
 +
1. 打开一个终端,通过  应用程序 -> 附件 -> 终端
 +
 
 +
输入:
 +
 
 +
    sudo vim /etc/sysctl.conf    (按 i 进入编辑模式)
 +
 
 +
到文件的结尾粘贴下面的行:
 +
 
 +
  ## increase TCP max buffer size setable using setsockopt()
 +
net.core.rmem_max = 16777216
 +
net.core.wmem_max = 16777216
 +
  ## increase Linux autotuning TCP buffer limits
 +
  ## min, default, and max number of bytes to use
 +
  ## set max to at least 4MB, or higher if you use very high BDP paths
 +
net.ipv4.tcp_rmem = 4096 87380 16777216
 +
net.ipv4.tcp_wmem = 4096 65536 16777216
 +
  ## don't cache ssthresh from previous connection
 +
net.ipv4.tcp_no_metrics_save = 1
 +
net.ipv4.tcp_moderate_rcvbuf = 1
 +
  ## recommended to increase this for 1000 BT or higher
 +
net.core.netdev_max_backlog = 2500
 +
  ## for 10 GigE, use this, uncomment below
 +
  ## net.core.netdev_max_backlog = 30000
 +
  ## Turn off timestamps if you're on a gigabit or very busy network
 +
  ## Having it off is one less thing the IP stack needs to work on
 +
  ## net.ipv4.tcp_timestamps = 0
 +
  ## disable tcp selective acknowledgements.
 +
net.ipv4.tcp_sack = 0
 +
  ##enable window scaling
 +
net.ipv4.tcp_window_scaling = 1
 +
 
 +
 
 +
输入 :wq ,保存和退出。
 +
 
 +
在终端输入
 +
 
 +
    sudo sysctl -p
 +
 
 +
应用这些设置。
 +
 
 +
 
 +
您可以屏蔽和删除你增加的行,使用:
 +
   
 +
    sudo gedit /etc/sysctl.conf
 +
 
 +
=== 在桌面上安装 LAMP 服务 ===
 +
 
 +
LAMP 代表 Linux, Apache, MSQL 和 PHP. 您可以从新立得软件包管理器安装这个四合一软件 (如果您使用的是桌面版)。
 +
 
 +
系统 --> 系统管理 --> 新立得软件包管理器 -->
 +
编辑 --> 使用任务分组软件包 --> LAMP server --> 应用
 +
 
 +
=== 简单的 LAMP 服务设置 ===
 +
 
 +
大约 15 分钟, 可以安装 LAMP (Linux, Apache, MySQL and PHP) 到 Ubuntu Server 版, 这些功能和都已经在已经安装好的 Ubuntu Server 版中提供。
 +
 
 +
参考 [http://www.ubuntugeek.com/ubuntu-804-hardy-heron-lamp-server-setup.html 15 分钟设置 LAMP 服务] 非常简单的设置手册
 +
 
 +
=== 从本地 web 开发环境安装一个 LAMP 服务 ===
 +
 
 +
下面将安装 Apache2, PHP5, MySql5, 和 PHPMyAdmin.
 +
 
 +
首先在控制台输入下面的命令:
 +
 
 +
  apt-get update
 +
 
 +
这个将更新到最新的软件包列表。
 +
 
 +
然后输入:  
  
 
   sudo apt-get install apache2 php5 mysql-server-5.0 phpmyadmin
 
   sudo apt-get install apache2 php5 mysql-server-5.0 phpmyadmin
  
This will install all the necessary applications. You may be prompted to decide on a MySQL root password (set one if you want), and to configure PHPMyAdmin (select apache2 as the server type). After this is complete, we need to perform some minor configuration to get PHPMyAdmin working. Type:
+
这个将会安装所有需要的程序。 您可能被提示输入一个 MySQL root 密码 (如果你想就设置一个), 并配置 PHPMyAdmin (选择 apache2 作为服务类型)。 这些完成后, 我们需要一些细微的设置来让 PHPMyAdmin 运行。 输入:
  
 
   sudo gedit /etc/apache2/apache2.conf
 
   sudo gedit /etc/apache2/apache2.conf
  
Scroll right to the bottom of the file that opens, and add:
+
卷动到打开文件的最后,增加:
  
 
   # Enable PHPMyAdmin
 
   # Enable PHPMyAdmin
 
   Include /etc/phpmyadmin/apache.conf
 
   Include /etc/phpmyadmin/apache.conf
  
Now save, exit, and type:
+
现在保存,退出,并输入:
  
 
   sudo /etc/init.d/apache2 restart
 
   sudo /etc/init.d/apache2 restart
  
Everything should now be configured - go to http://127.0.0.1 for webpages, and http://127.0.0.1/phpmyadmin for database administration. The webroot is located in /var/www/ by default. This is not particularly useful, as we do not have write access to this directory. Fortunately, this is easy to solve, by...
+
现在所有的都配置好了 - 访问 http://127.0.0.1 页面, 以及 http://127.0.0.1/phpmyadmin 进行数据库管理。 webroot 缺省位于 /var/www/ 。 这个并不是很有用,我们不能写入这个目录,可以使用下面简单的办法处理 ...
  
=== Adding a virtual host to your LAMP server ===
+
=== 在您的 LAMP 服务上增加一个虚拟主机 ===
This allows us to access a different folder as our webroot from a different address in our browser - face it, 'localhost' or 127.0.0.1 is boring.
+
  
Start by adding a new host. This is easy to do via System --> Administration --> Network; click on the Hosts tab, select the localhost item from the list and click properties. You may need to click the 'Unlock' button and enter your password first. Underneath the entry 'localhost', on a new line, add your entry of choice; for example, we'll use 'testhost'. Add this, and close all the dialogs.
+
'''第一种办法'''
 +
 
 +
这个可以让我们在我们的浏览器,使用不同的网址访问不同的目录 - 事实上, 'localhost' 或 127.0.0.1 多无趣。
 +
 
 +
首先增加一个新的主机。 这个非常容易做通过 系统 --> 系统管理 --> 网络; 点击主机页面, 从列表中选择 localhost 项目点击属性。 您可能先需要点击 '解锁' 按钮并输入您的密码。 在 'localhost' 的下面, 新的一行, 增加您选择的记录; 例如, 我们使用 'testhost'。 加入这个, 并关闭所有的对话框。
 +
 
 +
为了检查是否生效, 您可以检查 '/etc/hosts' 文件。
 +
 
 +
  sudo gedit /etc/hosts
 +
 
 +
您可以看到如下行.
 +
 
 +
  127.0.1.1 testhost
 +
 
 +
现在我们需要编辑 Apache 配置文件,在控制台输入:
  
Now we need to edit a configuration file, so type into the console:
 
 
   sudo gedit /etc/apache2/httpd.conf
 
   sudo gedit /etc/apache2/httpd.conf
In the resulting file (which may well be empty), add the definition for your host! My username is 'dan', and I want my webpages to be served from a directory named 'www' in my home, so I would add:
+
 
 +
在打开的文件 (可能是空的), 增加您定义的主机! 我的用户名是 'dan', 我希望我的网页保存目录为 我的主目录下的 'www' 目录, 因此我增加:
  
 
   <VirtualHost *>
 
   <VirtualHost *>
第528行: 第787行:
 
   </Virtualhost>
 
   </Virtualhost>
  
I can now add files to /home/dan/www, and access them by visiting http://testhost
+
testhost 是新虚拟站点的名字 (它必须和您上面配置的记录保持一致).
 +
 
 +
完成这些后, 您需要重启 apache 才可以使用新的配置。
 +
 
 +
  sudo /etc/init.d/apache2 restart
 +
 
 +
我现在可以增加文件到 /home/dan/www, 并通过 http://testhost 来访问。
 +
 
 +
'''第二种办法'''
 +
 
 +
启动终端并输入:
 +
 
 +
  cd /etc/apache2/sites-available
 +
  sudo touch your-site-name.conf
 +
  sudo nano your-site-name.conf
 +
 
 +
输入您的虚拟主机,例如:
 +
 
 +
  <VirtualHost 127.0.1.1:80>
 +
  ServerName myserver
 +
  ServerAdmin me@myserver
 +
  DocumentRoot /home/me/webroot/default
 +
  <Directory /home/me/webroot/default>
 +
      Options -Indexes
 +
      AllowOverride All
 +
      Order Allow,Deny
 +
      Allow From All
 +
  </Directory>
 +
  </VirtualHost>
 +
 
 +
保存为一个新文件并输入下面的命令:
 +
 
 +
  cd ../sites-enabled
 +
  ln -s /etc/apache2/sites-available/your-site-name.conf ./your-site-name.conf
 +
  cd ../
 +
  sudo nano apache2.conf
 +
 
 +
到 apache2.conf 文件的最后增加注解后的下面几行:
 +
 
 +
  # Include the virtual host configurations:
 +
  NameVirtualHost 127.0.1.1:80
 +
  Include /etc/apache2/sites-enabled/
 +
 
 +
保存编辑的文件并输入下面的命令:
 +
 
 +
  sudo nano /etc/hosts
 +
 
 +
在您的配置文件里面的 127.0.1.1 记录的后面增加, 例如:
 +
 
 +
  127.0.0.1 localhost
 +
  127.0.1.1 zozi myserver
 +
 
 +
最后但不重要, 保持编辑的文件,并重启服务,按照:
 +
 
 +
  sudo /etc/init.d/apache2 restart
 +
 
 +
您新的虚拟站点可以访问了,通过 http://myserver/ 访问。
  
== Home Automation / Home Theater / Home Security ==
+
== 家庭自动化 / 家庭影院 / 家庭安全 ==
=== Complete Systems ===
+
=== 完整的系统 ===
==== Linux MCE (Media Center Edition) ====
+
==== Linux MCE (媒体中心版本) ====
[http://en.wikipedia.org/wiki/LinuxMCE LinuxMCE] is an integrated home theater/home security/home automation/telephone PBX/intercom system for your home. It is a community project that is a fork of the Linux Pluto commercial endeavour. There is a version that runs on Kubuntu 7.04 (Feisty) and a version for Kubuntu 7.10 (Gutsy). A version for Kubuntu 8.04 (Hardy) is due out soon. It is available in 32 and 64 bit versions. LinuxMCE can run either as a standalone Home Theater PC or can co-ordinate a fully networked home, using the networking capabilities that are intrinsically part of the Kubuntu Linux OS. For more info see the [http://www.linuxmce.org LinuxMCE website].
+
[http://en.wikipedia.org/wiki/LinuxMCE LinuxMCE] 是一个为您的家庭设计,并包括了家庭影院/家庭安全/家庭自动化/电话交换机/内部通话的系统。这个是一个社区计划,从以商业为主的 Linux Pluto 分支出来。其中有一个版本在 Kubuntu 7.04 (Feisty) 上运行,而另一个版本在 Kubuntu 7.10 (Gutsy) 上运行。 Kubuntu 8.04 (Hardy) 版的已经快完成了。这些可于 32 64 位版本上运行。 LinuxMCE 可以成为一台独立的家庭剧院个人电脑,或通过 Kubuntu Linux 操作系统本身的网络能力,在完整网络化的家庭与其它设备一起运作。更多资讯参考 [http://www.linuxmce.org LinuxMCE 网站]
  
LinuxMCE can be installed at the same time as the Kubuntu OS, on a new PC with an Nvidia graphics card (6000, 7000, or 8000 series), from a single DVD.
+
LinuxMCE 可以和 Kubuntu OS 通过一张 DVD 同时安装到到一台 Nvidia 显卡 (6000, 7000, 8000 系列)的新电脑上。
  
LinuxMCE can also be installed as an add-on package to an existing Kubuntu system, using the LinuxMCE 2 CD installation. You will need a Kubuntu LiveCD for your installation, even if you already have a full Kubuntu installation in place. (The LinuxMCE installation uses the Kubuntu LiveCD for additional modules.) Note that the LinuxMCE version must match the Kubuntu version -- i.e. the LinuxMCE 710 version CDs require the Kubuntu 7.10 (Gutsy) Live CD.
+
LinuxMCE 也可以使用 LinuxMCE 第二张 CD ,作为附加软件包安装到一个已经存在的 Kubuntu 系统。在安装过程中需要一张Kubuntu LiveCD,即使您已经完整的安装 Kubuntu 了。 (LinuxMCE 安装时需为一些附加的模块使用 Kubuntu LiveCD。) 要注意的是,LinuxMCE 的版本必须和 Kubuntu 版本一致 -- 例如 LinuxMCE 710 CDs 需要 Kubuntu 7.10 (Gutsy) Live CD。
  
With the 2 CD installation, it is possible to run Kubuntu separately from LinuxMCE on the same PC, but it is recommended to dedicate at least one PC to LinuxMCE as a Core server.
+
通过第二张光盘安装,您可以在同一台 PC 上从 LinuxMCE 运行 Kubuntu ,但是建议将一台 PC 作为 LinuxMCE 的核心服务器。
  
LinuxMCE incorporates [http://en.wikipedia.org/wiki/MythTV MythTV], [http://plutohome.com/ Pluto] home automation, [http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome Motion] security surveillance, [http://www.asterisk.org/ Asterisk] PBX, [http://www.cadsoft.de/vdr/ VDR] video disk recorder, and other home automation/security/theater packages in an integrated platform.
+
LinuxMCE [http://en.wikipedia.org/wiki/MythTV MythTV], [http://plutohome.com/ Pluto]家庭自动化,[http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome Motion] 安全监控,[http://www.asterisk.org/ Asterisk] 私人交换机 PBX, [http://www.cadsoft.de/vdr/ VDR] 电影录制,和其它家庭自动化/安全/影院软件包整合到同一平台上。
  
At this time, the automatic installer for Linux MCE uses the [http://kubuntuguide.org/Gutsy KDE desktop (Kubuntu)]. There are users that have made Linux MCE work with the Gnome desktop (Ubuntu) and other Linux distributions, but it is recommended to stick with the Kubuntu OS, as required by the LinuxMCE automatic installation.
+
目前,全自动的 Linux MCE 安装程序使用 [http://kubuntuguide.org/Gutsy KDE 桌面 (Kubuntu)]。有一些使用者将 Linux MCE 改为也可以使用 Gnome 桌面 (Ubuntu) 和其他的 Linux 发行版,但因为 LinuxMCE 自动安装时需要用到 Kubuntu,所以还是建议您使用 Kubuntu 操作系统。
  
=== PVR (Personal Video Recorder) ===
+
=== PVR (个人录像机) ===
  
 
==== Mythbuntu ====
 
==== Mythbuntu ====
  
[http://www.mythbuntu.org Mythbuntu] is an Ubuntu-based derivative (based on the Xubuntu (XFCE) desktop) that is meant to function as a standalone PVR, based on MythTV. It can be used, however, with a Gnome (Ubuntu), KDE (Kubuntu) or XFCE (Xubuntu) desktop, which can be added at any later time.
+
[http://www.mythbuntu.org Mythbuntu] 是一个基于 Ubuntu 的衍生版 (基于 Xubuntu (XFCE) 桌面) ,是建立在 MythTV 上的独立 PVR 系统。 然而,使用 Gnome (Ubuntu), KDE (Kubuntu) 或者 XFCE (Xubuntu) 桌面也可以使用并在任何时候安装。
  
===Home Security===
+
*启动新立得软件包管理器。
====Zoneminder surveillance system====
+
Zoneminder manages surveillance cameras and stores images on the hard disk. Images can be viewed using a [[#Install a LAMP server on a Desktop|(LAMP) server]] remotely. X10 devices can be triggered using built-in perl scripts. For more info see the [http://www.zoneminder.com/ Zoneminder website].
+
  
*Read [[#General Notes]]
+
系统 --> 系统管理 --> 新立得软件包管理器
*Read [[#Install a LAMP server on a Desktop]]
+
  
=====Installing the latest Zoneminder version=====
+
*选择安装 Mythbuntu LiveCD 软件包, 或者 Mythbuntu 前端, 主后台, 辅助后台, 和/或其它扩展。 参考 [http://www.mythbuntu.org website] 更多信息。
*Minor tweaks are required to install the latest version of Zoneminder on Hardy. See [http://www.zoneminder.com/forums/viewtopic.php?t=11734 the Zoneminder forums].
+
 
 +
新立得软件包管理器 --> 使用任务分组标记软件包...
 +
 +
 
 +
===== 远程控制配置 - Lircd =====
 +
 
 +
在 Mythbuntu Control Centre 可以设置:
 +
* Remote: Custom ( 或者使用列表中存在的一个 )
 +
* Driver: [blank] ( 大多数时间模块被正确加载 )
 +
* Modules: lirc_dev lirc_i2c lirc_igorplugusb ( 在这部分按照您的设备使用适合的模块)
 +
* Configuration: myremote.conf
 +
** 为自定义遥控器使用 irrecord 建立一个 .conf 文件, 大多数的遥控器都可以正常工作
 +
 
 +
也可以使用:
 +
dmesg                      # 检查接收器是否在内核被注册
 +
sudo mode2 -d /dev/lirc0  # 检查接收器是否正常工作,如果不正常换一个sub口
 +
irw /dev/lircd            # 检查接收器是否正常接收到遥控器信息
 +
''警告:'' 确保 ~/.mythtv/lircdrc 使用 remote = YourRemoteName, 和 myremote.conf 中的一致
 +
sudo /etc/init.d/lirc restart  # restart lircd daemon
 +
重启 mythtv 前端
 +
 
 +
===家庭安全===
 +
====Zoneminder 监控系统====
 +
Zoneminder 管理摄像机和在硬盘上保存影像。 影像可以使用 [[#Install a LAMP server on a Desktop|(LAMP) server]] 远程浏览。 X10 设备可以支持内建的 perl 脚本来启动。 更多信息查阅 [http://www.zoneminder.com/ Zoneminder 网站]。
 +
 
 +
*阅读 [[#General Notes]]
 +
*阅读 [[#Install a LAMP server on a Desktop]]
 +
*从新立得安装 ffmpeg , 或者从命令行终端:
 +
 
 +
sudo apt-get install ffmpeg
 +
 
 +
=====安装最新的 Zoneminder 版本=====
 +
*在 Hardy 上安装最新的 Zoneminder (1.23.3) 版, 查看 [http://www.zoneminder.com/forums/viewtopic.php?t=11734 Zoneminder 论坛] 或者 [http://www.zoneminder.com/forums/viewtopic.php?p=42940&sid=a2b97fc4471f33005234cd6380ac0016 从源码安装]
 +
 
 +
=====使用仓库里面的包=====
 +
*在 Hardy 软件仓库里面包含了 Zoneminder (version 1.22.3) (也包含在 Gutsy) 。 您可以从新立得软件包管理器来安装它。 它同时有 32-bit 和 64-bit 版本。
  
=====Using the repository package=====
 
*There is a Zoneminder package for Hardy (that was the package from Gutsy). You should be able to install the package from Synaptic Package Manager.
 
  
*Detailed instructions that appeared to work for Gutsy are at [http://www.zoneminder.com/wiki/index.php/Main_Documentation#Installation_from_a_.deb the Zoneminder Installation Wiki].
+
*Gutsy 下可运行良好的详细安装指南在 [http://www.zoneminder.com/wiki/index.php/Main_Documentation#Installation_from_a_.deb Zoneminder 安装 Wiki].
  
=====Original Feisty installation instructions=====
+
=====原本在 Feisty 安装指引=====
*However, if that does not work, try the original instructions that worked for Feisty:
+
*假如, 还无法正常工作, 尝试可以在 Feisty 下正常工作的安装程序:
  
*You must have the LAMP server installed. In addition, you will need additional modules:
+
*您必须先安装 LAMP 服务。 另外, 如果您的系统不满足包依赖关系,您需要安装额外的模块:
  
  sudo apt-get install ffmpeg libarchive-tar-perl libarchive-zip-perl libdate-manip-perl libdevice-serialport-perl
+
  sudo apt-get install libarchive-tar-perl libarchive-zip-perl libdate-manip-perl libdevice-serialport-perl
 
  sudo apt-get install libjpeg62 libmime-perl libstdc++6 libunwind7 libwww-perl zlib1g
 
  sudo apt-get install libjpeg62 libmime-perl libstdc++6 libunwind7 libwww-perl zlib1g
  
*Download the .deb package from the package manager's website:
+
*从软件包管理站点下载 .deb 软件包:
  
 
ftp://www.northern-ridge.com.au/zoneminder/ubuntu/edgy/zoneminder_1.22.3-8_i386.deb
 
ftp://www.northern-ridge.com.au/zoneminder/ubuntu/edgy/zoneminder_1.22.3-8_i386.deb
  
*Install using the Debian package manager. (No other method seems to work.)
+
*使用 Debian 包管理器安装. (其它的似乎没有办法工作.)
  
  dpkg -i zoneminder_1.22.3-8_i386.deb
+
  sudo dpkg -i zoneminder_1.22.3-8_i386.deb
  
*(Note: If some dependencies are still unsatisfied, make sure you have these packages installed):
+
*(备注: 如果有些依赖关系还无法满足,确保您安装下面的软件):
  
 
  sudo apt-get install libc6 libc6.1 libgcc1 libgcc4 libstdc++6
 
  sudo apt-get install libc6 libc6.1 libgcc1 libgcc4 libstdc++6
  
:(These should already be installed as part of the LAMP installation):
+
:(作为安装 LAMP 的一部分,以下是已经安装好了):
  
 
  sudo apt-get install apache2-mpm-prefork libapache2-mod-php5 libmysqlclient15off mysql-client mysql-server php5  php5-mysql
 
  sudo apt-get install apache2-mpm-prefork libapache2-mod-php5 libmysqlclient15off mysql-client mysql-server php5  php5-mysql
  
=====Setup Zoneminder configuration=====
+
=====设置 Zoneminder 配置文件=====
If your installation is successful, you will now need to set up the configuration files and databases for Zoneminder.
+
如果您安装成功, 您还需要为 Zoneminder 设置配置文件和数据库。
  
*Copy the configuration file and restart the Apache2 server.
+
*复制配置文件并重启 Apache2 服务。
 
  sudo ln -s /etc/zm/apache.conf /etc/apache2/conf.d/zoneminder.conf
 
  sudo ln -s /etc/zm/apache.conf /etc/apache2/conf.d/zoneminder.conf
 
  sudo /etc/init.d/apache2 reload
 
  sudo /etc/init.d/apache2 reload
  
*View Zoneminder from your web browser:
+
*在您的 web 浏览器上访问 Zoneminder :
  
 
  http://localhost/zm
 
  http://localhost/zm
  
*Set up a MySQL database for Zoneminder
+
*Zoneminder 设置一个 MySQL 数据库
 +
:*''注意: 在 Hardy, 接下来的两个步骤都在安装 LAMP 服务或者 MySQL 安装时完成了.''
 +
:*如果是您第一次使用 MySQL, 缺省的 MySQL 超级用户 root 将没有密码。 您现在可以增加一个。 关于如何设置 mySQL 初始化权限查看 [http://dev.mysql.com/doc/refman/5.0/en/default-privileges.html 这里].
  
:If this is the first time you have used MySQL, the default global MySQL superuser root will not have a password. You should set one now. Instructions for setting mySQL initial privileges are [http://dev.mysql.com/doc/refman/5.0/en/default-privileges.html here].
+
::简而言之:
 
+
:In short:
+
  
 
  mysql -u root
 
  mysql -u root
第612行: 第957行:
 
  mysql> quit
 
  mysql> quit
  
:In addition, you can set up an additional global MySQL user (such as mysql_user, for example) by following the instructions [http://dev.mysql.com/doc/refman/5.0/en/create-user.html here]. That way you can reserve root login for emergencies.
+
:*此外, 您可以通过 [http://dev.mysql.com/doc/refman/5.0/en/create-user.html 这里] 的说明来设定另外的全局 MySQL 使用者(例如,mysql_user)。 这个方法您可以只有在紧急情况下才使用 root 登录。
  
:In short:
+
::简而言之:
  
 
  mysql -u root
 
  mysql -u root
第620行: 第965行:
 
  mysql> quit
 
  mysql> quit
  
Now you must create a MySQL database for use by Zoneminder. This is an administrative MySQL command, so you must use one of your global MySQL users (either root or mysql_user, as created in the example above). You can name your Zoneminder database anything you want, instead of zmdatabase.
+
*现在您必须建立一个给 Zoneminder 使用的 MySQL 数据库。 这是一个管理 MySQL 的命令, 因此您必须使用一个全局 MySQL 用户 (不管是 root 或上面例子中创建的 mysql_user)。 您可以给您的 Zoneminder 数据库使用其它您想要的名字, 代替 zmdatabase
  
 
  mysqladmin -u root -p CREATE zmdatabase
 
  mysqladmin -u root -p CREATE zmdatabase
  
or
+
:或
  
 
  mysqladmin -u mysql_user -p CREATE zmdatabase
 
  mysqladmin -u mysql_user -p CREATE zmdatabase
  
Create users for the Zoneminder database. As always, I create a root user for emergency use. I use the same password for root as I do elsewhere on my system. Then I also create a user named zm_user (but you could also creat a user named mysql_user, to keep everything consistent). [I use a unique user here because this is a home security system, after all, and I don't want it breached.] These users are specific to this database; they can be the same users as used elsewhere in the system or can be unique users.
+
*建立 Zoneminder 数据库用户。 一般而言, 我会建立一个 root 用户来处理紧急事件。 我使用系统中 root 帐户同样的密码。 然后我会建立一个用户叫 zm_user (您可以建立一个叫 mysql_user 的用户, 来保持一致性)[因为这是一个家庭安全的系统,我使用一个独特的使用者名称,毕竟,我不想它被入侵。] 这个资料库中这些用户被特定指明; 也就是说,他们可以和系统中的其它使用者名称相同,或者使用独特的用户。
  
 
  mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON zmdatabase.*  
 
  mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON zmdatabase.*  
第639行: 第984行:
 
  mysqladmin reload
 
  mysqladmin reload
  
Note: mysql commands (i.e. any entered at the mysql> prompt) must end with a semicolon. If you forget the semicolon, nothing will happen.
+
:注意: mysql 命令 (例如. 任何在 mysql> 提示后面输入的) 必须使用一个分号结尾。 如果您忘记分号,什么事都不会发生。
  
 
====Myth Zoneminder====
 
====Myth Zoneminder====
  
[http://mythtv.org/wiki/index.php/MythZoneMinder MythZoneminder] allows you to view your security cameras through Myth TV, essentially. It is a plugin that interfaces the two packages Zoneminder (which must be working on your system) and Myth TV (which must also be working.)
+
[http://mythtv.org/wiki/index.php/MythZoneMinder MythZoneminder] 允许您使用 Myth TV 来观看安全摄像头。 它是介于 Zoneminder (必须在您系统上运行) Myth TV (也必须同时运行.) 两个之间的插件。
It can be found in Synpatic Package Manager as the mythzoneminder package.
+
它可以在新立得软件包管理器作为 mythzoneminder 包被找到。
  
See the [http://mythtv.org/wiki/index.php/MythZoneMinder#Install_MythZoneMinder installation instructions].
+
=== 在 Ubuntu 中设置 TFTP 服务 ===
  
== How to restore GRUB to a partition or MBR with an Ubuntu Live CD ==
+
高级 TFTP 服务。 多线程的 TFTP 服务实现了所有在 RFCs 1350, 2090, 2347, 2348, 2349 (multicast 还未实现) 上的选项。 服务当前仅仅支持 inetd(8) 启动。 服务处理处理新的连接开始一个新的线程, 如果5分钟没有响应则删除。
  
Sometimes, if an Ubuntu installation goes wrong, or a Windows NT bootloader overwrites MBR and doesn't recognise the Linux installation, we have to restore our GRUB bootloader that is, generally, very flexible.
+
查看 [http://www.ubuntugeek.com/howto-setup-advanced-tftp-server-in-ubuntu.html 在 Ubuntu 下 安装 aTFTP 服务] 非常简单设置的手册。
  
First of all, we burn a Hardy Heron (Ubuntu 8.04) ISO (on a CD(R , RW) or DVD (+R , +RW)) or make sure that we have one already.
+
== 如何使用 Ubuntu Live CD 恢复 GRUB 到一个分区或 MBR  ==
 +
偶尔, 如果 Ubuntu 安装出现错误, 或者 Windows NT 引导覆盖了 MBR 导致无法识别  Linux 的安装, 我们必须修复我们的 GRUB 引导器, 一般而言, 非常有弹性。
  
Then, we change, in the BIOS, the boot load sequence and we put the CD/DVD option first.
+
首先,我们刻录一张 Hardy Heron (Ubuntu 8.04) ISO (到一张 CD(R , RW) 或 DVD (+R , +RW)) 或确信我们已经有一张了。
  
After that, we boot the Live CD, we choose the first option and in a few minutes we have arrived at the Live CD Desktop.
+
然后, 我们在 BIOS 中修改启动顺序, CD/DVD 选项第一。
  
So, we go :
+
然后, 我们从 Live CD 启动, 我们选择第一个选项然后过几分钟我们将进入到一个 Live CD 桌面。
  
  Applications --> Accessories --> Terminal
+
因此, 继续 :
  
Then, we have to remember which is our Ubuntu installation partition.
+
  应用程序 --> 附件 --> 终端
  
In our example, it is the second one (/dev/sda2), formatted as ext3, in the first HDD of a SATA controller. We suppose that it is the second one, since, in case we have Windows that demand to be in the first partition (/dev/sda1), this one is occupied.
+
然后, 我们必须记住哪个是我们 Ubuntu 安装的分区。
  
'''Now, you have to be really careful. You have to enter the right partition, instead of sda2''' (unless it is the same)
+
在我们的例子中, 它是第二个 (/dev/sda2), 格式化为 ext3, 位于 SATA 控制器的第一个硬盘。 我们假设是第二个分区; 同样假设因为 Windows 的需求, 第一个分区被 Windows 占了 (/dev/sda1)。
In the terminal :
+
 
 +
'''现在,您必须非常小心。 您需要输入正确的分区,代替 sda2''' (除非它真是这样)
 +
在终端 :
  
 
   cd /
 
   cd /
 
 
 
    
 
    
 
   sudo -s -H
 
   sudo -s -H
第684行: 第1,031行:
 
   chroot /mnt  /bin/bash
 
   chroot /mnt  /bin/bash
  
And now, you are actually "running" Ubuntu within the Hard Drive but through Live CD's terminal.
+
现在, 您事实上正在“运行”硬盘上的 Ubuntu 了,但是是通过Live CD的终端。
  
Now we restore GRUB like that:
+
现在我们象这样恢复 GRUB:
  
1) Restoration to MBR
+
1) 恢复到 MBR
  
 
   grub-install /dev/sda
 
   grub-install /dev/sda
  
2) Restoration to partition (example: /dev/sda2)
+
2) 恢复到分区 (例如: /dev/sda2)
  
 
   grub-install /dev/sda2
 
   grub-install /dev/sda2
  
In the first case (that is the most usual) you have certainly installed GRUB on MBR after you receive, in the terminal, the message that there are no errors.
+
在第一个方案中 (这个是最常见的) 您在终端得到的信息中没有错误,那么已经安装GRUB 到  到 MBR 了。
  
After you reboot, you have your favorite bootloader restored.
+
但您重启后, 您最爱的引导程序恢复了。
  
== Encrypt home partition with cryptsetup & LUKS ==
+
另外, mount / 和 /boot 目录,你希望开机进入的哪个可以使用 grub-install 的 --root-directory 删除, 这个不再需要使用 chroot 。
  
First step is to backup all necessary data, if something goes wrong '''your data will be lost in the process if it's not backed up.''' Also note that your home folder needs to be located on a separate partition than your root partition, if not see [[#How to make partitions]].
+
== 使用cryptsetup 加密 home 分区 & LUKS ==
 +
首先备份所有的重要数据,以免万一错误发生 '''如果没有备份,您的数据将会消失。''' 同时注意您的 home 目录需要和您的 root 分区分开不同的分区, 如果没有查阅 [[#How to make partitions]].
  
Second, install necessary software:
+
其次,安装需要的软件:
  
 
   sudo apt-get install cryptsetup
 
   sudo apt-get install cryptsetup
  
Insert the new module, dm-crypt into the kernel:
+
插入一个新的模块, dm-crypt 到内核:
  
 
   sudo modprobe dm-crypt
 
   sudo modprobe dm-crypt
  
Check to see what encryption schemes are available:
+
检查看看可以使用的加密方法:
  
 
   cat /proc/crypto
 
   cat /proc/crypto
  
If only MD5 is listed, try inserting the appropriate modules into the kernel:
+
如果只有 MD5 被显示, 尝试插入适当的模块到内核:
  
 
   sudo modprobe serpent
 
   sudo modprobe serpent
  
Above is an example, this could also be twofish, blowfish or anything other crypto module that you would like to use.
+
上面只是例子, 它可能有 twofish, blowfish 或其他可能的加密模块,按照您想要的去使用。
  
The following commands will assume that your home partition is /dev/sda1, please change it to match your ''own'' configuration.
+
接下来的命令假设您的 home 分区是 /dev/sda1, 请修改它符合您自己的设置。
  
Next step we use cryptsetup to change the partition with the luksFormat option, '''this command will cause you to lose all data on /dev/sda1.'''
+
下一步我们使用 cryptsetup luksFormat 参数来改变分区, '''这个命令将让您全部丢失 /dev/sda1 上的所有数据。'''
  
 
   sudo cryptsetup luksFormat -c algorithm -y -s size /dev/sda1
 
   sudo cryptsetup luksFormat -c algorithm -y -s size /dev/sda1
  
Where algorithm is the algorithm that you chose above such as serpent aes, etc.
+
上面的 algorithm 是您选择的加密方式例如 serpent aes, .
  
Size is the key size for encryption, this is generally 128 or 256.  Without specifying the algorithm or the size, I believe it defaults to AES 256, more information and additional options can be found by reading the man page. The above step will ask you to choose a password and verify it.  Do not forget this password.
+
Size 是加密密钥的长度, 通常是 128 256.  W如果没有指定加密运算方式或长度, 我相信缺省的是 AES 256, 更多的信息和扩展的选项可以阅读 man 手册。 上述的步骤会让您设置密码和校验。 不要忘记这个密码。
  
We can then use the luksOpen option to open the encrypted drive.
+
然后我们可以使用 luksOpen 选项来打开加密的硬盘。
  
 
   sudo cryptsetup luksOpen /dev/sda1 home
 
   sudo cryptsetup luksOpen /dev/sda1 home
  
Home is a nickname which cryptsetup uses to refer to /dev/sda1.  It also creates the device /dev/mapper/home, this is what you would actually mount to access the filesystem. If you specify another name other than home, it will create the device /dev/mapper/[name], where [name] is the nickname that cryptsetup will use.  This step will ask you for your LUKS passphrase, this is the password you created in the previous step.
+
Home cryptsetup 使用指向 /dev/sda1 的昵称。 它同时会建立这个设备 /dev/mapper/home, 这个是您实际上需要访问的文件系统挂载点。 如果您指定了其他的名称不是 home, 它会建立这样的设备 /dev/mapper/[name], 其中 [name] cryptsetup 使用的昵称。 这个步骤会询问你 LUKS 密码, 这个是您在上一步创建的密码。
  
Next, we create the actual filesystem on the device. I use reiserfs, but it could just as well be ext3.
+
下一步, 我们在这个设备上建立一个实际的文件系统。 我使用 reiserfs, 但您也可以使用 ext3。
  
 
   sudo mkreiserfs /dev/mapper/home
 
   sudo mkreiserfs /dev/mapper/home
  
Or
+
  
 
   sudo mkfs.ext3 /dev/mapper/home
 
   sudo mkfs.ext3 /dev/mapper/home
  
Next step is to mount your encrypted device and copy your files back to your home directory.
+
下一步是挂载您的加密设备和复制您的文件回到 home 目录。
  
 
   mkdir new_home
 
   mkdir new_home
第752行: 第1,100行:
 
   cp -r * new_home
 
   cp -r * new_home
  
Now we have to set up everything so that it's ready to go at boot, we need to tell the system that there are encrypted disks that we want mounted.
+
现在我们必须将所有的东西都设置好到开机可以使用,我们需要告诉系统我们有想要挂载的加密硬盘。
  
 
   gksudo gedit /etc/crypttab
 
   gksudo gedit /etc/crypttab
  
Enter the following as one line at the end of the file.
+
在文件的最后作为一行输入下面的内容。
  
 
   home      /dev/sda1      none      luks,tries=3
 
   home      /dev/sda1      none      luks,tries=3
  
remember home can be any name that you want, just remember that this maps to /dev/mapper/[name]. The option tries=3 allows 3 tries before a reboot is required or the disk is not decrypted.
+
记住 home 可以是您想要的任意名字, 仅仅记住要对应到 /dev/mapper/[name] 选项 tries=3 允许 3 次重试,在开机或者硬盘需要解密时。
  
Next enter the device info in fstab that we want to mount on boot.
+
下一步在 fstab 输入设备信息,然其可以开机挂载。
  
 
   gksudo gedit /etc/fstab
 
   gksudo gedit /etc/fstab
  
Enter the information as one line at the end of the file.
+
在文件的最后作为一行输入。
  
 
   /dev/mapper/home      /home      reiserfs      defaults      0      0
 
   /dev/mapper/home      /home      reiserfs      defaults      0      0
  
Remember to substitute /dev/mapper/home with your device /dev/mapper/[name], /home is the mount point, since this is our home directory, reiserfs is the filesystem type, put ext3 if you formatted it as ext3.  For now the default options should be good, change this if you need/require something else.  Also, now is a good time to remove the old /dev/sda1 device entry so that fstab doesn't try to load it at boot.  This can be accomplished by commenting out the /dev/sda1 line or deleting it.
+
记得将 /dev/mapper/home 取代为 /dev/mapper/[name], /home 是挂载点, 因为这个是我们的主文件夹, reiserfs 是文件系统类型, 如果您格式化为 ext3 ,输入 ext3。 现在缺省值都很完善, 如果你有什么特别的需求修改这个。 同时, 现在也要把旧的 /dev/sda1 设备条目删除,以免开机时, fstab 不会加载它。 这个可以在 /dev/sda1 行前面加上一个 # 号或者删除掉。
  
Final step is to make sure that the proper modules are loaded at boot time. 
+
最后一步是确定在启动的时候正确的模块被加载。
  
 
   gksudo gedit /etc/modules
 
   gksudo gedit /etc/modules
  
Now add dm-crypt and the crypto module that you used earlier, such as serpent, aes, etcEach needs to be on its own line.
+
现在增加你之前使用的 dm-crypt crypto 模块,, 例如 serpent, aes, 每个需要单独一行。例如:
  
 
   dm-crypt
 
   dm-crypt
 
   serpent
 
   serpent
  
That should be it, all that's required is a reboot.  During the reboot process, the computer will say "Starting early crypto disks" and ask for your passphrase.  If the passphrase is accepted, it will unlock the encrypted partition and mount it on your specified mount point.
+
这样就可以了, 接下来就是重启。 在重启过程中, 电脑会告诉您 "Starting early crypto disks" 并询问您的口令。 如果口令是正确的, 它将解锁加密的分区并重新在你指定的挂载点挂载。
  
== Aliases ==
+
== 别名 ==
  
You can change the way you enter a command in order to be executed by entering an alias.
+
您可以通过别名来更改您输入的命令去执行。
  
For example, you may enter in a terminal "update-system" (a command that in face doesn't exists) that replaces "sudo apt-get update". You can do the same thing for other commands.
+
例如, 你可以在终端输入 "update-system" (一个事实上不存在的命令) 来代替 "sudo apt-get update". 您可以为其它的命令做同样的事。
  
This is what you do. Our example is going to be the alias of the command
+
这是我们要做的。我们的例子将下面的命令指定别名
  
 
   ls -FCal --color=auto
 
   ls -FCal --color=auto
  
that shows with colours and many details the contents of a folder.
+
这个命令会按照彩色显示目录内容。
  
Open a terminal
+
打开终端
  
   Applications --> Accessories --> Terminal
+
   应用程序 --> 附件 --> 终端
  
and enter
+
输入
  
 
   gedit ~/.bashrc
 
   gedit ~/.bashrc
  
'''Be carefull now. Don't erase anything there.'''
+
'''现在小心了. 别删除那里面的任何东西。'''
  
Now, go to the end of the document and enter
+
现在, 到文件的最后输入
  
 
   alias ll="ls -FCal --color=auto"
 
   alias ll="ls -FCal --color=auto"
  
As you can see, now with the command
+
如您所见, 现在可以使用这个命令
  
 
   ll
 
   ll
  
whenever we want, we call, in fact, this one
+
无论我们何时呼叫,事实上它是这个
  
 
   ls -FCal --color=auto
 
   ls -FCal --color=auto
  
You can do the same thing for other commands that need a lot of switches.
+
您可以为其它的命令做同样的事情,不过需要改动一下。
  
Save the document, close the terminal and reopen it. You may now check your new alias.
+
保存文档,关闭终端重新打开。 您现在可以检查您的新别名了。
  
== Tips & Tricks ==
+
== 秘诀 & 技巧 ==
  
=== Change the splash screen color ===
+
=== 修改开机画面的颜色 ===
  
Originally a brownish color to match the Ubuntu theme, it does not quite fit with other themes and might want to be changed.
+
为了配合 Ubuntu 主题使用了褐色, 它并不适合其它主题,希望被修改。 进入 gdm.conf 文件 (sudo gedit /etc/gdm/gdm.conf). 大约在文件的1/3部分您可以看到如下行:
Enter the gdm.conf file (sudo gedit /etc/gdm/gdm.conf). About two-thirds of the way down you will see the lines:
+
 
   BackgroundColor=#dab082
 
   BackgroundColor=#dab082
 
   GraphicalThemedColor=#dab082
 
   GraphicalThemedColor=#dab082
  
Change it to what you like. For all black, use:
+
改成您想要的。要全黑则用:
 
   BackgroundColor=#000000
 
   BackgroundColor=#000000
 
   GraphicalThemedColor=#000000
 
   GraphicalThemedColor=#000000
  
=== Change the default Terminal window size ===
+
=== 修改缺省的终端窗口大小 ===
  
The default size of the Terminal window is around 80 columns wide and 24 columns high. To alter this, edit the file /usr/share/vte/termcap/xterm. You can use the following command:
+
缺省的终端窗口是 80 列和 24 行高。 修改这个, 编辑文件 /usr/share/vte/termcap/xterm。 您可以使用下面的命令:
 
   sudo gedit /usr/share/vte/termcap/xterm
 
   sudo gedit /usr/share/vte/termcap/xterm
Just a few lines from the top will be the line reading:
+
从顶上数的几行其中有一行为:
 
   :co#80:it#8:li#24:\
 
   :co#80:it#8:li#24:\
Change the number right after co# to change the width.
+
修改co# 后面的数字就可以改变宽度
Change the number right after li# to change the height.
+
修改li# 后面的数字就可以改变高度
  
== How to make partitions ==
+
=== 修改 Samba 工作组 ===
  
It is very easy to make partitions with Ubuntu .
+
*Samba 工作组 用于 Windows 网络被缺省设置为 "WORKGROUP" 。 它可以被修改为符合您的 Windows 网络所使用的工作组。
  
Open a terminal and type:
+
*编辑 Samba 配置文件:
 +
 
 +
sudo gedit /etc/samba/smb.conf
 +
 
 +
*编辑这一行:
 +
 
 +
workgroup = WORKGROUP
 +
 
 +
修改它到您实际的工作组名字。例如,我的工作组是 MSHOME, 因此我修改为:
 +
 
 +
workgroup = MSHOME
 +
 
 +
保存文件.
 +
 
 +
*重启.
 +
 
 +
=== 修复关机 "Network Error" 显示 (恢复关机屏幕) ===
 +
 
 +
很多 Ubuntu 系统当关机时有一个小 bug 。 代替原本关机进程显示的屏幕, 转到充满关机信息的控制台屏幕 (大多数都是网络错误信息)。 这些信息大多都是正常和必然的, 没有什么好担心的. 但看起来很丑, 所以看起来 Ubuntu 小组刻意将这些信息隐藏到屏幕后面. 屏幕可以简单的恢复不费多大力气:
 +
*到 '''系统 -> 系统管理 -> 登录窗口''', 选择 '''本地''' 页
 +
*选择一个其它的主题, 然后重新选择缺省的主题 ("Human"). 这个会重新设置一下
 +
*点击 '''关闭''', 然后回到 '''系统 -> 系统管理 -> 登录窗口''', 重新选择 '''本地''' 页
 +
*您会注意到这个和您刚刚选择的不相同。 恢复设置到缺省值 -- 从 '''主题''' 的下拉框选择 '''仅用选中''' (代替 "从选择中随即选择"), 并重新选择缺省的 Ubuntu 主题 ("Human"). 完成后, 点击 '''关闭'''. 这是设置已经保存了, 关机屏幕也会正常出现。
 +
 
 +
=== 修改缺省的 runlevel ===
 +
* 建立 /etc/inittab 文件
 +
* 增加下面的行: "id:3:initdefault:", 数字是选择的运行等级
 +
* 现在在你的运行登记 /etc/rcX.d/ 目录查看 README, 这里 X 是一个介于 1-6 之间的数字
 +
* 现在重启,好了。 :)
 +
 
 +
== 如何分区 ==
 +
 
 +
使用 Ubuntu 分区非常简单 。
 +
 
 +
打开终端输入:
  
 
   sudo apt-get install gparted
 
   sudo apt-get install gparted
  
Then navigate to
+
然后浏览
 
   
 
   
   System --> Administration --> Partition Editor
+
   系统 --> 系统管理 --> 分区编辑器
  
Then gParted is going to check for your disks and partitions.
+
接着 gParted 将检查您的硬盘和分区。
  
There you can modify your partitions but on those that are NOT on the System.
+
在这里您可以修改那些不在您系统的分区。
  
More info :
+
更多信息 :
  
1) Usage of gParted (it is distributed as Live CD as well) -->http://howtoforge.com/partitioning_with_gparted
+
1) gParted 使用手册 (同时它也是个 Live CD ) -->http://howtoforge.com/partitioning_with_gparted
  
2) How to separate your /home partition in Ubuntu --> http://www.psychocats.net/ubuntu/separatehome
+
2) 如何在 Ubuntu 分割出您的 /home 分区 --> http://www.psychocats.net/ubuntu/separatehome
  
== How to enable Compiz Fusion in Ubuntu ==
+
== 如何在 Ubuntu 下启动 Compiz Fusion ==
  
In Ubuntu Hardy Heron, [http://en.wikipedia.org/wiki/Compiz_Fusion Compiz Fusion] is already installed and is automatically enabled after you have installed [http://ubuntuguide.org/wiki/Ubuntu:Hardy#Graphics_cards_and_displays your graphics' card drivers].
+
Ubuntu Hardy Heron , [http://en.wikipedia.org/wiki/Compiz_Fusion Compiz Fusion] 已经安装并可以自动使用, 当完成[#Graphics_cards_and_displays 您的显卡驱动] .
  
The only thing you have to do is to install the Compiz Configuration Settings Manager.
+
因此您只剩下两件事情,安装 Compiz 配置设置管理器和通知图标设置。
  
Open a terminal and type:
+
打开终端输入:
  
     sudo apt-get install compizconfig-settings-manager
+
     sudo apt-get install compizconfig-settings-manager fusion-icon
  
and it shall be installed. After that navigate to:
+
然后将安装好了,接着访问:
  
     System --> Preferences --> Advanced Desktop Effects Settings
+
     系统 --> 首选项 --> Advanced Desktop Effects Settings
  
and there you may enable/disable any plugin you want.
+
这里您可以启动/关闭任何您想要的插件。
  
 +
要运行 Compiz-Fusion 通知图标,前往:
  
== Add-on Applications ==
+
    应用程序 --> 系统工具 --> Compiz Fusion Icon
  
=== Wine ===
+
在命令行运行:
  
Wine is a Windows Win32 binary compatibility layer for Linux. Latest install instructions are always at: [http://www.winehq.org/site/download-deb WineHQ.org]
+
    fusion-icon
 +
 
 +
通知图标将启动了.
 +
 
 +
== 附加应用程序 ==
 +
 
 +
=== Ultamatix: 一键安装 101 个应用程序包括游戏,解码器,应用程序 ===
 +
 
 +
Ultamatix! 它基于 Automatix, 因此看起来和行为非常类似。 好消息是 Ultamatix 是设计运行在 Ubuntu Ultimate Editon 1.8, Ubuntu 8.04 (Hardy Heron) 和 Debian Linux 的 unstable branch 版本。 这个是一个新的 automatix 代替。
 +
 
 +
点击 [http://www.ubuntugeek.com/ultamatix-install-101-applications-in-one-click-including-gamescodecsapplications.html 这里] 包括抓图的简单安装手册
 +
 
 +
=== Wine ===
  
Add repository key:
+
Wine 是一个为 Linux 设计的 Windows Win32 二进制兼容层。 最新的安装指引在: [http://www.winehq.org/site/download-deb WineHQ.org]
 +
增加仓库密钥:
 
   wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -
 
   wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -
Add repository to apt sources:
+
增加仓库到 apt 软件源:
 
   sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/hardy.list -O /etc/apt/sources.list.d/winehq.list
 
   sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/hardy.list -O /etc/apt/sources.list.d/winehq.list
Update apt sources:
+
更新 apt 软件源:
 
   sudo apt-get update
 
   sudo apt-get update
Install Wine:
+
安装 Wine:
 
   sudo apt-get install wine
 
   sudo apt-get install wine
The program menu then appears in Programs under Wine, or double-click a Windows/DOS .exe file.
+
程序菜单放到 Wine 的  Programs , 或双击 Windows/DOS .exe 文件。
 
+
=== Unison - file synchronization tool ===
+
 
+
Unison is a file-synchronization tool for Unix and Windows. It allows two replicas of a collection of files and directories to be stored on different hosts (or different disks on the same host), modified separately, and then brought up to date by propagating the changes in each replica to the other.
+
 
+
Nice Installation and Usage Guide check [http://www.ubuntugeek.com/unison-file-synchronization-tool.html This]
+
  
 +
=== Unison - 文件同步工具 ===
  
 +
Unison 是一个 Unix 和 Windows 下的文件同步工具。 它允许大量的文件和目录抱在不同的主机上(或者相同主机的不同硬盘上), 可以个别的修改, 然后将新的变更同步到另外一个备份。
 +
完整的安装和使用手册点击 [http://www.ubuntugeek.com/unison-file-synchronization-tool.html 这里]
  
 
=== PlayOnLinux ===
 
=== PlayOnLinux ===
  
PlayOnLinux is a Wine frontend which simplify installation and launch of many Windows programs, particularly games.
+
PlayOnLinux 是一个 Wine 的前端简化了安装和执行许多 Windows 程序, 特别是游戏。
 
+
增加仓库密钥:
Add repository key:
+
 
  wget -q http://playonlinux.botux.net/pol.gpg -O- | sudo apt-key add -
 
  wget -q http://playonlinux.botux.net/pol.gpg -O- | sudo apt-key add -
Add repository to apt sources:
+
增加仓库到 apt 软件源:
 
  sudo wget http://playonlinux.botux.net/playonlinux_hardy.list -O /etc/apt/sources.list.d/playonlinux.list
 
  sudo wget http://playonlinux.botux.net/playonlinux_hardy.list -O /etc/apt/sources.list.d/playonlinux.list
Update apt sources:
+
更新 apt 软件源:
 
  sudo apt-get update
 
  sudo apt-get update
Install PlayOnLinux:
+
安装 PlayOnLinux:
 
  sudo apt-get install playonlinux
 
  sudo apt-get install playonlinux
  
=== Tor,privoxy and Tor GUI (Vidalia)  ===
+
=== Tor, privoxy, 和 Tor GUI (Vidalia)  ===
  
Tor is a software project that helps you defend against traffic analysis, a form of network surveillance that threatens personal freedom and privacy, confidential business activities and relationships, and state security. Tor protects you by bouncing your communications around a distributed network of relays run by volunteers all around the world:
+
Tor 是一个帮助您确保安全,防止通信分析,包括威胁到个人自由和隐私、机密商业活动和关系的行为软件。 Tor 将您的通讯在全世界志愿者所提供的分散式中传播,来保护您的通讯。
  
If you want to install and configure tor follow [http://www.ubuntugeek.com/howto-install-torprivoxy-and-tor-gui-programs-vidaliatork-and-torbuttonin-ubuntu.html This] Guide
+
如果您想安装被配置,参考 [http://www.ubuntugeek.com/howto-install-torprivoxy-and-tor-gui-programs-vidaliatork-and-torbuttonin-ubuntu.html 这个] 手册。
  
=== How to Sync your emails, files, bookmarks, and any other type of personal information  ===
+
=== 如何同步您的邮件、文件、书签,和其它类型的个人信息 ===
  
Conduit is a synchronization solution for GNOME which allows the user to take their emails, files, bookmarks, and any other type of personal information and synchronize that data with another computer, an online service, or even another electronic device.Conduit manages the synchronization and conversion of data into other formats.
+
Conduit 是一个 GNOME 下的资料同步方案,它能够让用户可以使他们的邮件、文件、书签和其它类型的个人信息同步到其它电脑、一个在线服务器, 或者其它电子设备上。 Conduit 可以管理同步和转换数据到其它的格式。
  
If you want to install and configure in Ubuntu Follow [http://www.ubuntugeek.com/conduit-synchronize-your-data-in-easy-way.html This] Tutorial
+
如果您希望在 Ubuntu 下安装和配置,参考 [http://www.ubuntugeek.com/conduit-synchronize-your-data-in-easy-way.html 这个] 指导。
  
=== How to install applications for study of religious texts ===
+
=== 如何安装学习宗教的应用程序 ===
  
* For study of Bible see [http://gnomesword.sourceforge.net/ GnomeSword]
+
* 学习圣经,参考 [http://gnomesword.sourceforge.net/ GnomeSword]
* For study of Quran see [http://sourceforge.net/projects/zekr/ Zekr]
+
* 学习古兰经,参考 [http://zekr.org/ Zekr]
  
==== How to install Gnomesword (Bible study program) ====
+
==== 如何安装 Gnomesword (圣经学习程序) ====
*Read [[#General Notes]]     
+
*查阅 [[#General Notes]]     
*Read [[#How to add extra repositories]]
+
*查阅 [[#How to add extra repositories]]
*This installs the english version of the program.
+
*这个安装英文版本的程序
  
 
  sudo apt-get install gnomesword sword-language-pack-en sword-text-web
 
  sudo apt-get install gnomesword sword-language-pack-en sword-text-web
  
*If you require other languages type:
+
*如果您需要其它语言输入:
  
 
  sudo apt-cache search bible
 
  sudo apt-cache search bible
  
*Take a look at the sword-language-pack's and the sword-text's for additional languages and install as needed.
+
*为附加的语言查看 sword 语言包和 sword 说明,并安装你需要的。
  
Gnomesword is found under Applications-->Accessories.
+
Gnomesword 可以在应用程序 -> 附件 找到。
  
*Under KDE, use kio-sword instead of Gnomesword:
+
*KDE , 使用 kio-sword 代替 Gnomesword:
  
 
  sudo apt-get install kio-sword
 
  sudo apt-get install kio-sword
  
==== How to install a Quran researching tool (Zekr) ====                                                           
+
==== 如何安装一个古兰经研究工具 (Zekr) ====                                                           
 
                                                          
 
                                                          
[http://zekr.org/ Zekr] is an open platform Quran study tool for simply browsing and researching on the Quran.
+
[http://zekr.org/ Zekr] 是一个开放的古兰经学习工具,可以在古兰经中简单的浏览和搜索。
  
* Make sure that You have enabled universe and multiverse Ubuntu repositories: [[#How to add extra repositories]].
+
* 确信您启用了 universe multiverse Ubuntu 仓库。
* Install zekr with the following command:
+
* 使用下面的命令安装 zekr :
 
                                                                                                                      
 
                                                                                                                      
 
  sudo apt-get install zekr zekr-quran-translations-en ttf-sil-scheherazade ttf-farsiweb
 
  sudo apt-get install zekr zekr-quran-translations-en ttf-sil-scheherazade ttf-farsiweb
  
* You can add more Quran translations from [http://zekr.org/quran/translations here].
+
* 您可以增加其它的古兰经翻译从 [http://zekr.org/quran/translations 这里].
  
* If you like to upgrade to '''the latest stable version of zekr''', which supports Quran Recitation and advanced boolean/regular expression search, follow instructions available [http://www.zekr.org/wiki/index.php?title=Installation#Ubuntu.2FDebian Zekr wiki].
+
* 如果您需要升级到 '''最新版本的 zekr''', 这个支持古兰经朗读和高级的条件/正则表达式搜索, 查考下面的指引 [http://www.zekr.org/wiki/index.php?title=Installation#Ubuntu.2FDebian Zekr wiki].
  
 +
=== 如何在 Ubuntu Hardy 里面安装 Google Gadgets ===
  
=== Watching Live-TV On Your Ubuntu Desktop With Zattoo ===
+
Google Gadgets for Linux 提供在 Linux 下运行的桌面小工具, 并迎合了 Linux 用户的需求。 相容于在 iGoogle Universal Gadgets 里面的 Windows 桌面下所写的工具,跟随 Linux 精神, 这些项目是开源的, 基于 Apache 版权策略。
  
Zattoo has developed a software program that allows you to watch TV on your computer. All you need is a broadband connection and a current operating system (Windows XP or Vista, Mac OS X, or Linux). The service is legal and free of charge.
+
如果您希望安装那些漂亮的 gadgets 到您的 Ubuntu 桌面,尝试 [http://www.ubuntugeek.com/howto-install-google-gadgets-in-ubuntu-804-hardy-heron.html 这个] 简易安装手册。
  
If you want to install and configure Zattoo in Ubuntu, check out [http://www.ubuntugeek.com/watching-live-tv-on-your-ubuntu-desktop-with-zattoo.html this tutorial].
+
=== 使用 Linux 上的 Mupen64Plus 模拟器玩 N64  ===
  
== How to upgrade from Hardy Heron to Intrepid Ibex (for developers and bug reports only)==
+
Mupen64 是一个跨平台的任天堂 64 模拟器。
 +
本来开发已经停止了, 直到有人开始重新改写它的原代码, 这就是 Mupen64Plus 的来源...
 +
它的视频/声音/控制器等不同的插件相容性非常好!!!
  
*This isn't yet a safe way to upgrade to the next version of Ubuntu. The packages are still in experimental stage, since the dependencies aren't ready yet. Most users should continue using the current stable edition. Testers consider running Ibext in a testing environment (for example, on a Virtual Machine, Wubi or Lubi.)
+
从这里下载:
 +
[http://mupen64plus.googlecode.com/files/Mupen64Plus-1-3-bin-32.zip Mupen64Plus 1.3 32-Bit]
 +
[http://mupen64plus.googlecode.com/files/Mupen64Plus-1-3-bin-64.zip Mupen64Plus 1.3 64-Bit]
  
 +
安装:
 +
:* 解压缩:
 +
'''unzip Mupen64Plus-1-3-bin-*.zip'''
 +
:* 到这个目录:
 +
'''cd Mupen64Plus-1-3-bin-*/'''
 +
:* 安装:
 +
'''./install.sh '''
  
=== Upgrade to Intrepid Manually ===
+
安装后,您可以在任何地方输入 mupen64plus 来运行或为它建立一个快递方式。
*Until the first Alphas enter the repositories, the update manager will not prompt you to install Intrepid Ibex with the command
+
祝您玩得愉快.
 +
 
 +
=== 在您的 Ubuntu 电脑上使用 Zattoo 看 Live-TV ===
 +
 
 +
Zattoo 开发了一个软件可以允许您在电脑上看电视。 你所需要的只是一个稳定的宽频连线和一个当前的操作系统 (Windows XP 或 Vista, Mac OS X, 或 Linux)。 这个服务是免费合法的。
 +
 
 +
如果您需要在 Ubuntu 下安装并设置 Zattoo , 参考 [http://www.ubuntugeek.com/watching-live-tv-on-your-ubuntu-desktop-with-zattoo.html 这个指引]。(译者注:Zattoo 现在仅对以下国家和地区开放:Belgium, Denmark, France, Germany, Norway, Spain, Switzerland, 和 UK。)
 +
 
 +
== 如何从 Hardy Heron 升级到 Intrepid Ibex (仅适用于开发者和 bug 报告提交者)==
 +
 
 +
*目前(< 2008 年 09 月 16 日)升级到 Ubuntu 的下一个版本还不安全。所有的软件包都还处在测试阶段,有些依赖性问题还未解决。 大多数的用户应该继续使用当前稳定版本(8.04 - Hardy Heron)。 测试者应该在测试环境(例如:在一个虚拟机 Wubi 或 Lubi 上运行)中运行 Ibex 。
 +
 
 +
=== 在 Ubuntu Linux 上 RSS 阅读器可以使用了 ===
 +
 
 +
RSS 是一组 Web feed 格式被用于发布频繁更新的内容, 如 blog 条目, news 头条, 和 播客, 使用标准化的格式。 一个 RSS 文档 (也称为 “feed”, “web feed”, 或 “channel”) 包含了相关 web 站点或全文的摘要。 RSS 使 web 站点的内容自动输出到其它程序或者过滤显示称为可能。
 +
 
 +
如果你希望查阅 Ubuntu 的 RSS 阅读器, 查阅 [http://www.ubuntugeek.com/list-of-rss-readers-available-in-ubuntu.html 这里]
 +
 
 +
=== 手工升级到 Intrepid ===
 +
*只有当第一个 Alpha 版本进入到仓库后, 升级管理器才会提示您安装升级到 Intrepid Ibex 的信息。
  
 
   update-manager -d
 
   update-manager -d
  
*You can do it manually by changing your sources.list file:
+
*您可以自行修改您的 sources.list 文件来升级:
  
:*Backup the sources.list file:
+
:*备份 sources.list 文件:
  
 
   sudo -i
 
   sudo -i
第993行: 第1,415行:
 
   cp sources.list sources.list.backup
 
   cp sources.list sources.list.backup
  
:*Change the repositories:
+
:*修改仓库:
  
::*Delete everything in the old sources.list file and paste these:
+
::*删除 sources.list 文件中所有旧的内容, 增加下面的内容:
  
 
  deb http://archive.ubuntu.com/ubuntu/ intrepid main universe restricted multiverse
 
  deb http://archive.ubuntu.com/ubuntu/ intrepid main universe restricted multiverse
第1,003行: 第1,425行:
 
  deb http://archive.ubuntu.com/ubuntu/ intrepid-backports universe main multiverse restricted
 
  deb http://archive.ubuntu.com/ubuntu/ intrepid-backports universe main multiverse restricted
  
:*Update the repository cache:  
+
:*更新仓库缓存:  
  
 
   sudo -i
 
   sudo -i
 
   aptitude update
 
   aptitude update
  
:*Check in Software sources that everything has changed to Intrepid. No Hardy repos should be there. If there are, disable them and enable the Intrepid repos.
+
:*检查软件源中所有的来源都修改为了 Intrepid。 Hardy 仓库不应该还在这里。 如果存在, 屏蔽他们并激活 Intrepid 仓库。
  
:*Update the repository cache again, upgrade all packages, do a distrubution upgrade to Intrepid, then upgrade all the new Intrepid packages (some of these are voodoo steps):
+
:*再次更新仓库缓存, 升级所有包, 做发行版升级到 Intrepid, 然后更新所有的新的 Intrepid 软件包 (有些步骤请小心):
  
 
   aptitude update  
 
   aptitude update  
第1,020行: 第1,442行:
 
   aptitude upgrade
 
   aptitude upgrade
  
Every command should be done alone and you have to check continuously which packages have conflicts with the old ones and which ones are being removed. Be careful: if important system packages are removed (libs, gcc , xorg packages, bash , ubuntu-desktop , gdm etc), you must reinstall them (this can happen in the case of meta-packages)
+
所有命令都应该单独运行,而且您需要不断检查时候和旧的软件包冲突, 还有哪些包需要删除。 注意: 如果重要的系统包被删除了 (libs, gcc , xorg packages, bash , ubuntu-desktop , gdm ), 你必须重新安装他们 (即使是 meta-packages 也会出现这种情况)
 +
 
 +
*''所有的这行应该由高级用户完成,并仅仅用于测试环境。 很多包都在测试阶段 (和 [experimental] 位于 Debian Sid/Unstable 中的一样)。''
  
*''Everything sould be done by advanced users and ONLY in testing environment. These packages are unstable (like those in [experimental] in Debian Sid/Unstable).''
+
有报告说 debconf 包无法自动安装。 通过新立得锁定 hardy 版本。
  
===Upgrade to Intrepid automatically ===
+
=== 自动升级到 Intrepid ===
  
*When the first Alphas enter their way into the repositories, change the repositories:
+
*在第一个 Alpha 版本进入仓库之后, 修改仓库升级:
  
 
   sudo update-manager -d
 
   sudo update-manager -d
  
Check if the Hardy repositories are disabled and replaced by Intrepid repositories.
+
检查 Hardy 仓库是否被关闭并被 Intrepid 仓库取代。

2013年3月23日 (六) 16:34的最新版本


Ubuntu 8.04 LTS (Hardy Heron)

Ubuntu Hardy Heron, 发布于2008年4月24日,是 Gutsy Gibbon 的延续. 请帮助测试和完善本指南.

本指南是由 Chua Wen Kiat (Kuala Lumpur, 马来西亚) 开始编写。

目录

前言

关于 Hardy

  • Ubuntu 8.04 发布于2008年4月24日 。
  • 代号叫做 Hardy Heron ,是 Ubuntu 7.10 Gutsy Gibbon 的延续版本 。
  • * Hardy Heron 是一个 LTS (长期支持) 版本 , 将提供服务器版本五年和桌面版本三年的安全性升级支持。

如何找出您正在使用的哪个版本

使用这个命令:

lsb_release -a

如何找出您正在使用的Ubuntu发行版的内核版本

使用这个命令:

 uname -r

Ubuntu的版本更新

  • Ubuntu 使用6个月的发布周期
  • 发布时间为4月和10月
  • 下一个发行版计划于2009年10月30日,命名为 Ubuntu9.10 (代号Karmic Koala )。

关于 Ubuntu 和官方的 Ubuntu 衍生版

Ubuntu 8.04 指南和链接

Ubuntu 抓图

Ubuntu 8.04 屏幕抓图

Kubuntu 抓图

Kubuntu 8.04 屏幕抓图

有用的知识

此小节包含了对本手册有用的辅助信息。

使用 控制台 / 终端 / shell

控制台, 终端, 和 shell 意味着同样一件事 - 一个命令行界面. 他可以用来控制系统从而代替图形用户界面 (GUI)。 这个指南本的大部分任务都可以使用GUI来完成, 但对于大多数用户而言使用命令行更加简单。

打开一个控制台:

应用程序 --> 附件 --> 终端

任何一个使用 'sudo' 作为前缀的命令都需要拥有管理员 (或 root) 访问权限。 所以在输入命令之后你会被提示输入当前使用中用户的密码。

=== 使用 manpages 显示命令行的参数和帮助 大多数的程序和命令都含有一个帮助手册或者屏幕,称为 "manpages"。

一个命令函数和命令行选项可以通过在终端输入下面的命令显示出来:

man <command>

例如,

man apt-get

将显示 apt-get 命令的选项。

Windows 和 Ubuntu 双启动

您可能遇到Ubuntu 和 基于 Windows Vista 新引导程序的双启动问题。 Wubi (Windows Based Ubuntu Installer, 基于 Windows 的 Ubuntu 安装程序) 是一个正式支持双启动的安装程序。 如果你使用 Wubi 有任何问题, EasyBCD 是一个免费的 Windows 程序,可以快速和安全的完成 Windows Vista 和 Ubuntu (或其它发行版)的双启动.

保持系统不断更新

  • 这里存放着系统升级包,仓库里包含了最新的补丁,安全修复和软件包。
  • 确信有正确的仓库设置:
系统 --> 系统管理 --> 软件源
  • 打开命令行终端:
  应用程序 --> 附件 --> 终端
  • 更新源:
  sudo apt-get update

(系统将提示输入您的用户密码。)

  • 升级当前已经安装包的版本:
  sudo apt-get upgrade
  • 如果你希望更新到一个新版本,使用:
  sudo apt-get dist-upgrade
升级到一个新的版本需要谨慎行事。 确保你没有使用一个特定 Ubuntu 版本的功能。 一些应用程序并不兼容新版本,当你做了发行版升级后,可能会停止工作。

安装包 (程序) 和 库

Ubuntu 有两种办法安装包到您的系统。

您可以从命令行安装包或者从新立得软件包管理器

如何使用 Apt 安装包 (从命令行终端)

  • Apt 是 Debian 包管理器,同样也在 Ubuntu 下使用良好。
  • 启动一个命令行终端:
 应用程序 --> 附件 --> 终端 
  • 使用输入来安装一个包:
 sudo apt-get install package
  • 例如,安装音乐播放器 Amarok:
 sudo apt-get install amarok
  • 删除一个软件包:
 sudo apt-get remove package
  • 例如,删除 Exaile 音乐播放器:
 sudo apt-get remove exaile
  • 当在安装或者删除时, Apt 将自动检查程序的依赖关系。

如何使用新立得软件包管理器安装包

  • 启动新立得软件包管理器:
系统 --> 系统管理 --> 新立得软件包管理器
  • 使用搜索按钮来搜索包。
  • 点击包前面的方块来安装它; 它将被加入到安装队列中。
  • 点击 "应用"。 新立得将计算选择包的依赖关系,将其一并安装到系统。

test

查找软件包/程序

有几种方法可以在仓库里找到软件包

在新立得查找软件包

  • 打开新立得软件管理器
系统 --> 系统管理 --> 新立得软件包管理器
  • 点击搜索按钮。

选择一个最快的镜像

在Ubuntu站点查找一个软件包

  • 搜索 Hardy 软件包:

使用 Apt 查找软件包

  • 启动一个命令行终端:
 应用程序 --> 附件 --> 终端
  • 在缓存中搜索软件包名称。
  sudo apt-cache search <package-name>
  • 例如:
  sudo apt-cache search music player

在 Aptitude 搜索软件包

  • Aptitude 是带有菜单版本的 apt. 它来源于命令行终端。
应用程序 --> 附件 --> 终端
user> aptitude
  • 使用搜索选项,类似于新立得软件包管理器

增加程序到应用程序菜单

  • 在菜单栏上点击右键 编辑菜单.
  • 可选,从命令行终端:
alacarte
  • 在硬盘上查到本地的应用程序位置:
  locate <applicationname>

显卡和显示

安装 ATI 和 nVidia 显卡驱动

安装受限制的驱动

NVidia 驱动

更多NVIDIA驱动安装详细信息(参阅http://wiki.ubuntu.org.cn/NVIDIA)

  • 确定您现在运行的内核版本:
user@localhost:~$ uname -a
Linux ubuntu804server 2.6.24-17-server #1 SMP Thu May 1 14:28:06 UTC 2008 x86_64 GNU/Linux
  • 我有一个 server 内核, 因此我需要安装下面的:
sudo apt-get install linux-restricted-modules-server

你也可以从新立得软件包管理器来安装

  • 点击 系统 > 系统管理 > 硬件驱动 并打开驱动.
  • 重启
  • 有些用户可能得到如下错误信息: "这个 nvidia-glx-new 包的软件来源并不被允许启动." 可以如下修复,到 系统 > 系统管理 > 软件源 在"可从互联网下载"页面,勾选下面所有的选项, 点击关闭将重新更新包列表. NVidia 驱动能通过上面的办法可用。
  • 您可以选择启动时不显示 NVidia 标志:
sudo nvidia-xconfig --no-logo

安装 EnvyNG 驱动 (ATI & nVidia)

  • 确保您正在运行最新版本的驱动程序.
  • 阅读 这个指南.
  • 安装 gtk 软件包:
sudo apt-get install envyng-gtk

对于最新的ATI/AMD二进制驱动的apt-get安装

sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update
sudo apt-get install fglrx

安装驱动从软件仓库 (ATI & nVidia)

  • 从新立得软件包管理器:
 系统 > 系统管理 > 硬件驱动
  • 选择您的显卡和所需的选项:
  • 重启.

开源的 rRadeon 驱动 (ATI)

RadeonHD 驱动 (ATI only)

  • 对于那些最新的 ATi 显卡 (2xxx 和 3xxx) 并且使用最新的ATi驱动无法显示 (通过 EnvyNG) 或者软件仓库带的驱动.
  • 确保您没有安装其它的 ATI 驱动.
  • 也可以阅读这里 更多信息.
  • 在新立得软件包管理器搜索下面的软件包:
  xf86-video-radeonhd

修复在 Compiz-Fusion 下视频回放的问题

问题: 当在 Compiz-Fusion 下全屏时, 一个蓝色的屏幕代替了应该出现的特效。

解决方案: 尝试 这个修复.

注意:此修补不是一个永久性的修复。它使用您的CPU渲染视频,而不是您的显卡。当在高分辨率下改变大小时,视频将显示一格一格的点,因为 CPU 是无法后处理的视频(额外消耗您的系统资源) 。似乎目前无法修复此视频播放问题,这是一个X服务器端的驱动程序问题。

配置 nVidia 显卡的多个显示器

安装 nVidia 显卡控制面板:

  sudo apt-get install nvidia-settings

并运行配置工具:

  gksu nvidia-settings

您可以配置您的所有显示器,设置单独的刷新率,并改变相对于其它的定位。当您完成时,请务必按一下'储存到X配置文件' 。某些显示器可能有问题; 注销再重新登录可解决这个问题。

无线网卡

大多数的无线设备都工作正常。 可以点击 系统 -> 系统管理 -> 网络工具 来配置它们。

Atheros 5007EG 和 madwifi 于 i386 平台

对于那些, 使用 Atheros 5007EG 芯片的用户将无法使用 ndiswrapper 工作.这个手册仅仅适合 i386 平台, 因此如果您运行 x64 linux, 那么您继续尝试 ndiswrapper 或从 atheros 和 madwifi 等待一个新的解决方案.

atheros 和 madwifi

Atheros AR5007 wireless 和 madwifi 于 Ubuntu 8.04 (Hardy heron)

如果您使用 Atheros AR5007 无线网卡,按照下面的步骤让它在 ubuntu 8.04 下正常工作

Atheros AR5007 wireless 和 madwifi

Atheros ar242x

atheros ar242x 无线网卡的驱动作为一个私有的驱动看起来已经可以用了 (参考 系统 > 系统管理 > 硬件驱动)。 您可以注意到在您的网路工具 (系统 > 系统管理 > 网络)并没有发现无线网卡。 以下的步骤可能会解决您的问题,从而无需安装 ndiswrapper 支持 Windows 驱动程序。

http://madberry.org/2008/08/how-to-get-atheros-ar242x-wireless-to-work-2/

注意:这种做法的坏处是,每一个新的内核更新后,您将不得不重新编译驱动。

Intel Corporation PRO/Wireless 2915ABG 网络

虽然这个支持已经预先建立在了 ubuntu hardy...但对于有一些笔记本电脑,例如 Acer Travelmate C200, 无线按钮没有反应,用户不能知道设备是否在工作。一个非常简单的解决办法如下:

第一步:

       sudo cat > ipw2200.modprobe << "EOF"
       options ipw2200 led=1
       EOF

第二步:

       sudo mv ipw2200.modprobe /etc/modprobe.d/

第三步:

       运行 "lsmod |grep ipw2200" 来检查 ipw2200 模块是否被装载....重新启动系统即可享受乐趣!

如何备份您的 Ubuntu 桌面

Pybackpack - 一个针对 Ubuntu Linux 桌面的友好文件备份工具

图形化的工具使文件备份简单。提供了一个友好的用户界面可让您备份您的文件到一个压缩档,或者 CD/DVD 或者使用 SSH 的远程位置。

包含了截图的安装指南 点击这里


如何在 Hardy Heron 上安装多媒体支持

安装解码包

 sudo apt-get update

准备好后. 请检查你所有的仓库源都开启了,位于 系统 > 系统管理 > 软件源.

然后运行下面命令:

 sudo apt-get install ubuntu-restricted-extras

现在您已经有了用来播放您自己多媒体的大部分解码器。

安装 DVD 支持

如果您需要安装解码器在 i386 和 64 位,点击 这个

如果您需要一个自动运行的脚本,到 这里.

在控制台,输入:

  sudo gedit /etc/apt/sources.list

在文件的最后增加下面的内容:

  ## Medibuntu - Ubuntu 8.04 "hardy" 
  ## Please report any bug on https://bugs.launchpad.net/medibuntu/ 
  deb http://packages.medibuntu.org/ hardy free non-free

保存文档后在终端输入:

  wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add -

用来得到相对应的密钥。

最后,在终端输入:

   sudo apt-get update 
   
   sudo apt-get install libdvdcss2

校订

我用了这个方法,但是 DVD 影片却不能预览,或让我回到主菜单。 当语言设置为自动时,英文的DVD却使用法文或西班牙文播放。

我使用了这个 论坛页面上的方法来让我的 DVD 影片工作,并且运行的很好!甚至不只是在 Xubuntu 下能用。

这个是全自动完成,适合所有 Ubuntu 版本: http://www.hildoersystems.com/index.php/home/62.

方法 1: 我仅仅新开了一个窗口, 下面的方法将 dvd/cd 回放的问题处理的很好。 运行下面的命令:

代码:

     sudo wget http://www.medibuntu.org/sources.list.d/hardy.list -O /etc/apt/sources.list.d/medibuntu.list
     sudo apt-get update && sudo apt-get install medibuntu-keyring && sudo apt-get update
     sudo apt-get install vlc libdvdcss2 ubuntu-restricted-extras w32codecs

就这些。

用于增加更好的 totem-xine 播放器用来取代缺省的 totem 播放器

     sudo apt-get install totem-xine
     sudo update-alternatives --config totem

方法 2

编辑 : libdvdread3/install-css.sh 这个有些过时了, 最好的选择是从 medibuntu 获得您需要的库,解码器和播放器,在一些少见的案例中,当前的 libdvdcss2 无法在你的系统上工作,下面是另外的选择

Pulseaudio

在 Xubuntu, 您可以体验到一些小问题,从 Gutsy 升级后 Pulseaudio 没有声音。 原因可能是 Pulseaudio 服务没有启动。 音效服务没有在启动时自动启动 (为了降低使用音效崩溃的风险), 但在登录后。 因此, 您可以为 Pulseaudio 增加一个项目到自动启动程序中。 下面是一个范例:

:[Desktop Entry]
:Encoding=UTF-8
:Version=0.9.4
:Type=Application
:Name=Pulseaudio
:Comment=
:Exec=pulseaudio
:StartupNotify=false
:Terminal=false
:Hidden=false

安装 VLC Media 播放器

在控制台输入:

  sudo apt-get install vlc

删除,

sudo apt-get --purge autoremove vlc

如果您遇到声音的问题 (因为 PulseAudio ), 输入:

   sudo apt-get install vlc-plugin-pulse

并在 VLC 选项中选择 PulseAudio 作为输出。

如何当您插入一个 DVD 时,使用 VLC 打开

有些用户使用 Totem 播放 DVD 时有些问题。 Totem 是 Hardy 缺省的 DVD-回放程序, 而且没有明显的办法修改。 很多之前版本的技巧不再适合。 这个主要的问题在于 VLC 没有将自己注册为一个可以播放 DVD 的程序。 下面的步骤可以设置 VLC 媒体播放器作为您缺省的 DVD 播放器。

如果不存在此目录,就建立一个新的,作为自定义设置,在控制台输入:

   mkdir ~/.local/share/applications

复制独立的 VLC 设置文件。输入:

   cp /usr/share/applications/vlc.desktop ~/.local/share/applications/vlc-dvd.desktop

编辑 vlc-dvd.desktop。输入:

   gedit ~/.local/share/applications/vlc-dvd.desktop

卷动,并找到下面的行:

   Exec=vlc %U

使用下面的一行替换上面的行

1. (你只需要)
   Exec=vlc %f
2. (ubuntu论坛中更好的 dvd 回放设置)
   Exec=vlc --vout-filter deinterlace --deinterlace-mode blend --volume 512 %f
3. (ubuntu论坛中更好的 dvd 回放设置,并自动全屏播放)
   Exec=vlc --vout-filter deinterlace --deinterlace-mode blend --volume 512 --fullscreen %f

保存文件并关闭 gedit, 然后打开 mimeapps.list。 在控制台输入:

   gedit ~/.local/share/applications/mimeapps.list

在大多数的情况下应该是一个新的空白文件, 而你仅仅需要从下面的行贴上。 如果 mimeapps.list 已经存在, 滚动到你找到这个[Added Associations]下面的 «x-content/video-dvd» 为止, 并修改到下面蚊子 (当你找不到时,直接贴上下面的行)。

   [Added Associations]
   x-content/video-dvd=vlc-dvd.desktop;totem.desktop;

保存文件并关闭 gedit。 检查是否设置正确, 从 Gnome 菜单 位置 -> 主文件夹, 接着在文件浏览器菜单编辑 Edit -> 首选项 -> 介质, 和 «DVD 视频» 设置到 «打开 VLC media player» (您应该可以在 Totem/Move Player 和 VLC 之间选择)

安装 Amarok (音乐播放器)

虽然 Amarok 是一个 KDE/Qt 程序, 但它可以在 Ubuntu 下良好工作, 输入下面的命令来安装:

  sudo apt-get install amarok

安装 Exaile (类似 Amarok 的音乐播放器)

Exaile 是一个 GTK, 类似 Amarok 的音乐播放器。 在命令行终端:

  sudo apt-get install exaile

确信您已经安装了多媒体解码器。

安装 Pulseaudio 工具

这将安装 pulseaudio 工具,包含了专有的应用程序声音控制和音效服务器控制工具。

打开一个终端窗口输入下面的:

  sudo apt-get install libasound2-plugins "pulseaudio-*" paman padevchooser paprefs pavucontrol pavumeter libflashsupport

从 应用程序 -> 影音 菜单来访问这个工具-运行 Pulseaudio 设备管理员。

安装 XMMS

备注: XMMS 不再包含到软件库,必须从源码安装。 手册在 <http://blog.sartek.net/2008/04/install-xmms-on-ubuntu-804-hardy-heron.html>.


特别小心. 不通过 PMS (软件包管理系统, 意味着 apt 和它的前端, Synaptic) 可能有风险, 因为系统不会追踪编译完成后安装的二进制文件。

你确信清楚你在做什么。

如果您想合适的安装,可以考虑制作一个 .deb 软件包'

XMMS 依赖很多软件包; 在终端输入下面的命令安装他们:

  sudo apt-get install autotools-dev automake1.9 libtool gettext libasound2-dev libaudiofile-dev 
  libgl1-mesa-dev libglib1.2-dev libgtk1.2-dev libesd0-dev libice-dev libmikmod2-dev libogg-dev 
  libsm-dev libvorbis-dev libxxf86vm-dev libxml-dev libssl-dev build-essential make

从 XMMS 站点下载源代码,解压缩 .tar.gz:

  http://xmms.org/

从一个终端进入到新解压的目录并输入:

  ./configure --prefix=/usr

编译代码:

  make

然后安装:

  sudo make install

如果您喜欢,可以删除解压缩出来的目录。 如果想要声音输出正常, 您可以修改声音输出插件从 OSS 驱动到 ALSA。 打开 xmms 浏览 选项-偏好设置 菜单来修改。

安装 Real Player 11 和配置 Mozilla 插件

以下步骤显示如何安装 Real Player 11 和运行在 Hardy Heron 上的 Firefox 3.0 浏览器的 Mozilla 插件。

下载 Real Player 11 从:

  www.real.com/linux

開啟終端機(terminal)並切換到剛剛下載好的檔案所在的目錄。將權限設定允許執行,並用以下指令執行安裝設定: 打开一个终端并切换到文件下载的目录。 赋予可执行权限并使用下面的命令进行安装:

  chmod 770 RealPlayer11GOLD.bin
  sudo ./RealPlayer11GOLD.bin
  

安装时使用了下面的缺省安装目录:

  /opt/real/RealPlayer

安装程序将复制文件和建立菜单快捷方式。然后运行下面命令。

  cd /usr/lib/firefox-addons/plugins
  sudo ln -s /opt/real/RealPlayer/mozilla/nphelix.xpt nphelix.xpt
  sudo ln -s /opt/real/RealPlayer/mozilla/nphelix.so nphelix.so
  sudo mv /usr/lib/totem/gstreamer/libtotem-complex-plugin.so ~/.

打开 Firefox 在地址栏输入 about:plugins 。 卷动并查找到下面的条目。

  Helix DNA Plugin: RealPlayer G2 Plug-In Compatible
  File name: /opt/real/RealPlayer/mozilla/nphelix.so
  Helix DNA Plugin: RealPlayer G2 Plug-In Compatible version 0.4.0.4005 built with gcc 3.4.3 on Feb 25 2008

如果发现,您的 Real 插件已经安装好了!

系统和网络监视

安装 Zenoss stack

Zenoss 是一个充满特色的开源网络监听程序。 如果安装包含了所有依赖的 Zenoss 版本, 首先需要增加软件库,输入:

  sudo gedit /etc/apt/sources.list

在文件的最后面粘贴:

  ## Zenoss - Ubuntu
  ## Please report any bugs at http://dev.zenoss.org/trac
  deb http://dev.zenoss.org/deb main stable

保存文件并退出。

为了接收到密钥,输入:

  wget -q http://dev.zenoss.org/deb/zenoss-gpg.key -O- | sudo apt-key add -

然后再输入:

   sudo apt-get update
   sudo apt-get install zenoss-stack

启动 zenoss:

   sudo /etc/init.d/zenoss-stack start

然后在您的浏览器, 访问 http://yourhost:8080, 其中 yourhost 是你安装了 Zenoss 的 FQDN 服务器。 Zenoss 文档在 http://docs.zenoss.com

Internet 和 Web 开发

远程桌面

这里有几种办法远程访问您的 Ubuntu 桌面, 请权衡每一种方法,并按照您的需要选择。

如何安装和使用 Windows 下的 Xming

软件 Xming 可以用于在 Windows 电脑上访问一个 Ubuntu 远程桌面。 运行在 Windows XP 上的 Xming 提供了一个 XDMP 接口的 X 服务器。

  • 下载 Xming 软件和字体安装包从 SourceForge.net
  • 首先安装 Xming , 然后安装字体。
  • 下一步您确信您的 Windows 防火墙没有阻止连接到您的 Linux 电脑。 在您的防火墙设置的 "例外" 页面,增加输入下面的端口配置:
名称: Any name
端口: 16001
TCP -> 选择
名称: Any name
端口: 6000
TCP -> 选择
名称: Any name
端口: 177
UDP -> 选择
  • 到您的 Ubuntu 电脑上允许远程桌面: (Gnome)
系统 -> 首选项 -> 远程桌面
"允许其他人查看您的桌面" -> 选择
"允许其他用户控制您的桌面" -> 选择

在同样的页面上选择您的安装设置方式。

  • 确保您的 Linux 电脑没有拦截通过 TCP 访问 XDMP :

在您的 Linux 电脑 (Gnome) 点击 系统 -> 系统管理 -> 登录窗口 -> 安全。 确保 "禁止 TCP 连接到 X 服务器" 没有被选择。

  • 到您的 Windows 电脑的您安装的 Xming 目录并点击运行 XLaunch.exe
  • 选择其它所有的选项除了 "Multiple Windows", 点击 "Next".
  • 选择 Open session via XDMCP, "Next".
  • 选择 Connect to host. 输入您的 Linux 电脑名字或者 IP 地址, "Next".
  • 允许 Clipboard.
  • 保存配置 & 点击 Finish.

现在您可以从 Ubuntu 获得一个登录窗口了。

潜在问题

可能有一个潜在的问题,在您远程桌面上鼠标滚轮不工作。 要修复这个问题到您的 linux 电脑上编辑这个文件: /etc/X11/xorg.conf. 在Section "InputDevice", Identifier "Configured Mouse" 增加下面的行: (这是一个通用的 PS2 两键滚轮鼠标)

Option    "Protocol" "IMPS/2"
Option    "ZAxisMapping" "4 5"
Option    "Buttons"   "3"

警告: 请确定这样做,它将修改您的 X 服务配置

在条件和参数之间使用 <Tab> 来间隔。

  • 重启您的 Ubuntu 电脑,使配置生效。

指南: 在 Ubuntu/Linux 上通过 sysctl 调整和最大化网络带宽!

我会在这里展示一些隐藏的设置,这些可以增加您的 internet 速度, 并且适合于所有的 linux 操作系统,包括 Ubuntu:

1. 打开一个终端,通过 应用程序 -> 附件 -> 终端

输入:

    sudo vim /etc/sysctl.conf    (按 i 进入编辑模式)

到文件的结尾粘贴下面的行:

 ## increase TCP max buffer size setable using setsockopt()
net.core.rmem_max = 16777216
net.core.wmem_max = 16777216
 ## increase Linux autotuning TCP buffer limits
 ## min, default, and max number of bytes to use
 ## set max to at least 4MB, or higher if you use very high BDP paths
net.ipv4.tcp_rmem = 4096 87380 16777216
net.ipv4.tcp_wmem = 4096 65536 16777216
 ## don't cache ssthresh from previous connection
net.ipv4.tcp_no_metrics_save = 1
net.ipv4.tcp_moderate_rcvbuf = 1
 ## recommended to increase this for 1000 BT or higher
net.core.netdev_max_backlog = 2500
 ## for 10 GigE, use this, uncomment below
 ## net.core.netdev_max_backlog = 30000
 ## Turn off timestamps if you're on a gigabit or very busy network
 ## Having it off is one less thing the IP stack needs to work on
 ## net.ipv4.tcp_timestamps = 0
 ## disable tcp selective acknowledgements.
net.ipv4.tcp_sack = 0
 ##enable window scaling
net.ipv4.tcp_window_scaling = 1


输入 :wq ,保存和退出。

在终端输入

    sudo sysctl -p 

应用这些设置。


您可以屏蔽和删除你增加的行,使用:

    sudo gedit /etc/sysctl.conf

在桌面上安装 LAMP 服务

LAMP 代表 Linux, Apache, MSQL 和 PHP. 您可以从新立得软件包管理器安装这个四合一软件 (如果您使用的是桌面版)。

系统 --> 系统管理 --> 新立得软件包管理器 -->
编辑 --> 使用任务分组软件包 --> LAMP server --> 应用

简单的 LAMP 服务设置

大约 15 分钟, 可以安装 LAMP (Linux, Apache, MySQL and PHP) 到 Ubuntu Server 版, 这些功能和都已经在已经安装好的 Ubuntu Server 版中提供。

参考 15 分钟设置 LAMP 服务 非常简单的设置手册

从本地 web 开发环境安装一个 LAMP 服务

下面将安装 Apache2, PHP5, MySql5, 和 PHPMyAdmin.

首先在控制台输入下面的命令:

  apt-get update

这个将更新到最新的软件包列表。

然后输入:

  sudo apt-get install apache2 php5 mysql-server-5.0 phpmyadmin

这个将会安装所有需要的程序。 您可能被提示输入一个 MySQL root 密码 (如果你想就设置一个), 并配置 PHPMyAdmin (选择 apache2 作为服务类型)。 这些完成后, 我们需要一些细微的设置来让 PHPMyAdmin 运行。 输入:

  sudo gedit /etc/apache2/apache2.conf

卷动到打开文件的最后,增加:

  # Enable PHPMyAdmin
  Include /etc/phpmyadmin/apache.conf

现在保存,退出,并输入:

  sudo /etc/init.d/apache2 restart

现在所有的都配置好了 - 访问 http://127.0.0.1 页面, 以及 http://127.0.0.1/phpmyadmin 进行数据库管理。 webroot 缺省位于 /var/www/ 。 这个并不是很有用,我们不能写入这个目录,可以使用下面简单的办法处理 ...

在您的 LAMP 服务上增加一个虚拟主机

第一种办法

这个可以让我们在我们的浏览器,使用不同的网址访问不同的目录 - 事实上, 'localhost' 或 127.0.0.1 多无趣。

首先增加一个新的主机。 这个非常容易做通过 系统 --> 系统管理 --> 网络; 点击主机页面, 从列表中选择 localhost 项目点击属性。 您可能先需要点击 '解锁' 按钮并输入您的密码。 在 'localhost' 的下面, 新的一行, 增加您选择的记录; 例如, 我们使用 'testhost'。 加入这个, 并关闭所有的对话框。

为了检查是否生效, 您可以检查 '/etc/hosts' 文件。

  sudo gedit /etc/hosts

您可以看到如下行.

  127.0.1.1	testhost

现在我们需要编辑 Apache 配置文件,在控制台输入:

  sudo gedit /etc/apache2/httpd.conf

在打开的文件 (可能是空的), 增加您定义的主机! 我的用户名是 'dan', 我希望我的网页保存目录为 我的主目录下的 'www' 目录, 因此我增加:

  <VirtualHost *>
     ServerName testhost
     DocumentRoot /home/dan/www
  </Virtualhost>

testhost 是新虚拟站点的名字 (它必须和您上面配置的记录保持一致).

完成这些后, 您需要重启 apache 才可以使用新的配置。

  sudo /etc/init.d/apache2 restart

我现在可以增加文件到 /home/dan/www, 并通过 http://testhost 来访问。

第二种办法

启动终端并输入:

  cd /etc/apache2/sites-available
  sudo touch your-site-name.conf
  sudo nano your-site-name.conf

输入您的虚拟主机,例如:

  <VirtualHost 127.0.1.1:80>
  ServerName myserver
  ServerAdmin me@myserver
  DocumentRoot /home/me/webroot/default
  <Directory /home/me/webroot/default>
     Options -Indexes
     AllowOverride All
     Order Allow,Deny
     Allow From All
  </Directory>
  </VirtualHost>

保存为一个新文件并输入下面的命令:

  cd ../sites-enabled
  ln -s /etc/apache2/sites-available/your-site-name.conf ./your-site-name.conf
  cd ../
  sudo nano apache2.conf

到 apache2.conf 文件的最后增加注解后的下面几行:

  # Include the virtual host configurations:
  NameVirtualHost 127.0.1.1:80
  Include /etc/apache2/sites-enabled/

保存编辑的文件并输入下面的命令:

  sudo nano /etc/hosts

在您的配置文件里面的 127.0.1.1 记录的后面增加, 例如:

  127.0.0.1 localhost
  127.0.1.1 zozi myserver

最后但不重要, 保持编辑的文件,并重启服务,按照:

  sudo /etc/init.d/apache2 restart

您新的虚拟站点可以访问了,通过 http://myserver/ 访问。

家庭自动化 / 家庭影院 / 家庭安全

完整的系统

Linux MCE (媒体中心版本)

LinuxMCE 是一个为您的家庭设计,并包括了家庭影院/家庭安全/家庭自动化/电话交换机/内部通话的系统。这个是一个社区计划,从以商业为主的 Linux Pluto 分支出来。其中有一个版本在 Kubuntu 7.04 (Feisty) 上运行,而另一个版本在 Kubuntu 7.10 (Gutsy) 上运行。 Kubuntu 8.04 (Hardy) 版的已经快完成了。这些可于 32 和 64 位版本上运行。 LinuxMCE 可以成为一台独立的家庭剧院个人电脑,或通过 Kubuntu Linux 操作系统本身的网络能力,在完整网络化的家庭与其它设备一起运作。更多资讯参考 LinuxMCE 网站

LinuxMCE 可以和 Kubuntu OS 通过一张 DVD 同时安装到到一台 Nvidia 显卡 (6000, 7000, 或 8000 系列)的新电脑上。

LinuxMCE 也可以使用 LinuxMCE 第二张 CD ,作为附加软件包安装到一个已经存在的 Kubuntu 系统。在安装过程中需要一张Kubuntu LiveCD,即使您已经完整的安装 Kubuntu 了。 (LinuxMCE 安装时需为一些附加的模块使用 Kubuntu LiveCD。) 要注意的是,LinuxMCE 的版本必须和 Kubuntu 版本一致 -- 例如 LinuxMCE 710 版 CDs 需要 Kubuntu 7.10 (Gutsy) Live CD。

通过第二张光盘安装,您可以在同一台 PC 上从 LinuxMCE 运行 Kubuntu ,但是建议将一台 PC 作为 LinuxMCE 的核心服务器。

LinuxMCE 将 MythTV, Pluto家庭自动化,Motion 安全监控,Asterisk 私人交换机 PBX, VDR 电影录制,和其它家庭自动化/安全/影院软件包整合到同一平台上。

目前,全自动的 Linux MCE 安装程序使用 KDE 桌面 (Kubuntu)。有一些使用者将 Linux MCE 改为也可以使用 Gnome 桌面 (Ubuntu) 和其他的 Linux 发行版,但因为 LinuxMCE 自动安装时需要用到 Kubuntu,所以还是建议您使用 Kubuntu 操作系统。

PVR (个人录像机)

Mythbuntu

Mythbuntu 是一个基于 Ubuntu 的衍生版 (基于 Xubuntu (XFCE) 桌面) ,是建立在 MythTV 上的独立 PVR 系统。 然而,使用 Gnome (Ubuntu), KDE (Kubuntu) 或者 XFCE (Xubuntu) 桌面也可以使用并在任何时候安装。

  • 启动新立得软件包管理器。
系统 --> 系统管理 --> 新立得软件包管理器
  • 选择安装 Mythbuntu LiveCD 软件包, 或者 Mythbuntu 前端, 主后台, 辅助后台, 和/或其它扩展。 参考 website 更多信息。
新立得软件包管理器 --> 使用任务分组标记软件包...

远程控制配置 - Lircd

在 Mythbuntu Control Centre 可以设置:

  • Remote: Custom ( 或者使用列表中存在的一个 )
  • Driver: [blank] ( 大多数时间模块被正确加载 )
  • Modules: lirc_dev lirc_i2c lirc_igorplugusb ( 在这部分按照您的设备使用适合的模块)
  • Configuration: myremote.conf
    • 为自定义遥控器使用 irrecord 建立一个 .conf 文件, 大多数的遥控器都可以正常工作

也可以使用:

dmesg                      # 检查接收器是否在内核被注册
sudo mode2 -d /dev/lirc0   # 检查接收器是否正常工作,如果不正常换一个sub口
irw /dev/lircd             # 检查接收器是否正常接收到遥控器信息

警告: 确保 ~/.mythtv/lircdrc 使用 remote = YourRemoteName, 和 myremote.conf 中的一致

sudo /etc/init.d/lirc restart   # restart lircd daemon

重启 mythtv 前端

家庭安全

Zoneminder 监控系统

Zoneminder 管理摄像机和在硬盘上保存影像。 影像可以使用 (LAMP) server 远程浏览。 X10 设备可以支持内建的 perl 脚本来启动。 更多信息查阅 Zoneminder 网站

sudo apt-get install ffmpeg
安装最新的 Zoneminder 版本
使用仓库里面的包
  • 在 Hardy 软件仓库里面包含了 Zoneminder (version 1.22.3) (也包含在 Gutsy) 。 您可以从新立得软件包管理器来安装它。 它同时有 32-bit 和 64-bit 版本。


原本在 Feisty 安装指引
  • 假如, 还无法正常工作, 尝试可以在 Feisty 下正常工作的安装程序:
  • 您必须先安装 LAMP 服务。 另外, 如果您的系统不满足包依赖关系,您需要安装额外的模块:
sudo apt-get install libarchive-tar-perl libarchive-zip-perl libdate-manip-perl libdevice-serialport-perl
sudo apt-get install libjpeg62 libmime-perl libstdc++6 libunwind7 libwww-perl zlib1g
  • 从软件包管理站点下载 .deb 软件包:

ftp://www.northern-ridge.com.au/zoneminder/ubuntu/edgy/zoneminder_1.22.3-8_i386.deb

  • 使用 Debian 包管理器安装. (其它的似乎没有办法工作.)
sudo dpkg -i zoneminder_1.22.3-8_i386.deb
  • (备注: 如果有些依赖关系还无法满足,确保您安装下面的软件):
sudo apt-get install libc6 libc6.1 libgcc1 libgcc4 libstdc++6
(作为安装 LAMP 的一部分,以下是已经安装好了):
sudo apt-get install apache2-mpm-prefork libapache2-mod-php5 libmysqlclient15off mysql-client mysql-server php5  php5-mysql
设置 Zoneminder 配置文件

如果您安装成功, 您还需要为 Zoneminder 设置配置文件和数据库。

  • 复制配置文件并重启 Apache2 服务。
sudo ln -s /etc/zm/apache.conf /etc/apache2/conf.d/zoneminder.conf
sudo /etc/init.d/apache2 reload
  • 在您的 web 浏览器上访问 Zoneminder :
http://localhost/zm
  • 为 Zoneminder 设置一个 MySQL 数据库
  • 注意: 在 Hardy, 接下来的两个步骤都在安装 LAMP 服务或者 MySQL 安装时完成了.
  • 如果是您第一次使用 MySQL, 缺省的 MySQL 超级用户 root 将没有密码。 您现在可以增加一个。 关于如何设置 mySQL 初始化权限查看 这里.
简而言之:
mysql -u root
mysql> UPDATE mysql.user SET Password=PASSWORD('your_new_password') WHERE User='root';
mysql> FLUSH PRIVILEGES;
mysql> quit
  • 此外, 您可以通过 这里 的说明来设定另外的全局 MySQL 使用者(例如,mysql_user)。 这个方法您可以只有在紧急情况下才使用 root 登录。
简而言之:
mysql -u root
mysql> CREATE USER 'mysql_user'@'localhost' IDENTIFIED BY 'mysql_user_passwd';
mysql> quit
  • 现在您必须建立一个给 Zoneminder 使用的 MySQL 数据库。 这是一个管理 MySQL 的命令, 因此您必须使用一个全局 MySQL 用户 (不管是 root 或上面例子中创建的 mysql_user)。 您可以给您的 Zoneminder 数据库使用其它您想要的名字, 代替 zmdatabase 。
mysqladmin -u root -p CREATE zmdatabase
mysqladmin -u mysql_user -p CREATE zmdatabase
  • 建立 Zoneminder 数据库用户。 一般而言, 我会建立一个 root 用户来处理紧急事件。 我使用系统中 root 帐户同样的密码。 然后我会建立一个用户叫 zm_user (您可以建立一个叫 mysql_user 的用户, 来保持一致性)。 [因为这是一个家庭安全的系统,我使用一个独特的使用者名称,毕竟,我不想它被入侵。] 这个资料库中这些用户被特定指明; 也就是说,他们可以和系统中的其它使用者名称相同,或者使用独特的用户。
mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON zmdatabase.* 
TO  'zm_user'@'localhost' IDENTIFIED BY 'password';

mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON zmdatabase.* 
TO   'root'@'localhost' 
IDENTIFIED BY 'password'; (I used my usual root password here).
mysql> quit
mysqladmin reload
注意: mysql 命令 (例如. 任何在 mysql> 提示后面输入的) 必须使用一个分号结尾。 如果您忘记分号,什么事都不会发生。

Myth Zoneminder

MythZoneminder 允许您使用 Myth TV 来观看安全摄像头。 它是介于 Zoneminder (必须在您系统上运行) 和 Myth TV (也必须同时运行.) 两个之间的插件。 它可以在新立得软件包管理器作为 mythzoneminder 包被找到。

在 Ubuntu 中设置 TFTP 服务

高级 TFTP 服务。 多线程的 TFTP 服务实现了所有在 RFCs 1350, 2090, 2347, 2348, 2349 (multicast 还未实现) 上的选项。 服务当前仅仅支持 inetd(8) 启动。 服务处理处理新的连接开始一个新的线程, 如果5分钟没有响应则删除。

查看 在 Ubuntu 下 安装 aTFTP 服务 非常简单设置的手册。

如何使用 Ubuntu Live CD 恢复 GRUB 到一个分区或 MBR

偶尔, 如果 Ubuntu 安装出现错误, 或者 Windows NT 引导覆盖了 MBR 导致无法识别 Linux 的安装, 我们必须修复我们的 GRUB 引导器, 一般而言, 非常有弹性。

首先,我们刻录一张 Hardy Heron (Ubuntu 8.04) ISO (到一张 CD(R , RW) 或 DVD (+R , +RW)) 或确信我们已经有一张了。

然后, 我们在 BIOS 中修改启动顺序, 让 CD/DVD 选项第一。

然后, 我们从 Live CD 启动, 我们选择第一个选项然后过几分钟我们将进入到一个 Live CD 桌面。

因此, 继续 :

 应用程序 --> 附件 --> 终端 

然后, 我们必须记住哪个是我们 Ubuntu 安装的分区。

在我们的例子中, 它是第二个 (/dev/sda2), 格式化为 ext3, 位于 SATA 控制器的第一个硬盘。 我们假设是第二个分区; 同样假设因为 Windows 的需求, 第一个分区被 Windows 占了 (/dev/sda1)。

现在,您必须非常小心。 您需要输入正确的分区,代替 sda2 (除非它真是这样) 在终端 :

  cd /
 
  sudo -s -H
  mount -t ext3 /dev/sda2 /mnt
  mount -t proc proc /mnt/proc
  mount -t sysfs sys /mnt/sys
  mount -o bind /dev /mnt/dev
  chroot /mnt  /bin/bash

现在, 您事实上正在“运行”硬盘上的 Ubuntu 了,但是是通过Live CD的终端。

现在我们象这样恢复 GRUB:

1) 恢复到 MBR

  grub-install /dev/sda

2) 恢复到分区 (例如: /dev/sda2)

  grub-install /dev/sda2

在第一个方案中 (这个是最常见的) 您在终端得到的信息中没有错误,那么已经安装GRUB 到 到 MBR 了。

但您重启后, 您最爱的引导程序恢复了。

另外, mount / 和 /boot 目录,你希望开机进入的哪个可以使用 grub-install 的 --root-directory 删除, 这个不再需要使用 chroot 。

使用cryptsetup 加密 home 分区 & LUKS

首先备份所有的重要数据,以免万一错误发生 如果没有备份,您的数据将会消失。 同时注意您的 home 目录需要和您的 root 分区分开不同的分区, 如果没有查阅 #How to make partitions.

其次,安装需要的软件:

  sudo apt-get install cryptsetup

插入一个新的模块, dm-crypt 到内核:

  sudo modprobe dm-crypt

检查看看可以使用的加密方法:

  cat /proc/crypto

如果只有 MD5 被显示, 尝试插入适当的模块到内核:

  sudo modprobe serpent

上面只是例子, 它可能有 twofish, blowfish 或其他可能的加密模块,按照您想要的去使用。

接下来的命令假设您的 home 分区是 /dev/sda1, 请修改它符合您自己的设置。

下一步我们使用 cryptsetup 的 luksFormat 参数来改变分区, 这个命令将让您全部丢失 /dev/sda1 上的所有数据。

  sudo cryptsetup luksFormat -c algorithm -y -s size /dev/sda1

上面的 algorithm 是您选择的加密方式例如 serpent aes, 等.

Size 是加密密钥的长度, 通常是 128 或 256. W如果没有指定加密运算方式或长度, 我相信缺省的是 AES 256, 更多的信息和扩展的选项可以阅读 man 手册。 上述的步骤会让您设置密码和校验。 不要忘记这个密码。

然后我们可以使用 luksOpen 选项来打开加密的硬盘。

  sudo cryptsetup luksOpen /dev/sda1 home

Home 是 cryptsetup 使用指向 /dev/sda1 的昵称。 它同时会建立这个设备 /dev/mapper/home, 这个是您实际上需要访问的文件系统挂载点。 如果您指定了其他的名称不是 home, 它会建立这样的设备 /dev/mapper/[name], 其中 [name] 是 cryptsetup 使用的昵称。 这个步骤会询问你 LUKS 密码, 这个是您在上一步创建的密码。

下一步, 我们在这个设备上建立一个实际的文件系统。 我使用 reiserfs, 但您也可以使用 ext3。

  sudo mkreiserfs /dev/mapper/home

  sudo mkfs.ext3 /dev/mapper/home

下一步是挂载您的加密设备和复制您的文件回到 home 目录。

  mkdir new_home
  sudo mount /dev/mapper/home new_home
  cp -r * new_home

现在我们必须将所有的东西都设置好到开机可以使用,我们需要告诉系统我们有想要挂载的加密硬盘。

  gksudo gedit /etc/crypttab

在文件的最后作为一行输入下面的内容。

  home       /dev/sda1       none       luks,tries=3

记住 home 可以是您想要的任意名字, 仅仅记住要对应到 /dev/mapper/[name]。 选项 tries=3 允许 3 次重试,在开机或者硬盘需要解密时。

下一步在 fstab 输入设备信息,然其可以开机挂载。

  gksudo gedit /etc/fstab

在文件的最后作为一行输入。

  /dev/mapper/home       /home       reiserfs       defaults       0       0

记得将 /dev/mapper/home 取代为 /dev/mapper/[name], /home 是挂载点, 因为这个是我们的主文件夹, reiserfs 是文件系统类型, 如果您格式化为 ext3 ,输入 ext3。 现在缺省值都很完善, 如果你有什么特别的需求修改这个。 同时, 现在也要把旧的 /dev/sda1 设备条目删除,以免开机时, fstab 不会加载它。 这个可以在 /dev/sda1 行前面加上一个 # 号或者删除掉。

最后一步是确定在启动的时候正确的模块被加载。

  gksudo gedit /etc/modules

现在增加你之前使用的 dm-crypt 和 crypto 模块,, 例如 serpent, aes, 等. 每个需要单独一行。例如:

  dm-crypt
  serpent

这样就可以了, 接下来就是重启。 在重启过程中, 电脑会告诉您 "Starting early crypto disks" 并询问您的口令。 如果口令是正确的, 它将解锁加密的分区并重新在你指定的挂载点挂载。

别名

您可以通过别名来更改您输入的命令去执行。

例如, 你可以在终端输入 "update-system" (一个事实上不存在的命令) 来代替 "sudo apt-get update". 您可以为其它的命令做同样的事。

这是我们要做的。我们的例子将下面的命令指定别名

 ls -FCal --color=auto

这个命令会按照彩色显示目录内容。

打开终端

  应用程序 --> 附件 --> 终端

输入

  gedit ~/.bashrc

现在小心了. 别删除那里面的任何东西。

现在, 到文件的最后输入

  alias ll="ls -FCal --color=auto"

如您所见, 现在可以使用这个命令

  ll

无论我们何时呼叫,事实上它是这个

  ls -FCal --color=auto

您可以为其它的命令做同样的事情,不过需要改动一下。

保存文档,关闭终端重新打开。 您现在可以检查您的新别名了。

秘诀 & 技巧

修改开机画面的颜色

为了配合 Ubuntu 主题使用了褐色, 它并不适合其它主题,希望被修改。 进入 gdm.conf 文件 (sudo gedit /etc/gdm/gdm.conf). 大约在文件的1/3部分您可以看到如下行:

 BackgroundColor=#dab082
 GraphicalThemedColor=#dab082

改成您想要的。要全黑则用:

 BackgroundColor=#000000
 GraphicalThemedColor=#000000

修改缺省的终端窗口大小

缺省的终端窗口是 80 列和 24 行高。 修改这个, 编辑文件 /usr/share/vte/termcap/xterm。 您可以使用下面的命令:

 sudo gedit /usr/share/vte/termcap/xterm

从顶上数的几行其中有一行为:

 :co#80:it#8:li#24:\

修改co# 后面的数字就可以改变宽度 修改li# 后面的数字就可以改变高度

修改 Samba 工作组

  • Samba 工作组 用于 Windows 网络被缺省设置为 "WORKGROUP" 。 它可以被修改为符合您的 Windows 网络所使用的工作组。
  • 编辑 Samba 配置文件:
sudo gedit /etc/samba/smb.conf
  • 编辑这一行:
workgroup = WORKGROUP

修改它到您实际的工作组名字。例如,我的工作组是 MSHOME, 因此我修改为:

workgroup = MSHOME

保存文件.

  • 重启.

修复关机 "Network Error" 显示 (恢复关机屏幕)

很多 Ubuntu 系统当关机时有一个小 bug 。 代替原本关机进程显示的屏幕, 转到充满关机信息的控制台屏幕 (大多数都是网络错误信息)。 这些信息大多都是正常和必然的, 没有什么好担心的. 但看起来很丑, 所以看起来 Ubuntu 小组刻意将这些信息隐藏到屏幕后面. 屏幕可以简单的恢复不费多大力气:

  • 系统 -> 系统管理 -> 登录窗口, 选择 本地
  • 选择一个其它的主题, 然后重新选择缺省的主题 ("Human"). 这个会重新设置一下
  • 点击 关闭, 然后回到 系统 -> 系统管理 -> 登录窗口, 重新选择 本地
  • 您会注意到这个和您刚刚选择的不相同。 恢复设置到缺省值 -- 从 主题 的下拉框选择 仅用选中 (代替 "从选择中随即选择"), 并重新选择缺省的 Ubuntu 主题 ("Human"). 完成后, 点击 关闭. 这是设置已经保存了, 关机屏幕也会正常出现。

修改缺省的 runlevel

  • 建立 /etc/inittab 文件
  • 增加下面的行: "id:3:initdefault:", 数字是选择的运行等级
  • 现在在你的运行登记 /etc/rcX.d/ 目录查看 README, 这里 X 是一个介于 1-6 之间的数字
  • 现在重启,好了。 :)

如何分区

使用 Ubuntu 分区非常简单 。

打开终端输入:

  sudo apt-get install gparted

然后浏览

  系统 --> 系统管理 --> 分区编辑器

接着 gParted 将检查您的硬盘和分区。

在这里您可以修改那些不在您系统的分区。

更多信息 :

1) gParted 使用手册 (同时它也是个 Live CD ) -->http://howtoforge.com/partitioning_with_gparted

2) 如何在 Ubuntu 分割出您的 /home 分区 --> http://www.psychocats.net/ubuntu/separatehome

如何在 Ubuntu 下启动 Compiz Fusion

在 Ubuntu Hardy Heron , Compiz Fusion 已经安装并可以自动使用, 当完成[#Graphics_cards_and_displays 您的显卡驱动] 后.

因此您只剩下两件事情,安装 Compiz 配置设置管理器和通知图标设置。

打开终端输入:

   sudo apt-get install compizconfig-settings-manager fusion-icon

然后将安装好了,接着访问:

   系统 --> 首选项 --> Advanced Desktop Effects Settings

这里您可以启动/关闭任何您想要的插件。

要运行 Compiz-Fusion 通知图标,前往:

   应用程序 --> 系统工具 --> Compiz Fusion Icon

在命令行运行:

   fusion-icon

通知图标将启动了.

附加应用程序

Ultamatix: 一键安装 101 个应用程序包括游戏,解码器,应用程序

Ultamatix! 它基于 Automatix, 因此看起来和行为非常类似。 好消息是 Ultamatix 是设计运行在 Ubuntu Ultimate Editon 1.8, Ubuntu 8.04 (Hardy Heron) 和 Debian Linux 的 unstable branch 版本。 这个是一个新的 automatix 代替。

点击 这里 包括抓图的简单安装手册

Wine

Wine 是一个为 Linux 设计的 Windows Win32 二进制兼容层。 最新的安装指引在: WineHQ.org 增加仓库密钥:

 wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -

增加仓库到 apt 软件源:

 sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/hardy.list -O /etc/apt/sources.list.d/winehq.list

更新 apt 软件源:

 sudo apt-get update

安装 Wine:

 sudo apt-get install wine

程序菜单放到 Wine 的 Programs 下, 或双击 Windows/DOS .exe 文件。

Unison - 文件同步工具

Unison 是一个 Unix 和 Windows 下的文件同步工具。 它允许大量的文件和目录抱在不同的主机上(或者相同主机的不同硬盘上), 可以个别的修改, 然后将新的变更同步到另外一个备份。 完整的安装和使用手册点击 这里

PlayOnLinux

PlayOnLinux 是一个 Wine 的前端简化了安装和执行许多 Windows 程序, 特别是游戏。 增加仓库密钥:

wget -q http://playonlinux.botux.net/pol.gpg -O- | sudo apt-key add -

增加仓库到 apt 软件源:

sudo wget http://playonlinux.botux.net/playonlinux_hardy.list -O /etc/apt/sources.list.d/playonlinux.list

更新 apt 软件源:

sudo apt-get update

安装 PlayOnLinux:

sudo apt-get install playonlinux

Tor, privoxy, 和 Tor GUI (Vidalia)

Tor 是一个帮助您确保安全,防止通信分析,包括威胁到个人自由和隐私、机密商业活动和关系的行为软件。 Tor 将您的通讯在全世界志愿者所提供的分散式中传播,来保护您的通讯。

如果您想安装被配置,参考 这个 手册。

如何同步您的邮件、文件、书签,和其它类型的个人信息

Conduit 是一个 GNOME 下的资料同步方案,它能够让用户可以使他们的邮件、文件、书签和其它类型的个人信息同步到其它电脑、一个在线服务器, 或者其它电子设备上。 Conduit 可以管理同步和转换数据到其它的格式。

如果您希望在 Ubuntu 下安装和配置,参考 这个 指导。

如何安装学习宗教的应用程序

如何安装 Gnomesword (圣经学习程序)

sudo apt-get install gnomesword sword-language-pack-en sword-text-web
  • 如果您需要其它语言输入:
sudo apt-cache search bible
  • 为附加的语言查看 sword 语言包和 sword 说明,并安装你需要的。

Gnomesword 可以在应用程序 -> 附件 找到。

  • KDE 下, 使用 kio-sword 代替 Gnomesword:
sudo apt-get install kio-sword

如何安装一个古兰经研究工具 (Zekr)

Zekr 是一个开放的古兰经学习工具,可以在古兰经中简单的浏览和搜索。

  • 确信您启用了 universe 和 multiverse Ubuntu 仓库。
  • 使用下面的命令安装 zekr :
sudo apt-get install zekr zekr-quran-translations-en ttf-sil-scheherazade ttf-farsiweb
  • 您可以增加其它的古兰经翻译从 这里.
  • 如果您需要升级到 最新版本的 zekr, 这个支持古兰经朗读和高级的条件/正则表达式搜索, 查考下面的指引 Zekr wiki.

如何在 Ubuntu Hardy 里面安装 Google Gadgets

Google Gadgets for Linux 提供在 Linux 下运行的桌面小工具, 并迎合了 Linux 用户的需求。 相容于在 iGoogle Universal Gadgets 里面的 Windows 桌面下所写的工具,跟随 Linux 精神, 这些项目是开源的, 基于 Apache 版权策略。

如果您希望安装那些漂亮的 gadgets 到您的 Ubuntu 桌面,尝试 这个 简易安装手册。

使用 Linux 上的 Mupen64Plus 模拟器玩 N64

Mupen64 是一个跨平台的任天堂 64 模拟器。 本来开发已经停止了, 直到有人开始重新改写它的原代码, 这就是 Mupen64Plus 的来源... 它的视频/声音/控制器等不同的插件相容性非常好!!!

从这里下载: Mupen64Plus 1.3 32-Bit Mupen64Plus 1.3 64-Bit

安装:

  • 解压缩:

unzip Mupen64Plus-1-3-bin-*.zip

  • 到这个目录:

cd Mupen64Plus-1-3-bin-*/

  • 安装:

./install.sh

安装后,您可以在任何地方输入 mupen64plus 来运行或为它建立一个快递方式。 祝您玩得愉快.

在您的 Ubuntu 电脑上使用 Zattoo 看 Live-TV

Zattoo 开发了一个软件可以允许您在电脑上看电视。 你所需要的只是一个稳定的宽频连线和一个当前的操作系统 (Windows XP 或 Vista, Mac OS X, 或 Linux)。 这个服务是免费合法的。

如果您需要在 Ubuntu 下安装并设置 Zattoo , 参考 这个指引。(译者注:Zattoo 现在仅对以下国家和地区开放:Belgium, Denmark, France, Germany, Norway, Spain, Switzerland, 和 UK。)

如何从 Hardy Heron 升级到 Intrepid Ibex (仅适用于开发者和 bug 报告提交者)

  • 目前(< 2008 年 09 月 16 日)升级到 Ubuntu 的下一个版本还不安全。所有的软件包都还处在测试阶段,有些依赖性问题还未解决。 大多数的用户应该继续使用当前稳定版本(8.04 - Hardy Heron)。 测试者应该在测试环境(例如:在一个虚拟机 Wubi 或 Lubi 上运行)中运行 Ibex 。

在 Ubuntu Linux 上 RSS 阅读器可以使用了

RSS 是一组 Web feed 格式被用于发布频繁更新的内容, 如 blog 条目, news 头条, 和 播客, 使用标准化的格式。 一个 RSS 文档 (也称为 “feed”, “web feed”, 或 “channel”) 包含了相关 web 站点或全文的摘要。 RSS 使 web 站点的内容自动输出到其它程序或者过滤显示称为可能。

如果你希望查阅 Ubuntu 的 RSS 阅读器, 查阅 这里

手工升级到 Intrepid

  • 只有当第一个 Alpha 版本进入到仓库后, 升级管理器才会提示您安装升级到 Intrepid Ibex 的信息。
  update-manager -d
  • 您可以自行修改您的 sources.list 文件来升级:
  • 备份 sources.list 文件:
 sudo -i
 cd /etc/apt/
 cp sources.list sources.list.backup
  • 修改仓库:
  • 删除 sources.list 文件中所有旧的内容, 增加下面的内容:
deb http://archive.ubuntu.com/ubuntu/ intrepid main universe restricted multiverse
deb http://security.ubuntu.com/ubuntu/ intrepid-security universe main multiverse restricted
deb http://archive.ubuntu.com/ubuntu/ intrepid-updates universe main multiverse restricted
deb http://archive.ubuntu.com/ubuntu/ intrepid-proposed universe main multiverse restricted
deb http://archive.ubuntu.com/ubuntu/ intrepid-backports universe main multiverse restricted
  • 更新仓库缓存:
 sudo -i
 aptitude update
  • 检查软件源中所有的来源都修改为了 Intrepid。 Hardy 仓库不应该还在这里。 如果存在, 屏蔽他们并激活 Intrepid 仓库。
  • 再次更新仓库缓存, 升级所有包, 做发行版升级到 Intrepid, 然后更新所有的新的 Intrepid 软件包 (有些步骤请小心):
 aptitude update 
 aptitude upgrade
 aptitude dist-upgrade
 aptitude upgrade

所有命令都应该单独运行,而且您需要不断检查时候和旧的软件包冲突, 还有哪些包需要删除。 注意: 如果重要的系统包被删除了 (libs, gcc , xorg packages, bash , ubuntu-desktop , gdm 等), 你必须重新安装他们 (即使是 meta-packages 也会出现这种情况)

  • 所有的这行应该由高级用户完成,并仅仅用于测试环境。 很多包都在测试阶段 (和 [experimental] 位于 Debian Sid/Unstable 中的一样)。

有报告说 debconf 包无法自动安装。 通过新立得锁定 hardy 版本。

自动升级到 Intrepid

  • 在第一个 Alpha 版本进入仓库之后, 修改仓库升级:
  sudo update-manager -d

检查 Hardy 仓库是否被关闭并被 Intrepid 仓库取代。