How to copy Proxmox virtual machine to another server
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...
View ArticleHow to inspect dnf configuration
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...
View ArticleHow to install and configure NTP server
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...
View ArticleHow to inspect consul configuration
Inspect consul configuration using command-line utilities. Display debugging information. $ consul info agent: check_monitors = 0 check_ttls = 0 checks = 0 services = 0 build: prerelease = revision =...
View ArticleHow to install Vault agent
Install and configure HashiCorp Vault agent. Install Consul application Create consul cluster, configure encryption and access control lists. Create and configure vault application. Create a secret...
View ArticleHow to execute non-executable binary
Execute non-executable binary file. Inspect Python version. $ python3 --version Python 3.10.6 Inspect mounted filesystem that does not permit direct execution of any binaries. $ mount /dev/sdb1 on...
View ArticleHow to check memory subsystem from user space
Check memory subsystem from user space. Inspect available memory. $ free -h total used free shared buff/cache available Mem: 31Gi 29Gi 822Mi 1.0Mi 402Mi 841Mi Swap: 2.0Gi 487Mi 1.5Gi Inspect memtester...
View ArticleHow to determine when service was started
Determine when systemd service was started. Basic operations The easiest way to determine when service was started is to display service status. $ systemctl status unbound ● unbound.service - Unbound...
View ArticleHow to determine when package index was updated
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...
View ArticleHow to load kernel modules at boot
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...
View ArticleHow 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 ArticleHow 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 ArticleHow 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 ArticleHow 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 ArticleHow 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 ArticleHow 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 ArticleHow 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 ArticleHow 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 ArticleHow 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 ArticleHow 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