As always, make sure the server is up to date before we start.
apt update
apt upgrade| #!/usr/bin/env python3 | |
| import re, os | |
| from subprocess import getoutput | |
| keys = [ | |
| "ECC corrected fast", | |
| "ECC corrected delayed", | |
| "ECC reread/rewrites", | |
| "Total errors corrected", |
Turn off the container and make note of its id, like 100
Open the proxmox shell or SSH into proxmox
Move to the conf directory
cd /etc/pve/lxc/Add the below conf file to the {id}.conf file
If you need nvida support, download the drives in the container
| sudo -u homeassistant -H -s | |
| cd /srv/homeassistant | |
| source bin/activate | |
| pip3 install --upgrade homeassistant |
| https://www.techpowerup.com/download/nvidia-nvflash-with-board-id-mismatch-disabled/ | |
| https://drive.google.com/drive/folders/1jp824XrO6fn1bPTCbrFjUEVBtxTptB1Z |
| func parse_path(props, params, path){ | |
| for(let key in props) | |
| if(params[key]){ | |
| path.replace(`{${key}}`, params[key]); | |
| }else{ | |
| throw "some error"; | |
| } | |
| return path; | |
| } |
| __NUM = int(input()) | |
| class Trie(dict): | |
| def __call__(self, command, word): | |
| return getattr(self, command)(word) | |
| def add(self, word): | |
| current = self | |
| ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDM9vboz5YGgESsrR2e4JOeP2qtmQo2S8BjI+Y/VxPQ6WbNFzAkXxDniHcnPCrhkeX36SKINvMjWnt4XOK2S+X+1tCoXJzqtcKKyK0gx8ijBxcWVPxsMWjMYTGSVSKiKnt6CyQzrbVGJMh3iAQ8Yv1JwH+6SAtMgT8it7iLyntNFJCesh4I/znEG58A5VBbdUle1Ztz9afjj1CZns17jk7KPm9ig5DmuvdvnMEfhFjfKv1Rp6S5nxacMoTP4tJNSEUh55IicoWk94ii5GwUVLYgyMmzdlA32TqVLFpU2yAvdA9WSnBaI/ZyktlfI7YAmK2wFBsagr9Pq1TcUAY6rZ/GTMjDxExgdYn/FxlufcuqeNJsJXs2A+0xDS/9mv/yGQzNZrL8DrVhY2OKKLoH4Q7enDbhSgEFmJUJMqPxuPEgLEvKfzcURSvIwRj1iCEw6S4dhdaLJl2RRBb1ZWBQbE5ogIbvAl7GFJUAhj3pqYJnd30VENv1MkK+IoCS7EEP0caqL9RNAId0Plud7q2XElHqzkYUE+z+Q/LvGgclXK1ZmZejNaMnV53wfhAevfwVyNGK9i5gbwc1P2lplIa5laXCcVWezqELEkTpdjp4AeKmMuCr8rY8EnLKIcKWEOsX5UumztCow6e1E55v3VeHvRZLpw4DZP7EE0Q8B/jPFWqbCw== [email protected] |
| listen 443 ssl http2; | |
| listen 4443 ssl; | |
| ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | |
| ssl_prefer_server_ciphers on; | |
| ssl_ciphers EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5; | |
| ssl_certificate_by_lua_block { | |
| auto_ssl:ssl_certificate() | |
| } |
| cd ../../c9 | |
| cd rootfs/ | |
| fuidshift `pwd` -t -r b:0:231072:65536 | |
| fuidshift `pwd` -r b:0:231072:65536 | |
| tar --numeric-owner -czvf container_fs.tar.gz ./* | |
| scp container_fs.tar.gz [email protected]:/root/c9_fs.tar.gz |