Übersetzung: English,Français,Dutch,Deutsch.

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

Schlüsselwörter: Debian GNU Linux, Manual, How To, How-To,howto, Installation, Konfiguration, Einfach, Von Windows XP zu Debian, Wireless WPA2, anti-spam, fax, Dokumentation, MoinMoin Wiki, Linux, Server, Windows, Windows NT, Dokumentation, howto, ?HowTo, vmware, installation, vmwaretools, vmware tools, vm, tools, tool, AMD64, 64 bit

Debian Services

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

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

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.

ATI-Binärtreiber

Schritte übernommen von Michael Schurter's blog. Tipps übernommen aus dem 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 install awstats

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

(Prüfe das Wort apache2 zwei Mal)

LogFile="/var/log/apache2/access.log"
SiteDomain="meineseite.de"
LogFormat=1

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

 create 644 root adm

prerotate
    /usr/lib/cgi-bin/awstats.pl -config=awstats.www.meineseite.de.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 oder http://www.mysite.com/cgi-bin/awstats.pl?config=awstat.conf [Optional]

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

http://www.meineseite.de/logs

unixODBC

aptitude update
aptitude install tdsodbc unixodbc

vi /etc/freetds/tds.driver.template

[TDS]
Description     = FreeTDS-Treiber für Linux & MSSQL unter Win32
Driver          = /usr/lib/odbc/libtdsodbc.so
Setup           = /usr/lib/odbc/libtdsS.so

vi /etc/freetds/tds.dsn.template

[DSN_NAME]
Description     = Beschreibung deiner DSN-Verbindung.
Driver          = TDS
Trace           = No
Database        = DefaultDatabase [ersetze durch den Namen deiner Datenbank]
Server          = mysqlserver.inter.net [ersetze mit der IP oder dem Hostnamen deines SQL-Servers]
Port            = 1433 [ersetze durch den Port, auf dem SQL lauscht]

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
.

Fehlerbeseitigung

telnet meinserver 1433

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

Falls deine Verbindung immer noch abgewiesen wird, versuche es von Windows aus mit Telnet und prüfe ob du dort die selbe Anwort bekommst.

Apt-Präferenzen

vi /etc/apt/preferences

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 Benutzerkonfiguration

Standard-Editor wechseln

aptitude update
aptitude install vim

update-alternatives --config editor

Standard-PDF-Viewer wechseln

Java Runtime Enviroment (JRE)

Du musst 'non-free' in deiner /etc/apt/source.list eintragen und dann folgendes tun:

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

Falls du möchstest kannst du non-free danach wieder aus der Liste entfernen und ein Aptitude-Update durchführen.

aptitude update
aptitude install sun-java5-jdk

Die Testing-Version von Debian (Lenny) enthält Java 6.

Laptop und Debian

Authentifizierung via WPA mit PSK TKIP

* Installiere wpasupplicant

aptitude update
aptitude install wpasupplicant

* Öffne /etc/network/interfaces

vi /etc/network/interfaces

*Falls du "iface eth2..." siehst, füge die folgenden Zeilen ein, aber verändere SSID und das Passwort:

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

*Verlasse die Datei und führe nun folgendes aus:

ifup eth2

*Fertig. Falls du möchtest, dass sich deine WLAN-Karte bei jedem Bootvorgang verbindet, füge folgendes über "iface eth2.." ein:

auto eth2

*Erledigt. [Optional] (wirf einen Blick auf die WPA-Seite, um den Status der WPA-Unterstützung von Debian zu sehen)

Intel Graphikkarte - Höhere Auflösung

aptitude install 915resolution

915resolution -l

sudo 915resolution 5c 1280 800 24

Fehlerbeseitigung

Zeitüberschreitung bei SSH-Terminalverbindungen

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