From 0647bc0b7aee7d2a6bb84f748316e12683373ba8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Tue, 14 Jun 2022 14:30:00 +0200 Subject: tis 14 jun 2022 14:30:00 CEST --- Media.wiki | 1 + deb.wiki | 22 ++++++++++++++++++++++ index.wiki | 2 ++ lvm.wiki | 8 ++++++++ nspawn.wiki | 17 +++++++++++++++++ php.wiki | 5 +++++ 6 files changed, 55 insertions(+) create mode 100644 lvm.wiki create mode 100644 php.wiki diff --git a/Media.wiki b/Media.wiki index e78a17e..cb0f6e0 100644 --- a/Media.wiki +++ b/Media.wiki @@ -24,6 +24,7 @@ Teolog - [ ] On looking: eleven walks with export eyes https://www.amazon.co.uk/Looking-Eleven-Walks-Expert-Eyes/dp/1439191255 - [ ] The Foundation Trilogy av Isaav Asimov - [ ] Processen - Kafka +- [ ] The Time Travaler's Wife == Böcker (fackliga) == - [ ] "List Processing in Real Time on a Serial Computer" by Henry Baker diff --git a/deb.wiki b/deb.wiki index 646dd74..e413bb8 100644 --- a/deb.wiki +++ b/deb.wiki @@ -1,3 +1,5 @@ +See also [[debian-pkg]] + All commands assume (unless otherwise noted) that PWD is the source dir of the upstream code, and that there is a `debian` repo in that directory. @@ -144,6 +146,7 @@ Paivyt6IdDM9P9VNcUwSPx2JjgMha6YBudp0XGBntHuXnAMalCuvlgBSQ86ldf9M git-dch == Reprepro == +Cutom repo === Deb === {{{sh @@ -176,3 +179,22 @@ Se till att devscripts är installerat - apt source - cd -version - debuild + + +== licensecheck == +Possibly checks the debian/copyright file + + +== Other files == +https://www.debian.org/doc/manuals/maint-guide/dother.en.html#install + +== All lintian errors == +https://lintian.debian.org/tags + +== No signing == +{{{ +debuild -u -uc +}}} +builds without signing + + diff --git a/index.wiki b/index.wiki index e8ef83c..c146c9c 100644 --- a/index.wiki +++ b/index.wiki @@ -21,6 +21,8 @@ - [[sudo]] - [[yum]] - [[nspawn]] +- [[lvm]] +- [[php]] - [[framebuffer]] == Projekt == diff --git a/lvm.wiki b/lvm.wiki new file mode 100644 index 0000000..8e408b1 --- /dev/null +++ b/lvm.wiki @@ -0,0 +1,8 @@ +pvs :: physical volumes +lvs :: logical volumes +vgs :: volume groups + +== Create Thin Volume == +lvcreate -n vm- -V 100G --thinpool lvpoolData VolGroup + +Se även [[wn.private:adrift_space]] diff --git a/nspawn.wiki b/nspawn.wiki index 9a9994c..2850562 100644 --- a/nspawn.wiki +++ b/nspawn.wiki @@ -1,8 +1,25 @@ +== Debian == + +=== Create new debian container === + {{{ debootstrap bullseye /var/lib/machines/debian-bullseye.base +}}} + +https://puppet.com/docs/puppet/7/install_puppet.html#install_puppet + +== Copy existing container == + +{{{ systemctl-nspawn --template=EXISTING_OS_TREE -D /var/lib/machines/NEW_MACHINE }}} +== Setting up container == + +== Food for thought == + overlayfs doesn't work with containers, due to something with UID/GID shift btrfs subvolumes should be used for templates, since those enable COW. + + diff --git a/php.wiki b/php.wiki new file mode 100644 index 0000000..4dc5b08 --- /dev/null +++ b/php.wiki @@ -0,0 +1,5 @@ +Run a local webserver for testing PHP sites + +{{{ +php -S [::]:8000 +}}} -- cgit v1.2.3