Tutorials/Modify KDE Software Defaults/zh-cn: Difference between revisions

From KDE UserBase Wiki
m (Created page with "教程/修改 KDE 默认设置")
 
m (Created page with "有3种基本情况时,您需要修改默认值: * 您是系统管理员,每天增加12个新用户。 你希望新用户拥有相同的设定但KDE Plasma桌面的默认...")
Line 1: Line 1:
<languages />
<languages />


There are 3 basic scenarios when you want to modify default settings:
有3种基本情况时,您需要修改默认值:
* You are system administrator and get a dozen new users every day. You want the new users to have certain settings that are not default for a KDE Plasma Desktop
* 您是系统管理员,每天增加12个新用户。 你希望新用户拥有相同的设定但KDE Plasma桌面的默认值不符合
* You are system administrator and want to change the desktop or system settings of all your users. Logging in as each user and do the changes in [[Special:myLanguage/System_Settings|System Settings]] is not an option.
* 您是系统管理员,需要修改所有用户的桌面或系统设定。 登入为该用户再用[[Special:myLanguage/System_Settings|系统设置]]修改并不是一种好选择。
* You have several KDE desktop machines: maybe a computer at work behind a proxy, a machine at home and some virtual machines for testing. You re-setup computers frequently and want your settings to be rolled out identically afterwards
* 你有几台KDE 桌面的机器,也许在工作中的计算机在proxy内,一台在家里和一些进行测试的虚拟机。您要频繁地重新安装计算机,希望您的设定将再次套用。


In any case you will have to make changes to the setting files in ~/.kde or ~/.kde4 or /usr/local/share or /usr/share.  
In any case you will have to make changes to the setting files in ~/.kde or ~/.kde4 or /usr/local/share or /usr/share.  

Revision as of 13:43, 6 September 2011

有3种基本情况时,您需要修改默认值:

  • 您是系统管理员,每天增加12个新用户。 你希望新用户拥有相同的设定但KDE Plasma桌面的默认值不符合
  • 您是系统管理员,需要修改所有用户的桌面或系统设定。 登入为该用户再用系统设置修改并不是一种好选择。
  • 你有几台KDE 桌面的机器,也许在工作中的计算机在proxy内,一台在家里和一些进行测试的虚拟机。您要频繁地重新安装计算机,希望您的设定将再次套用。

In any case you will have to make changes to the setting files in ~/.kde or ~/.kde4 or /usr/local/share or /usr/share.

/etc/skel

When a new user is created, the content from /etc/skel is copied to his home directory. If you want to change the settings for all future users, just change the files in /etc/skel.

Examples

To change the default browser, use the program System Settings. However, there are situations where you cannot call systemsettings. In this case you can use the following script. It changes the default browser to Firefox:

#!/bin/bash
# This file sets up a computer as tstaerk likes it. Call it after you have performed the OS installation.
# 1. set default browser to firefox # 1.1. for SUSE Linux, where we have to look in .kde4 instead of .kde # The key for default browser is BrowserApplication. cd cd .kde4/share/config # first delete all the old entries for BrowserApplication sed -i 's/BrowserApplication\[\$e\]=.*//g' kdeglobals # add BrowserApplication to the General section if a General section exists sed -i 's/\[General\]/\[General\]\nBrowserApplication\[\$e\]=!firefox/g' kdeglobals # add a General section and the key BrowerserApplication if no General section exists grep "\[General\]" kdeglobals || echo -e "\n[General]\nBrowserApplication[\$e]=!firefox" >> kdeglobals