Delete Set public Set private Add tags Delete tags
  Add tag   Cancel
  Delete tag   Cancel
  • • DevOps notes •
  •  
  • AI
  • Tags
  • Login

Linux Boot Process / Optimizing Boot Performance/shaare/F8MFtg

  • linux
  • linux

Linux Boot Process → Older Version

  • BIOS → Basic Input / Output System

    • executes MBR
  • MBR → Master Boot Record

    • executes GRUB
  • GRUB → Grand Unified Bootloader

    • executes kernel
  • KERNEL

    • kernel executes /sbin/init
    • mount the root file system
  • INIT

    • init executes run level programs
    • initial RAM disk → contains drivers
  • RUN LEVEL

    • run level programs executed from /etc/rc.d/rc*.d/

Linux Boot Process → CentOS 7, 8, 9

  • BIOS → MBR → GRUB 2

  • /boot/grub2/grub.cfg

  • KERNEL

    • load drivers from initrd.img
    • start the first OS process (systemd)
  • SYSTEMD = system daemon

    • read /etc/systemd/system/default.target

systemd-analyze → Optimizing Boot Performance

  • Understand how long the Linux system takes to boot by:

    • kernel
    • service
    • initrd
  • initrd → initialize system hardware

  • systemd-analyze blame

    • sort by time all service

Message of the Day → Message at Login

  • nano /etc/motd

  • Customize:

    • touch /etc/profile.d/motd.sh
  • In /etc/ssh/sshd_config

    • PrintMotd no
  • systemctl restart sshd.service

2 months ago Permalink
cluster icon
  • Apache and Nginx : Apache Web Server dnf install httpd nano /etc/httpd/conf/httpd.conf nano /var/www/html/index.html systemctl restart httpd systemctl stop firewalld N...
  • Ldap Secure Ssh : Check on listening port netstat -tunlp → check open/listening port Securing SSH config more /etc/ssh/sshd_config change port 22 PermitRootLogin ...
  • Firewall : Enable firewall firewall-config → GUI for options add ports firewall-cmd → CLI cat /etc/sysconfig/iptables-config cat /etc/firewalld/firewalld.co...
  • Linux File Links and Permissions : Links Soft Link (Symbolic Link) ln -s Link will be removed if the original file is removed or renamed. Hard Link ln Deleting, renaming, or moving t...
  • Package Management : System Updates & Software Install dnf (yum) → RedHat → /etc/yum.repos.d apt-get → Debian rpm → RedHat package management standalone package to ...


(97)
Filter untagged links
Fold Fold all Expand Expand all Are you sure you want to delete this link? Are you sure you want to delete this tag? The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community