• Sl chevron_right

      How to display IPv4 addresses without network utilities

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

    Display IPv4 address without network utilities. Inspect /proc/net/fib_trie which contains routing table entries sorted by prefix length. $ cat /proc/net/fib_trie Main: +-- 0.0.0.0/0 3 0 4 |-- 0.0.0.0 /0 universe UNICAST +-- 127.0.0.0/8 2 0 2 +-- 127.0.0.0/31 1 0 0 |-- 127.0.0.0 /8 host LOCAL |-- 127.0.0.1 /32 host LOCAL |-- 127.255.255.255 /32 link […]

    Značky: #Linux, #SysOps

    • Sl chevron_right

      How to determine when Consul snapshot was created

      pubsub.slavino.sk / sleeplessbestie · Tuesday, 29 November, 2022 - 12:00 edit

    Determine when HashiCorp Consul snapshot was created. Inspect snapshot. $ consul snapshot inspect backup.snapshot ID 77479-228462-1660165996971 Size 53121 Index 228462 Term 77479 Version 1 Type Count Size ---- ---- ---- KVS 61 37.7KB Register 9 5.6KB ACLToken 7 2.7KB ACLPolicy 4 1.8KB ConnectCA 1 1.2KB ConnectCAProviderState 1 1.2KB Index 21 658B CoordinateBatchUpdate 2 344B SystemMetadata […]

    Značky: #AWK, #Linux, #Consul, #SysOps

    • Sl chevron_right

      How to create Consul snapshots for disaster recovery

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

    Create HasiCorp Consul snapshots for disaster recovery. Create backup snapshot. $ consul snapshot save backup.snapshot Saved and verified snapshot to index 228462 Inspect snapshot. $ file backup.snapshot backup.snapshot: gzip compressed data, original size modulo 2^32 56832 $ consul snapshot inspect backup.snapshot ID 77479-228462-1660165996971 Size 53121 Index 228462 Term 77479 Version 1 Type Count Size ---- […]

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

    • Sl chevron_right

      How to create Mastodon maintenance jobs

      pubsub.slavino.sk / sleeplessbestie · Saturday, 19 November, 2022 - 12:00 edit

    Create Mastodon maintenance jobs for bare-metal Mastodon installation from source code. Remove downloaded media files. $ cat

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

    • Sl 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

      A couple of accomplishments

      𝖈𝖍𝖚𝖓𝖐 · Wednesday, 16 November, 2022 - 12:04 edit

    The last two weeks were forging onwards quite well in this domain space. I've gotten to practice some stuff I actually really enjoy. Namely defensive security, stats monitoring, webservers and docker containers :D All of which is command line :D:D

    I know.. I'm a nerd. I dis used to host an odd and, I thought, kinda neat series on YouTube called "Adventures in Command Line". R.I.P. ...zzzzzzzzzz zzzz zz zzzz zz

    #studies #the8woodcutter #computerscience #sysops

    • Sl 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

    • Sl 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

    • Sl 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