Skip to content

Instantly share code, notes, and snippets.

@SamSirry
SamSirry / install_duplicati_centos8.sh
Last active February 25, 2023 03:21
Installing Duplicati 2.6 on CentOS 8
# Start this script while logged in as root.
# Preparations:
# Update manually with yum if it's a new OS installation.
# yum update -y && reboot
yum install wget curl -y
mkdir /downloads
cd /downloads
@SamSirry
SamSirry / linux-rooton-zfs.txt
Last active March 15, 2021 00:17
Moving the Linux OS root to zfsroot
Moving the OS to the zfsroot.
Source:
https://www.reddit.com/r/zfs/comments/9zr5gr/which_linux_disro_is_the_most_stable_and/eadpmgm/?context=3
https://web.archive.org/web/20210226222225if_/https://www.reddit.com/r/zfs/comments/9zr5gr/which_linux_disro_is_the_most_stable_and/
Original code follows later. simplified code is here. USE THE ORIGINAL CODE after adaptation.
add-apt-repository universe
apt update
apt install zfs-initramfs
@SamSirry
SamSirry / LXCBindMount.md
Created March 13, 2021 05:06 — forked from ajmassi/LXCBindMount.md
Create a bind mount from a Proxmox host on an unprivileged lxc container

Proxmox Assign Bind Mount To Unprivileged Container

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.

Bind Mount dataset to LXC

Add the following line to /etc/pve/lxc/<CT_ID>.conf

mp0:/mount/point/on/host,mp=/mount/point/on/lxc

Create group on host

In the default Proxmox configuration, unpriviliged container subgids will have the prefix "10" followed by the expected 4-digit gid.

@SamSirry
SamSirry / crypt_unlock.sh
Last active March 7, 2021 18:02 — forked from gusennan/crypt_unlock.sh
initramfs-hook for unlocking LUKS-encrypted LVM partition
#!/bin/sh
PREREQ="dropbear"
prereqs() {
echo "$PREREQ"
}
case "$1" in
prereqs)