Quantcast
Channel: sleeplessbeastie's notes
Browsing index pages (770 articles)

How to determine when Consul snapshot was created

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...

View Article


How to reload consul configuration

Reload consul configuration. Use consul utility Trigger reload using consul utility. $ consul reload Configuration reload triggered Use HUP signal Determine consul process ID. $ systemctl show...

View Article


How to create Consul snapshots for disaster recovery

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...

View Article

How to remove disabled snaps

Remove disabled snaps which are not longer used. List installed snaps. Notice, some of these are disabled as there are multiple revisions available. $ snap list --all Name Version Rev Tracking...

View Article

How to change encryption key used for gossip messages

Change encryption key used for gossip messages. List current key. $ consul keyring -list ==> Gathering installed encryption keys... WAN: AcHUV+z4kLDJiQeVqLAh2sG25SH4K4WYU6oIru29lSM= [3/3] dc-lab-1...

View Article


How to keep custom number of snap revisions

Define a custom number of snap revisions. Since snap 2.34 you can use refresh.retain option to define a number of kept revisions (between 2 and 20). By default it is 3 on Ubuntu Core and 2 on other...

View Article

How to create Mastodon maintenance jobs

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

View Article

How to create persistent sysfs configuration using systemd

Create persistent sysfs configuration using systemd which can replace sysfsutils. Inspect current configuration for volatile and temporary files. $ systemd-tmpfiles --no-pager --cat-config #...

View Article


How to use LibreTranslate with Mastodon

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...

View Article


How to inspect a path during the troubleshooting process

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>......

View Article

How to inspect consul metrics

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...

View Article

How to inspect remote GnuPG signing key

Inspect remote GnuPG signing key. Inspect GitLab package repository signing key which is published using ASCII-armored format. $ curl --location --silent...

View Article

How to bypass the OpenSSL security level

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...

View Article


How to install Guest Agent inside Proxmox virtual machine

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...

View Article

How to check consistency of an EC or RSA private key

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...

View Article


How to locate modified systemd unit configuration files

Locate modified systemd unit configuration files. List modified systemd unit configuration files. $ systemd-delta --no-pager --diff=false [OVERRIDDEN] /etc/systemd/system/docker.service →...

View Article

How to enumerate vault root tokens

Enumerate vault root tokens. Use JSON output format to locate root tokens. $ vault list -format json auth/token/accessors | \ jq --raw-output ".[]" | \ xargs -I{} vault token lookup -format json...

View Article


How to ensure that HAProxy keep up with Docker name resolution

Ensure that HAProxy keep up with Docker name resolution. HAProxy works great as a docker container. $ docker exec haproxy cat /usr/local/etc/haproxy/haproxy.cfg global stats socket /var/run/api.sock...

View Article

How to manage monitor using DDC/CI protocol

Use ddcutil to manage monitor using DDC/CI protocol. Installation Use openSUSE Build Service to download ddcutil package. Download package sing terminal. $ wget...

View Article

How to manage command history using text-based user interface

Manage command history using text-based user interface. Inspect hstr application. $ sudo apt info hstr Package: hstr Version: 2.3+ds-1 Priority: optional Section: utils Maintainer: Daniel Echeverri...

View Article
Browsing index pages (770 articles)


Latest Images