• chevron_right

      How to create persistent sysfs configuration using systemd

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

    Create persistent sysfs configuration using systemd which can replace sysfsutils. Inspect current configuration for volatile and temporary files. $ systemd-tmpfiles --no-pager --cat-config # /usr/lib/tmpfiles.d/00rsyslog.conf # Override systemd's default tmpfiles.d/var.conf to make /var/log writable by # the syslog group, so that rsyslog can run as user. # See tmpfiles.d(5) for details. # Type Path Mode UID […]

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

    • chevron_right

      How to use LibreTranslate with Mastodon

      pubsub.slavino.sk / sleeplessbestie · Wednesday, 16 November, 2022 - 23:18 edit

    Install LibreTranslate and configure Mastodon to take advantage of it. This is a minimal viable product for testing alongside Mastodon instance installed from the source code, bare-metal only. See additional notes at the end of this document. Install dependencies. $ sudo apt install python3 python3-pip python3-setuptools Create libretranslate user. $ sudo useradd --create-home --home-dir /opt/libretranslate […]

    Značky: #WebOps, #Linux, #Mastodon

    • chevron_right

      How to inspect a path during the troubleshooting process

      pubsub.slavino.sk / sleeplessbestie · Wednesday, 16 November, 2022 - 12:00 edit

    Inspect a path during the troubleshooting process. Display help information for the namei utility which is a part of the util-linux package. $ namei --help Usage: namei [options] <pathname>... Follow a path until a terminal point is found. Options: -x, --mountpoints show mount point directories with a 'D' -m, --modes show the mode bits of […]

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

    • chevron_right

      How to inspect consul metrics

      pubsub.slavino.sk / sleeplessbestie · Tuesday, 15 November, 2022 - 12:10 edit

    Inspect current consul metrics. Get the PID of the consul process. $ systemctl show --property MainPID --value consul 31045 Send USR1 signal to the consul process. sudo kill -SIGUSR1 $(systemctl show --property MainPID --value consul) Inspect consul logs for data. $ sudo journalctl -u consul -f Jul 23 22:53:27 consul-2 consul[31045]: [2022-07-23 22:53:10 +0000 UTC][G] […]

    Značky: #DevOps, #Linux, #Consul

    • chevron_right

      How to inspect remote GnuPG signing key

      pubsub.slavino.sk / sleeplessbestie · Monday, 14 November, 2022 - 12:00 edit

    Inspect remote GnuPG signing key. Inspect GitLab package repository signing key which is published using ASCII-armored format. $ curl --location --silent https://packages.gitlab.com/gitlab/gitlab-ee/gpgkey | file --brief --mime - application/pgp-keys; charset=us-ascii $ curl --location --silent https://packages.gitlab.com/gitlab/gitlab-ee/gpgkey | file --brief - PGP public key block Public-Key (old) Signing key details. $ gpg --import-options show-only --import

    Značky: #DevOps, #Linux

    • chevron_right

      How to bypass the OpenSSL security level

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

    How to bypass the OpenSSL security level using curl or openssl utility to access legacy services. Inspect default OpenSSL security level. $ openssl version -f compiler: gcc -fPIC -pthread -m64 -Wa,--noexecstack -Wall -Wa,--noexecstack -g -O2 -fdebug-prefix-map=/build/openssl-51ig8V/openssl-1.1.1f=. -fstack-protector-strong -Wformat -Werror=format-security -DOPENSSL_TLS_SECURITY_LEVEL=2 -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM […]

    Značky: #OpenSSL, #SecOps, #Ubuntu, #Linux

    • chevron_right

      How to install Guest Agent inside Proxmox virtual machine

      pubsub.slavino.sk / sleeplessbestie · Wednesday, 9 November, 2022 - 12:00 edit

    Install Guest Agent inside Proxmox virtual machine. List virtual machines. proxmox$ qm list VMID NAME STATUS MEM(MB) BOOTDISK(GB) PID 100 ubuntu-jammy-jellyfish stopped 2048 20.00 0 102 debian-bullseye stopped 2048 20.00 0 3001 consul-1 running 2048 20.00 397130 3002 consul-2 running 2048 20.00 396537 3003 consul-3 running 2048 20.00 396585 Get VM configuration. proxmox$ qm config […]

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

    • chevron_right

      How to check consistency of an EC or RSA private key

      pubsub.slavino.sk / sleeplessbestie · Monday, 7 November, 2022 - 12:00 edit

    Check the consistency of an EC or RSA private key. Check the consistency of an unencrypted RSA private key. $ openssl rsa -in rsa_key_dec.pem -noout -check RSA key ok Check the consistency of an encrypted RSA private key. $ openssl rsa -in rsa_key_enc.pem -passin pass:keypass -noout -check RSA key ok Check the consistency of an […]

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