Jump to content

Archive:Projects/KDE on Windows/Installation (zh CN): Difference between revisions

From KDE TechBase
BiAji (talk | contribs)
No edit summary
BiAji (talk | contribs)
No edit summary
Line 63: Line 63:
它将启动诸如dbus-daemon、klauncher和kded4这样的背景KDE应用程序以及服务。
它将启动诸如dbus-daemon、klauncher和kded4这样的背景KDE应用程序以及服务。


The first time you save or open, another background application, kioslave, will start.
您首次进行保存或打开的操作时,另一个背景程序kioslave将随之启动。


These background KDE applications and services remain running after you close KDE applications.  If you want you can shut them down by running <tt>kdeinit4 --terminate</tt> from a command prompt.
这些KDE背景应用程序以及服务将在您关闭KDE应用程序之后持续运行。如果您想关闭它们,您可以在命令行模式执行<tt>kdeinit4 --terminate</tt>


You can run <tt>kdeinit4 --list</tt> from a command prompt to see what processes are running. <tt>kdeinit4</tt> has other useful options documented elsewhere.
您也可以在命令行模式用<tt>kdeinit4 --list</tt>来观察哪些进程在运行。您可以在别的文档中发现<tt>kdeinit4</tt>其余有用的选项。


==调优==
==调优==
Line 73: Line 73:
Unless otherwise stated you make all the setting changes below by editing the <tt>kdeglobals</tt> file in the directory <tt>%APPDATA%\.kde\share\config\</tt> with any text editor (such as kwrite).
Unless otherwise stated you make all the setting changes below by editing the <tt>kdeglobals</tt> file in the directory <tt>%APPDATA%\.kde\share\config\</tt> with any text editor (such as kwrite).
(Note that for versions older than 4.0.85 the file is in <tt>%USERPROFILE%\.kde\share\config\kdeglobals</tt>.)
(Note that for versions older than 4.0.85 the file is in <tt>%USERPROFILE%\.kde\share\config\kdeglobals</tt>.)
%APPDATA% (and %USERPROFILE%) is different for different Windows users/versions/locales; in a command prompt, entering the command <b><tt>cd %APPDATA%</tt></b> will switch to it, effectively telling you what it is.
%APPDATA% (and %USERPROFILE%) is different for different Windows users/versions/locales; in a command prompt, entering the command <b><tt>cd %APPDATA%</tt></b> will switch to it, effectively telling you what it is.


===为widgets设置Oxygen风格===
===为widgets设置Oxygen风格===
The default KDE widget style on Windows is the native one. The Oxygen style installs with basic KDE installation (as a plugin library %KDEROOT%\lib\kde4\plugins\styles\oxygen.dll), so it can be used as well. To set it for a single user:
在Windows上,默认的KDE widget将使用本地风格。而基本KDE安装已经包含了Oxygen风格(以插件库的形式%KDEROOT%\lib\kde4\plugins\styles\oxygen.dll),因此,您也可以使用它。为当前用户单独设置:
# edit kdeglobals
#编辑kdeglobals
#locate the General section (a line containing the text "[General]"). If there is no General section, create one.
#定位General配置段(有"[General]"的那行)。如果没有General配置段,则创建一个。
#Within the General section ([General]), edit the line containing <tt>widgetStyle=....</tt> so that it reads <tt>widgetStyle=oxygen</tt>.  If there is no such <tt>widgetStyle=...</tt> line, create it.
#在General配置段([General])中,编辑如下行:
Newly started applications should be displayed with the Oxygen style now.
<tt>widgetStyle=....</tt>改为<tt>widgetStyle=oxygen</tt>。如果不存在<tt>widgetStyle=...</tt>行,则创建之。
新启动的应用将以Oxygen风格启动。


===为widgets设置Tahoma(Windows默认字体)===
===为widgets设置Tahoma(Windows默认字体)===
To set it for a single user:
为当前用户单独设置:
# edit kdeglobals
#编辑kdeglobals
#locate the General section (a line containing the text "[General]"). If there is no General section, create one.
#定位General配置段(有"[General]"的那行)。如果没有General配置段,则创建一个。
#Within the General section ([General]), add these two lines:
#在General配置段([General])中,添加如下两行:
<tt>font=Tahoma<br/>
<tt>font=Tahoma<br/>
menuFont=Tahoma</tt>
menuFont=Tahoma</tt>


Newly started applications should use this font now.
新启动的应用程序将由此使用新字体了。
<b>Note</b>: this works for any font you have installed.
 
<b>注意</b>:这对您已安装的所有字体都起效。


===改变鼠标动作为双击===
===改变鼠标动作为双击===
To change the mouse to use double click:
 
#Add a new section with a line:<br>
改变鼠标使用双击:
#添加包含如下行的新配置段:<br>
<tt>[KDE]<br>
<tt>[KDE]<br>
SingleClick=false</tt><br><br>
SingleClick=false</tt><br><br>
Newly started applications (Dolphin and Konqueror) should use double click now.
新启动的应用程序(Dolphin和Konqueror)将使用双击。
 
===改变国别设定===
===改变国别设定===
改变国别设定:
改变国别设定:
#添加如下配置段:<br>
#添加如下配置段:<br>
Line 106: Line 112:
Language=**</tt><br><br>
Language=**</tt><br><br>
将**更改为您所在国家的小写[http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 alpha-2国家代码],比如pl代表波兰。当然,您需要安装你本地配置的语言包。
将**更改为您所在国家的小写[http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 alpha-2国家代码],比如pl代表波兰。当然,您需要安装你本地配置的语言包。
===改变本地/KDE文件对话框===
===改变本地/KDE文件对话框===
选择本地或KDE文件对话框风格:
选择本地或KDE文件对话框风格:
#添加如下配置段:<br/>
#添加如下配置段:<br/>
Line 136: Line 144:
|amarok
|amarok
|packaged
|packaged
|Amarok music player
|Amarok音乐播放器
|-valign="top"
|-valign="top"
|Digikam
|Digikam
|packaged
|packaged
|Photo management
|照片管理器
|-valign="top"
|-valign="top"
|kdebase-apps
|kdebase-apps
|packaged
|packaged
|Konqueror, Dolphin, KWrite, folderview etc.
|Konqueror、Dolphin、KWrite、folderview等
|-valign="top"
|-valign="top"
|kdebase-workspace
|kdebase-workspace
|packaged
|packaged
|Plasma, Wallpapers, Solid, etc.
|Plasma、Wallpapers、Solid等
|-valign="top"
|-valign="top"
|kdeedu
|kdeedu
|packaged
|packaged
|Marble, Parley, KStars, KHangman, etc.
|Marble、Parley、KStars、KHangman等
|-valign="top"
|-valign="top"
|kdegames
|kdegames
|packaged
|packaged
|Kgoldrunner, Kpat, KMahjongg, etc.
|Kgoldrunner、Kpat、KMahjongg等
|-valign="top"
|-valign="top"
|kdegraphics
|kdegraphics
|packaged
|packaged
|Okular, kolourpaint, gwenview, etc.
|Okular、kolourpaint、gwenview等
|-valign="top"
|-valign="top"
|kdemultimedia
|kdemultimedia
|packaged
|packaged
|JuK, etc.
|JuK等
|-valign="top"
|-valign="top"
|kdenetwork
|kdenetwork
|packaged
|packaged
|Kopete, KGet, etc.
|Kopete、KGet等
|-valign="top"
|-valign="top"
|kdepim
|kdepim
|not packaged
|not packaged
|KMail, AKregator, etc.
|KMail、AKregator等
|-valign="top"
|-valign="top"
|kdesdk
|kdesdk
|packaged
|packaged
|Kate, Umbrello, etc.
|Kate、Umbrello等
|-valign="top"
|-valign="top"
|kdetoys
|kdetoys
|packaged
|packaged
|KTeatime, etc.
|KTeatime等
|-valign="top"
|-valign="top"
|kdeutils
|kdeutils
|packaged
|packaged
|KGpg, KWallet, Okteta, etc.
|KGpg、KWallet、Okteta等
|-valign="top"
|-valign="top"
|koffice
|koffice
|packaged
|packaged
|KWord, Krita, Karbon, etc. (Beta 3)
|KWord、Krita、Karbon等(Beta 3)
|-valign="top"
|-valign="top"
|ktorrent
|ktorrent
|packaged
|packaged
|the KTorrent utility
|KTorrent工具
|}
|}


[[Category: MS Windows]]
[[Category: MS Windows]]

Revision as of 05:10, 1 March 2009


Projects/KDE_on_Windows/Installation


Note
也许开发者们应该在这里概述KDE4在Windows上的情况,但是我们更鼓励用户在 Talk page?上谈谈他们的感想及经验。


为Windows开发的KDE安装程序(下称KDE On Win)

你可以用这个安装程序下载并安装多种你必须安装以使KDE在MS Windows上运行的程序的二进制包。KDE是免费并且开源的,因此你可以“抓住”源码并且编译出所有程序;但是为了方便他人(当然包括你),开发者们将这些源代码编译好,并且让他们在网上可以下载。

免责:这些是早些时候的作品,简言之,有的程序比其他程序运行得更好,而且有的程序可能会运行失败。

如果你遇到了任何问题,请在我们的邮件列表里面看看。

你也可以用KDE On Win程序在Windows上安装源代码和你需要在Windows上编译KDE4的包(如果你正在Windows上建立KDE4,你可能会更喜欢用一个成型的系统来建立KDE并满组它的最新的源代码的需求);你可以参阅入门/编译安装/KDE4/Windows

步骤简述

访问http://www.winkde.org/pub/kde/ports/win32/installer/

下载并保存最新的目录,比如 c:\KDE4

运行KDE On Win程序,下载你需要的包(参见#下载需要的包[1]

新建、添加一个你的lib目录,比如c:\KDE4\lib ,并加入到系统变量中(开始> "控制面板" >系统>高级" >环境变量,双击路径系统变量,并加入到你的PATH隔分号) 。

添加kdedirs环境变量(开始> "控制面板" >系统>高级" >环境变量,点击[新]用户变量和创建变量名kdedirs与变量值【你安装kde4所在的目录】 ,例如C :\ kde4 )

{临时}根据#post-install steps中的指示做[2]

试着运行一个在bin目录中的Qt程序,比如如linguist.exe

如果它运行了,试着运行一个KDE程序比如kwrite.exe。

下载需要的软件包

一个标准的KDE桌面环境是建立在许多lib库和软件包的基础之上的:这就是为什么每一个Exe(windows下的可执行程序)程序为什么相对来看起来都是那么小的原因。Windows上的KDE安装程序已经对依赖关系有了一些察觉,但是这些反应并不是完整的。因此,首先你应该花费一点时间来运行一个软件,以此你可以看见关于缺少Dll的警告。 如果你不打算从源代码中建立系统,不要选择“All”也不要点击“src”,这样你就不必下载每一个软件包的源代码。如果你不清楚你应该用那个包的话。 When you run KDE-installer for the first time, you'll see the welcome screen. Since it's your first launch leave the checkbox below unchecked. Proceed to the next screen, where you choose the KDE4 installation directory. It can be anything you prefer, e.g. C:\KDE4.

On the next screen, define who you are: End User or Developer. The End User installation installs only binary packages and libraries needed to run KDE application. Developer mode provides you with the source code for all packages needed to build KDE from scratch. If you have chosen to be a Developer, then you need to decide what compiler to use - MinGW or MSVC. In End User mode only MSVC packages are currently available.

Proceed to the next screen and there choose the directory where all the downloaded packages will be stored. Let it be something like C:\KDE4-tmp or C:\KDE4-packages.

The next screen will ask you to choose your internet connection type, particularly whether or not you're using a proxy. If you don't use a proxy server, just click 'Next'. If you are unsure of whether you're using proxy or if you have web browser configured to work with it properly, choose the second or the third option, according to your favourite web-browser. If you'd like to set all the settings manually - choose the last option and go ahead.

When you click the 'Next' button the (currently, rather short) list of available servers will be loaded and you could choose the one closest to you.

When you click 'Next' again, the list of all available packages will be loaded and processed, providing you with the list of package groups you can select for further installation. The short description next to each group of packages should make your choice easier. Select the packages you need. Proceed to the next screen.

Here you can see all the required dependencies, or software necessary to support the choices you've made. Click 'Next' to download them all.

After all the packages are downloaded they'll be unpacked and processed by the installer. The final window will tell that your KDE installation for Windows is complete.

KDE On Win安装程序存在的问题

如果安装期间出了问题,比如说:一个文件因为它仍在使用而无法被替换,安装程序仍然会报告成功安装。如果你在安装过程中见到任何警告抑或失败信息,退出并且重新运行安装程序。
如果这样做无效而您认为这是一个bug,请汇报至[3]

测试您的安装

浏览bin目录。

试试您是否可以执行Qt程序assistant.exe。 Qt程序相对于完整的KDE应用程序来说不需要那么多对系统的依赖性。

如果上述程序执行的不错,试试运行简单的KDE程序,比如kdegames程序包中的lskat.exe。

看看您的开始菜单:那儿应该有一个貌似KDE 4.XX.XX Release的新条目。在那里,您可以找到一些您已经安装的程序。

启动、关闭以及问题诊断

您运行的第一个KDE程序将自动调用kdeinit4.exe,KDE初始化程序。

它将启动诸如dbus-daemon、klauncher和kded4这样的背景KDE应用程序以及服务。

您首次进行保存或打开的操作时,另一个背景程序kioslave将随之启动。

这些KDE背景应用程序以及服务将在您关闭KDE应用程序之后持续运行。如果您想关闭它们,您可以在命令行模式执行kdeinit4 --terminate

您也可以在命令行模式用kdeinit4 --list来观察哪些进程在运行。您可以在别的文档中发现kdeinit4其余有用的选项。

调优

基本步骤:编辑kdeglobals文件

Unless otherwise stated you make all the setting changes below by editing the kdeglobals file in the directory %APPDATA%\.kde\share\config\ with any text editor (such as kwrite). (Note that for versions older than 4.0.85 the file is in %USERPROFILE%\.kde\share\config\kdeglobals.)

%APPDATA% (and %USERPROFILE%) is different for different Windows users/versions/locales; in a command prompt, entering the command cd %APPDATA% will switch to it, effectively telling you what it is.

为widgets设置Oxygen风格

在Windows上,默认的KDE widget将使用本地风格。而基本KDE安装已经包含了Oxygen风格(以插件库的形式%KDEROOT%\lib\kde4\plugins\styles\oxygen.dll),因此,您也可以使用它。为当前用户单独设置:

  1. 编辑kdeglobals
  2. 定位General配置段(有"[General]"的那行)。如果没有General配置段,则创建一个。
  3. 在General配置段([General])中,编辑如下行:

widgetStyle=....改为widgetStyle=oxygen。如果不存在widgetStyle=...行,则创建之。 新启动的应用将以Oxygen风格启动。

为widgets设置Tahoma(Windows默认字体)

为当前用户单独设置:

  1. 编辑kdeglobals
  2. 定位General配置段(有"[General]"的那行)。如果没有General配置段,则创建一个。
  3. 在General配置段([General])中,添加如下两行:

font=Tahoma
menuFont=Tahoma

新启动的应用程序将由此使用新字体了。

注意:这对您已安装的所有字体都起效。

改变鼠标动作为双击

改变鼠标使用双击:

  1. 添加包含如下行的新配置段:

[KDE]
SingleClick=false


新启动的应用程序(Dolphin和Konqueror)将使用双击。

改变国别设定

改变国别设定:

  1. 添加如下配置段:

[Locale]
Country=**
Language=**


将**更改为您所在国家的小写alpha-2国家代码,比如pl代表波兰。当然,您需要安装你本地配置的语言包。

改变本地/KDE文件对话框

选择本地或KDE文件对话框风格:

  1. 添加如下配置段:

[KFileDialog Settings]
Native=false


设置Native为true或false。

状态

Using kdewin-installer-gui-0.9.3.exe to install 4.1.3 packages:

  • starting a KDE program correctly starts dbus-daemon.exe
  • many games run
  • choosing File > Open correctly starts klauncher.exe, kioslave.exe and kded4.exe, and runs kbuildsycoca4.exe as needed.
  • Full-text search in khelpcenter does not work because Perl scripts are disabled.
  • Many applications have a generic icon in Windows Explorer.
  • Multimedia support should work, although video support might be missing (from the backend)

General notes:

  • There are many other KDE programs that are not part of KDE 4.0.0 and are not currently packaged for MS Windows.
  • By design, KDE-windows does not provide the full-blown KDE desktop, a preview on the plasma shell replacement will be available in 4.1.2 - Nevertheless this does not rely on kwin/X11 which means that desktop effects are not available
  • Some KDE programs use UNIX-specific features, such as konsole's use of pseudo-terminals, and thus are difficult (read: currently impossible) to port to MS Windows.

应用包目录及状态

package status contains applications
amarok packaged Amarok音乐播放器
Digikam packaged 照片管理器
kdebase-apps packaged Konqueror、Dolphin、KWrite、folderview等
kdebase-workspace packaged Plasma、Wallpapers、Solid等
kdeedu packaged Marble、Parley、KStars、KHangman等
kdegames packaged Kgoldrunner、Kpat、KMahjongg等
kdegraphics packaged Okular、kolourpaint、gwenview等
kdemultimedia packaged JuK等
kdenetwork packaged Kopete、KGet等
kdepim not packaged KMail、AKregator等
kdesdk packaged Kate、Umbrello等
kdetoys packaged KTeatime等
kdeutils packaged KGpg、KWallet、Okteta等
koffice packaged KWord、Krita、Karbon等(Beta 3)
ktorrent packaged KTorrent工具