- Start by creating a new LXC using Ubuntu LTS 20.04 Focal
- Uncheck the Unprilivlaged option
- All other settings as desired
- DO NOT start on task completion
- Under LXC>Options
- Nesting = 1
- NFS = 1
- Start LXC
- update and install depedancies
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
Based off of a lot of mess and reading: | |
https://asokolsky.github.io/proxmox/octoprint.html | |
https://medium.com/@konpat/usb-passthrough-to-an-lxc-proxmox-15482674f11d | |
https://linuxcontainers.org/lxc/manpages/man5/lxc.container.conf.5.html | |
However, I think that some of the general confusion is due to not understand what all of the different steps, commands, and files are doing. | |
I managed to get it all to work reliably, and simply in 2 basic steps. |
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
2021-10-18 07:15:40.0|Trace|ConfigService|Using default config value for 'autounmonitorpreviouslydownloadedmovies' defaultValue:'False' | |
2021-10-18 07:15:40.0|Trace|HttpClient|Req: [GET] https://radarr.servarr.com/v1/update/master?version=3.2.2.5080&os=linux&arch=X64&runtime=netcore&runtimeVer=5.0.5&active=false | |
2021-10-18 07:15:40.0|Trace|EventAggregator|ConfigFileSavedEvent <~ ReconfigureLogging | |
2021-10-18 07:15:40.0|Trace|ConfigService|Using default config value for 'retention' defaultValue:'0' | |
2021-10-18 07:15:40.0|Trace|ConfigService|Using default config value for 'proxyenabled' defaultValue:'False' | |
2021-10-18 07:15:40.0|Trace|ConfigService|Using default config value for 'recyclebin' defaultValue:'' | |
2021-10-18 07:15:40.0|Trace|ConfigService|Using default config value for 'recyclebincleanupdays' defaultValue:'7' | |
2021-10-18 07:15:40.0|Trace|ConfigService|Using default config value for 'rsssyncinterval' defaultValue:'60' | |
2021-10-18 07:15:40.0|Trace|ConfigService|Using default config value for 'availabilityde |
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
// Original by: Devon Connor | |
// On: 4/6/2015 | |
// https://www.reddit.com/r/Kos/comments/31x3o8/kos_launch_script_works_with_any_staging_to_any/ | |
// This file will launch a rocket to the desired altitude | |
// please turn down thrust before beginning script so that when | |
// it is finished the engines remain shutdown | |
// to run the file type "run launch(OrbitHeight)." |
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
--AntaeusNar, 2020 | |
--Based on power-monitor.lua by SuPeRMiNoR2, 2015 https://github.com/OpenPrograms/SuPeRMiNoR2-Programs/tree/master/power-monitor | |
local version = "0.1.0" | |
-- Requires | |
local component = require("component") | |
local sides = require("sides") | |
local term = require("term") | |
local gpu = component.gpu |
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
class TemplatesTest(TestCase): | |
def test_templates(self): | |
"""Templates can compile properly and there's no mismatched tags""" | |
# get app template dirs | |
template_dirs = [] | |
apps = [app for app in settings.INSTALLED_APPS | |
if app.startswith('rh2')] | |
for app in apps: | |
mod = import_module(app) |
- Add the client users's ssh-rsa pubilic key to the server user's ~/.ssh/authorized_keys file.
The rest of the this will be done on the server as the user that will be logged in with the key and 2fa.
- Install the Google Authenticator PAM helper
sudo apt update && sudo apt upgrade -y
- Always a good idea to update everything before starting
sudo apt install libpam-google-authenticator
- This is the module for PAM which allows for 2fa via google
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
# Byte-compiled / optimized / DLL files | |
__pycache__/ | |
*.py[cod] | |
*$py.class | |
# C extensions | |
*.so | |
# Distribution / packaging | |
.Python |
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
$(document).ready(function() { | |
// Custom | |
var stickyToggle = function(sticky, stickyWrapper, scrollElement) { | |
var stickyHeight = sticky.outerHeight(); | |
var stickyTop = stickyWrapper.offset().top; | |
if (scrollElement.scrollTop() >= stickyTop){ | |
stickyWrapper.height(stickyHeight); | |
sticky.addClass("is-sticky"); | |
} | |
else{ |
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
import json | |
def file_path_name_w_ext(file_name, path=None): | |
if path is None: | |
file_path = './' | |
else: | |
file_path = './' + path + '/' | |
if file_name.endswith(".json"): |