[Raspberry Pi] NTP time synchronization

Published on Author admin

Configure proper timezone according to your physical location by using following wizard: sudo dpkg-reconfigure tzdata Enable NTP: timedatectl set-ntp true Check time and date settings: timedatectl status Install ntpdate tool: apt install ntpdate Fix problem with ToS (Type of Service) field value in IP packet. By default ToS is set to 0xc0 value by ntpd… Continue reading [Raspberry Pi] NTP time synchronization

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

Capturing network traffic to/from virtual machine running on VMware ESXi host

Published on Author admin

How to capture network traffic from/to virtual machine running on VMware ESXi host. This method uses pktcap-uw tool which is available in ESXi 5.5 and later. First enable SSH on your VMware ESXi host. Connect to ESXi host via SSH. List running virtual machines and check World-ID: esxcli network vm list Assuming that our VM… Continue reading Capturing network traffic to/from virtual machine running on VMware ESXi host