Quick Dirty Postgresql Nspawn Container on Arch Linux
+Refer to the Nspawn page for setting up the nspawn container.
+ +diff --git a/README.md b/README.md index d6c9f3c..4c70611 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ # trentdocs_website repo for a documentation website +http://trentsonlinedocs.xyz diff --git a/docs/Screenshot_20170628-115844.png b/docs/Screenshot_20170628-115844.png new file mode 100644 index 0000000..6d61550 Binary files /dev/null and b/docs/Screenshot_20170628-115844.png differ diff --git a/docs/Screenshot_20170628-131016.png b/docs/Screenshot_20170628-131016.png new file mode 100644 index 0000000..15a55e7 Binary files /dev/null and b/docs/Screenshot_20170628-131016.png differ diff --git a/docs/Screenshot_20170628-131806.png b/docs/Screenshot_20170628-131806.png new file mode 100644 index 0000000..7591192 Binary files /dev/null and b/docs/Screenshot_20170628-131806.png differ diff --git a/docs/Screenshot_20170628-132029.png b/docs/Screenshot_20170628-132029.png new file mode 100644 index 0000000..fdc2cfd Binary files /dev/null and b/docs/Screenshot_20170628-132029.png differ diff --git a/docs/Screenshot_20170628-133544.png b/docs/Screenshot_20170628-133544.png new file mode 100644 index 0000000..a964266 Binary files /dev/null and b/docs/Screenshot_20170628-133544.png differ diff --git a/docs/Screenshot_20170628-134328.png b/docs/Screenshot_20170628-134328.png new file mode 100644 index 0000000..a386295 Binary files /dev/null and b/docs/Screenshot_20170628-134328.png differ diff --git a/docs/Screenshot_20170628-142255.png b/docs/Screenshot_20170628-142255.png new file mode 100644 index 0000000..49077eb Binary files /dev/null and b/docs/Screenshot_20170628-142255.png differ diff --git a/docs/Screenshot_20170628-143639.png b/docs/Screenshot_20170628-143639.png new file mode 100644 index 0000000..1108392 Binary files /dev/null and b/docs/Screenshot_20170628-143639.png differ diff --git a/docs/Screenshot_20170628-152552.png b/docs/Screenshot_20170628-152552.png new file mode 100644 index 0000000..3a2ed64 Binary files /dev/null and b/docs/Screenshot_20170628-152552.png differ diff --git a/docs/Screenshot_20170628-153026.png b/docs/Screenshot_20170628-153026.png new file mode 100644 index 0000000..3b2eb1f Binary files /dev/null and b/docs/Screenshot_20170628-153026.png differ diff --git a/docs/arch_reddis_nspawn.md b/docs/arch_postgresql_nspawn.md similarity index 57% rename from docs/arch_reddis_nspawn.md rename to docs/arch_postgresql_nspawn.md index 75e2240..caea94e 100644 --- a/docs/arch_reddis_nspawn.md +++ b/docs/arch_postgresql_nspawn.md @@ -1,3 +1,3 @@ -# Quick Dirty Reddis Nspawn Container on Arch Linux +# Quick Dirty Postgresql Nspawn Container on Arch Linux Refer to the [Nspawn](nspawn.md) page for setting up the nspawn container. diff --git a/docs/arch_redis_nspawn.md b/docs/arch_redis_nspawn.md new file mode 100644 index 0000000..e01ef88 --- /dev/null +++ b/docs/arch_redis_nspawn.md @@ -0,0 +1,16 @@ +# Quick Dirty Redis Nspawn Container on Arch Linux + +Refer to the [Nspawn](nspawn.md) page for setting up the nspawn container. + +Once you have the container running, it seems all you have to do to get +things working in a container subnet is to change the bind address. + +```text +# /etc/redis.conf +# bind 127.0.0.1 +bind 0.0.0.0 +``` + +you can nmap port 6379, be sure to restart redis + +[Again I would refer you to the Arch Wiki](https://wiki.archlinux.org/index.php/Redis) diff --git a/docs/index.md b/docs/index.md index 0e44ccb..0e3fe97 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,6 +1,11 @@ # Welcome to Trent Docs +## [Git Repo For These Docs](https://github.com/TrentSPalmer/trentdocs_website) +Obviously, the commit history will reflect the time when these documents are written. + * [Nspawn Containers](nspawn.md) -* [Quick Dirty Reddis Nspawn Container on Arch Linux](arch_reddis_nspawn.md) +* [Quick Dirty Redis Nspawn Container on Arch Linux](arch_redis_nspawn.md) +* [Quick Dirty Postgresql Nspawn Container on Arch Linux](arch_postgresql_nspawn.md) +* [Serve And Share Apps From Your Phone With Fdroid](server_and_share_apps_from_your_phone_with_fdroid.md) + +
+ + + + + + +Refer to the Nspawn page for setting up the nspawn container.
+ +Refer to the Nspawn page for setting up the nspawn container.
+Once you have the container running, it seems all you have to do to get +things working in a container subnet is to change the bind address.
+# /etc/redis.conf
+# bind 127.0.0.1
+bind 0.0.0.0
+
+
+you can nmap port 6379, be sure to restart redis
+Obviously, the commit history will reflect the time when these documents are written.
Arch Linux Wiki for Nspawn Containers
+This Link For Arch Linux Wiki for Nspawn Containers
cd /var/lib/machines
# create a directory
@@ -124,6 +134,12 @@ mkdir <container>
pacstrap -i -c -d <container> base --ignore linux
+At this point you might want to copy over some configs to save time later.
+systemd-nspawn -b -D <container>
passwd
@@ -197,6 +213,15 @@ bash
timedatectl set-timezone <timezone>
# enable ntp, networktime
timedatectl set-ntp 1
+# enable networking from inside the container
+systemctl enable systemd-networkd
+systemctl start systemd-networkd
+systemctl enable systemd-resolved
+systemctl start systemd-resolved
+rm /etc/resolv.conf
+ln -s /run/systemd/resolve/resolv.conf /etc/
+# ping google
+ping -c 3 google.com
If you want to change the locale
@@ -207,7 +232,7 @@ timedatectl set-ntp 1 diff --git a/site/search.html b/site/search.html index 858a8ce..6ed441e 100644 --- a/site/search.html +++ b/site/search.html @@ -55,7 +55,17 @@
+Notice you can use either a qr code or a local url, so grab one of your other phones.
+Privacy Friendly Qr Scanner appears to be a good Qr scanner,
+but of course you can key in the url by hand too.
If you prefer not to key in the url by hand, on phone two touch the +home button and then open your qr-scanning application and scan the +qr code on phone one, as seen in photo Ocho. The qr-scanning +app will direct you to open fdroid, and your result will be the same as +the photo in Step Eleven A
+