Analyze Linux boot process with systemd

Published on Author admin

Analyze boot time: systemd-analyze Find long booting services: systemd-analyze blame Plot SVG chart of boot process timeline: systemd-analyze plot > tmp.svg Critical chain: systemd-analyze critical-chain Analyze logs from particular service i.e. networking.service journalctl -xe -u networking.service

Fedora - checking graphical session type (Wayland or Xorg)

Published on Author admin

How to check graphical session type (Wayland or Xorg) on Fedora system. At first, use following command to get current session ID: loginctl Next, use bellow command to check graphical session type: loginctl show-session ID -p Type where ID is session ID from previous command output. Example (where session ID = 1): $ loginctl  … Continue reading Fedora - checking graphical session type (Wayland or Xorg)

Linux - load new kernel with kexec - faster than reboot

Published on Author admin

Load new Linux kernel with kexec - method faster than reboot. Just run below script using sudo or as a root. Script is also available at: https://github.com/openterprise/scripts/blob/master/kexec.sh #!/bin/bash latestkernel=`ls -t /boot/vmlinuz-* | sed "s/\/boot\/vmlinuz-//g" | head -n1` echo "kernel current: $(uname -r)" echo "kernel target:  ${latestkernel}" echo "" echo "Arming kexec..." #kexec -l /boot/vmlinuz-${latestkernel} --initrd=/boot/initramfs-${latestkernel}.img… Continue reading Linux - load new kernel with kexec - faster than reboot