In order for the LXC container to have full access the proxmox host directory, a subgid is set as owner of a host directory, and an ACL is used to ensure permissions.
Add the following line to /etc/pve/lxc/<CT_ID>.conf
mp0:/mount/point/on/host,mp=/mount/point/on/lxc
OR
pct set 100 -mp0 /mnt/bindmounts/shared,mp=/shared
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
###################################################################### | |
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) | |
# | |
# A "#" character in the very first column makes the rest of the line | |
# be ignored. Blank lines are ignored. Lines may be indented freely. | |
# A "\" character at the very end of the line indicates the next line | |
# should be treated as a continuation of the current one. | |
# | |
# The "pre-up", "up", "down" and "post-down" options are valid for all | |
# interfaces, and may be specified multiple times. All other options |
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
function deleteSavedItems() { | |
var query = document.querySelectorAll("#sc-saved-cart input[value=Delete]") | |
if (query.length) { | |
query[0].click(); | |
} | |
if (query.length > 1) { | |
setTimeout(deleteSavedItems,100); | |
} | |
else { | |
console.log('Finished'); |
LUKS (Linux Unified Key Setup) is the standard for Linux hard disk encryption
apt-get install cryptsetup
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
; Artillery Genius | |
; Custom End G-code | |
G4 ; Wait | |
M220 S100 ; Reset Speed factor override percentage to default (100%) | |
M221 S100 ; Reset Extrude factor override percentage to default (100%) | |
G91 ; Set coordinates to relative | |
G1 F1800 E-3 ; Retract filament 3 mm to prevent oozing | |
G1 F3000 Z10 ; Move Z Axis up 20 mm to allow filament ooze freely | |
G90 ; Set coordinates to absolute | |
G1 X0 Y{machine_depth} F1000 ; Move Heat Bed to the front for easy print removal |
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
# Check disk space before | |
df -h | |
# Delete local-lvm storage in gui | |
lvremove /dev/pve/data | |
lvresize -l +100%FREE /dev/pve/root | |
resize2fs /dev/mapper/pve-root |
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 | |
# requires gcloud command line tools; go to https://cloud.google.com/sdk/docs/quickstarts to get them | |
# max 100 service accounts per project | |
# run gcloud init --console-only first and select a project | |
# | |
# Want to use these for rclone? Service Account Loadbalancing is implemented in this build: | |
# https://git.fionera.de/fionera/rclone/releases | |
KEYS_DIR=~/keys | |
for name in service{1..100}; do | |
echo $name |