Universal secure LXD Install script
Find a file
2023-05-03 10:21:20 +02:00
license.txt first 2018-09-02 13:01:37 +02:00
README.md Změnit "README.md" 2019-10-19 17:45:28 +02:00
setup-usl-mm Aktualizovat „setup-usl-mm“ 2023-05-03 10:21:20 +02:00
setup-usl-mm_install_requirements initial_manjaro 2019-07-06 23:16:01 +02:00

Features:

setup-msl-mm_install_requirements -> install dialog utility

setup-msl-mm

  1. Pre-reboot script -> install linuxXY-zfs(for latest installed kernel), change timezone to Prague, crypt swap partition with ecryptfs-utils, crypt some partition with dmcrypt to use with /var/snap/lxd/common/lxd/* and LXD ZFS storage, add some config to sysctl.conf, disable snapd.lxd service, delete everything in /var/snap/lxd/common/lxd/*, create zpool with ashift=12, set compression=on on crypted zpool, configure zfs cache min 256MB max 1536MB, create /root/onstart script to decrypt crypted parition with password and start lxd (you need start this script on every reboot), reboot

  2. Post-reboot script -> for sure, stop snapd.lxd service and delete everything in /var/snap/lxd/common/lxd/*, exec /root/onstart to decrypt partition and import zpool, configure LXD to use encrypted partition as storage, add some config to /root/.screenrc (for gnuscreen utility), install htop mc smartmontools screen and pv

Requirements:

Fresh installation of Manjaro with kernel package with kernelXY-zfs package, swap partition and some paritition to crypted data

THE PROGRAM IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, BUT WITHOUT ANY WARRANTY. IT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW THE AUTHOR WILL BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.