diff options
| author | Don Delmar Davis <don@suspectdevices.com> | 2021-02-01 06:48:31 -0800 |
|---|---|---|
| committer | Don Delmar Davis <don@suspectdevices.com> | 2021-02-01 06:48:31 -0800 |
| commit | 25ce443d5614daa750a45a86ccdc57535c26ba27 (patch) | |
| tree | be2157c3bcdc5d1cf64154c4c8ef13ab366c03b0 /README.md | |
| parent | bc6dc07f5c412de1dde34da2f46a65104cda5d8e (diff) | |
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 69 |
1 files changed, 37 insertions, 32 deletions
@@ -300,7 +300,7 @@ network: ## Job #1: Edgy services. -* pihole +### pihole ``` apt-get install git-core @@ -318,7 +318,7 @@ if [ -x "$(command -v pihole)" ]; then fi ... ``` -* squid +### squid ``` apt-get install squid @@ -351,44 +351,49 @@ refresh_pattern -i (/cgi-bin/|\?) 0 0% 0 refresh_pattern (Release|Packages(.gz)*)$ 0 20% 2880 refresh_pattern . 0 20% 4320 ``` -* web server with afs share. +### web server with afs share. - mapping users/drives on the container host +#### mapping users/drives on the container host - ``` - echo 'root:1000:1' | sudo tee -a /etc/subuid /etc/subgid - cat /etc/subgid - lxc config set nina raw.idmap 'both 1000 1000' - lxc config edit nina - ... - devices: - sdg1: +``` +echo 'root:1000:1' | sudo tee -a /etc/subuid /etc/subgid +cat /etc/subgid +lxc config set nina raw.idmap 'both 1000 1000' +lxc config edit nina +... +devices: + sdg1: path: theflatfield source: /theflatfield type: disk - ... - - lxc start nina - - ``` +... +lxc start nina +``` - installing netatalk on container - - ``` - apt-get install netatalk - useradd don -m -c"Donald Delmar Davis" -u 1000 -g 1000 - passwd don - nano /etc/netatalk/afp.conf - [Global] - ; Global server settings - valid users=don - ; [Homes] - ; basedir regex = /xxxx - [TheFlatField] - path=/theflatfield - ``` +#### Installing netatalk on container +``` +apt-get install netatalk +useradd don -m -c"Donald Delmar Davis" -u 1000 -g 1000 +passwd don +nano /etc/netatalk/afp.conf +[Global] + ; Global server settings + valid users=don + ; [Homes] + ; basedir regex = /xxxx +[TheFlatField] + path=/theflatfield +``` +#### Serving it up with lighttpd +``` +apt-get install lighttpd +nano /etc/lighttpd/lighttpd.conf +... +server.document-root = "/theflatfield/static/digithink/site" +... +``` ### linkdump * [https://openzfs.github.io/openzfs-docs/Getting%20Started/Ubuntu/Ubuntu%2020.04%20Root%20on%20ZFS.html#rescuing-using-a-live-cd](https://openzfs.github.io/openzfs-docs/Getting%20Started/Ubuntu/Ubuntu%2020.04%20Root%20on%20ZFS.html#rescuing-using-a-live-cd) |
