Difference between revisions of "Setup Centos6 Basis OS"
Jump to navigation
Jump to search
Line 63: | Line 63: | ||
[[Category:Howtos]] | [[Category:Howtos]] | ||
+ | [[Category:CentOS6]] |
Latest revision as of 16:14, 26 April 2021
Contents
1 Install OS
2 Hardware & Host
- Install Media: http://ftp.plusline.de/centos/6/isos/x86_64/CentOS-6.5-x86_64-minimal.iso
- Disk: 20GB (virtio)
- Memory: 1GB
- CPU: 1
- NIC: 1x (virtio)
- HostName: base
- IP: 192.168.123.63/24
- GW: 192.168.123.254
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"