• chevron_right

      How to locate modified systemd unit configuration files

      pubsub.slavino.sk / sleeplessbestie · Friday, 4 November, 2022 - 12:00 edit

    Locate modified systemd unit configuration files. List modified systemd unit configuration files. $ systemd-delta --no-pager --diff=false [OVERRIDDEN] /etc/systemd/system/docker.service → /usr/lib/systemd/system/docker.service [EXTENDED] /etc/systemd/system/docker.service → /etc/systemd/system/docker.service.d/limits.conf [MASKED] /etc/systemd/system/samba-ad-dc.service → /usr/lib/systemd/system/samba-ad-dc.service [EXTENDED] /usr/lib/systemd/system/rc-local.service → /usr/lib/systemd/system/rc-local.service.d/debian.conf [EXTENDED] /usr/lib/systemd/system/systemd-localed.service → /usr/lib/systemd/system/systemd-localed.service.d/locale-gen.conf [EXTENDED] /usr/lib/systemd/system/user@.service → /usr/lib/systemd/system/user@.service.d/timeout.conf 6 overridden configuration files found. List modified systemd unit configuration files with a diff for […]

    Značky: #Linux, #SysOps, #systemd

    • chevron_right

      How to load kernel modules at boot

      pubsub.slavino.sk / sleeplessbestie · Friday, 28 October, 2022 - 11:00 edit

    Load kernel modules at boot. Create a dedicated drop-in module definition file inside /etc/modules-load.d/ directory. $ cat <<EOF | sudo tee /etc/modules-load.d/usbip.conf usbip_core usbip_host vhci_hcd EOF usbip_core usbip_host vhci_hcd Inspect current systemd-modules-load service status. $ sudo systemctl status systemd-modules-load.service ● systemd-modules-load.service - Load Kernel Modules Loaded: loaded (/lib/systemd/system/systemd-modules-load.service; static) Active: active (exited) since Fri 2022-01-21 […]

    Značky: #SysOps, #Linux, #Ubuntu

    • chevron_right

      How to determine when package index was updated

      pubsub.slavino.sk / sleeplessbestie · Wednesday, 26 October, 2022 - 11:00 edit

    Determine when package index was updated. Ubuntu is using a timestamp file to mark an successfull package index update. $ cat /etc/apt/apt.conf.d/15update-stamp APT::Update::Post-Invoke-Success {"touch /var/lib/apt/periodic/update-success-stamp 2>/dev/null || true";}; Inspect current timestamp. $ stat --format "%y" /var/lib/apt/periodic/update-success-stamp 2022-07-02 17:24:42.233369776 +0000 Update package index. $ sudo apt update Hit:1 http://pl.archive.ubuntu.com/ubuntu jammy InRelease Hit:2 http://pl.archive.ubuntu.com/ubuntu jammy-updates InRelease Hit:3 […]

    Značky: #Debian, #Ubuntu, #Linux, #SysOps

    • chevron_right

      How to install and configure NTP server

      pubsub.slavino.sk / sleeplessbestie · Friday, 14 October, 2022 - 11:00 edit

    Install and configure chrony NTP server. Inspect chrony package. $ apt info chrony Package: chrony Version: 4.0-8 Priority: optional Section: net Maintainer: Vincent Blut Installed-Size: 644 kB Provides: time-daemon Pre-Depends: init-system-helpers (>= 1.54~) Depends: adduser, iproute2, tzdata, ucf, libc6 (>= 2.29), libcap2 (>= 1:2.10), libedit2 (>= 2.11-20080614-0), libgnutls30 (>= 3.7.0), libnettle8, libseccomp2 (>= 2.4.3-1~) Suggests: […]

    Značky: #Chrony, #Linux, #SysOps, #Bullseye, #Debian

    • chevron_right

      How to inspect dnf configuration

      pubsub.slavino.sk / sleeplessbestie · Wednesday, 12 October, 2022 - 11:00 edit

    Inspect dnf configuration. Prerequisites Install config-manager for dnf. $ sudo dnf install 'dnf-command(config-manager)' Display help information. $ dnf config-manager --help usage: dnf config-manager [-c [config file]] [-q] [-v] [--version] [--installroot [path]] [--nodocs] [--noplugins] [--enableplugin [plugin]] [--disableplugin [plugin]] [--releasever RELEASEVER] [--setopt SETOPTS] [--skip-broken] [-h] [--allowerasing] [-b | --nobest] [-C] [-R [minutes]] [-d [debug level]] [--debugsolver] [--showduplicates] […]

    Značky: #SysOps, #CentOS, #Linux, #Stream

    • chevron_right

      How to copy Proxmox virtual machine to another server

      pubsub.slavino.sk / sleeplessbestie · Monday, 10 October, 2022 - 11:00 edit

    Copy Proxmox virtual machine to another server. List virtual machines. basilisk:~$ qm list VMID NAME STATUS MEM(MB) BOOTDISK(GB) PID 10001 ubuntu-jammy-jellyfish running 2048 20.00 714306 qm info 1 Display virtual machine configuration. basilisk:~$ qm config 10001 boot: order=scsi0;ide2;net0 cores: 2 ide2: none,media=cdrom memory: 2048 meta: creation-qemu=6.2.0,ctime=1656270900 name: ubuntu-jammy-jellyfish net0: virtio=6A:1D:86:B4:CF:43,bridge=vmbr0,firewall=1 numa: 0 ostype: l26 scsi0: […]

    Značky: #Linux, #Proxmox, #SysOps

    • chevron_right

      How to configure OpenSSH server to use legacy public key algorithm to authenticate itself to an SSH client

      pubsub.slavino.sk / sleeplessbestie · Friday, 7 October, 2022 - 11:00 edit

    Configure OpenSSH server to use legacy public key algorithm to authenticate itself to an SSH client. Operating system version. $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04 LTS Release: 22.04 Codename: jammy SSHD package version. $ ssh -V OpenSSH_8.9p1 Ubuntu-3, OpenSSL 3.0.2 15 Mar 2022 Try to connect using […]

    Značky: #OpenSSH, #SysOps, #Linux

    • chevron_right

      How to install HasiCorp Vault

      pubsub.slavino.sk / sleeplessbestie · Wednesday, 5 October, 2022 - 11:00 edit

    Install and configure HashiCorp Vault. Install Consul application Create consul cluster, configure encryption and access control lists. Create access control lists and tokens Define policy for Vault application. $ tee vault-app-policy.hcl << EOF # Enable the agent to update vault-X nodes node_prefix "vault" { policy = "write" } # Provide KV visibility to all agents. […]

    Značky: #Linux, #Vault, #SysOps

    • chevron_right

      How to display active but disabled systemd services

      pubsub.slavino.sk / sleeplessbestie · Monday, 3 October, 2022 - 11:00 edit

    Display active but disabled systemd services. Use the following script to display active but disabled services. $ while read -r line; do unit=$(echo $line | awk '{print $1}') if [ "$(systemctl is-enabled $unit 2>/dev/null)" == "disabled" ]; then echo "Service $unit is active but disabled" fi done <

    Značky: #SysOps, #systemd, #Linux, #Debian, #Bullseye