怎样安装 KDE 4.0 [含 Ubuntu, Arch Linux, openSUSE, MagicLinux, Gentoo]

KDE 4.0 发布之后,可能有的朋友在使用包含它的 Live CD 进行体验。如果你打算让 KDE 4.0 在自己的 Linux 系统中安家,那么摆在你面前的首要问题就是怎样安装 KDE 4.0。我们搜集了一些安装 KDE 4.0 的资料,希望对你有所帮助。

KDE 4.0 桌面

在 U(K)buntu 7.10 Gutsy 中安装 KDE 4.0

如果你是 Ubuntu 或 Kubuntu Gutsy 用户,那么可以按如下步骤来安装 KDE 4.0:

1、编辑 /etc/apt/sources.list 文件:

sudo vim /etc/apt/sources.list

然后,添加下列内容:

deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu gutsy main

2、安装 KDE 4.0 包: sudo aptitude update sudo aptitude install kde4-core

注意:如果你有安装过 KDE 4.0 之前的版本,需要先使用以下命令删除相关包,以免冲突:

sudo aptitude remove kdelibs5 kde4base-data kde4libs-data

3、从登录管理器中选择 KDE 4 可以进入 KDE 4 桌面环境。

在 Arch Linux 中安装 KDE 4.0

对 Arch Linux 用户而言,可以安装 KDEmod 4。目前,KDEmod 4 位于 kdemod-testing 仓库。要安装 KDEmod 4,可执行下列步骤:

1、启用 Arch Linux 的 testing 仓库,并添加 kdemod-testing 仓库地址。你需要编辑 /etc/pacman.conf 文件:

vim /etc/pacman.conf

然后,删掉以下两行前面的注释符: [testing] Include = /etc/pacman.d/testing

并添加 kdemod-testing 仓库地址: [kdemod-testing] Server = http://kdemod.ath.cx/repo/testing/i686

由于在我这里上面的地址被阻尼了,所以我换用: [kdemod-testing] Server = http://kdemod.podzone.net/repo/testing/i686/

接着,同步一下:

pacman -Sy

2、(可选) 如果你已安装 KDEmod 3.x,则执行: pacman -Rd qt-enhanced pacman -Rd kdemod-gtk-qt-engine pacman -S kdemod-testing/qt-enhanced pacman -S kdemod-testing/kdemod-gtk-qt-engine

3、执行下列命令更新系统:

pacman -Su

4、删除 qt:

pacman -Rd qt

5、安装 KDE 4.0:

基本的 KDE 4 桌面:

pacman -S kdemod4

完整的 KDE 4 桌面:

pacman -S kdemod4-complete

安装简体中文语言:

pacman -S kdemod4-kde-l10n-zh_cn

注意:事实上,在我执行第四步后,再执行第五步时,出现了下列依赖问题: resolving dependencies... looking for inter-conflicts... error: failed to prepare transaction (could not satisfy dependencies) :: strigi: requires qt>=4.3.2 :: soprano: requires qt>=4.3.2 :: telepathy-qt: requires qt>=4.3.2 :: tapioca-qt: requires qt>=4.3.2 :: qimageblitz: requires qt>=4.3.2 :: qca: requires qt>=4.3.2

根据 KDEmod 论坛的提示,执行以下命令后解决: pacman -S qt pacman -S strigi soprano telepathy-qt tapioca-qt qimageblitz qca pacman -Rd qt pacman -S qtmod

感谢 fireflyoo 补充:更新 Pacman 后,请将 /etc/pacman.conf 里 [testing] 段的内容改为: [testing] Include = /etc/pacman.d/mirrorlist

在 openSUSE 10.3 中安装 KDE 4.0

openSUSE 10.3 的用户可以使用下面的一键安装按钮获得 KDE 4.0 桌面环境:

安装 KDE 4.0

或者,你也可以安装一个更基本的 KDE 4 桌面。开发者还可以安装 KDE 4 编译依赖,以便从源代码编译 KDE 4.0。

在 MagicLinux 中安装 KDE 4.0 [感谢 nihui 朋友提供]

1、添加 apt 源。root 权限:

/etc/apt/sources.list.d/magic.list

添加一行:

rpm http://wiki.magiclinux.org/ftp/nihui/kde4 4.0.0 kde400

2、请一定要删除以前 rc2/beta3 的源,否则可能造成冲突。然后在 root 状态下执行 (su): apt-get dist-upgrade apt-get install kde4-session qt4-*

同样,也可以使用 smart 进行安装。

安装完成之后,无需修改任何配置文件,只需注销一下便能进入。

3、简体中文语言包安装:

apt-get install kde4-l10-zh_CN

4、其他安装:

kdegraphics (包含 okular/gwenview 等):

apt-get install kdegraphics4

kdeedu (包含 kalzium/marble/ 等):

apt-get install kdeedu4

nihui 注:kalgebra 程序在我这边启动时会造成重启 X,与显卡的性能有关。如果显卡不支持硬件 opengl 渲染的话 (比如我的 sis 显卡),那么只要有 opengl/pixel buffer 的部分都会导致 X 崩溃,而单纯的 opengl 图像渲染是不会引起崩溃的。

kdegames (包含 ksudoku 等):

apt-get install kdegames4

extragear-plasma kdemultimedia kdenetwork kdesdk

已经过测试,暂时没有加进 apt 中 (编译依赖不完整,比如 krdc 缺少 vnc 支持等等):http://wiki.magiclinux.org/ftp/nihui/kde4/4.0.0/tmp/

在 Gentoo 中安装 KDE 4.0 [感谢 fcicq]

请参考:http://www.gentoo.org/proj/en/desktop/kde/kde4.xml

欢迎朋友们提供自己的 KDE 4.0 安装方法,以充实本文。

[via Kubuntu, KDEmod, openSUSE]

Read More:

41 Comments

  1. 1 abc Commented @ 2008-01-14 9:36Reply to this comment

    sudo aptitude install kde4

    toy早上好:)

    这样是装完整版的kde4么?

  2. 2 percy Commented @ 2008-01-14 9:46Reply to this comment

    arch的pacman已经升级了,3.1.0 /etc/pacman.conf配置文件有变动了

  3. 3 zhuo Commented @ 2008-01-14 10:19Reply to this comment

    ubuntu7.04的怎么装阿???

  4. 4 foxx Commented @ 2008-01-14 10:32Reply to this comment

    请问字体如何调整到图中的效果?

  5. 5 yegle Commented @ 2008-01-14 10:43Reply to this comment

    toy那个点击图片放大效果观看的是用什么插件实现的啊?

  6. 6 yang Commented @ 2008-01-14 10:58Reply to this comment

    用了vista的微黑字体!怎么还是要和windows扯上关系呢?

  7. 7 Toy Commented @ 2008-01-14 11:11Reply to this comment

    @yegle: 是 Shutter Reloaded。

    @yang: 不是 Vista 才有黑体字的。

  8. 8 fireflyoo Commented @ 2008-01-14 11:30Reply to this comment

    更新pacman到3.1的archer,需要改/etc/pacman.conf里[testing]段的内容为 [testing] Include = /etc/pacman.d/mirrorlist

    以下为官方的说明: >>> The pacman.conf default file has changed. Please update your >>> config to use the single mirrorlist, and any additional files >>> in /etc/pacman.d/ (core, extra, etc.) can be deleted.

  9. 9 karldodd Commented @ 2008-01-14 12:36Reply to this comment

    请问图中浏览器用的字体是?一直看到但不知道叫啥。。。

  10. 10 autoxbc Commented @ 2008-01-14 12:41Reply to this comment

    有没有人觉得 KDE4 操作比较滞,点击菜单对话框总是僵一下才有反应。

  11. 11 MK Commented @ 2008-01-14 12:49Reply to this comment

    Toy用的字体是是什么啊? 有点像方正黑体

  12. 12 gz159 Commented @ 2008-01-14 12:51Reply to this comment

    请问你使用的是那个版本的linux,你系统的字体是怎么设置的,怎么安装的字体,怎么设置的字体,使用的字体的名称?thanks

  13. 13 linuxpcman Commented @ 2008-01-14 13:00Reply to this comment

    KDE越改越糟糕

  14. 14 silver Commented @ 2008-01-14 13:19Reply to this comment

    请问 toy 打造完美的 Linux 桌面 — Arch Linux 这个系列的文章 还有续篇么? 很好看啊!

  15. 15 Toy Commented @ 2008-01-14 13:55Reply to this comment

    @karldodd, MK: 字体为 Luxi Sans+Hei.dfont。

    @gz159: 系统为 Arch Linux。

    @silver: 未完,还有续篇,敬请期待。

  16. 16 netmask Commented @ 2008-01-14 14:34Reply to this comment

    怎样装上i18n呢?英文界面很不爽

  17. 17 eagle Commented @ 2008-01-14 15:30Reply to this comment

    ubuntu710的用上了说一声,怎样。会不会影响gnome.

  18. 18 chung Commented @ 2008-01-14 15:55Reply to this comment

    http://kdemod.ath.cx/repo/testing/i686 http://kdemod.podzone.net/repo/testing/i686/

    两个地址好像都不能防问了..

    http://kdemod.podzone.net/repo/testing/i686/ 这个地址昨天我还连接了一会..突然就不能连接了..提示Address Not Found

  19. 19 autoxbc Commented @ 2008-01-14 16:01Reply to this comment

    @ netmask 编译安装中文环境

    语言包源码 ftp://ftp.kde.org/pub/kde/unstable/3.97/src/kde-l10n/kde-l10n-zhCN-3.97.0.tar.bz2 进入解压目录 cmake -DCMAKEINSTALL_PREFIX=/usr/lib/kde4 目录按实际情况改 sudo make install

    可能遇到的依赖 gettext

  20. 20 独立的圆 Commented @ 2008-01-14 16:36Reply to this comment

    我用ubuntu 7.10,已安装中文语言包,为何在kde4下中文文件和文件夹乱码?在gnome下却不会

  21. 21 独立的圆 Commented @ 2008-01-14 16:40Reply to this comment

    文件内容不乱码,只有文件和文件夹名字乱码

  22. 22 allbluedream Commented @ 2008-01-14 16:46Reply to this comment

    我装完以后就直接删了 KDE4存心不让人在桌面上放图标啊 那种排列方法简直让人无法理解 再加上还是不能隐藏~后缀的备份文件,我是彻底无语了 usability完全不能跟Gnome相比 我还是继续在G下面用一些K程序算了,比如AmaroK

  23. 23 Ivan Chen(西滨) Commented @ 2008-01-14 17:00Reply to this comment

    能在G下同时用kde3和kde4的程序吗?

  24. 24 zhainx Commented @ 2008-01-14 17:06Reply to this comment

    中文支持问题?

  25. 25 wx Commented @ 2008-01-14 17:20Reply to this comment

    KDE4目前还有很多问题的.。。还是等稳定一点出来再说吧

  26. 26 puNk!d Commented @ 2008-01-14 17:24Reply to this comment

    在抱怨KDE4.0.0之前,大家还是先看下这篇文章

    KDE 4.0.0 is our "will eat your children" release of KDE4, not the next release of KDE 3.5.

    这也是很多distro不把它加入稳定源的原因。

  27. 27 Jim Commented @ 2008-01-14 18:11Reply to this comment

    执行以下命令后: pacman -S qt pacman -S strigi soprano telepathy-qt tapioca-qt qimageblitz qca pacman -Rd qt pacman -S qtmod

    还是有以下问题,请问是为什么呢? resolving dependencies... looking for inter-conflicts... error: failed to prepare transaction (could not satisfy dependencies) :: qca: requires qt>=4.3.2 :: qimageblitz: requires qt>=4.3.2 :: soprano: requires qt>=4.3.2 :: strigi: requires qt>=4.3.2 :: tapioca-qt: requires qt>=4.3.2 :: telepathy-qt: requires qt>=4.3.2

  28. 28 nihui Commented @ 2008-01-14 18:24Reply to this comment

    在 MagicLinux 上安装 KDE 4.0.0

    http://www.linuxfans.org/bbs/thread-182132-1-1.html

  29. 29 Toy Commented @ 2008-01-14 18:47Reply to this comment

    @fireflyoo, nihui: 感谢补充。

  30. 30 jsphh Commented @ 2008-01-14 19:39Reply to this comment

    照上面的步驟裝了以後進不了gnome啊,有誰可以幫忙? 我本來用的是ubuntu 710,現在在nvidia的splash screen出現以後就會卡住了,就算移除掉kde還是進不了gnome。

  31. 31 eagle Commented @ 2008-01-14 20:56Reply to this comment

    进去又出来了,还是gnome吧

  32. 32 moonick Commented @ 2008-01-15 0:41Reply to this comment

    Ubuntu7.10照所示方法安装成功。 安装KDE4 core后建议用新德里搜索“KDE Zh” 把搜到的语言包装上,然后登录在KDE的系统设定里设置为中文环境再注销再重新登录就可以了。 很新鲜,但是很不习惯。常用的G程序都能用。wine的星际白屏…… 感觉打开文件夹很慢(内有2G的小文件……) 各种程序崩溃10次……系统完全停止响应一次……按电源键了…… 初次接触KDE,映像不太好,还是回到G学习一下…… 习惯compiz的效率了……

  33. 33 moonick Commented @ 2008-01-15 0:45Reply to this comment

    @jsphh Commented @ 2008-01-14 7:39 pm

    —————— 在会话里面设置Gnome为默认。应该就可以了。 另外装了新立得的KDE4 zh包之后没有乱码了。 我装了带ubuntu标志的两个包,还有kde-l10-zh_CN一共三个就可以了。

  34. 34 yeah Commented @ 2008-01-15 11:05Reply to this comment

    请问怎么进入网上邻居啊?目前在用nautilus代替。

  35. 35 yegle Commented @ 2008-01-16 14:24Reply to this comment
    Toy Commented @ 2008-01-14 11:11 am @yegle: 是 Shutter Reloaded。

    thx

  36. 36 yking Commented @ 2008-01-19 11:45Reply to this comment

    pacman -S strigi soprano telepathy-qt tapioca-qt qimageblitz qca

    其中“strigi soprano telepathy-qt tapioca-qt qimageblitz qca”这些包在那个源里面有啊?我这里怎么一个也找不到! 请各位大侠帮忙

  37. 37 Tristan Commented @ 2008-01-19 13:43Reply to this comment

    opensuse可以一键安装,很方便,谢谢这么好的文章

  38. 38 fcicq Commented @ 2008-01-22 23:49Reply to this comment

    Gentoo Users ... 没什么可说的, 一篇官方出品的文章.

    http://www.gentoo.org/proj/en/desktop/kde/kde4.xml

  39. 39 SecretZero Commented @ 2008-02-14 10:35Reply to this comment

    顶~楼主强~~!!!! 正需要这个~!

    貌似,Ubuntu上没有中文。

  40. 40 SecretZero Commented @ 2008-02-14 14:24Reply to this comment

    Arch Linux 上的mod不能用啊。

  41. 41 coolhair Commented @ 2008-02-27 13:28Reply to this comment

    Archlinux的所有源似乎都访问不到了.......