CentOS 5.1 Minimalinstallation

Vorgehensweise

  • Booten von der DVD im Graphischen Modus
  • Anlegen des Plattenlayouts und der Dateisysteme

ks.cfg

#clearpart --all --drives=sda
#part / --fstype ext3 --size=9000 --asprimary
#part pv.7 --size=40000
#part pv.9 --size=100 --grow
#volgroup rootvg --noformat --pesize=32768 pv.7
#volgroup datavg --noformat --pesize=32768 pv.9
#logvol swap --fstype swap --name=volswap --vgname=rootvg --size=4096
#logvol /data/install --fstype ext3 --name=volinstall --vgname=datavg --size=49984
#logvol /var --fstype ext3 --name=volvar --vgname=rootvg --size=8000
  • Netzwerkeinstellungen, Firewall, SELinux

ks.cfg

network --device eth0 --bootproto static --ip 192.168.100.3 --netmask 255.255.255.0 --gateway 192.168.100.1 --nameserver 192.168.100.1 --hostname c51.intern
network --device eth1 --bootproto static --ip 192.168.200.3 --netmask 255.255.255.0 --gateway 192.168.100.1 --nameserver 192.168.100.1 --hostname c51.intern
firewall --enabled --port=22:tcp
authconfig --enableshadow --enablemd5
selinux --enforcing

Anpassungen nach erstem Reboot

  • Zeitserver

ntp

yum install ntp
ntpdate time.nist.gov
hwclock --show
hwclock --systohc
chkconfig --add ntpd
chkconfig --level 2345 ntpd on
service ntpd start
  • perl

perl

yum install perl
  • inittab

inittab

perl -pi -e "s|^(1:2345.*)$|\1 --noclear|g" inittab
  • text based internet

lynx

yum install lynx
lynx http://www.whatismyip.com
  • midnight commander

mc

yum install mc
  • yum upgrade
    • Alle *.rpmnew löschen
      • rm /etc/ld.so.conf.rpmnew /etc/nsswitch.conf.rpmnew
  • Boot in Mode vga=791

/etc/grub.conf

perl -pi -e "s|^(.*)(kernel \/.*)$|\1\2 vga=791|g"
  • Wir haben so ein schlankes System mit hier 158 Paketen
 
wissen/linux/centos/centos-5.1-minimalinstallation.txt · Zuletzt geändert: 05.09.2010 20:31
 
Recent changes RSS feed Donate Valid XHTML 1.0 Valid CSS Recent cached RSS feed cacert-signed web site: inhalt.serviert.de