new file docs/gentoo_lxd_container.md

This commit is contained in:
Trent Palmer 2017-07-29 10:20:59 -07:00
parent 14649a2871
commit 5eb70659ef
21 changed files with 453 additions and 21 deletions

View File

@ -0,0 +1,59 @@
# Gentoo LXD Container
## There are Gentoo images at [linuxcontainers.org](https://us.images.linuxcontainers.org/)
```bash
lxc image list images: | grep gentoo
lxc init images:34760012759f
# or
lxc init images:34760012759f <pick a name>
```
## Networking
The default image will request dhcp service on eth0. If you need a second static
connection on eth1, do the following. Describe eth1 in `/etc/conf.d/net`
```conf
# /etc/conf.d/net
config_eth1="10.44.84.101 netmask 255.255.255.0 brd 10.44.84.255"
routes_eth1="default via 10.44.84.1"
```
Then in `/etc/init.d/`
```bash
ln -s /etc/init.d/net.lo /etc/init.d/net.eth1
```
Enable net.eth1 in init.
```bash
rc-update add net.eth1 default
```
And then start networking on eth1
```bash
/etc/init.d/net.eth1 start
```
## Locale and Timezone
You're supposed to write your timezone in `/etc/timezone`, `echo "Europe/Brussels" > /etc/timezone`,
and then run the command `emerge --config sys-libs/timezone-data`. But this doesn't work.
You can set the locale by uncommenting your locale in `/etc/locale-gen`, and then
running the following commands.
```bash
locale-gen
eselect locale list
eselect locale set <number>
. /etc/profile
```
And the following corrected the timezone.
```bash
unlink /etc/localtime
ln -s /usr/share/zoneinfo/America/Los_Angeles /etc/localtime
```

View File

@ -7,6 +7,7 @@ Obviously, the commit history will reflect the time when these documents are wri
* [How To Reassign A Static Ip Address with dnsmasq](how_to_reassign_a_static_ip_address_with_dnsmasq.md)
* [Serve And Share Apps From Your Phone With Fdroid](serve_and_share_apps_from_your_phone_with_fdroid.md)
* [Nspawn Containers](nspawn.md)
* [Gentoo LXD Container](gentoo_lxd_container.md)
* [Mastodon on Arch](mastodon_on_arch.md)
* [Debian Nspawn Container On Arch For Testing Apache Configurations](debian_nspawn_container_on_arch_for_testing_apache_configurations.md)
* [Dynamic Cacheing Nginx Reverse Proxy For Pacman](dynamic_cacheing_nginx_reverse_proxy_for_pacman.md)

View File

@ -9,6 +9,7 @@ pages:
- 'How To Reassign A Static Ip Address with dnsmasq': how_to_reassign_a_static_ip_address_with_dnsmasq.md
- 'Serve And Share Apps From Your Phone With Fdroid': serve_and_share_apps_from_your_phone_with_fdroid.md
- 'Nspawn': nspawn.md
- 'Gentoo LXD Container': gentoo_lxd_container.md
- 'Mastodon on Arch': mastodon_on_arch.md
- 'Debian Nspawn Container On Arch For Testing Apache Configurations': debian_nspawn_container_on_arch_for_testing_apache_configurations.md
- 'Dynamic Cacheing Nginx Reverse Proxy For Pacman': dynamic_cacheing_nginx_reverse_proxy_for_pacman.md

View File

@ -85,6 +85,11 @@
<li class="toctree-l1">
<a class="" href="../gentoo_lxd_container/">Gentoo LXD Container</a>
</li>
<li class="toctree-l1">
<a class="" href="../mastodon_on_arch/">Mastodon on Arch</a>
</li>

View File

@ -79,6 +79,11 @@
<li class="toctree-l1">
<a class="" href="../gentoo_lxd_container/">Gentoo LXD Container</a>
</li>
<li class="toctree-l1">
<a class="" href="../mastodon_on_arch/">Mastodon on Arch</a>
</li>

View File

@ -79,6 +79,11 @@
<li class="toctree-l1">
<a class="" href="../gentoo_lxd_container/">Gentoo LXD Container</a>
</li>
<li class="toctree-l1">
<a class="" href="../mastodon_on_arch/">Mastodon on Arch</a>
</li>

View File

@ -79,6 +79,11 @@
<li class="toctree-l1">
<a class="" href="../gentoo_lxd_container/">Gentoo LXD Container</a>
</li>
<li class="toctree-l1">
<a class="" href="../mastodon_on_arch/">Mastodon on Arch</a>
</li>

View File

@ -79,6 +79,11 @@
<li class="toctree-l1">
<a class="" href="../gentoo_lxd_container/">Gentoo LXD Container</a>
</li>
<li class="toctree-l1">
<a class="" href="../mastodon_on_arch/">Mastodon on Arch</a>
</li>

View File

@ -79,6 +79,11 @@
<li class="toctree-l1">
<a class="" href="../gentoo_lxd_container/">Gentoo LXD Container</a>
</li>
<li class="toctree-l1">
<a class="" href="../mastodon_on_arch/">Mastodon on Arch</a>
</li>

View File

@ -0,0 +1,262 @@
<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="../img/favicon.ico">
<title>Gentoo LXD Container - Trent Docs</title>
<link href='https://fonts.googleapis.com/css?family=Lato:400,700|Roboto+Slab:400,700|Inconsolata:400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="../css/theme.css" type="text/css" />
<link rel="stylesheet" href="../css/theme_extra.css" type="text/css" />
<link rel="stylesheet" href="../css/highlight.css">
<script>
// Current page data
var mkdocs_page_name = "Gentoo LXD Container";
var mkdocs_page_input_path = "gentoo_lxd_container.md";
var mkdocs_page_url = "/gentoo_lxd_container/";
</script>
<script src="../js/jquery-2.1.1.min.js"></script>
<script src="../js/modernizr-2.8.3.min.js"></script>
<script type="text/javascript" src="../js/highlight.pack.js"></script>
</head>
<body class="wy-body-for-nav" role="document">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side stickynav">
<div class="wy-side-nav-search">
<a href=".." class="icon icon-home"> Trent Docs</a>
<div role="search">
<form id ="rtd-search-form" class="wy-form" action="../search.html" method="get">
<input type="text" name="q" placeholder="Search docs" />
</form>
</div>
</div>
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
<ul class="current">
<li class="toctree-l1">
<a class="" href="..">Home</a>
</li>
<li class="toctree-l1">
<a class="" href="../apt_pinning_artful_aardvark_packages_in_xenial_xerus/">Apt Pinning Artful Aardvark Packages in Xenial Xerus</a>
</li>
<li class="toctree-l1">
<a class="" href="../lxd_container_home_server_networking_for_dummies/">LXD Container Home Server Networking For Dummies</a>
</li>
<li class="toctree-l1">
<a class="" href="../how_to_reassign_a_static_ip_address_with_dnsmasq/">How To Reassign A Static Ip Address with dnsmasq</a>
</li>
<li class="toctree-l1">
<a class="" href="../serve_and_share_apps_from_your_phone_with_fdroid/">Serve And Share Apps From Your Phone With Fdroid</a>
</li>
<li class="toctree-l1">
<a class="" href="../nspawn/">Nspawn</a>
</li>
<li class="toctree-l1 current">
<a class="current" href="./">Gentoo LXD Container</a>
<ul class="subnav">
<li class="toctree-l2"><a href="#gentoo-lxd-container">Gentoo LXD Container</a></li>
<ul>
<li><a class="toctree-l3" href="#there-are-gentoo-images-at-linuxcontainersorg">There are Gentoo images at linuxcontainers.org</a></li>
<li><a class="toctree-l3" href="#networking">Networking</a></li>
<li><a class="toctree-l3" href="#locale-and-timezone">Locale and Timezone</a></li>
</ul>
</ul>
</li>
<li class="toctree-l1">
<a class="" href="../mastodon_on_arch/">Mastodon on Arch</a>
</li>
<li class="toctree-l1">
<a class="" href="../debian_nspawn_container_on_arch_for_testing_apache_configurations/">Debian Nspawn Container On Arch For Testing Apache Configurations</a>
</li>
<li class="toctree-l1">
<a class="" href="../dynamic_cacheing_nginx_reverse_proxy_for_pacman/">Dynamic Cacheing Nginx Reverse Proxy For Pacman</a>
</li>
<li class="toctree-l1">
<a class="" href="../freebsd_jails_on_freenas/">FreeBSD Jails on FreeNAS</a>
</li>
<li class="toctree-l1">
<a class="" href="../arch_redis_nspawn/">Quick Dirty Redis Nspawn Container on Arch Linux</a>
</li>
<li class="toctree-l1">
<a class="" href="../arch_postgresql_nspawn/">Quick Dirty Postgresql Nspawn Container on Arch Linux</a>
</li>
<li class="toctree-l1">
<a class="" href="../misc_tips_troubleshooting/">Misc Tips, Trouble Shooting</a>
</li>
<li class="toctree-l1">
<a class="" href="../self_signed_certs/">Self Signed Certs</a>
</li>
</ul>
</div>
&nbsp;
</nav>
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="..">Trent Docs</a>
</nav>
<div class="wy-nav-content">
<div class="rst-content">
<div role="navigation" aria-label="breadcrumbs navigation">
<ul class="wy-breadcrumbs">
<li><a href="..">Docs</a> &raquo;</li>
<li>Gentoo LXD Container</li>
<li class="wy-breadcrumbs-aside">
</li>
</ul>
<hr/>
</div>
<div role="main">
<div class="section">
<h1 id="gentoo-lxd-container">Gentoo LXD Container</h1>
<h2 id="there-are-gentoo-images-at-linuxcontainersorg">There are Gentoo images at <a href="https://us.images.linuxcontainers.org/">linuxcontainers.org</a></h2>
<pre><code class="bash">lxc image list images: | grep gentoo
lxc init images:34760012759f
# or
lxc init images:34760012759f &lt;pick a name&gt;
</code></pre>
<h2 id="networking">Networking</h2>
<p>The default image will request dhcp service on eth0. If you need a second static
connection on eth1, do the following. Describe eth1 in <code>/etc/conf.d/net</code></p>
<pre><code class="conf"># /etc/conf.d/net
config_eth1=&quot;10.44.84.101 netmask 255.255.255.0 brd 10.44.84.255&quot;
routes_eth1=&quot;default via 10.44.84.1&quot;
</code></pre>
<p>Then in <code>/etc/init.d/</code></p>
<pre><code class="bash">ln -s /etc/init.d/net.lo /etc/init.d/net.eth1
</code></pre>
<p>Enable net.eth1 in init.</p>
<pre><code class="bash">rc-update add net.eth1 default
</code></pre>
<p>And then start networking on eth1</p>
<pre><code class="bash">/etc/init.d/net.eth1 start
</code></pre>
<h2 id="locale-and-timezone">Locale and Timezone</h2>
<p>You're supposed to write your timezone in <code>/etc/timezone</code>, <code>echo "Europe/Brussels" &gt; /etc/timezone</code>,
and then run the command <code>emerge --config sys-libs/timezone-data</code>. But this doesn't work.</p>
<p>You can set the locale by uncommenting your locale in <code>/etc/locale-gen</code>, and then
running the following commands.</p>
<pre><code class="bash">locale-gen
eselect locale list
eselect locale set &lt;number&gt;
. /etc/profile
</code></pre>
<p>And the following corrected the timezone.</p>
<pre><code class="bash">unlink /etc/localtime
ln -s /usr/share/zoneinfo/America/Los_Angeles /etc/localtime
</code></pre>
</div>
</div>
<footer>
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
<a href="../mastodon_on_arch/" class="btn btn-neutral float-right" title="Mastodon on Arch">Next <span class="icon icon-circle-arrow-right"></span></a>
<a href="../nspawn/" class="btn btn-neutral" title="Nspawn"><span class="icon icon-circle-arrow-left"></span> Previous</a>
</div>
<hr/>
<div role="contentinfo">
<!-- Copyright etc -->
</div>
Built with <a href="http://www.mkdocs.org">MkDocs</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
</footer>
</div>
</div>
</section>
</div>
<div class="rst-versions" role="note" style="cursor: pointer">
<span class="rst-current-version" data-toggle="rst-current-version">
<span><a href="../nspawn/" style="color: #fcfcfc;">&laquo; Previous</a></span>
<span style="margin-left: 15px"><a href="../mastodon_on_arch/" style="color: #fcfcfc">Next &raquo;</a></span>
</span>
</div>
<script src="../js/theme.js"></script>
</body>
</html>

View File

@ -85,6 +85,11 @@
<li class="toctree-l1">
<a class="" href="../gentoo_lxd_container/">Gentoo LXD Container</a>
</li>
<li class="toctree-l1">
<a class="" href="../mastodon_on_arch/">Mastodon on Arch</a>
</li>

View File

@ -91,6 +91,11 @@
<li class="toctree-l1">
<a class="" href="gentoo_lxd_container/">Gentoo LXD Container</a>
</li>
<li class="toctree-l1">
<a class="" href="mastodon_on_arch/">Mastodon on Arch</a>
</li>
@ -170,6 +175,7 @@
<li><a href="how_to_reassign_a_static_ip_address_with_dnsmasq/">How To Reassign A Static Ip Address with dnsmasq</a></li>
<li><a href="serve_and_share_apps_from_your_phone_with_fdroid/">Serve And Share Apps From Your Phone With Fdroid</a></li>
<li><a href="nspawn/">Nspawn Containers</a></li>
<li><a href="gentoo_lxd_container/">Gentoo LXD Container</a></li>
<li><a href="mastodon_on_arch/">Mastodon on Arch</a></li>
<li><a href="debian_nspawn_container_on_arch_for_testing_apache_configurations/">Debian Nspawn Container On Arch For Testing Apache Configurations</a></li>
<li><a href="dynamic_cacheing_nginx_reverse_proxy_for_pacman/">Dynamic Cacheing Nginx Reverse Proxy For Pacman</a></li>
@ -228,5 +234,5 @@
<!--
MkDocs version : 0.16.3
Build Date UTC : 2017-07-26 16:30:30
Build Date UTC : 2017-07-29 17:20:48
-->

View File

@ -99,6 +99,11 @@
<li class="toctree-l1">
<a class="" href="../gentoo_lxd_container/">Gentoo LXD Container</a>
</li>
<li class="toctree-l1">
<a class="" href="../mastodon_on_arch/">Mastodon on Arch</a>
</li>

View File

@ -77,6 +77,11 @@
<a class="" href="../nspawn/">Nspawn</a>
</li>
<li class="toctree-l1">
<a class="" href="../gentoo_lxd_container/">Gentoo LXD Container</a>
</li>
<li class="toctree-l1 current">
<a class="current" href="./">Mastodon on Arch</a>
@ -223,7 +228,7 @@ even start. (Also <code>chmod 755 ~/</code>)</p>
<a href="../debian_nspawn_container_on_arch_for_testing_apache_configurations/" class="btn btn-neutral float-right" title="Debian Nspawn Container On Arch For Testing Apache Configurations">Next <span class="icon icon-circle-arrow-right"></span></a>
<a href="../nspawn/" class="btn btn-neutral" title="Nspawn"><span class="icon icon-circle-arrow-left"></span> Previous</a>
<a href="../gentoo_lxd_container/" class="btn btn-neutral" title="Gentoo LXD Container"><span class="icon icon-circle-arrow-left"></span> Previous</a>
</div>
@ -249,7 +254,7 @@ even start. (Also <code>chmod 755 ~/</code>)</p>
<span class="rst-current-version" data-toggle="rst-current-version">
<span><a href="../nspawn/" style="color: #fcfcfc;">&laquo; Previous</a></span>
<span><a href="../gentoo_lxd_container/" style="color: #fcfcfc;">&laquo; Previous</a></span>
<span style="margin-left: 15px"><a href="../debian_nspawn_container_on_arch_for_testing_apache_configurations/" style="color: #fcfcfc">Next &raquo;</a></span>

View File

@ -79,6 +79,11 @@
<li class="toctree-l1">
<a class="" href="../gentoo_lxd_container/">Gentoo LXD Container</a>
</li>
<li class="toctree-l1">
<a class="" href="../mastodon_on_arch/">Mastodon on Arch</a>
</li>

View File

@ -2,7 +2,7 @@
"docs": [
{
"location": "/",
"text": "Welcome to Trent Docs\n\n\nGit Repo For These Docs\n\n\nObviously, the commit history will reflect the time when these documents are written.\n\n\n\n\nApt Pinning Artful Aardvark Packages in Xenial Xerus\n\n\nLXD Container Home Server Networking For Dummies\n\n\nHow To Reassign A Static Ip Address with dnsmasq\n\n\nServe And Share Apps From Your Phone With Fdroid\n\n\nNspawn Containers\n\n\nMastodon on Arch\n\n\nDebian Nspawn Container On Arch For Testing Apache Configurations\n\n\nDynamic Cacheing Nginx Reverse Proxy For Pacman\n\n\nFreeBSD Jails on FreeNAS\n \n\n\nQuick Dirty Redis Nspawn Container on Arch Linux\n\n\nQuick Dirty Postgresql Nspawn Container on Arch Linux\n\n\nMisc Tips, Trouble Shooting\n\n\nSelf Signed Certs",
"text": "Welcome to Trent Docs\n\n\nGit Repo For These Docs\n\n\nObviously, the commit history will reflect the time when these documents are written.\n\n\n\n\nApt Pinning Artful Aardvark Packages in Xenial Xerus\n\n\nLXD Container Home Server Networking For Dummies\n\n\nHow To Reassign A Static Ip Address with dnsmasq\n\n\nServe And Share Apps From Your Phone With Fdroid\n\n\nNspawn Containers\n\n\nGentoo LXD Container\n\n\nMastodon on Arch\n\n\nDebian Nspawn Container On Arch For Testing Apache Configurations\n\n\nDynamic Cacheing Nginx Reverse Proxy For Pacman\n\n\nFreeBSD Jails on FreeNAS\n \n\n\nQuick Dirty Redis Nspawn Container on Arch Linux\n\n\nQuick Dirty Postgresql Nspawn Container on Arch Linux\n\n\nMisc Tips, Trouble Shooting\n\n\nSelf Signed Certs",
"title": "Home"
},
{
@ -12,7 +12,7 @@
},
{
"location": "/#git-repo-for-these-docs",
"text": "Obviously, the commit history will reflect the time when these documents are written. Apt Pinning Artful Aardvark Packages in Xenial Xerus LXD Container Home Server Networking For Dummies How To Reassign A Static Ip Address with dnsmasq Serve And Share Apps From Your Phone With Fdroid Nspawn Containers Mastodon on Arch Debian Nspawn Container On Arch For Testing Apache Configurations Dynamic Cacheing Nginx Reverse Proxy For Pacman FreeBSD Jails on FreeNAS Quick Dirty Redis Nspawn Container on Arch Linux Quick Dirty Postgresql Nspawn Container on Arch Linux Misc Tips, Trouble Shooting Self Signed Certs",
"text": "Obviously, the commit history will reflect the time when these documents are written. Apt Pinning Artful Aardvark Packages in Xenial Xerus LXD Container Home Server Networking For Dummies How To Reassign A Static Ip Address with dnsmasq Serve And Share Apps From Your Phone With Fdroid Nspawn Containers Gentoo LXD Container Mastodon on Arch Debian Nspawn Container On Arch For Testing Apache Configurations Dynamic Cacheing Nginx Reverse Proxy For Pacman FreeBSD Jails on FreeNAS Quick Dirty Redis Nspawn Container on Arch Linux Quick Dirty Postgresql Nspawn Container on Arch Linux Misc Tips, Trouble Shooting Self Signed Certs",
"title": "Git Repo For These Docs"
},
{
@ -275,6 +275,31 @@
"text": "You can start/stop nspawn containers with machinectl command. You can start nspawn containers with systemd-nspawn command. You can configure the systemd service for a container with @nspawn.service file override Or you can configure an nspawn container with a dot.nspawn file But in regards to the above list\nI have noticed differences in behaviour,\nin some scenarios, concerning file attributes\nfor bind mounts. Another curiosity: when you have nspawn containers natted on VirtualEthernet connections,\nthey might be able to ping each other at 10.x.y.z, but not resolve each other. But they might\nbe able to resolve each other if they are all connected to the same bridge interface or nspawn\nnetwork zone, but will randomly resolve each other in any of the 10.x.y.z, 169.x.y.z,\nor fe80::....:....:....%host (ipv6 local) spaces, which would complicate configuring the containers\nto talk to each other. But I intend to look into this some more.",
"title": "Final Observations"
},
{
"location": "/gentoo_lxd_container/",
"text": "Gentoo LXD Container\n\n\nThere are Gentoo images at \nlinuxcontainers.org\n\n\nlxc image list images: | grep gentoo\nlxc init images:34760012759f\n# or\nlxc init images:34760012759f <pick a name>\n\n\n\n\nNetworking\n\n\nThe default image will request dhcp service on eth0. If you need a second static\nconnection on eth1, do the following. Describe eth1 in \n/etc/conf.d/net\n\n\n# /etc/conf.d/net\nconfig_eth1=\"10.44.84.101 netmask 255.255.255.0 brd 10.44.84.255\"\nroutes_eth1=\"default via 10.44.84.1\"\n\n\n\n\nThen in \n/etc/init.d/\n\n\nln -s /etc/init.d/net.lo /etc/init.d/net.eth1\n\n\n\n\nEnable net.eth1 in init.\n\n\nrc-update add net.eth1 default\n\n\n\n\nAnd then start networking on eth1\n\n\n/etc/init.d/net.eth1 start\n\n\n\n\nLocale and Timezone\n\n\nYou're supposed to write your timezone in \n/etc/timezone\n, \necho \"Europe/Brussels\" > /etc/timezone\n,\nand then run the command \nemerge --config sys-libs/timezone-data\n. But this doesn't work.\n\n\nYou can set the locale by uncommenting your locale in \n/etc/locale-gen\n, and then\nrunning the following commands.\n\n\nlocale-gen\neselect locale list\neselect locale set <number>\n. /etc/profile\n\n\n\n\nAnd the following corrected the timezone.\n\n\nunlink /etc/localtime\nln -s /usr/share/zoneinfo/America/Los_Angeles /etc/localtime",
"title": "Gentoo LXD Container"
},
{
"location": "/gentoo_lxd_container/#gentoo-lxd-container",
"text": "",
"title": "Gentoo LXD Container"
},
{
"location": "/gentoo_lxd_container/#there-are-gentoo-images-at-linuxcontainersorg",
"text": "lxc image list images: | grep gentoo\nlxc init images:34760012759f\n# or\nlxc init images:34760012759f <pick a name>",
"title": "There are Gentoo images at linuxcontainers.org"
},
{
"location": "/gentoo_lxd_container/#networking",
"text": "The default image will request dhcp service on eth0. If you need a second static\nconnection on eth1, do the following. Describe eth1 in /etc/conf.d/net # /etc/conf.d/net\nconfig_eth1=\"10.44.84.101 netmask 255.255.255.0 brd 10.44.84.255\"\nroutes_eth1=\"default via 10.44.84.1\" Then in /etc/init.d/ ln -s /etc/init.d/net.lo /etc/init.d/net.eth1 Enable net.eth1 in init. rc-update add net.eth1 default And then start networking on eth1 /etc/init.d/net.eth1 start",
"title": "Networking"
},
{
"location": "/gentoo_lxd_container/#locale-and-timezone",
"text": "You're supposed to write your timezone in /etc/timezone , echo \"Europe/Brussels\" > /etc/timezone ,\nand then run the command emerge --config sys-libs/timezone-data . But this doesn't work. You can set the locale by uncommenting your locale in /etc/locale-gen , and then\nrunning the following commands. locale-gen\neselect locale list\neselect locale set <number>\n. /etc/profile And the following corrected the timezone. unlink /etc/localtime\nln -s /usr/share/zoneinfo/America/Los_Angeles /etc/localtime",
"title": "Locale and Timezone"
},
{
"location": "/mastodon_on_arch/",
"text": "Some Observations About Installing Mastodon on Arch.\n\n\nNginx\n\n\nFrom the \nProduction Guide\n\nyou can copy the example nginx.conf file to \n/etc/nginx/sites-enabled/some_arbitrary.conf\n,\nand then add the following to \n/etc/nginx/nginx.conf\n in the http section,\nthis with a fresh install of nginx with the default configuration file.\n\n\n# /etc/nginx/nginx.conf \nhttp {\n include sites-enabled/*;\n}\n\n\n\n\nInstalling the Dependancies\n\n\npacman -S certbot nginx libxml2 imagemagick ffmpeg git yarn npm python2 oidentd\n\n\n\n\n# I'm guessing here\npacman -S libpqxx libxslt protobuf protobuf-c\n\n\n\n\n\n\nI'm assuming base-devel is installed\n\n\npython2 seems to be required to run \nyarn install\n command later on\n\n\noidentd seems to be a usable replacement for pident\n\n\nlibpqxx pulls in postgresql-libs\n\n\nfile is already installed\n\n\ncurl is already installed\n\n\nruby-build and rbenv are installable from aur\n\n\nalso postgresql and redis unless, those are in another container or whatever.\n\n\n\n\nOther Observations\n\n\nI discovered that between \ngem install bundler\n and\n\n\nbundle install --deployment --without development test\n,\nyou have to update your environment, with \n\neval \"$(rbenv init -)\"\n, i.e.\n\n\necho 'eval \"$(rbenv init -)\"' >> .bashrc\n# and then\n. ~/.bashrc\n\n\n\n\nYou have to update your environment more than once, during the\ninstallation.\n\n\nPresumably you don't ever want to delete the \n~/live/Public/\n directory\nif that is where assets are being stored, but it seems ok to delete \n\n~/live/node_modules\n and then rerun the \nyarn install\n command.\n\n\nIn \n~/live/.env.production\n, \nSINGLE_USER_MODE=false\n has to be set\nto \nfalse\n until at least one user is created, or the web service won't \neven start. (Also \nchmod 755 ~/\n)",

View File

@ -101,6 +101,11 @@
<li class="toctree-l1">
<a class="" href="../gentoo_lxd_container/">Gentoo LXD Container</a>
</li>
<li class="toctree-l1">
<a class="" href="../mastodon_on_arch/">Mastodon on Arch</a>
</li>
@ -320,7 +325,7 @@ to talk to each other. But I intend to look into this some more.</p>
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
<a href="../mastodon_on_arch/" class="btn btn-neutral float-right" title="Mastodon on Arch">Next <span class="icon icon-circle-arrow-right"></span></a>
<a href="../gentoo_lxd_container/" class="btn btn-neutral float-right" title="Gentoo LXD Container">Next <span class="icon icon-circle-arrow-right"></span></a>
<a href="../serve_and_share_apps_from_your_phone_with_fdroid/" class="btn btn-neutral" title="Serve And Share Apps From Your Phone With Fdroid"><span class="icon icon-circle-arrow-left"></span> Previous</a>
@ -352,7 +357,7 @@ to talk to each other. But I intend to look into this some more.</p>
<span><a href="../serve_and_share_apps_from_your_phone_with_fdroid/" style="color: #fcfcfc;">&laquo; Previous</a></span>
<span style="margin-left: 15px"><a href="../mastodon_on_arch/" style="color: #fcfcfc">Next &raquo;</a></span>
<span style="margin-left: 15px"><a href="../gentoo_lxd_container/" style="color: #fcfcfc">Next &raquo;</a></span>
</span>
</div>

View File

@ -75,6 +75,11 @@
<li class="toctree-l1">
<a class="" href="gentoo_lxd_container/">Gentoo LXD Container</a>
</li>
<li class="toctree-l1">
<a class="" href="mastodon_on_arch/">Mastodon on Arch</a>
</li>

View File

@ -79,6 +79,11 @@
<li class="toctree-l1">
<a class="" href="../gentoo_lxd_container/">Gentoo LXD Container</a>
</li>
<li class="toctree-l1">
<a class="" href="../mastodon_on_arch/">Mastodon on Arch</a>
</li>

View File

@ -113,6 +113,11 @@
<li class="toctree-l1">
<a class="" href="../gentoo_lxd_container/">Gentoo LXD Container</a>
</li>
<li class="toctree-l1">
<a class="" href="../mastodon_on_arch/">Mastodon on Arch</a>
</li>

View File

@ -4,7 +4,7 @@
<url>
<loc>/</loc>
<lastmod>2017-07-26</lastmod>
<lastmod>2017-07-29</lastmod>
<changefreq>daily</changefreq>
</url>
@ -12,7 +12,7 @@
<url>
<loc>/apt_pinning_artful_aardvark_packages_in_xenial_xerus/</loc>
<lastmod>2017-07-26</lastmod>
<lastmod>2017-07-29</lastmod>
<changefreq>daily</changefreq>
</url>
@ -20,7 +20,7 @@
<url>
<loc>/lxd_container_home_server_networking_for_dummies/</loc>
<lastmod>2017-07-26</lastmod>
<lastmod>2017-07-29</lastmod>
<changefreq>daily</changefreq>
</url>
@ -28,7 +28,7 @@
<url>
<loc>/how_to_reassign_a_static_ip_address_with_dnsmasq/</loc>
<lastmod>2017-07-26</lastmod>
<lastmod>2017-07-29</lastmod>
<changefreq>daily</changefreq>
</url>
@ -36,7 +36,7 @@
<url>
<loc>/serve_and_share_apps_from_your_phone_with_fdroid/</loc>
<lastmod>2017-07-26</lastmod>
<lastmod>2017-07-29</lastmod>
<changefreq>daily</changefreq>
</url>
@ -44,7 +44,15 @@
<url>
<loc>/nspawn/</loc>
<lastmod>2017-07-26</lastmod>
<lastmod>2017-07-29</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>/gentoo_lxd_container/</loc>
<lastmod>2017-07-29</lastmod>
<changefreq>daily</changefreq>
</url>
@ -52,7 +60,7 @@
<url>
<loc>/mastodon_on_arch/</loc>
<lastmod>2017-07-26</lastmod>
<lastmod>2017-07-29</lastmod>
<changefreq>daily</changefreq>
</url>
@ -60,7 +68,7 @@
<url>
<loc>/debian_nspawn_container_on_arch_for_testing_apache_configurations/</loc>
<lastmod>2017-07-26</lastmod>
<lastmod>2017-07-29</lastmod>
<changefreq>daily</changefreq>
</url>
@ -68,7 +76,7 @@
<url>
<loc>/dynamic_cacheing_nginx_reverse_proxy_for_pacman/</loc>
<lastmod>2017-07-26</lastmod>
<lastmod>2017-07-29</lastmod>
<changefreq>daily</changefreq>
</url>
@ -76,7 +84,7 @@
<url>
<loc>/freebsd_jails_on_freenas/</loc>
<lastmod>2017-07-26</lastmod>
<lastmod>2017-07-29</lastmod>
<changefreq>daily</changefreq>
</url>
@ -84,7 +92,7 @@
<url>
<loc>/arch_redis_nspawn/</loc>
<lastmod>2017-07-26</lastmod>
<lastmod>2017-07-29</lastmod>
<changefreq>daily</changefreq>
</url>
@ -92,7 +100,7 @@
<url>
<loc>/arch_postgresql_nspawn/</loc>
<lastmod>2017-07-26</lastmod>
<lastmod>2017-07-29</lastmod>
<changefreq>daily</changefreq>
</url>
@ -100,7 +108,7 @@
<url>
<loc>/misc_tips_troubleshooting/</loc>
<lastmod>2017-07-26</lastmod>
<lastmod>2017-07-29</lastmod>
<changefreq>daily</changefreq>
</url>
@ -108,7 +116,7 @@
<url>
<loc>/self_signed_certs/</loc>
<lastmod>2017-07-26</lastmod>
<lastmod>2017-07-29</lastmod>
<changefreq>daily</changefreq>
</url>