Guide/Modificare le impostazioni predefinite del software KDE

From KDE UserBase Wiki
Revision as of 17:10, 15 October 2010 by Caig (talk | contribs) (Created page with "Ci sono 3 scenari base quando vuoi modificare le impostazioni predefinite: * Sei l'amministratore del sistema e hai una decina di nuovi utenti ogni giorno. Vuoi che i nuovi uten...")

Ci sono 3 scenari base quando vuoi modificare le impostazioni predefinite:

  • Sei l'amministratore del sistema e hai una decina di nuovi utenti ogni giorno. Vuoi che i nuovi utenti abbiano certe impostazioni che non sono predefinite per un Plasma Desktop di KDE
  • Sei l'amministratore del sistema e vuoi cambiare il desktop o le impostazioni di sistema di tutti i tuoi utenti. Accedere ad ogni utente e fare le modifiche in Impostazioni di sistema non è un opzione percorribile.
  • Hai parecchie macchine desktop con KDE: magari un computer a lavoro dietro un proxy, una macchina a casa e alcune macchine virtuali per fare test. Frequentemente cambi impostazioni ai computer e vuoi che poi le tue impostazioni siano implementate in modo identico.

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