Advanced Search
Search Results
186 total results found
Setting up public IP
Setting up public IP after provisioning the instance select the created instance on the bottom part of the screen select Attached VNICs select the VNIC on the bottom part of the screen select IPV4 addresses select ephemeral public IP the IP will now b...
Host network setup
To use the host with anything other then docker (like libvrtd, vmware or similar) the networks need to be bridged. On Debian-based distros we edit /etc/netplan/50-cloud-init.yaml making sure to follow the instructions in the header of the file and disable cl...
Mounting a directory over the newtork as a chrooted user
Create a new system user that will be restricted to SSHFS mounting. sudo adduser sshfsuser --shell /usr/sbin/nologin Sort permissions of the restricted user's home folder sudo chown root:root /home/share sudo chmod 755 /home/share Due to chrooting the hom...
Generate keys and disable password login
On client ssh-keygen -t rsa -b 4096 -f ~/.ssh/share_key
Enable dropbear on boot to decrypt full disk encryption
install dropbear-initramfs put public rsa key in /etc/dropbear/initramfs/authorized_keys, prependno-port-forwarding,no-agent-forwarding,no-x11-forwarding,command="/bin/cryptroot-unlock" ssh-rsa ... f DHCP no config neccesary in /etc/dropbear/initramfs/...
Wipe data from SSD/HDD
Step 1: Identify the Drive TypeRun:lsblk -d -o name,rotaROTA 1 → HDD (spinning disk)ROTA 0 → SSD---If It's an SSDUse blkdiscard + Secure Erase (if supported)1. Fast erase with blkdiscard:sudo blkdiscard /dev/sdX2. Secure erase (factory-level wipe):Check if sup...
Setup bridge
/etc/network/interfaces auto lo iface lo inet loopback iface lo inet6 loopback auto $PHYSICAL_IFACE iface $PHYSICAL_IFACE inet static address $IPV4_ADDRESS netmask $IPV4_NETMASK gateway $IPV4_GATEWAY up route add -n...
Compress dir full of PDFs
for i in *.pdf; do gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -sOutputFile="tmp_$i" "$i" && mv "tmp_$i" "$i"; done
Upgrade python packages using pip
0) install jq 1) backup current versions 2) Update pip list --outdated --format=json | jq -r '.[].name' | xargs -n1 pip install -U
Setup postgresql
CREATE DATABASE myprojectdb;CREATE USER myprojectuser WITH PASSWORD 'strongpassword';ALTER ROLE myprojectuser SET client_encoding TO 'UTF8';ALTER ROLE myprojectuser SET default_transaction_isolation TO 'read committed';ALTER ROLE myprojectuser SET timezone TO ...