Ubuntu 7.10 (Gutsy Gibbon) Server Installation: LAMP, Email, DNS, FTP, ISPConfig
Der GRUB boot loader wird installiert:
Die Installation des Basissystems ist nun abgeschlossen. Entferne die Installations CD und drücke Continue um das System neu zu starten:
Weiter im nächsten Schritt…
4 Das Root Konto aktivieren
Nach dem Neustart kannst Du Dich mit Deinem vorher eingerichteten Nutzenamen einloggen (z.B. administrator). Da wir alle Schritte dieser Anleitung als Root Benutzer durchgehen müssen, müssen wir das Root Konto nun aktivieren.
Führe den folgenden Befehl aus
sudo passwd root
und gib root ein Passwort. Danach werden wir Root Benutzer indem wir Folgenden Befehl ausführen
su
5 Installation des SSH Servers (Optional)
Falls Du während der vorherigen Installation den OpenSSH Server nicht installiert haben solltest, kannst Du dies nun nachholen:
apt-get install ssh openssh-server
Von nun an kannst Du einen SSH Client wie PuTTY verwenden und Deinen Arbeitsplatz mit dem Ubuntu Gutsy Gibbon Server verbinden und den verbleibenden Schritten dieses Tutorials folgen.
6 Installation von vim-full (Optional)
Ich werde in dieser Anleitung vi als Text Editor verwenden. Das Standardprogramm von vi zeigt ein merkwürdiges Verhalten auf Ubuntu und Debian; um dies zu beheben, installieren wir vim-full:
apt-get install vim-full
(Wenn Du einen anderen Text Editor verwendest, wie joe oder nano, kannst Du diesen Schritt auslassen.)
7 Das Netzwerk konfigurieren
Da der Ubuntu Installer unser Netzwerk so konfiguriert hat, dass es seine Netzwerkeinstellungen via DHCP bezieht, müssen wir dies nun ändern, da ein Server eine statische IP Adresse haben sollte. Bearbeite /etc/network/interfaces und gleiche es an Deine Wünsche an (in diesem Beispiel verwende ich die IP Adresse 192.168.0.100):
vi /etc/network/interfaces
# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet static address 192.168.0.100 netmask 255.255.255.0 network 192.168.0.0 broadcast 192.168.0.255 gateway 192.168.0.1 |
Starte Dein Netzwerk dann neu:
/etc/init.d/networking restart
Bearbeite dann /etc/hosts. So muss es aussehen:
vi /etc/hosts
127.0.0.1 localhost.localdomain localhost 192.168.0.100 server1.example.com server1 # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts |
Nun führe folgendes Kommando aus:
echo server1.example.com > /etc/hostname
/etc/init.d/hostname.sh start
Danach dies
hostname
hostname -f
Beide Befehle sollten nun server1.example.com ausgeben.
8 Bearbeite /etc/apt/sources.list Und aktualisiere Deine Linux Installation
Bearbeite /etc/apt/sources.list. Entferne die Installations CD aus der Datei oder kommentiere sie aus und vergewissere Dich, dass die universe und multiverse Paketdatenbanken aktiviert sind. So sollte es aussehen:
vi /etc/apt/sources.list
# # deb cdrom:[Ubuntu-Server 7.10 _Gutsy Gibbon_ - Release i386 (20071016)]/ gutsy main restricted #deb cdrom:[Ubuntu-Server 7.10 _Gutsy Gibbon_ - Release i386 (20071016)]/ gutsy main restricted # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb http://de.archive.ubuntu.com/ubuntu/ gutsy main restricted deb-src http://de.archive.ubuntu.com/ubuntu/ gutsy main restricted ## Major bug fix updates produced after the final release of the ## distribution. deb http://de.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted deb-src http://de.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team, and may not be under a free licence. Please satisfy yourself as to ## your rights to use the software. Also, please note that software in ## universe WILL NOT receive any review or updates from the Ubuntu security ## team. deb http://de.archive.ubuntu.com/ubuntu/ gutsy universe deb-src http://de.archive.ubuntu.com/ubuntu/ gutsy universe deb http://de.archive.ubuntu.com/ubuntu/ gutsy-updates universe deb-src http://de.archive.ubuntu.com/ubuntu/ gutsy-updates universe ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team, and may not be under a free licence. Please satisfy yourself as to ## your rights to use the software. Also, please note that software in ## multiverse WILL NOT receive any review or updates from the Ubuntu ## security team. deb http://de.archive.ubuntu.com/ubuntu/ gutsy multiverse deb-src http://de.archive.ubuntu.com/ubuntu/ gutsy multiverse deb http://de.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse deb-src http://de.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse ## Uncomment the following two lines to add software from the 'backports' ## repository. ## N.B. software from this repository may not have been tested as ## extensively as that contained in the main release, although it includes ## newer versions of some applications which may provide useful features. ## Also, please note that software in backports WILL NOT receive any review ## or updates from the Ubuntu security team. # deb http://de.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse # deb-src http://de.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse ## Uncomment the following two lines to add software from Canonical's ## 'partner' repository. This software is not part of Ubuntu, but is ## offered by Canonical and the respective vendors as a service to Ubuntu ## users. # deb http://archive.canonical.com/ubuntu gutsy partner # deb-src http://archive.canonical.com/ubuntu gutsy partner deb http://security.ubuntu.com/ubuntu gutsy-security main restricted deb-src http://security.ubuntu.com/ubuntu gutsy-security main restricted deb http://security.ubuntu.com/ubuntu gutsy-security universe deb-src http://security.ubuntu.com/ubuntu gutsy-security universe deb http://security.ubuntu.com/ubuntu gutsy-security multiverse deb-src http://security.ubuntu.com/ubuntu gutsy-security multiverse |
Dann führe aus:
apt-get update
um die apt Paketdatenbank zu aktualisieren und
apt-get upgrade
um die neusten Updates zu installieren (wenn es welche gibt).
9 Ändere die Standard-Kommandozeile
/bin/sh ist ein Symlink auf /bin/dash, allerdings brauchen wir /bin/bash, nicht /bin/dash. Daher führen wir Folgendes aus:
ln -sf /bin/bash /bin/sh
Wenn Du dies nicht ausführst, wird die ISPConfig Installation fehlschlagen.
10 Installation von Software
Nun installieren wir einige Pakete, die wir später noch brauchen werden. Lass dies laufen
apt-get install binutils cpp fetchmail flex gcc libarchive-zip-perl libc6-dev libcompress-zlib-perl libdb4.3-dev libpcre3 libpopt-dev lynx m4 make ncftp nmap openssl perl perl-modules unzip zip zlib1g-dev autoconf automake1.9 libtool bison autotools-dev g++ build-essential
(Dieser Befehl muss in ein Zeile!)
11 Quota
(Wenn Du eine andere Partitionsmethode gewählt hast als ich, musst Du die Quota-Einstellungen an Dein Partitionierungsschema anpassen. )
Um Quota zu installieren, lassführe aus:
apt-get install quota
Bearbeite /etc/fstab. Meine Zeile sieht wie folgt aus (Ich habe ,usrquota,grpquota der Partition mit dem Mount Point / hinzugefügt):
vi /etc/fstab
# /etc/fstab: static file system information. # # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc defaults 0 0 # /dev/sda1 UUID=9fc157ff-975c-4f20-9fef-6a70085abdbd / ext3 defaults,errors=remount-ro,usrquota,grpquota 0 1 # /dev/sda5 UUID=48fb7dd8-f099-4d63-ac1b-30e886ac7436 none swap sw 0 0 /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec 0 0 /dev/fd0 /media/floppy0 auto rw,user,noauto,exec 0 0 |
Um Quota zu aktivieren, lass folgende Befehle laufen:
touch /quota.user /quota.group
chmod 600 /quota.*
mount -o remount /
quotacheck -avugm
quotaon -avug