Habe sein Skript umgebaut für die Installation von Fedora-Core 1
Also:
1. Daten sichern
2. Rescue-System booten
3. Script hochladen
4. In Zeile 81 IP, Gateway und Nameserver einfügen evtl. die Netmask ändern.
5. chmod 755 [script]
6. Script starten
7. Bootmodus auf "Normal" zurückstellen
8. Reboot
9. ca. 40 Minuten warten bis die Installation fertig ist.
Das Skript wurde angepasst mit den Paketen für LAMP + und Compilier-Sprachen für Q-Mail (deshalb ca. 40 min).
Die Partitionen beziehen sich auf eine Festplatte mit 38GB
Weiterhin wurde eine /home partion mit 15G
und eine /var partion mit 15G eingebaut.
Beim erneuten Aufsetzen kann dann ein --noformat hinter die Groessenangabe gesetzt werden dann werden diese nicht formatiert.
Weiterhin habe ich das ext3 Filesystem gewählt.
Der Mirror-FTP-Server vom Orginalskript hat nicht gefunzt.
Deshalb habe ich ftp.uni-beyreuth.de genommen.
Offene Firewall Ports
http, https, ssh und smtp.
Kann natürlich geändert werden.
Den Befehl für lilo habe ich auskommentiert, da ich Probleme mit LBA32
hatte, bloß bei den vielen Meldungen habe ich das übersehen.
Deswegen am ende manuell ausführen man sieht dann besser ob's geklappt hat.
Also nun viel Spaß mit Fedora-Core 1
Code: Select all
#!/bin/sh
# installing Fedora Core 1 on a Rootserver
#
# Copyright (C) 2003 Gerd v. Egidy
# Geändert von O. Althammer
# 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!!!
# DELETE ALL PARTITIONS
# and create a small boot partition
echo "o" >/root/fd
echo "n" >>/root/fd
echo "p" >>/root/fd
echo "1" >>/root/fd
echo >>/root/fd
echo "+1G" >>/root/fd
echo "w" >>/root/fd
cat /root/fd | fdisk /dev/hda
# init & mount
mke2fs /dev/hda1
mount /dev/hda1 /mnt/
mkdir /mnt/boot
mkdir /mnt/dev
mkdir /mnt/etc
# create lilo.conf
echo "lba32" >/mnt/etc/lilo.conf
echo "boot=/dev/hda" >>/mnt/etc/lilo.conf
echo "root=/dev/hda1" >>/mnt/etc/lilo.conf
echo "image=/boot/vmlinuz" >>/mnt/etc/lilo.conf
echo "label=linux" >>/mnt/etc/lilo.conf
echo "initrd=/boot/initrd.img" >>/mnt/etc/lilo.conf
echo "append="ext3 ks=hd:hda1:/ks.cfg"" >>/mnt/etc/lilo.conf
# create kickstart file
echo "#System language" >/mnt/ks.cfg
echo "lang de_DE.UTF-8" >>/mnt/ks.cfg
echo "#Language modules to install" >>/mnt/ks.cfg
echo "langsupport --default de_DE.UTF-8 de_DE.UTF-8" >>/mnt/ks.cfg
echo "#System keyboard" >>/mnt/ks.cfg
echo "keyboard de-latin1-nodeadkeys" >>/mnt/ks.cfg
echo "#System mouse" >>/mnt/ks.cfg
echo "mouse none" >>/mnt/ks.cfg
echo "#Sytem timezone" >>/mnt/ks.cfg
echo "timezone --utc Europe/Berlin" >>/mnt/ks.cfg
echo "#Root password" >>/mnt/ks.cfg
echo "rootpw secret" >>/mnt/ks.cfg
echo "#Reboot after installation" >>/mnt/ks.cfg
echo "reboot" >>/mnt/ks.cfg
echo "#Use text mode install" >>/mnt/ks.cfg
echo "text" >>/mnt/ks.cfg
echo "#Install Red Hat Linux instead of upgrade" >>/mnt/ks.cfg
echo "install" >>/mnt/ks.cfg
echo "#Use Web installation" >>/mnt/ks.cfg
echo "url --url ftp://ftp.uni-bayreuth.de/pub/linux/fedora/linux/core/1/i386/os/" >>/mnt/ks.cfg
echo "#System bootloader configuration" >>/mnt/ks.cfg
echo "bootloader --location=mbr" >>/mnt/ks.cfg
echo "#Clear the Master Boot Record" >>/mnt/ks.cfg
echo "zerombr yes" >>/mnt/ks.cfg
echo "#Partition clearing information" >>/mnt/ks.cfg
echo "clearpart --all --initlabel " >>/mnt/ks.cfg
echo "#Disk partitioning information" >>/mnt/ks.cfg
echo "Falls eine Partion nicht formatiert werden soll hinter die Groesse --noformat"
echo "part /boot --fstype ext3 --size 500 --asprimary" >>/mnt/ks.cfg
echo "part / --fstype ext3 --size 6000" >>/mnt/ks.cfg
echo "part /var --fstype ext3 --size 15000 " >>/mnt/ks.cfg
echo "part /home --fstype ext3 --size 15000" >>/mnt/ks.cfg
echo "part swap --size 1024" >>/mnt/ks.cfg
echo "#System authorization infomation" >>/mnt/ks.cfg
echo "auth --useshadow --enablemd5 " >>/mnt/ks.cfg
echo "#Network information" >>/mnt/ks.cfg
echo "network --bootproto=static --ip=xxx.xxx.xxx.xxx --netmask=255.255.255.0 --gateway=xxx.xxx.xxx.x --nameserver=xxx.xxx.xxx.xxx --device=eth0" >>/mnt/ks.cfg
echo "#Firewall configuration" >>/mnt/ks.cfg
echo "firewall --high --http --ssh --smtp --port=443" >>/mnt/ks.cfg
echo "#Do not configure XWindows" >>/mnt/ks.cfg
echo "skipx" >>/mnt/ks.cfg
echo "#Package install information" >>/mnt/ks.cfg
echo "#install just base packages" >>/mnt/ks.cfg
echo "%packages --resolvedeps" >>/mnt/ks.cfg
# --> add additional packages here <---
echo "@ web-server" >>/mnt/ks.cfg
echo "@ sql-server" >>/mnt/ks.cfg
echo "@ editors" >>/mnt/ks.cfg
echo "@ system-tools" >>/mnt/ks.cfg
echo "@ base-x" >>/mnt/ks.cfg
echo "@ german-support" >>/mnt/ks.cfg
echo "@ development-tools" >>/mnt/ks.cfg
echo "-redhat-config-services" >>/mnt/ks.cfg
echo "kernel" >>/mnt/ks.cfg
echo "-cvs" >>/mnt/ks.cfg
echo "-desktop-backgrounds-extra" >>/mnt/ks.cfg
echo "-httpd-manual" >>/mnt/ks.cfg
echo "gcc-objc" >>/mnt/ks.cfg
echo "-redhat-config-xfree86" >>/mnt/ks.cfg
echo "-up2date-gnome" >>/mnt/ks.cfg
echo "-authconfig-gtk" >>/mnt/ks.cfg
echo "-splint" >>/mnt/ks.cfg
echo "-xterm" >>/mnt/ks.cfg
echo "-openssh-askpass-gnome" >>/mnt/ks.cfg
echo "-redhat-config-printer-gui" >>/mnt/ks.cfg
echo "-squid" >>/mnt/ks.cfg
echo "php-pgsql" >>/mnt/ks.cfg
echo "-firstboot" >>/mnt/ks.cfg
echo "mod_auth_pgsql" >>/mnt/ks.cfg
echo "-doxygen" >>/mnt/ks.cfg
echo "-xisdnload" >>/mnt/ks.cfg
echo "-redhat-config-users" >>/mnt/ks.cfg
echo "-tux" >>/mnt/ks.cfg
echo "mysql-server" >>/mnt/ks.cfg
echo "grub" >>/mnt/ks.cfg
echo "mrtg" >>/mnt/ks.cfg
echo "-redhat-logviewer" >>/mnt/ks.cfg
echo "-unixODBC" >>/mnt/ks.cfg
echo "php-mysql" >>/mnt/ks.cfg
echo "-rhn-applet" >>/mnt/ks.cfg
echo "-gcc-gnat" >>/mnt/ks.cfg
echo "-redhat-config-soundcard" >>/mnt/ks.cfg
echo "mod_auth_mysql" >>/mnt/ks.cfg
echo "-openssh-askpass" >>/mnt/ks.cfg
echo "mc" >>/mnt/ks.cfg
echo "up2date-gnome" >>/mnt/ks.cfg
echo "-redhat-config-network" >>/mnt/ks.cfg
echo "-redhat-config-date" >>/mnt/ks.cfg
echo "-gcc-g7" >>/mnt/ks.cfg
# download boot kernel & initrd
wget -O /mnt/boot/vmlinuz ftp://ftp.uni-bayreuth.de/pub/linux/fedora/linux/core/1/i386/os/isolinux/vmlinuz
wget -O /mnt/boot/initrd.img ftp://ftp.uni-bayreuth.de/pub/linux/fedora/linux/core/1/i386/os/isolinux/initrd.img
# prepare boot dir
cp /boot/* /mnt/boot/
# prepare dev
mknod /mnt/dev/hda b 3 0
mknod /mnt/dev/hda1 b 3 1
# install kernel
#lilo -r /mnt
# done
echo "BITTE NOCH FOLGENDEN BEFEHL AUSFUEHREN"
echo "lilo -r /mnt"
echo "FOLGENDE MELDUNG MUSS ERSCHEINEN"
echo "Added linux *"
echo "Bootmodus auf normal stellen und rebooten"