Übersetzung: [:Manual-HowtoPolish:Polski],[:fr/ManualHowto:Français],["Manual-?HowtoSpanish"],["Manual-?HowtoDutch"].

Wie man verschiedene Software unter Debian installiert und konfiguriert. Schritt für Schritt.

?TableOfContents(2)

Keywords: Debian GNU Linux, Manual, How To, How-To,howto, Installation, Configuration, Easy, From Windows XP to Debian, Wireless WPA2, anti-spam, fax, Documentation, MoinMoin Wiki, Linux, servers, Windows, Windows NT, Documentation, howto, HowTo, vmware, installation, vmwaretools, vmware tools, vm, tools, tool, AMD64, 64 bit

Debian Services

Postfix unter Debian installieren und konfigurieren

Siehe ["Postfix"]

Debian Postfix und smtp.sbcglobal.yahoo.com

Siehe ["Postfix"]

Ampache (Musik-Server) unter Debian

Siehe ["Ampache"]

MoinMoin Wiki mit Apache2 und Mod Python

Siehe ?ApachePython

Fax Server

Siehe HylaFax

Netzwerk Zeit-Synchronisation

Siehe ["NTP"]

FTP Server

Installation

aptitude update
aptitude install vsftpd

Konfigurieren

vi /etc/vsftpd.conf

anonymous_enable=NO

write_enable=YES

ftpd_banner=Welcome to example.com FTP service. Enjoy.

local_enable=YES

Fotoalben-Server

http://lucasmanual.com/mywiki/PhotoAlbumServer

Domain Controller, Samba

http://lucasmanual.com/mywiki/SambaDomainController

NFS Server

Siehe Debian Wiki-Seite ["NFSServerSetup"].

VMware-Server unter Debian

http://lucasmanual.com/out/Debian-vmware-windows-xp.jpg

VMware Kernel Upgrade

aptitude update
aptitude install linux-headers-$(uname -r)
/usr/bin/vmware-config.pl

VMware unter amd64

aptitude install linux-headers-`uname -r` libx11-6 libx11-dev x-window-system-core x-window-system xspecs libxtst6 psmisc build-essential ia32-libs

Debian Anti-Spam Anti-Virus Gateway Email-Server

http://lucasmanual.com/mywiki/DebianAntiSpamGatewayEmailServer

RSA Authentifizierungs-Manager

Drucken unter Debian

http://lucasmanual.com/mywiki/DebianPrinting

Debian Konfiguration

Von dhcp zu statischer IP wechseln

iface eth0 inet static
[tab]address 192.168.1.200
[tab]network 192.168.1.0
[tab]netmask 255.255.255.0
[tab]broadcast 192.168.1.255
[tab]gateway 192.168.1.1

#iface eth0 inet dhcp
iface eth0 inet static
    address 192.168.1.200
    network 192.168.1.0
    netmask 255.255.255.0
    broadcast 192.168.1.255
    gateway 192.168.1.1

iface eth0 inet static
    address 192.168.5.200
    network 192.168.5.0
    netmask 255.255.255.0
    broadcast 192.168.5.255
    gateway 192.168.5.254

Subversion

apt-cache search svn
aptitude install subversion

/home/lucas/mein_bestes_projekt

/home/lucas/mein_bestes_projekt/trunk/install.c
/home/lucas/mein_bestes_projekt/trunk/readme.txt

/usr/local/src/

svnadmin create /usr/local/src/mein_bestes_projekt

svn import /home/lucas/mein_bestes_projekt file:///usr/local/src/mein_bestes_projekt -m "initial import"

svn checkout file:///usr/local/src/mein_bestes_projekt

/home/lucas/new_folder/mein_bestes_projekt

* Optional könntest du Subversion über SSH nutzen. Dazu musst du Subversion auf deinem Computer installieren und startest danach:

svn co svn+ssh://dein.remote-server.de/usr/local/src/mein_bestes_projekt

* Erledigt. Jetzt müssen wir nur noch das Programm wachsen lassen.

Multimedia-Player und Codecs unter Debian

aptitude update
aptitude install amarok

Um das komplette Medien-Erlebnis in Debian zu erfahren, musst du folgendes tun:

/etc/apt/source.list

Für meine Version wäre das:

deb http://mirrors.ecology.uni-kiel.de/debian/debian-multimedia stable main

wget http://www.debian-multimedia.org/pool/main/d/debian-multimedia-keyring/debian-multimedia-keyring_2007.02.14_all.deb
dpkg -i debian-multimedia-keyring_2007.02.14_all.deb

aptitude update
aptitude install xine-ui

aptitude search libdvdcss2

aptitude install w32codecs

aptitude install w64codecs

Ati Binärtreiber

Schritte übernommen von [http://michael.susens-schurter.com/blog/2006/11/20/installing-fglrx-ati-drivers-in-debian-etch/ Michael Schurter's blog]. Tipps übernommen aus dem [http://gentoo-wiki.com/HOWTO_ATI_Drivers Gentoo wiki].

aptitude update
aptitude install fglrx-control fglrx-driver fglrx-kernel-src module-assistant mesa-utils

cd /usr/src

module-assistant prepare

module-assistant a-i fglrx

cp /etc/X11/xorg.conf /etc/X11/xorg.conf.heutigesdatum

Section "Device"
   Driver "fglrx"
   Option "VideoOverlay" "on"
EndSection

Section "Extensions"
   Option "XVideo" "Enable"
EndSection

/etc/init.d/gdm stop

Oder den KDE Display Manager:

/etc/init.d/kdm stop

Oder den X Display Manager:

/etc/init.d/xdm stop

modprobe -r radeon

modprobe fglrx

/etc/init.d/gdm start

glxinfo | grep direct

xvinfo

Windows-Freigaben einbinden

aptitude update
aptitude install smbfs

mkdir irgendeinordner

mount -t smbfs -o username=administrator,password=passwort
//windowsservername/ordner /home/lucas/irgendeinordner

Falls du nicht möchtest, dass das Passwort erscheint, gehst du wie folgt vor:

mount -t smbfs -o username=administrator //windowsservername/ordner /home/lucas/irgendeinordner

[Optional] Du kannst administrator durch deinen Benutzernamen ersetzen. Außerdem kannst du windowsservername durch eine IP-Addresse ersetzen: //192.168.1.10/ordner ...

Eine Netzwerkkarte hinzufügen

lspci -v

ifconfig eth1 hw ether 00:00:..:00 uo

Raid 1 Setup

http://lucasmanual.com/mywiki/DebianRAID

Poweruser

Sudo

aptitude update
aptitude install sudo

visudo

deinbenutzername    ALL=(ALL) ALL

Root-Zugriff via SSH deaktivieren

vi /etc/ssh/sshd_config

PermitRootLogin no

/etc/init.d/ssh force-reload

Security Events
=-=-=-=-=-=-=-=
Feb  5 07:21:15 localhost sshd[8586]: Failed password for root from xx.xx.xx.xx port 60618 ssh2
Feb  5 07:21:15 localhost sshd[8588]: Failed password for root from xx.xx.xx.xx port 60637 ssh2

AWStats unter Debian

aptitude update
aptitude awstats

cp /usr/share/doc/awstats/examples/apache.conf /etc/apache2/conf.d/awstats

LogFile="/var/log/apache2/access.log"
SiteDomain="mysite.org"
LogFormat=1

chmod o+r /var/log/apache2/access.log

 create 644 root adm

prerotate
    /usr/lib/cgi-bin/awstats.pl -config=awstats.www.mysite.org.conf  -update
  endscript

/var/log/apache2/*.log {
        weekly
        missingok
        rotate 52
        compress
        delaycompress
        notifempty
        create 644 root adm
        sharedscripts
        prerotate
            /usr/lib/cgi-bin/awstats.pl -config=awstats.conf -update        endscript
        postrotate
                if [ -f /var/run/apache2.pid ]; then
                        /etc/init.d/apache2 restart > /dev/null
                fi
        endscript
}

/etc/init.d/apache2 reload

http://localhost/cgi-bin/awstats.pl?config=awstat.conf or http://www.mysite.com/cgi-bin/awstats.pl?config=awstat.conf [Optional]

RedirectMatch ^/logs /cgi-bin/awstats.pl?config=awstat.conf

http://www.mysite.com/logs

unixODBC

aptitude update
aptitude install tdsodbc unixodbc

vi /etc/freetds/tds.driver.template

[TDS]
Description     = FreeTDS Driver for Linux & MSSQL on Win32
Driver          = /usr/lib/odbc/libtdsodbc.so
Setup           = /usr/lib/odbc/libtdsS.so

vi /etc/freetds/tds.dsn.template

[DSN_NAME]
Description     = Descripton of you DSN connection.
Driver          = TDS
Trace           = No
Database        = DefaultDatabase [replace with your database name]
Server          = mysqlserver.inter.net [replace with your SQL server's host,ip]
Port            = 1433 [replace with the port that SQL is listening on]

odbcinst -i -d -f /etc/freetds/tds.driver.template

odbcinst -i -s -l -f /etc/freetds/tds.dsn.template

odbcinst -i -s -f /etc/freetds/tds.dsn.template

isql -v DSN_NAME username password

**********************************************
* unixODBC - isql                            *
**********************************************
* Syntax                                     *
*                                            *
.
.
.
more
.

Troubleshooting

telnet myserver 1433

Trying 10.3.3.10...
Connected to myserver.
Escape character is '^]'.

If you still get connection refused try telnet from windows and see if you get same answer.

Apt Preferences

vi /etc/apt/preferances

Package: *
Pin: release a=stable
Pin-Priority: 600
Package: *
Pin: release a=testing
Pin-Priority: 450
Package: *
Pin: release a=unstable
Pin-Priority: 400

aptitude update

Debian User Configuration

Change default editor

aptitude update
aptitude install vim

update-alternatives --config editor

Change default pdf viewer

Java Runtime Enviroment (JRE)

You will need to add 'non-free' to your /etc/apt/source.list then do:

aptitude update
aptitude install sun-java5-jre
aptitude install sun-java5-plugin

If you want you can take away 'non-free' when done, and do aptitude update.

aptitude update
aptitude install sun-java5-jdk

Testing Version of Debian (lenny) contains Java 6.

Flash player

aptitude update
aptitude install flashplugin-nonfree

cp /home/lucas/Desktop/libflashplayer.so /usr/lib/mozilla/plugins/
cd /usr/lib/iceweasel/plugins/
ln -s /usr/lib/mozilla/plugins/libflashplayer.so

Laptop and Debian

Intel ipw2200 wireless card

http://ipw2200.sourceforge.net/firmware.php?fid=7

tar xzvf ipw2200-fw-3.0.tgz -C /lib/firmware
mv /lib/firware/ipw2200-fw-3.0/* /lib/firmware

uname -a

aptitude update
aptitude install ipw2200-modules-2.6.18-5-486
or
aptitude install ipw2200-modules-$(uname -r)

iwconfig

Authenticate with wpa using PSK TKIP

* Install wpasupplicant

aptitude update
aptitude install wpasupplicant

* Open /etc/network/interfaces

vi /etc/network/interfaces

*If you see "iface eth2..." add the following lines, but change ssid and password:

iface eth2 inet dhcp
wpa-ssid thisismynetworkname
wpa-key_mgmt WPA-PSK
wpa-proto WPA
wpa-pairwise TKIP
wpa-group TKIP
wpa-psk thisismypassword
wpa-driver wext

*Exit, and now type:

ifup eth2

*Done. If you want you your wireless card to connect each time you boot your computer add this above "iface eth2.."

auto eth2

*Done. [Optional](see the [:WPA:WPA page] for status on wpa support in debian)

Broadcom (Dell) Wireless Card 1390

See: ["bcm43xx"]

Intel Graphic card - Higher reolution

aptitude install 915resolution

915resolution -l

sudo 915resolution 5c 1280 800 24

User Manuals

DVD9 to DVD5

[http://lucasmanual.com/mywiki/DVD9toDVD5 DVD9toDVD5]

DVD9 to AVI

[http://lucasmanual.com/mywiki/DVD9toAVI DVD9toAVI]

rsync

[http://lucasmanual.com/mywiki/rsync rsync]

Troubleshooting

SSH terminal connection timeout

Read from remote host example.com: Connection reset by peer
Connection to example.com closed

ClientAliveInterval 150

Dynamic MMap ran out of room

Reading package lists... Error!
E: Dynamic MMap ran out of room
E: Error occurred while processing vlc (NewVersion1)

apt-get update -o APT::Cache-Limit=25165824

MySQL

[http://lucasmanual.com/mywiki/MySQL MySQL]

Useful Debian Programs

Digital Camera

* Digikam, for all your digital camera needs

aptitude update
aptitude install digikam

CD and DVD

* K3B, for burning cd/dvd.

aptitude update
aptitude install k3b

Players and Viewers

Flash

aptitude update
aptitude install flashplugin-nonfree

How to Remote connecto to windows

aptitude update
aptitude install rdesktop

rdesktop ip.add.re.ss
or
rdesktop remoteconnection.example.com