Ich habe gerade erfolgreich Fedora Core 4 auf einem "Alturo Webserver" installiert.
Prinzipiell sollte es aber auch für 1&1 Rooties gelten
Die Besonderheit liegt darin, dass Alturo einen Gateway verwendet, der nicht im gleichen Subnetz liegt (bei mir 10.255.255.1).
Daher ist bei den Alturo-Servern auch immer eine Host- und eine Default-Route gesetzt.
Durch ein bischen Herumprobieren, habe ich dann aber Herausgefunden, dass aber jeweils die .1 im gleichen /24`er Subnetz ein Gateway ist.
Wenn a.b.c.d die IP vom Server ist, dann sollte ein nslookup a.b.c.1 gw-prtr-[1bis73].schlund.net zurückliefern.
Wenn ja, dann sollte auch ein Kickstart-Install funktionieren.
Natürlich darf man nicht die Originale Subnetzmaske von 255.255.255.255 nehmen, sondern für die Dauer der Installation die 255.255.255.0.
Code: Select all
#!/bin/sh
# installing Fedora Core 4 on a Rootserver
#
# Copyright (C) 2003 Gerd v. Egidy & Geaendert von O. Althammer
# angepasst für Alturo Rootserver von René Schrock (rene.schrock@gmx.net)
# am 31.07.2005
#
# This software may be freely redistributed under the terms of the GNU
# library public license.
#
# You should have received a copy of the GNU Library Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
# This program will ERASE ALL DATA on the harddisk WITHOUT FURTHER WARNING!!!
# Dieses Script in der Rescue-Konsole ausfuehren
# Netzwerkkonfiguration
# ACHTUNG: Der Gateway muss im selben Subnetz liegen und erreichbar sein!
# Nach der installation kann dann wieder der default-gateway auf 10.255.255.1
# gesetz werden (Alturo).
IP='a.b.c.d'
NETMASK='255.255.255.0'
GW='a.c.d.1'
NAMESERVER='217.160.128.251'
PASSWORD='secret'
echo "Lege Verzeichnis root0 an"
mkdir /root0
echo "Lege Verzeichnis mounting an"
mkdir /mounting
echo "o" >/root0/fd
echo "n" >>/root0/fd
echo "p" >>/root0/fd
echo "1" >>/root0/fd
echo >>/root0/fd
echo "+1G" >>/root0/fd
echo "w" >>/root0/fd
cat /root0/fd | fdisk /dev/hda
# init & mount
mke2fs /dev/hda1
mount /dev/hda1 /mounting/
mkdir /mounting/boot
mkdir /mounting/dev
mkdir /mounting/etc
# create lilo.conf
echo "lba32" >/mounting/etc/lilo.conf
echo "boot=/dev/hda" >>/mounting/etc/lilo.conf
echo "root=/dev/hda1" >>/mounting/etc/lilo.conf
echo "image=/boot/vmlinuz" >>/mounting/etc/lilo.conf
echo "label=linux" >>/mounting/etc/lilo.conf
echo "initrd=/boot/initrd.img" >>/mounting/etc/lilo.conf
echo "append="ks=hd:hda1:/ks.cfg"" >>/mounting/etc/lilo.conf
# create kickstart file
echo "#System language" >/mounting/ks.cfg
echo "lang de_DE.UTF-8" >>/mounting/ks.cfg
echo "#Language modules to install" >>/mounting/ks.cfg
echo "langsupport --default de_DE.UTF-8 de_DE.UTF-8" >>/mounting/ks.cfg
echo "#System keyboard" >>/mounting/ks.cfg
echo "keyboard de-latin1-nodeadkeys" >>/mounting/ks.cfg
echo "#System mouse" >>/mounting/ks.cfg
echo "mouse none" >>/mounting/ks.cfg
echo "#Sytem timezone" >>/mounting/ks.cfg
echo "timezone --utc Europe/Berlin" >>/mounting/ks.cfg
echo "#Root password" >>/mounting/ks.cfg
echo "rootpw $PASSWORD" >>/mounting/ks.cfg
echo "#Reboot after installation" >>/mounting/ks.cfg
echo "reboot" >>/mounting/ks.cfg
echo "#Use text mode install" >>/mounting/ks.cfg
echo "text" >>/mounting/ks.cfg
echo "#Install Red Hat Linux instead of upgrade" >>/mounting/ks.cfg
echo "install" >>/mounting/ks.cfg
echo "#Use Web installation" >>/mounting/ks.cfg
echo "url --url ftp://update.pureserver.info/fedora/linux/core/4/i386/os/" >>/mounting/ks.cfg
echo "#System bootloader configuration" >>/mounting/ks.cfg
echo "bootloader --location=mbr" >>/mounting/ks.cfg
echo "#Clear the Master Boot Record" >>/mounting/ks.cfg
echo "zerombr yes" >>/mounting/ks.cfg
echo "#Partition clearing information" >>/mounting/ks.cfg
echo "clearpart --all --initlabel " >>/mounting/ks.cfg
echo "#Disk partitioning information" >>/mounting/ks.cfg
echo "Falls eine Partion nicht formatiert werden soll hinter die Groesse --noformat"
echo "part /boot --fstype ext3 --size 128 --asprimary" >>/mounting/ks.cfg
echo "part /var --fstype ext3 --size 2028" >>/mounting/ks.cfg
echo "part /var/log --fstype ext3 --size 2028" >>/mounting/ks.cfg
echo "part /tmp --fstype ext3 --size 2048" >>/mounting/ks.cfg
echo "part swap --size 1024" >>/mounting/ks.cfg
echo "part / --fstype ext3 --size 1 --grow" >>/mounting/ks.cfg
echo "#System authorization infomation" >>/mounting/ks.cfg
echo "auth --useshadow --enablemd5 " >>/mounting/ks.cfg
echo "#Network information" >>/mounting/ks.cfg
echo "network --bootproto=static --ip=$IP --netmask=$NETMASK --gateway=$GW --nameserver=$NAMESERVER --device=eth0" >>/mounting/ks.cfg
echo "#Firewall configuration" >>/mounting/ks.cfg
echo "firewall --disabled" >>/mounting/ks.cfg
echo "#Do not configure XWindows" >>/mounting/ks.cfg
echo "skipx" >>/mounting/ks.cfg
echo "#Package install information" >>/mounting/ks.cfg
echo "#install just base packages" >>/mounting/ks.cfg
echo "%packages --resolvedeps" >>/mounting/ks.cfg
# --> add additional packages here <---
echo "prepare boot dir"
cp /boot/* /mounting/boot/
echo "download boot kernel & initrd"
wget -O /mounting/boot/vmlinuz ftp://update.pureserver.info/fedora/linux/core/4/i386/os/isolinux/vmlinuz
wget -O /mounting/boot/initrd.img ftp://update.pureserver.info/fedora/linux/core/4/i386/os/isolinux/initrd.img
# prepare dev
mknod /mounting/dev/hda b 3 0
mknod /mounting/dev/hda1 b 3 1
# install kernel
lilo -r /mounting
# done
echo "Bootmodus auf normal stellen und rebooten"
Nach der Installation, kann man dann die Netzwerkkonfiguration wieder auf "Original" konfigurieren:
In /etc/sysconfig/network, den Gateway wieder löschen:
Code: Select all
NETWORKING=yes
HOSTNAME=euerdnsname.tld
GATEWAY=a.b.c.1 <-Diese Zeile komplett löschen
/etc/sysconfig/network-scripts/ifcfg-eth0 anpassen:
Code: Select all
DEVICE=eth0
BOOTPROTO=static
IPADDR=a.b.c.d
NETMASK=255.255.255.255
BROADCAST=a.b.c.d
ONBOOT=yes
TYPE=Ethernet
IPADDR und BROADCAST haben den gleichen Wert.
/etc/sysconfig/network-scripts/route-eth0 anlegen:
Code: Select all
ADDRESS0=10.255.255.1
NETMASK0=255.255.255.255
ADDRESS1=0.0.0.0
NETMASK1=0.0.0.0
GATEWAY1=10.255.255.1
Hier ist 10.255.255.1 der Default-Gateway. Entsprechend der Originalkonfiguration anpassen.
Danach den Server rebooten. :-D
Danach noch die Pfade für yum in /etc/yum.repos.d/ anpassen.
fedora-extras.repo:
Code: Select all
[extras]
name=Fedora Extras $releasever - $basearch
baseurl=ftp://update.pureserver.info/fedora/linux/extras/$releasever/$basearch/
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-extras
gpgcheck=1
fedora-updates.repo:
Code: Select all
[updates-released]
name=Fedora Core $releasever - $basearch - Released Updates
baseurl=ftp://update.pureserver.info/fedora/linux/core/updates/$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
fedora.repo:
Code: Select all
[updates-released]
name=Fedora Core $releasever - $basearch - Released Updates
baseurl=ftp://update.pureserver.info/fedora/linux/core/updates/$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
Danach können Updates mit
installiert werden.
Bei mir war FC4 nach ca. 10 Minuten installiert 8)
Gruß,
Sem