Minimal Debian + KDE Desktop

Net Install Overview

This is not complete yet, but I wanted to post it while everything was still fresh in my mind after a re-install of Debian. It needs a little tidying up and some body out of parts which I will do.

Debian basic install with no standard desktop selected. This setup will allow for a lean fast system that only has the apps you want or need. It means a bit of work initially at the setup stage but the payback is a small fast system.

We can install things later as needed. I will flesh out this how to with more details, soon. The part I have missed is the Debian Operating System install is almost self installing. It requires only a small amount of data input to get it going.

Items Still To Do
Automatix wouldn't install got an error message.
Just read automatix is no longer developed or supported. In its place is Ultamatix
I'll look at ???maybe??? installing it

Check you download the i386 net install image and not AMD64. AMD64 packages are incomplete and many are broken or have dependency issues.

Base Operating System Install

Download latest Debian testing and burn to CD. Boot from CD and select text install (not GUI).

[ Add actual install details later... ]

You're finished. Remove CD and reboot system.

Login to system with username and password added during install. Change to root user:

$ su

Package Download - aptitude

An overview of what we're gonna do:

01. xserver-xorg-core xorg
02. kde-core. When kde starts first-time set speed to low for faster response.
03. Edit apt-get sources file. Add non-free contrib
04. Install msttcorefonts
05. Install gtk-qt-engine
06. copy .Xdefaults to ~
07. copy .bashrc to ~
08. change icons on panel
09. Install kword
10. install iceweasel
11. install ksnapshot
12. install kpdf
13. Install gtk-qt-engine
14. Install netselect-apt
15. Install Tahoma fonts to ~/.fonts dir
16. install adblock,
17. install adblock filterset.G updater
18. install adblock element hiding helper
19. install flashblock
20. Restart firefox/iceweasel
21. add filterset.G subscription - Easylist
22. add filterset.G subscription - Filter von Dr Evil
23. install amarok
24. install kwrite
25. install kate
26. change fonts - kate
27. change fonts - kwrite
28. install mplayer
a. install codecs pack
download codecs from
unzip and copy contents to /usr/local/lib/codecs or /usr/lib/codecs.
Check the enclosed README file for details
b. install new mplayer skin
download skin from skins dir:
unzip and copy to skins directory in your home directory:
Start mplayer, right click on GUI and select skin browser, click OK.
Restart mplayer
29. Adjust focus to follow mouse
30. Add firefox to panel and change icon
31. Add kwrite to panel and change icon (under mimetype)
32. Change home button for system (under devices)
33. Add flashplayer plugin for firefox.
cd .mozilla in home dir
create dir called plugins
download from adobe
open gzip
copy to plugins dir
restart firefox
34. remove google search box from firefox tool bar
35. remove home icon from firefox tool bar
36. Delete most visited from firefox toolbar
37. delete get started from firefox toolbar
38. rename latest downloads to BBC
39. add googel search to toolbar
40. add to toolbar
41. move adblock plus icon to status bar
42. install kaffeine
43. firefox main - home page show blank page
44. firefox main - downloads ask me where to save files
45. firefox content - disable java
46. firefox content - javascript - disable advanced entries
47. firefox content fonts - georgia, tahoma, courier new
48. ffox content link colors - dark red
49. ffox privacy cookies till close ffox
50. ffox advanced warn on redirect
51. Setup Sound install ALSA:
aptitude install alsa-base alsa-utils alsa-oss
configure alsa: alsaconf
mostly accept defaults. answer as best you can.
check volume settings: alsamixer
adjust if necessary. close alsamixer.
save settings with alsactl store
alsactl store
Play a sound file. If you don't have a media player, install one.
52. install kmix: aptitude install kmix
53. install Conky
copy .conkyrc file to home dir
Make conky autostart in kde by creating a symlink in autostart dir
cd .kde/Autostart
ln -s /usr/bin/conky conky
54. install fortune: aptitude install fortune
add following to .profile
if [ -x /usr/games/fortune ] ; then
This will give a fortune each time xterm is launched
The above is the clean version
If you want the offensive version, add it after you install fortune:
aptitude -y install fortunes-off
You can also add BOFH quips if you like:
aptitude -y install fortunes-bofh-excuses

55. Setup Printing
aptitude -y install cups
Now CUPS is installed, here are the steps to getting it going:
As root
1.) Open file /etc/cups/cupsd.conf and comment out the following:
# AuthType, AuthClass and AuthGroupName
2.) Open file /etc/hosts.allow and add:
cupsd : ALL
3.) Copy the printer PPD file to cups model directory:
# create model dir: mkdir /usr/share/cups/model
# cp SM3050.PPD /usr/share/cups/model/

If you have installed the printer on a windows machine the PPD file is in the printer directory. For example my Samsung printer, I found the Samsung.PPD file I needed in:

C:\Program Files\Samsung\Samsung ML-3050 Series PS\Install\PRINTER\PS\English\WINXP2K\SM3050.PPD

So find your printer directory in C:\Program Files\ and have a dig around. Remember, your looking for a file with .ppd extension. You search on the extension if you wish.

4.) Restart Cups server
# /etc/init.d/cups restart
5.) Run the following command:
/usr/sbin/lpadmin -p Samsung -E -m SM3050.PPD -v socket://
Set default printer
/usr/sbin/lpadmin -d Samsung
6.) Check the status of the printer:
# lpstat -p -d
printer Samsung is idle. enabled since Tue 21 Oct 2008 15:00:51 BST
system default destination: Samsung
7.) Set users in lpadmin
# lpadmin -p Samsung -u allow:all
8.) Check print status
# lpstat -s
system default destination: Samsung
device for Samsung: socket://
Add entry to hosts.deny: ALL: ALL # blocks all services to all hosts
Add entry to hosts.allow ALL: # allows all services to address range

CUPS Setup:
After installation in browser add address: http://localhost:631
This will open a window to configure the cups server.
Click add printer
Add Name: Samsung
Add Location: none
Add Description: Samsung Mono Laser Printer > Continue
Device: Internet Printing Protocol (ipp) > Continue
Device URI: socket://
Make/Manufacturer: Samsung
Provide a PPD File: Browse
Select Samsung.PPD file already saved
Click > Add Printer
Dialogue box opens requesting User Name and Password
User Name: root
Password: root's password
Dialogue closes and confirms Samsung has been added successfully
Click Printers tab
Click Print Test Page
Printer should generate page if its installed and setup correctly.

Now we need to setup KDE printer subsystem.
Remember KDE is not the OS its only a layer that sits on top of the OS
KDE can only offer services available from the OS. Soooo
if printing is not setup in the OS, ie CUPS not installed
KDE printing will not work, or cannot offer print services.

After CUPS is set up and you have printed a test page the Samsung printer will show up in KDE.

Kcontrol > Peripherals > Printers
Opens dialogue box.
Click Print system currently used:
Normally set to: Generic UNIX LPD Print System (default)
Click drop down arrow and select
CUPS (Common UNIX Print System)
Click Administrator Mode
In Dialogue Box give root password:
Printer Box Opens
Click Settings
Set page size: A4
Click OK
Close Printer Box

Open KDE app such as kwrite and test printing.

Configure KDE

Appearance Themes
Background: desktop color to R:0 G:0 B:30 HTML:#00001E
- Colors: leave for moment. I want to experiment later.
- Fonts: tahoma 8 trebuchet 10 courier new 9. Enable AntiAlias. Force fonts DPI: 96DPI
- GTK Styles Fonts: Use KDE style in GTK apps
- Use KDE fonts in GTK apps
- Firefox: fix buttons
- Icons: leave
- Launch Feedback: none
- Screensaver: Blank
- Splashstyle: leave
- Style: leave
- Theme: leave
- Window Decor: Animate buttons - No
- Buttons tab: Use custom titlebar button: On all desktops
- show icons: no
- show tooltips: no
- Multiple Desktops
- Mouse wheel switches desktop: yes
- Nr desktops: 4
- Panels:
- Animate hiding: no
- Taskbar: show window all desktops: no
Window Behaviour:
- focus follows mouse
- titlebar actions: title wheel event: shade/unshade
- Moving:
- display contents move: no
- display contents resize: no
- display window geometry: yes
- animate minimize/restore: no
- allow move/resize maximized windows: yes
- border snap: 15px
- window snap: 15px
- snap on overlap
Window specific settings:
- new: window
- description: Iceweasel Browser
- Window class: Iceweasel - exact match. Match whole class: no
- window role: browser - exact match.
- Window Extra:
- Window types: Normal window
- Geometry: size: Remember: 700,900
- Preferences: leave
- Workarounds: leave
Internet & Network
- leave
KDE Components
- leave
- leave
Regional & Access
- keyboard layout: enable layouts: yes
- layout: United Kingdom: GB
- Keyboard model: Generic 105-key international
- Security & Privacy
- leave
Sound & Multimedia
- leave
System Admin
- Date/Time: leave
- Font: leave
- Login: leave
- Paths: change

Restart X/KDE for changes to take affect in firefox/GTK apps

Configure Konqueror Browser

Sets konqueror window size to 800x1000 each time it opens.
- Fix Konqueror window size to: 800x1000
- Settings: Web Browsing: Save URL in profile: no
- Save window size in profile: yes
- Save and close

- Configure Konqueror
- Behaviour: leave
- Appearance: leave
- Previews: leave
- File assoc: leave
- Web Behaviour: Show only marked bookmarks in bookmarks toolbar
- Tabbed browsing: Open links in tabs: yes
- Animations: show only once
Java & Javascript
- Java: disable
- Javascript Policy: Open new windows: deny
Adblock Filters
- Enable Filters: yes
- Download filterset.G text file and import
- Minimum font size: 7px
- Medium font size: 9px
- Standard: Tahoma
- Fixed: Courier New
- Serif: Georgia
- Sans serif: Verdana
- Cursive: Sans serif
- Fantasy: Sans serif
Web Shortcuts: leave
History Sidebar: leave
- All cookies as session cookies: yes
Cache: leave
Proxy: leave
Stylesheets: leave
Crypto: leave
Browser ID: Send id: no
Plugins: leave
Performance: leave