KDE/zh-cn

KDE 是自由软件社区，提供为数众多的应用程序，包括流行的 Plasma 桌面环境.

Gentoo support for KDE is excellent, with comprehensive packaging of the legacy Plasma 4, next generation KDE Frameworks 5, Plasma 5, and Applications 5, as well as a wide array of other miscellaneous KDE-based software.

配置
选择一个适当的Portage配置，尽管这不是必须的，但是我们仍建议这么做. 因为这会设置一些全局或针对特定软件包的 USE 旗标来确保你能够获得顺畅的 KDE 使用体验.

为了选择适当的Portage配置，首先需要列出有哪些可用的Portage配置：

然后选择正确的Portage配置，把下面的命令中的 替换为合适的Portage配置对应的数字：

For Plasma 5 desktop environment choose  with OpenRC or   with systemd. For legacy Plasma 4 desktop environment it is recommended to use the  profile, which is tailored for use with OpenRC. If systemd is used, choose  instead.

服务
Before installing KDE related software it is recommended that several other services are set up first. Part of that is done automatically if a desktop/plasma or desktop profile is used. These services are:
 * D-Bus: Enables use of the D-Bus message bus system.
 * polkit: Enables the polkit framework for controlling privileges for system-wide services.
 * udev: Enables support for udev Linux dynamic and persistent device naming.
 * udisks: Enables support for some storage related services.

Follow the links for information how to set up these services. Note that other USE flag combinations than set in this profile may technically be possible (especially if selected applications are run instead of a full KDE Plasma desktop environment), but may be unsupported, untested, or lead to unexpected loss of functionality.

X server
阅读下列来自 X server 的介绍来设置 X 环境.

Frameworks
KDE Frameworks 5 是为KDE Plasma 5 和 KDE Applications 5 的运行库和软件框架的合集，但是可能会受到一些 Qt 程序的影响.

KDE 框架大部分是运行库，只提供少量的面对用户的功能. 它不需要被手动安装 —— 需要的软件包会被作为别的软件包的依赖自动安装.

Plasma
Plasma 5 是 KDE 的下一代桌面环境，基于 Qt 5 和 KDE Framework 5. 升级它相当简单，尽管上游使它不能和 Plasma 4 共存.

Note that while Plasma 5 is perfectly usable, it is still in development and missing some features present in KDE 4.

Upgrade from Plasma 4
Information on how to upgrade from Plasma 4, migration and troubleshooting can be found on the upgrade page.

Installation
包提供完整的 Plasma 5 套件，由以下 USE 旗标配置：

你也可以选择通过安装 获得一个基本的桌面环境，让你用户自己安装需要的软件：

Widgets
提供了很多有用的小工具：

Display manager
SDDM （Simple Desktop Display Manager） 是被推荐的登录管理器并且它默认会通过 被自动安装. 另外你也可以选择使用 LightDM ,这需要为 设置   的 USE 旗标， 同时还要修改  中的设置. 同时在发生错误时请阅读 SDDM 页面.

Applications
与很多基于 Qt 5/KDE Frameworks 5 和/或 基于 Qt 4/KDElibs 4 的应用程序和支持库一起发布（而后者依旧处于长期服务模式）. 在Portage 树当中，使用slots  和   来区分. 上游正在进行从 KDE 4 到 5 的迁移，这可以从每次主要版本更新当中看出. 这之中即有已经成熟的 Plasma 5 程序，也有新迁移过来的程序. 注意，这同时意味着大版本更新时可能会造成依赖的冲突. 当两个不同的软件包依赖于 slot 4 和 5 的相同库的时候将无法被安装. 元包会说明这种情况，并且在这种情况下建议使用更加可靠的版本而不是新迁移的版本.

可用版本
包提供完整的应用程序集合：

这个元包会安装以下包（你也可以选择手动安装这些包）：

本地化
To localize KDE Applications, enable the  USE flag to automatically pull in the necessary packages, either globally in  or just for the relevant meta packages:

If only a select few languages are desired, define the L10N variable in. E.g. to use the German language, set:

To manually install these localization packages, use the following (complete) list or pick as desired:

有它自己本地化程序包：.

Available versions
In Portage, two variants of KDE PIM, the KDE personal information management suite (including, , and ) are currently available, still based on Qt 4/KDElibs 4. The current, up-to-date version including an Akonadi-based kmail (also known as kmail2) is installed by default. By locally placing a mask file into, the "noakonadi fork" is used including a non-Akonadi kmail (also known as kmail1).

In addition, the KDE overlay provides the latest upstream release for testing which is based on Qt 5/KF 5. It remains masked until it is deemed suitable for wider use, but testing is appreciated. Adding an unmask file to is necessary to get it.

Update to KDE PIM 16.08 and later
Most, but not all of the codebase has been ported from to  which is based on Chromium's Blink. By default, this package sets and uses the  USE flag, which comes down to a  package dependency, so users preferring  for the rest of their system will need to switch off that USE flag.

Unfortunately, not all of the KDE Applications are compatible yet, with some packages still depending on Qt 4/KDElibs 4 based parts that can not be installed with modern KDE PIM at the same time. That includes, , and possibly other packages outside of the kde-apps category. By default, these packages are no longer installed by.

The following commands will deselect any packages from world that would still depend on these conflicting packages:

With all that prepared, KDE PIM is ready to be installed:

kdesu5
该工具由 提供，用于以  身份运行 GUI 程序. 如果安装时启用了  这个 USE 旗标，一个  的图形前端会被安装，你可以通过执行  来使用它.

请务必确保那条命令真的需要以 身份执行，而不是只需要添加普通用户到相关的用户组或者不需要特权也能运行.

Plasma 4
Plasma 4 is the previous major workspace version by KDE. Although it is no longer maintained upstream, it is considered stable and might still be a viable alternative for some.

可用版本
This will pull in additional  and   packages.

Widgets
一些实用的小工具可以通过安装  安装：

显示管理器
KDM (KDE Display Manager) is the long-serving login manager for Plasma 4 although any other login manager can be used.

OpenRC
把 KDM 设置为默认显示管理器（ display manager）：

把 xdm 添加到默认启动级别（runlevel）来使 KDM 开机启动：

如果要现在立即启动 KDM ：

Systemd
通过  使 KDM 开机启动：

现在启动 KDM ：

更多KDE软件
最主要的 KDE 应用程序在 Porage 树的 kde-apps 和kde-misc 分类中.

另请参阅

 * KDE 提示 - 一些关于如何在 KDE 桌面环境中工作的提示.
 * KDE 疑难解答 - 一篇额外的关于 KDE 的疑难解答的文章.
 * KDE/KDEPIM-4.7 upgrade/
 * KDE Overlay - 介绍如何添加 Gentoo 的 KDE Overlay.
 * KDE的删除和清理 - 关于如何删除并清理 KDE 的一些介绍.

外部资源

 * 官方 KDE 用户 Wiki
 * 官方 KDE 论坛
 * KDE-Apps.org
 * KDE-Look.org
 * KDE-Files.org