Difference: InstallingCentOS7 (1 vs. 27)

Revision 2714 Jun 2022 - IvoVanGeel

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Installing CentOS 7

Line: 30 to 30
 yum install -y yum-utils sysstat iotop strace tcpdump lsof ntp ntpdate man man-pages mlocate wget perl iptraf-ng bind-utils net-tools psmisc vim-enhanced rsync lynx atop screen
  • Add the noatime option to all ext3/ext4/XFS/etc filesystem options in /etc/fstab
Changed:
<
<
  • Edit /etc/default/grub and remove the rhgb and quiet options from GRUB_CMDLINE_LINUX. Replace these options with: nomodeset vga=normal consoleblank=0 (add elevator=deadline when running on an SSD or in a VM)
>
>
  • Edit /etc/default/grub and remove the rhgb and quiet options from GRUB_CMDLINE_LINUX. Replace these options with: nomodeset vga=normal consoleblank=0 (add elevator=none when running on an SSD or in a VM)
 
  • Create a new grub2 config file using: grub2-mkconfig > /boot/grub2/grub.cfg
  • Update the system: yum upgrade
  • Add a normal user, to log in as: useradd -m username

Revision 2621 Jan 2022 - IvoVanGeel

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Installing CentOS 7

Line: 27 to 27
 
  • Add the EPEL repository by running: yum install epel-release
  • Install the following packages:
Changed:
<
<
yum install -y sysstat iotop strace tcpdump lsof ntp ntpdate man man-pages mlocate wget perl iptraf-ng bind-utils net-tools psmisc vim-enhanced rsync lynx
>
>
yum install -y yum-utils sysstat iotop strace tcpdump lsof ntp ntpdate man man-pages mlocate wget perl iptraf-ng bind-utils net-tools psmisc vim-enhanced rsync lynx atop screen
 
  • Add the noatime option to all ext3/ext4/XFS/etc filesystem options in /etc/fstab
  • Edit /etc/default/grub and remove the rhgb and quiet options from GRUB_CMDLINE_LINUX. Replace these options with: nomodeset vga=normal consoleblank=0 (add elevator=deadline when running on an SSD or in a VM)

Revision 2511 Nov 2021 - IvoVanGeel

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Installing CentOS 7

Line: 39 to 39
 
  • Make sure root cannot log in via ssh by changing /etc/ssh/sshd_config:
    • PermitRootLogin prohibit-password
    • This will disable logging in as root, via ssh, but it is still possible to log in as root using SSH public key authentication.
Changed:
<
<
  • Disable SELinux by setting SELINUX=disabled in /etc/sysconfig/selinux (a reboot is needed to fully disable SELinux)
>
>
  • Disable SELinux by setting SELINUX=disabled in /etc/sysconfig/selinux (a reboot is needed to fully disable SELinux. Do not disable SELinux for production systems)
 
  • Disable the firewall (when in a secure network), by running: systemctl disable firewalld
  • Enable irqbalance: systemctl enable irqbalance.service (only useful on an SMP system)
  • Set up /etc/ntp.conf:

Revision 2414 Oct 2021 - IvoVanGeel

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Installing CentOS 7

Line: 24 to 24
 
  • Wait for the installation to finish.
  • Reboot the system.
Changed:
<
<
  • Add the EPEL repository by running: yum install epel-release
>
>
  • Add the EPEL repository by running: yum install epel-release
 
  • Install the following packages:
yum install -y sysstat iotop strace tcpdump lsof ntp ntpdate man man-pages mlocate wget perl iptraf-ng bind-utils net-tools psmisc vim-enhanced rsync lynx
Changed:
<
<
  • Add the noatime option to all ext3/ext4/XFS/etc filesystem options in /etc/fstab
>
>
  • Add the noatime option to all ext3/ext4/XFS/etc filesystem options in /etc/fstab
 
  • Edit /etc/default/grub and remove the rhgb and quiet options from GRUB_CMDLINE_LINUX. Replace these options with: nomodeset vga=normal consoleblank=0 (add elevator=deadline when running on an SSD or in a VM)
  • Create a new grub2 config file using: grub2-mkconfig > /boot/grub2/grub.cfg
  • Update the system: yum upgrade
Changed:
<
<
  • Add a normal user, to log in as: useradd -m username
  • Set a password: passwd username
>
>
  • Add a normal user, to log in as: useradd -m username
  • Set a password: passwd username
 
  • Add the normal user to the wheel group: usermod -a -G wheel username
  • Make sure root cannot log in via ssh by changing /etc/ssh/sshd_config:
    • PermitRootLogin prohibit-password

Revision 2317 Sep 2021 - IvoVanGeel

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Installing CentOS 7

Please note: This instruction was created for my personal use. Feel free to follow it, but I am not responsible for any problems or data loss!

Changed:
<
<
Download the network install CD, which can be found at: http://ftp.tudelft.nl/centos.org/7/isos/x86_64/CentOS-7-x86_64-NetInstall-1503.iso. Check the MD5 sum by running md5sum on CentOS-7-x86_64-NetInstall-1503.iso and compare the result to the MD5 sums at: http://ftp.tudelft.nl/centos.org/7/isos/x86_64/md5sum.txt.
>
>
Download the network install CD, which can be found at: http://ftp.tudelft.nl/centos.org/7/isos/x86_64/CentOS-7-x86_64-NetInstall-2009.iso. Check the MD5 sum by running md5sum on CentOS-7-x86_64-NetInstall-2009.iso and compare the result to the SHA256 sums at: http://ftp.tudelft.nl/centos.org/7/isos/x86_64/sha256sum.txt.
  Boot from the network install CD. Make sure you have at least 768MB of memory available, or you will not be able to create a custom harddisk layout.

Revision 2223 Apr 2019 - IvoVanGeel

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Installing CentOS 7

Line: 27 to 27
 
  • Add the EPEL repository by running: yum install epel-release
  • Install the following packages:
Changed:
<
<
yum install -y sysstat iotop strace tcpdump lsof ntp ntpdate man man-pages mlocate wget perl iptraf-ng bind-utils net-tools psmisc vim-enhanced rsync
>
>
yum install -y sysstat iotop strace tcpdump lsof ntp ntpdate man man-pages mlocate wget perl iptraf-ng bind-utils net-tools psmisc vim-enhanced rsync lynx
 
  • Add the noatime option to all ext3/ext4/XFS/etc filesystem options in /etc/fstab
  • Edit /etc/default/grub and remove the rhgb and quiet options from GRUB_CMDLINE_LINUX. Replace these options with: nomodeset vga=normal consoleblank=0 (add elevator=deadline when running on an SSD or in a VM)

Revision 2121 Apr 2019 - IvoVanGeel

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Installing CentOS 7

Line: 30 to 30
 yum install -y sysstat iotop strace tcpdump lsof ntp ntpdate man man-pages mlocate wget perl iptraf-ng bind-utils net-tools psmisc vim-enhanced rsync
  • Add the noatime option to all ext3/ext4/XFS/etc filesystem options in /etc/fstab
Changed:
<
<
  • Edit /etc/default/grub and remove the rhgb and quiet options from GRUB_CMDLINE_LINUX. Replace these options with: nomodeset vga=normal (add elevator=deadline when running on an SSD)
>
>
  • Edit /etc/default/grub and remove the rhgb and quiet options from GRUB_CMDLINE_LINUX. Replace these options with: nomodeset vga=normal consoleblank=0 (add elevator=deadline when running on an SSD or in a VM)
 
  • Create a new grub2 config file using: grub2-mkconfig > /boot/grub2/grub.cfg
  • Update the system: yum upgrade
  • Add a normal user, to log in as: useradd -m username

Revision 2021 Apr 2019 - IvoVanGeel

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Installing CentOS 7

Line: 35 to 35
 
  • Update the system: yum upgrade
  • Add a normal user, to log in as: useradd -m username
  • Set a password: passwd username
Deleted:
<
<
  • Edit the sudoers file by running: visudo
    • Comment out the line: Defaults    requiretty
    • Comment out the line: Defaults   visiblepw
    • Enable users in the group wheel to use sudo, by uncommenting: %wheel  ALL=(ALL)       ALL
 
  • Add the normal user to the wheel group: usermod -a -G wheel username
  • Make sure root cannot log in via ssh by changing /etc/ssh/sshd_config:
Changed:
<
<
    • PermitRootLogin without-password
>
>
    • PermitRootLogin prohibit-password
 
    • This will disable logging in as root, via ssh, but it is still possible to log in as root using SSH public key authentication.
  • Disable SELinux by setting SELINUX=disabled in /etc/sysconfig/selinux (a reboot is needed to fully disable SELinux)
  • Disable the firewall (when in a secure network), by running: systemctl disable firewalld
Line: 49 to 45
 
  • Set up /etc/ntp.conf:
driftfile /var/lib/ntp/drift
Changed:
<
<
restrict default kod nomodify notrap nopeer noquery restrict -6 default kod nomodify notrap nopeer noquery
>
>
restrict default nomodify notrap nopeer noquery
 restrict 127.0.0.1
Changed:
<
<
restrict -6 ::1
>
>
restrict ::1
 server 0.nl.pool.ntp.org server 1.nl.pool.ntp.org server 2.nl.pool.ntp.org

Revision 1918 Mar 2019 - IvoVanGeel

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Installing CentOS 7

Line: 27 to 27
 
  • Add the EPEL repository by running: yum install epel-release
  • Install the following packages:
Changed:
<
<
yum install -y sysstat iotop strace tcpdump lsof ntp ntpdate man man-pages mlocate wget perl iptraf-ng bind-utils net-tools psmisc vim
>
>
yum install -y sysstat iotop strace tcpdump lsof ntp ntpdate man man-pages mlocate wget perl iptraf-ng bind-utils net-tools psmisc vim-enhanced rsync
 
  • Add the noatime option to all ext3/ext4/XFS/etc filesystem options in /etc/fstab
  • Edit /etc/default/grub and remove the rhgb and quiet options from GRUB_CMDLINE_LINUX. Replace these options with: nomodeset vga=normal (add elevator=deadline when running on an SSD)

Revision 1813 Mar 2019 - IvoVanGeel

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Installing CentOS 7

Line: 24 to 24
 
  • Wait for the installation to finish.
  • Reboot the system.
Changed:
<
<
>
>
  • Add the EPEL repository by running: yum install epel-release
  • Install the following packages:
yum install -y sysstat iotop strace tcpdump lsof ntp ntpdate man man-pages mlocate wget perl iptraf-ng bind-utils net-tools psmisc vim
 
  • Add the noatime option to all ext3/ext4/XFS/etc filesystem options in /etc/fstab
Changed:
<
<
  • Edit /etc/default/grub and remove the rhgb and quiet options from GRUB_CMDLINE_LINUX. Replace these options with: nomodeset vga=normal
>
>
  • Edit /etc/default/grub and remove the rhgb and quiet options from GRUB_CMDLINE_LINUX. Replace these options with: nomodeset vga=normal (add elevator=deadline when running on an SSD)
 
  • Create a new grub2 config file using: grub2-mkconfig > /boot/grub2/grub.cfg
  • Update the system: yum upgrade
  • Add a normal user, to log in as: useradd -m username
Line: 41 to 45
 
    • This will disable logging in as root, via ssh, but it is still possible to log in as root using SSH public key authentication.
  • Disable SELinux by setting SELINUX=disabled in /etc/sysconfig/selinux (a reboot is needed to fully disable SELinux)
  • Disable the firewall (when in a secure network), by running: systemctl disable firewalld
Deleted:
<
<
  • Install the following packages:
yum install -y sysstat iotop strace tcpdump lsof ntp ntpdate man man-pages mlocate wget perl iptraf-ng bind-utils net-tools psmisc vim
 
  • Enable irqbalance: systemctl enable irqbalance.service (only useful on an SMP system)
  • Set up /etc/ntp.conf:

Revision 1711 Mar 2019 - IvoVanGeel

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Installing CentOS 7

Line: 43 to 43
 
  • Disable the firewall (when in a secure network), by running: systemctl disable firewalld
  • Install the following packages:
Changed:
<
<
yum install -y sysstat iotop strace tcpdump lsof ntp man man-pages man-pages-overrides mlocate wget perl iptraf-ng bind-utils net-tools psmisc vim
>
>
yum install -y sysstat iotop strace tcpdump lsof ntp ntpdate man man-pages mlocate wget perl iptraf-ng bind-utils net-tools psmisc vim
 
  • Enable irqbalance: systemctl enable irqbalance.service (only useful on an SMP system)
  • Set up /etc/ntp.conf:

Revision 1607 Aug 2017 - IvoVanGeel

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Installing CentOS 7

Line: 58 to 58
 server 2.nl.pool.ntp.org server 3.nl.pool.ntp.org
Changed:
<
<
  • Change /etc/sysconfig/ntpdate:
>
>
  • Change /etc/ntp/step-tickers:
 
Changed:
<
<
OPTIONS="-p 2 0.nl.pool.ntp.org 1.nl.pool.ntp.org"
>
>
0.nl.pool.ntp.org 1.nl.pool.ntp.org
 
  • Enable ntpdate and ntpd: systemctl enable ntpdate ; systemctl enable ntpd
  • Reboot the system to activate all changes

Revision 1515 Jul 2017 - IvoVanGeel

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Installing CentOS 7

Line: 65 to 65
 
  • Enable ntpdate and ntpd: systemctl enable ntpdate ; systemctl enable ntpd
  • Reboot the system to activate all changes
Deleted:
<
<
-- IvoVanGeel - 19 Nov 2014
 \ No newline at end of file
Added:
>
>
-- Ivo van Geel - 19 Nov 2014
 \ No newline at end of file

Revision 1407 Jun 2017 - IvoVanGeel

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Installing CentOS 7

Line: 28 to 28
 
  • Add the noatime option to all ext3/ext4/XFS/etc filesystem options in /etc/fstab
  • Edit /etc/default/grub and remove the rhgb and quiet options from GRUB_CMDLINE_LINUX. Replace these options with: nomodeset vga=normal
  • Create a new grub2 config file using: grub2-mkconfig > /boot/grub2/grub.cfg
Deleted:
<
<
  • Edit /etc/rc.d/rc.local and add the following line: TERM=linux /usr/bin/setterm -blank 0 This will prevent the screen from going black, which may be helpful in case of a kernel problem.
  • The file /etc/rc.d/rc.local needs to be executable: chmod a+x /etc/rc.d/rc.local
 
  • Update the system: yum upgrade
  • Add a normal user, to log in as: useradd -m username
  • Set a password: passwd username

Revision 1317 Feb 2017 - IvoVanGeel

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Installing CentOS 7

Line: 18 to 18
 
  • Select the correct timezone and make sure System uses UTC is enabled.
  • Enter the root password.
  • Select Create Custom Layout and create a primary partition for the OS and one for swap (create a swap partition as large as the amount of memory you have).
Added:
>
>
  • Use the ext4 filesystem for all partitions (instead of XFS)
 
  • Use the provided boot loader configuration.
  • Select the Minimal installation option.
  • Wait for the installation to finish.
Line: 44 to 45
 
  • Disable the firewall (when in a secure network), by running: systemctl disable firewalld
  • Install the following packages:
Changed:
<
<
yum install -y sysstat iotop strace tcpdump lsof ntp man man-pages man-pages-overrides mlocate wget perl iptraf-ng bind-utils net-tools psmisc
>
>
yum install -y sysstat iotop strace tcpdump lsof ntp man man-pages man-pages-overrides mlocate wget perl iptraf-ng bind-utils net-tools psmisc vim
 
  • Enable irqbalance: systemctl enable irqbalance.service (only useful on an SMP system)
  • Set up /etc/ntp.conf:

Revision 1223 Dec 2015 - IvoVanGeel

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Installing CentOS 7

Line: 24 to 24
 
  • Reboot the system.

Changed:
<
<
  • Add the noatime option to all ext3/ext4 filesystem options in /etc/fstab
>
>
  • Add the noatime option to all ext3/ext4/XFS/etc filesystem options in /etc/fstab
 
  • Edit /etc/default/grub and remove the rhgb and quiet options from GRUB_CMDLINE_LINUX. Replace these options with: nomodeset vga=normal
  • Create a new grub2 config file using: grub2-mkconfig > /boot/grub2/grub.cfg
  • Edit /etc/rc.d/rc.local and add the following line: TERM=linux /usr/bin/setterm -blank 0 This will prevent the screen from going black, which may be helpful in case of a kernel problem.

Revision 1121 Jul 2015 - IvoVanGeel

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Installing CentOS 7

Please note: This instruction was created for my personal use. Feel free to follow it, but I am not responsible for any problems or data loss!

Changed:
<
<
Download the network install CD, which can be found at: http://ftp.tudelft.nl/centos.org/7/isos/x86_64/CentOS-7.0-1406-x86_64-NetInstall.iso. Check the MD5 sum by running md5sum on CentOS-7.0-1406-x86_64-NetInstall.iso and compare the result to the MD5 sums at: http://ftp.tudelft.nl/centos.org/7/isos/x86_64/md5sum.txt.
>
>
Download the network install CD, which can be found at: http://ftp.tudelft.nl/centos.org/7/isos/x86_64/CentOS-7-x86_64-NetInstall-1503.iso. Check the MD5 sum by running md5sum on CentOS-7-x86_64-NetInstall-1503.iso and compare the result to the MD5 sums at: http://ftp.tudelft.nl/centos.org/7/isos/x86_64/md5sum.txt.
  Boot from the network install CD. Make sure you have at least 768MB of memory available, or you will not be able to create a custom harddisk layout.
Changed:
<
<
Select Install CentOS 7 at the CD boot screen. Set the installation language to English; Keyboard: English (United States). Set the Date&Time options. Click the Installation Source setting, select Network and enter the correct URL: http://ftp.tudelft.nl/centos.org/7/os/x86_64/
>
>
Select Install CentOS 7 at the CD boot screen. Set the installation language to English; Keyboard: English (United States). Set the Date&Time options. Click the Installation Source setting, select Network and enter the correct URL: http://ftp.tudelft.nl/centos.org/7/os/x86_64/
 
Line: 25 to 25
 
Changed:
<
<
  • Edit /etc/default/grub and remove the rhgb and quiet options from GRUB_CMDLINE_LINUX
>
>
  • Edit /etc/default/grub and remove the rhgb and quiet options from GRUB_CMDLINE_LINUX. Replace these options with: nomodeset vga=normal
 
  • Create a new grub2 config file using: grub2-mkconfig > /boot/grub2/grub.cfg
  • Edit /etc/rc.d/rc.local and add the following line: TERM=linux /usr/bin/setterm -blank 0 This will prevent the screen from going black, which may be helpful in case of a kernel problem.
  • The file /etc/rc.d/rc.local needs to be executable: chmod a+x /etc/rc.d/rc.local

Revision 1020 Jul 2015 - IvoVanGeel

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Installing CentOS 7

Line: 27 to 27
 
  • Add the noatime option to all ext3/ext4 filesystem options in /etc/fstab
  • Edit /etc/default/grub and remove the rhgb and quiet options from GRUB_CMDLINE_LINUX
  • Create a new grub2 config file using: grub2-mkconfig > /boot/grub2/grub.cfg
Changed:
<
<
  • Edit /etc/rc.d/rc.local and add the following line: /usr/bin/setterm -blank 0 This will prevent the screen from going black, which may be helpful in case of a kernel problem.
>
>
  • Edit /etc/rc.d/rc.local and add the following line: TERM=linux /usr/bin/setterm -blank 0 This will prevent the screen from going black, which may be helpful in case of a kernel problem.
 
  • The file /etc/rc.d/rc.local needs to be executable: chmod a+x /etc/rc.d/rc.local
  • Update the system: yum upgrade
  • Add a normal user, to log in as: useradd -m username
Line: 40 to 40
 
  • Make sure root cannot log in via ssh by changing /etc/ssh/sshd_config:
    • PermitRootLogin without-password
    • This will disable logging in as root, via ssh, but it is still possible to log in as root using SSH public key authentication.
Changed:
<
<
  • Disable SELinux by setting SELINUX=disabled in /etc/sysconfig/selinux (a reboot is needed to disable SELinux)
>
>
  • Disable SELinux by setting SELINUX=disabled in /etc/sysconfig/selinux (a reboot is needed to fully disable SELinux)
 
  • Disable the firewall (when in a secure network), by running: systemctl disable firewalld
  • Install the following packages:

Revision 906 Jul 2015 - IvoVanGeel

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Installing CentOS 7

Line: 23 to 23
 
  • Wait for the installation to finish.
  • Reboot the system.
Changed:
<
<
>
>
 
  • Add the noatime option to all ext3/ext4 filesystem options in /etc/fstab
  • Edit /etc/default/grub and remove the rhgb and quiet options from GRUB_CMDLINE_LINUX
  • Create a new grub2 config file using: grub2-mkconfig > /boot/grub2/grub.cfg

Revision 817 Apr 2015 - IvoVanGeel

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Installing CentOS 7

Line: 26 to 26
 
Changed:
<
<
  • Create a new grub2 config file using: grub2-mkconfig > /boot/grub2/grub.cfg
  • Edit /etc/rc.local and add the following line: /usr/bin/setterm -blank 0 This will prevent the screen from going black, which may be helpful in case of a kernel problem.
>
>
  • Create a new grub2 config file using: grub2-mkconfig > /boot/grub2/grub.cfg
  • Edit /etc/rc.d/rc.local and add the following line: /usr/bin/setterm -blank 0 This will prevent the screen from going black, which may be helpful in case of a kernel problem.
  • The file /etc/rc.d/rc.local needs to be executable: chmod a+x /etc/rc.d/rc.local
 
  • Update the system: yum upgrade
  • Add a normal user, to log in as: useradd -m username
  • Set a password: passwd username

Revision 716 Apr 2015 - IvoVanGeel

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Installing CentOS 7

Line: 43 to 43
 
  • Disable the firewall (when in a secure network), by running: systemctl disable firewalld
  • Install the following packages:
Changed:
<
<
yum install -y sysstat iotop strace tcpdump lsof ntp man man-pages man-pages-overrides mlocate wget perl iptraf-ng bind-utils net-tools
>
>
yum install -y sysstat iotop strace tcpdump lsof ntp man man-pages man-pages-overrides mlocate wget perl iptraf-ng bind-utils net-tools psmisc
 
  • Enable irqbalance: systemctl enable irqbalance.service (only useful on an SMP system)
  • Set up /etc/ntp.conf:

Revision 603 Mar 2015 - IvoVanGeel

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Installing CentOS 7

Line: 45 to 45
 
yum install -y sysstat iotop strace tcpdump lsof ntp man man-pages man-pages-overrides mlocate wget perl iptraf-ng bind-utils net-tools
Changed:
<
<
  • Enable irqbalance: chkconfig irqbalance on (only useful on an SMP system)
>
>
  • Enable irqbalance: systemctl enable irqbalance.service (only useful on an SMP system)
 
  • Set up /etc/ntp.conf:
driftfile /var/lib/ntp/drift

Revision 526 Feb 2015 - IvoVanGeel

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Installing CentOS 7

Line: 43 to 43
 
  • Disable the firewall (when in a secure network), by running: systemctl disable firewalld
  • Install the following packages:
Changed:
<
<
yum install sysstat iotop strace tcpdump lsof ntp man man-pages man-pages-overrides mlocate wget perl iptraf-ng bind-utils net-tools
>
>
yum install -y sysstat iotop strace tcpdump lsof ntp man man-pages man-pages-overrides mlocate wget perl iptraf-ng bind-utils net-tools
 
  • Enable irqbalance: chkconfig irqbalance on (only useful on an SMP system)
  • Set up /etc/ntp.conf:

Revision 423 Feb 2015 - IvoVanGeel

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Installing CentOS 7

Revision 320 Feb 2015 - IvoVanGeel

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Installing CentOS 7

Line: 40 to 40
 
    • PermitRootLogin without-password
    • This will disable logging in as root, via ssh, but it is still possible to log in as root using SSH public key authentication.
  • Disable SELinux by setting SELINUX=disabled in /etc/sysconfig/selinux (a reboot is needed to disable SELinux)
Changed:
<
<
  • Disable the firewall (when in a secure network), by running: chkconfig iptables off; chkconfig ip6tables off
>
>
  • Disable the firewall (when in a secure network), by running: systemctl disable firewalld
 
  • Install the following packages:
yum install sysstat iotop strace tcpdump lsof ntp man man-pages man-pages-overrides mlocate wget perl iptraf-ng bind-utils net-tools
Line: 62 to 62
 
OPTIONS="-p 2 0.nl.pool.ntp.org 1.nl.pool.ntp.org"
Changed:
<
<
  • Enable ntpdate and ntpd: chkconfig ntpdate on; chkconfig ntpd on
>
>
  • Enable ntpdate and ntpd: =systemctl enable ntpdate ;systemctl enable ntpd =
 
  • Reboot the system to activate all changes

-- IvoVanGeel - 19 Nov 2014

Revision 220 Feb 2015 - IvoVanGeel

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Installing CentOS 7

Please note: This instruction was created for my personal use. Feel free to follow it, but I am not responsible for any problems or data loss!

Changed:
<
<
Download the network install CD, which can be found at: http://ftp.tudelft.nl/centos.org/7/isos/x86_64/CentOS-7.0-1406-x86_64-NetInstall.iso. Check the MD5 sum by running md5sum on CentOS-6.5-x86_64-netinstall.iso and compare the result to the MD5 sums at: http://ftp.tudelft.nl/centos.org/7/isos/x86_64/md5sum.txt.
>
>
Download the network install CD, which can be found at: http://ftp.tudelft.nl/centos.org/7/isos/x86_64/CentOS-7.0-1406-x86_64-NetInstall.iso. Check the MD5 sum by running md5sum on CentOS-7.0-1406-x86_64-NetInstall.iso and compare the result to the MD5 sums at: http://ftp.tudelft.nl/centos.org/7/isos/x86_64/md5sum.txt.
  Boot from the network install CD. Make sure you have at least 768MB of memory available, or you will not be able to create a custom harddisk layout.
Line: 23 to 23
 
  • Wait for the installation to finish.
  • Reboot the system.
Changed:
<
<
>
>
 
  • Add the noatime option to all ext3/ext4 filesystem options in /etc/fstab
Changed:
<
<
  • Edit /boot/grub/menu.lst and remove the rhgb and quiet options
>
>
  • Edit /etc/default/grub and remove the rhgb and quiet options from GRUB_CMDLINE_LINUX
  • Create a new grub2 config file using: grub2-mkconfig > /boot/grub2/grub.cfg
 
  • Edit /etc/rc.local and add the following line: /usr/bin/setterm -blank 0 This will prevent the screen from going black, which may be helpful in case of a kernel problem.
  • Update the system: yum upgrade
  • Add a normal user, to log in as: useradd -m username
Line: 40 to 41
 
    • This will disable logging in as root, via ssh, but it is still possible to log in as root using SSH public key authentication.
  • Disable SELinux by setting SELINUX=disabled in /etc/sysconfig/selinux (a reboot is needed to disable SELinux)
  • Disable the firewall (when in a secure network), by running: chkconfig iptables off; chkconfig ip6tables off
Deleted:
<
<
  • Add the following line to /etc/sysconfig/network:
    • NOZEROCONF=yes
 
  • Install the following packages:
Changed:
<
<
yum install irqbalance sysstat iotop strace tcpdump lsof ntp man man-pages man-pages-overrides mlocate wget openssh-clients perl iptraf-ng bind-utils
>
>
yum install sysstat iotop strace tcpdump lsof ntp man man-pages man-pages-overrides mlocate wget perl iptraf-ng bind-utils net-tools
 
  • Enable irqbalance: chkconfig irqbalance on (only useful on an SMP system)
  • Set up /etc/ntp.conf:
Line: 61 to 60
 
  • Change /etc/sysconfig/ntpdate:
Changed:
<
<
OPTIONS="-U ntp -s -b 0.nl.pool.ntp.org 1.nl.pool.ntp.org"
>
>
OPTIONS="-p 2 0.nl.pool.ntp.org 1.nl.pool.ntp.org"
 
  • Enable ntpdate and ntpd: chkconfig ntpdate on; chkconfig ntpd on
  • Reboot the system to activate all changes

Revision 119 Nov 2014 - IvoVanGeel

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="WebHome"

Installing CentOS 7

Please note: This instruction was created for my personal use. Feel free to follow it, but I am not responsible for any problems or data loss!

Download the network install CD, which can be found at: http://ftp.tudelft.nl/centos.org/7/isos/x86_64/CentOS-7.0-1406-x86_64-NetInstall.iso. Check the MD5 sum by running md5sum on CentOS-6.5-x86_64-netinstall.iso and compare the result to the MD5 sums at: http://ftp.tudelft.nl/centos.org/7/isos/x86_64/md5sum.txt.

Boot from the network install CD. Make sure you have at least 768MB of memory available, or you will not be able to create a custom harddisk layout.

Select Install CentOS 7 at the CD boot screen. Set the installation language to English; Keyboard: English (United States). Set the Date&Time options. Click the Installation Source setting, select Network and enter the correct URL: http://ftp.tudelft.nl/centos.org/7/os/x86_64/


  • Select the U.S. English keyboard layout.
  • Select Basic Storate Devices (unless you are installing to a SAN).
  • Enter the hostname you would like to use (do not add the domain name).
  • Select the correct timezone and make sure System uses UTC is enabled.
  • Enter the root password.
  • Select Create Custom Layout and create a primary partition for the OS and one for swap (create a swap partition as large as the amount of memory you have).
  • Use the provided boot loader configuration.
  • Select the Minimal installation option.
  • Wait for the installation to finish.
  • Reboot the system.

  • Add the EPEL repository by running: rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
  • Add the noatime option to all ext3/ext4 filesystem options in /etc/fstab
  • Edit /boot/grub/menu.lst and remove the rhgb and quiet options
  • Edit /etc/rc.local and add the following line: /usr/bin/setterm -blank 0 This will prevent the screen from going black, which may be helpful in case of a kernel problem.
  • Update the system: yum upgrade
  • Add a normal user, to log in as: useradd -m username
  • Set a password: passwd username
  • Edit the sudoers file by running: visudo
    • Comment out the line: Defaults    requiretty
    • Comment out the line: Defaults   visiblepw
    • Enable users in the group wheel to use sudo, by uncommenting: %wheel  ALL=(ALL)       ALL
  • Add the normal user to the wheel group: usermod -a -G wheel username
  • Make sure root cannot log in via ssh by changing /etc/ssh/sshd_config:
    • PermitRootLogin without-password
    • This will disable logging in as root, via ssh, but it is still possible to log in as root using SSH public key authentication.
  • Disable SELinux by setting SELINUX=disabled in /etc/sysconfig/selinux (a reboot is needed to disable SELinux)
  • Disable the firewall (when in a secure network), by running: chkconfig iptables off; chkconfig ip6tables off
  • Add the following line to /etc/sysconfig/network:
    • NOZEROCONF=yes
  • Install the following packages:
yum install irqbalance sysstat iotop strace tcpdump lsof ntp man man-pages man-pages-overrides mlocate wget openssh-clients perl iptraf-ng bind-utils
  • Enable irqbalance: chkconfig irqbalance on (only useful on an SMP system)
  • Set up /etc/ntp.conf:
driftfile /var/lib/ntp/drift
restrict default kod nomodify notrap nopeer noquery
restrict -6 default kod nomodify notrap nopeer noquery
restrict 127.0.0.1 
restrict -6 ::1
server 0.nl.pool.ntp.org
server 1.nl.pool.ntp.org
server 2.nl.pool.ntp.org
server 3.nl.pool.ntp.org
  • Change /etc/sysconfig/ntpdate:
OPTIONS="-U ntp -s -b 0.nl.pool.ntp.org 1.nl.pool.ntp.org"
  • Enable ntpdate and ntpd: chkconfig ntpdate on; chkconfig ntpd on
  • Reboot the system to activate all changes

-- IvoVanGeel - 19 Nov 2014

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2010-2019 by LANIS