Advanced Search
Search Results
54 total results found
Setup webdav
fstabhttps://webdav.example.com /mnt/webdav davfs user,rw,uid=$username,auto 0 0sudo nano /etc/davfs2/secrets https://webdav.example.com yourusername yourpassword sudo chmod 600 /etc/davfs2/secrets sudo usermod -aG davfs2 yourusername
Change paths
from django.db.models import F, Valuefrom django.db.models.functions import Replacefrom your_app.models import UploadedFile # Replace 'your_app' with the actual name of the app where UploadedFile is defined. # Update paths from development to productionUploa...
Tailscale
docker-compose.yml services: tailscale-$SOMETHING: image: tailscale/tailscale:latest network_mode: host cap_add: - NET_ADMIN environment: - TS_AUTHKEY=$AUTHKEY - TS_SERVE_CONFIG=/config/serve.json - TS_STATE_...
macvlan
Create a macvlan network set to the adequate adapter (in our case br0) docker network create -d macvlan --subnet=192.168.178.0/24 --gateway=192.168.178.1 -o parent=br0 macvlan_net Then add this into docker-compose.yml (adding first idented networks to servic...
CloneZilla
- Restore partition table (sda-pt.sf is in backup dir) sudo sfdisk /dev/sda < sda-pt.sf
Creating an account
https://signup.oraclecloud.com/ use a private Chrome or Edge tab (signup is messy, Firefox is supported but buggy) use any email (will just be used for login) they don't accept prepaid cards pick a geographic location, US locations are generally pretty c...
Provisioning an instance
Like every browser control panel in the world this one is awful so good luck!Find and select "instances", add new instance and keep everything "always free eligible" Image and shapeImage: Canonical Ubuntu 24.04 Minimal aarch64Shape:VM.Standard.A1.Flex 4 CPUs...
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...