- Make a VPS instance. This shouldn have atleast 2 cores and 4gb RAM, 8GB is recomended.
- Get the public IP/mask and gateway, as well as the MAC address of the interface, if you have private networking, get that info too.
- Log into control panel of the VPS and find the where the ISO can be set chose proxmox.
- Reboot the VPS and make a VNC connection via the control panel.
- Install proxmox with all defualt settings, when it requests netowking info, use the public info from above.
- When you are in proxmox, perform a update and get everthing upto date.
- Add a ubuntu 20.04 template for LXC use.
- Make a LXC container called
router
.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
agent: 1 | |
boot: order=virtio0;ide2;net0 | |
cores: 1 | |
cpu: kvm64,flags=+aes | |
ide2: stuff-prox:iso/linuxmint-20.2-mate-64bit.iso,media=cdrom,size=2044M | |
memory: 4096 | |
name: mint21-ldap | |
net0: virtio=CA:B5:71:43:A2:B6,bridge=vmbr1,firewall=1 | |
numa: 0 | |
ostype: l26 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# William Mantly | |
# MIT | |
'use strict'; | |
const process_type = { | |
number: function(key, value){ | |
if(key.min && value < key.min) return `is to small, min ${key.min}.` | |
if(key.max && value > key.max) return `is to large, max ${key.max}.` | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
chmod +x /var/www/nextcloud/occ | |
sudo -u www-data /var/www/nextcloud/occ $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# William Mantly <wmantly@gmail.com> | |
# MIT License | |
# https://github.com/wmantly | |
ME="$(basename "$(test -L "$0" && readlink "$0" || echo "$0")")" | |
if [ "$1" == "--help" ] || [ "$1" == "-h" ]; then | |
echo "Usage: $ME [domain] [cert]" | |
echo "Usage: $ME chat.theta42.com cert_pem" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const Table = require('../utils/redis_model'); | |
const UUID = function b(a){return a?(a^Math.random()*16>>a/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,b)}; | |
class Token extends Table{ | |
static _key = 'token'; | |
static _keyMap = { | |
'created_by': {isRequired: true, type: 'string', min: 3, max: 500}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo -u homeassistant -H -s | |
cd /srv/homeassistant | |
source bin/activate | |
pip3 install --upgrade homeassistant |