Setup Centos6 Basis OS

From Bitbull Wiki
Jump to navigation Jump to search

1 Install OS

2 Hardware & Host

2.1 Setup

  • Language: English
  • Keyboard: SwissGerman
  • Devices: Basic Storage Devices
  • Hostname: base
  • TimeZone: Europe/Zurich
  • System clock uses UTC: YES
  • What Type of Installation: Create custem Disk Layout:
disks are labled /dev/sda if you not use KVM
    • /dev/vda1 - 150M - ext4 - /boot
    • /dev/vda2 - max - LVM PV - VG: vg_system
    • /dev/vg_system/root - 15GB - ext4 - /
    • /dev/vg_system/swap - 2GB - swap
  • Install Bootloader on MBR: /dev/vda

2.1.1 Initial Configuration

ifconfig eth0 up
dhclient eth0
# now you can connect via ssh

yum remove nfs-utils-lib nfs-utils rpcbind libtirpc iscsi-initiator-utils fcoe-utils iptables-ipv6 lldpad
yum upgrade

# install essential tools
yum install system-config-network-tui sysstat dstat tcpdump screen vim-common strace ltrace ethtool

#network interface must run when booting
sed -i 's/ONBOOT=.*/ONBOOT=yes/' /etc/sysconfig/network-scripts/ifcfg-eth0

# we disable selinux
sed -i 's/SELINUX=.*/SELINUX=disabled/' /etc/selinux/config
setenforce 0
getenforce

#activate iptables if needed
chkconfig iptables on|off
service iptables stop|restart
reboot


2.1.2 Install Webserver

# show all groups
yum grouplist

# install webserver and deps
yum groupinstall "Web Server" "PHP Support" "MySQL Database client" "MySQL Database server"