Python upgrade venv python binary/version
python3 -m venv --upgrade /opt/venv/
python3 -m venv --upgrade /opt/venv/
export GIT_SSH_COMMAND="ssh -o IdentitiesOnly=yes -i ~/.ssh/id_rsa_blah" git push
Try this: pct delsnapshot 2087 vzdump -force It will give an error but will remove snap from GUI
apt list --installed | grep postg pg_dropcluster 15 main --stop pg_upgradecluster 13 main service postgresql@13-main stop service postgresql@15-main start pg_lsclusters pg_dropcluster 13 main apt-get purge postgresql-13 postgresql-client-13
cat /etc/os-release; read -p enter; apt update; read -p enter; apt upgrade; apt full-upgrade; sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list; grep -ir bull /etc/apt; read -p ok; apt clean; apt update; apt…
This guide helped me a lot: https://techviewleo.com/install-elastic-stack-elk-8-on-ubuntu/ After first installing with this parameter: export ES_SKIP_SET_KERNEL_PARAMETERS=true && apt-get install elasticsearch I then used the linked guide. Important parts: sudo vim /etc/elasticsearch/elasticsearch.yml…
To add a password to your site: apt install apache2-utils htpasswd -c /etc/apache2/.htpasswd user # Config <Directory "/var/www/html"> AuthType Basic AuthName "Restricted Content" AuthUserFile /etc/apache2/.htpasswd Require valid-user </Directory>
To add an existing user to an existing Linux group: usermod -a -G group user # Example usermod -a -G www-data django
Get a wireguard config, it has a private key and peer information Add a new wireguard interface, I called it proton1. Use the private key from the config file. Add…
Ever found yourself using a for/while loop using SSH in the loop, only to find out your loop only runs once? Your stdin is captured by ssh... This can be…
TMP="$(mktemp -d)" trap 'rm -rf -- "$TMP"' EXIT
RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME} RequestHeader set "X-Forwarded-SSL" expr=%{HTTPS}
\pset format wrapped
That's a difficult one to search for. To get the strings command working in Debian 11 / Linux, for example in your bash scripts, install the binutils package!
My remote hosts are on srvXX.remote.com. I have a jump host jump.remote.com. I want to be able to type ssh srv42.remote.com and connect, without first having to ssh to jump.remote.com.…
I wanted to connect my dedicated hetzner proxmox box ("remote") to my home IP. Networks: Home has 10.0.40.0/24 and 10.0.60.0/24 Remote has 10.0.101.0/24 At home I created on my mikrotik:…
This works for me: Install plain debian 11, install proxmox Screenshot IPs of interface Clear all IP data from existing/default interface Create Linux bridge with IP info Then open SSH…
qm remote-migrate <vmid> [<target-vmid>] <target-endpoint> --target-bridge <string> --target-storage <string> [OPTIONS] Migrate virtual machine to a remote cluster. Creates a new migration task. EXPERIMENTAL feature! <vmid>: <integer> (1 - N) The…
Get this error? Cannot remove image, a guest with VMID '1070' exists!You can delete the image from the guest's hardware pane Then on your node/host, do pct rescan; qm rescan…
On Debian 11: apt install ttf-mscorefonts-installer -ydpkg-reconfigure fontconfig-configcoolconfig update-system-templatesystemctl restart coolwsd.service
Your proxmox will just tell you: 2023-03-26 10:31:50 Logical volume "vm-1070-disk-1" created. But what if you want to know the progress of the copy? In percentage maybe? On the source…
Container: nohup pct migrate 1076 srv78 --target-storage LVMStore & Untested (VM): qm migrate 1076 srv78 -migration_network 10.0.0.0/24 -targetstorage SrvSSD -with-local-disks Does not want to move? You need to add the…
Don't follow the original guide ➜ ~ cd Downloads ➜ Downloads fastboot flash vendor_boot vendor_boot.img Sending 'vendor_boot_a' (65536 KB) OKAY [ 0.516s] Writing 'vendor_boot_a' OKAY [ 0.244s] Finished. Total time:…
Note to self:
I got this: Internal Server Error The server encountered an internal error and was unable to complete your request. Please contact the server administrator if this error reappears multiple times,…
Like this (LVM based) root@srv65:~# lvs | grep 1071 vm-1071-disk-0 BigStore -wi-a----- 64.00g root@srv65:~# e2fsck -fy /dev/mapper/BigStore-vm--1071--disk--0 e2fsck 1.46.5 (30-Dec-2021) Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking…
Add --rsync-path="ionice -c 3 nice rsync" to your rsync command (on sending side) Friendly for both sender and receiver: ionice -c3 nice rsync --rsync-path="ionice -c 3 nice rsync"
Getting this? bash: pvchange: command not found bash: pvck: command not found bash: pvcreate: command not found bash: pvdisplay: command not found bash: pvmove: command not found bash: pvs: command…
Ik kreeg de melding: Mar 14 04:21:48 srv14.domein.nl postfix/smtp[61178]: 2E7A92402A4: to=root@domein.nl, orig_to=root@srv14.domein.nl, relay=smtp.t-mobilethuis.nl[37.143.82.162]:25, delay=0.06, delays=0.01/0/0.04/0.01, dsn=5.7.1, status=bounced (host smtp.t-mobilethuis.nl[37.143.82.162] said: 554 5.7.1 root@domein.nl: Relay access denied (in reply to RCPT…
# apt update # apt upgrade # apt full-upgrade # apt --purge autoremove deb http://mirrors.linode.com/debian bullseye main deb-src http://mirrors.linode.com/debian bullseye main deb http://mirrors.linode.com/debian-security bullseye-security/updates main deb-src http://mirrors.linode.com/debian-security bullseye-security/updates main #…