Difference between revisions of "KDE administration"

From ThorstensHome
Jump to: navigation, search
(New page: tweedleburg:~/.kde4/share/config # cat plasma-appletsrc | grep wallpaper= wallpaper=/usr/share/wallpapers/alta-badia.jpg)
 
 
Line 1: Line 1:
 
  tweedleburg:~/.kde4/share/config # cat plasma-appletsrc | grep wallpaper=
 
  tweedleburg:~/.kde4/share/config # cat plasma-appletsrc | grep wallpaper=
 
  wallpaper=/usr/share/wallpapers/alta-badia.jpg
 
  wallpaper=/usr/share/wallpapers/alta-badia.jpg
 +
 +
<pre>
 +
tweedleburg:~ # cat setup.sh
 +
#!/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 for KDE 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
 +
 +
# 2. allow root logins
 +
sed -i "s/AllowRootLogin=false//" /usr/local/share/config/kdm/kdmrc
 +
</pre>

Latest revision as of 13:18, 5 April 2009

tweedleburg:~/.kde4/share/config # cat plasma-appletsrc | grep wallpaper=
wallpaper=/usr/share/wallpapers/alta-badia.jpg
tweedleburg:~ # cat setup.sh
#!/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 for KDE 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

# 2. allow root logins
sed -i "s/AllowRootLogin=false//" /usr/local/share/config/kdm/kdmrc