mirror of
https://github.com/TrentSPalmer/trentdocs_website.git
synced 2024-11-23 08:01:30 -08:00
new file docs/freebsd_jails_on_freenas.md
This commit is contained in:
parent
42467ec6d4
commit
f2d545e838
129
docs/freebsd_jails_on_freenas.md
Normal file
129
docs/freebsd_jails_on_freenas.md
Normal file
@ -0,0 +1,129 @@
|
||||
# FreeBSD Jails on FreeNAS
|
||||
Mostly a personal distillation for getting a FreeBSD
|
||||
Jail up and running on FreeNAS.
|
||||
|
||||
## In The FreeNAS WebGui, Create A New Jail
|
||||
|
||||
The default networking configuration, will give
|
||||
your jail an ip address on the lan. For now, I've
|
||||
decided to just share a pkg cache with each jail.
|
||||
Navigate to `Jails -> Storage -> Add Storage` and
|
||||
add the `pkg` storage directory to `/var/cache/pkg`
|
||||
inside the jail.
|
||||
|
||||
For instance, on my local FreeNAS server,
|
||||
the pkg directory is at /mnt/VolumeOne/pkg/.
|
||||
|
||||
If you ssh into the host server, you can type the command
|
||||
`jls`, to list the jails. Based on the output of the
|
||||
command `jls`, you can get a shell with `jexec <jail number>`
|
||||
of `jexec <jail hostname>`.
|
||||
|
||||
### updating
|
||||
|
||||
How about the command `pkg audit -F`? Downloads a
|
||||
list of known security issues and checks your system
|
||||
against that.
|
||||
|
||||
I would recommend, to myself anyway, to shell into
|
||||
the new jail with `jexec`, run `pkg upgrade` to install any new packages,
|
||||
and then from the FreeNAS webgui, restart the jail. Although
|
||||
the restarted jail will have a new jail number as reported by
|
||||
the `jls` command.
|
||||
|
||||
### locale
|
||||
|
||||
When you use `jexec` to get a shell, you get an environment
|
||||
with an utf_8 locale. Not so if you ssh into the new jail.
|
||||
For this put the following contents into ~/.login_conf
|
||||
|
||||
```conf
|
||||
# ~/.login_conf
|
||||
me:\
|
||||
:charset=UTF-8:\
|
||||
:lang=en_US.UTF-8:\
|
||||
:setenv=LC_COLLATE=C:
|
||||
```
|
||||
|
||||
### ssh
|
||||
|
||||
To get ssh running, edit `/etc/rc.conf` inside the jail.
|
||||
|
||||
```conf
|
||||
# /etc/rc.conf
|
||||
sshd_enable="YES"
|
||||
```
|
||||
|
||||
To start sshd immediately, make any necessary edits to
|
||||
/etc/ssh/sshd_config, and run the following command.
|
||||
|
||||
```csh
|
||||
service sshd start
|
||||
```
|
||||
|
||||
## Byobu
|
||||
|
||||
You'll need newt to configure byobu, and if you don't install tmux
|
||||
then screen will become the backend.
|
||||
|
||||
```csh
|
||||
pkg install byobu tmux newt
|
||||
```
|
||||
|
||||
If you execute `byobu-config`, by pressing *f9*, the
|
||||
following options seem to work. Some options, of course,
|
||||
will prevent others from working so you have to enable them
|
||||
one at a time to see what happens.
|
||||
|
||||
* date
|
||||
* disk
|
||||
* distro
|
||||
* hostname
|
||||
* ip address
|
||||
* load_average
|
||||
* logo
|
||||
* time
|
||||
* uptime
|
||||
* users
|
||||
* whoami
|
||||
|
||||
## vim
|
||||
|
||||
Via pkg, there are two options: vim and vim-lite. Note vim will pull
|
||||
in a whole bunch of gui dependancies, but vim-lite is not build with python.
|
||||
|
||||
For instance, powerline will not work with vim-lite because it's not built with
|
||||
python. Also, vim-youcompleteme will not work with vim-lite. However, lightline
|
||||
will work with vim-lite, and VimCompletesMe will work with vim-lite.
|
||||
|
||||
To get lightline working update $TERM
|
||||
|
||||
```config
|
||||
# ~/.config/fish/config.fish
|
||||
export TERM=xterm-256color
|
||||
```
|
||||
|
||||
And vimrc
|
||||
|
||||
```vim
|
||||
# ~/.vimrc
|
||||
set ls=2
|
||||
```
|
||||
|
||||
Another option is to build vim from source via ports. You can prevent vim
|
||||
from pulling in a bunch of gui dependancies with the following in /etc/make.conf.
|
||||
|
||||
```conf
|
||||
# /etc/make.conf
|
||||
WITHOUT_X11=yes
|
||||
```
|
||||
|
||||
And then when you compile vim from ports, run `make config` where you can enable
|
||||
python.
|
||||
|
||||
## python
|
||||
For python3 virtualenv
|
||||
|
||||
```csh
|
||||
virtualenv-3.6 <directory>
|
||||
```
|
@ -7,6 +7,7 @@ Obviously, the commit history will reflect the time when these documents are wri
|
||||
* [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)
|
||||
* [FreeBSD Jails on FreeNAS](freebsd_jails_on_freenas.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)
|
||||
* [Self Signed Certs](self_signed_certs.md)
|
||||
|
@ -9,6 +9,7 @@ pages:
|
||||
- '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
|
||||
- 'FreeBSD Jails on FreeNAS': freebsd_jails_on_freenas.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
|
||||
- 'Self Signed Certs': self_signed_certs.md
|
||||
|
@ -79,6 +79,11 @@
|
||||
|
||||
<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>
|
||||
|
||||
|
@ -77,6 +77,11 @@
|
||||
<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 current">
|
||||
|
||||
<a class="current" href="./">Quick Dirty Redis Nspawn Container on Arch Linux</a>
|
||||
@ -152,7 +157,7 @@ bind 0.0.0.0
|
||||
<a href="../arch_postgresql_nspawn/" class="btn btn-neutral float-right" title="Quick Dirty Postgresql Nspawn Container on Arch Linux">Next <span class="icon icon-circle-arrow-right"></span></a>
|
||||
|
||||
|
||||
<a href="../dynamic_cacheing_nginx_reverse_proxy_for_pacman/" class="btn btn-neutral" title="Dynamic Cacheing Nginx Reverse Proxy For Pacman"><span class="icon icon-circle-arrow-left"></span> Previous</a>
|
||||
<a href="../freebsd_jails_on_freenas/" class="btn btn-neutral" title="FreeBSD Jails on FreeNAS"><span class="icon icon-circle-arrow-left"></span> Previous</a>
|
||||
|
||||
</div>
|
||||
|
||||
@ -178,7 +183,7 @@ bind 0.0.0.0
|
||||
<span class="rst-current-version" data-toggle="rst-current-version">
|
||||
|
||||
|
||||
<span><a href="../dynamic_cacheing_nginx_reverse_proxy_for_pacman/" style="color: #fcfcfc;">« Previous</a></span>
|
||||
<span><a href="../freebsd_jails_on_freenas/" style="color: #fcfcfc;">« Previous</a></span>
|
||||
|
||||
|
||||
<span style="margin-left: 15px"><a href="../arch_postgresql_nspawn/" style="color: #fcfcfc">Next »</a></span>
|
||||
|
@ -85,6 +85,11 @@
|
||||
|
||||
<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>
|
||||
|
||||
|
@ -101,6 +101,11 @@
|
||||
|
||||
<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>
|
||||
|
||||
@ -472,7 +477,7 @@ WantedBy=timers.target
|
||||
|
||||
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
|
||||
|
||||
<a href="../arch_redis_nspawn/" class="btn btn-neutral float-right" title="Quick Dirty Redis Nspawn Container on Arch Linux">Next <span class="icon icon-circle-arrow-right"></span></a>
|
||||
<a href="../freebsd_jails_on_freenas/" class="btn btn-neutral float-right" title="FreeBSD Jails on FreeNAS">Next <span class="icon icon-circle-arrow-right"></span></a>
|
||||
|
||||
|
||||
<a href="../debian_nspawn_container_on_arch_for_testing_apache_configurations/" class="btn btn-neutral" title="Debian Nspawn Container On Arch For Testing Apache Configurations"><span class="icon icon-circle-arrow-left"></span> Previous</a>
|
||||
@ -504,7 +509,7 @@ WantedBy=timers.target
|
||||
<span><a href="../debian_nspawn_container_on_arch_for_testing_apache_configurations/" style="color: #fcfcfc;">« Previous</a></span>
|
||||
|
||||
|
||||
<span style="margin-left: 15px"><a href="../arch_redis_nspawn/" style="color: #fcfcfc">Next »</a></span>
|
||||
<span style="margin-left: 15px"><a href="../freebsd_jails_on_freenas/" style="color: #fcfcfc">Next »</a></span>
|
||||
|
||||
</span>
|
||||
</div>
|
||||
|
294
site/freebsd_jails_on_freenas/index.html
Normal file
294
site/freebsd_jails_on_freenas/index.html
Normal file
@ -0,0 +1,294 @@
|
||||
<!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>FreeBSD Jails on FreeNAS - 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 = "FreeBSD Jails on FreeNAS";
|
||||
var mkdocs_page_input_path = "freebsd_jails_on_freenas.md";
|
||||
var mkdocs_page_url = "/freebsd_jails_on_freenas/";
|
||||
</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="../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">
|
||||
|
||||
<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 current">
|
||||
|
||||
<a class="current" href="./">FreeBSD Jails on FreeNAS</a>
|
||||
<ul class="subnav">
|
||||
|
||||
<li class="toctree-l2"><a href="#freebsd-jails-on-freenas">FreeBSD Jails on FreeNAS</a></li>
|
||||
|
||||
<ul>
|
||||
|
||||
<li><a class="toctree-l3" href="#in-the-freenas-webgui-create-a-new-jail">In The FreeNAS WebGui, Create A New Jail</a></li>
|
||||
|
||||
<li><a class="toctree-l3" href="#byobu">Byobu</a></li>
|
||||
|
||||
<li><a class="toctree-l3" href="#vim">vim</a></li>
|
||||
|
||||
<li><a class="toctree-l3" href="#python">python</a></li>
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
</ul>
|
||||
</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="../self_signed_certs/">Self Signed Certs</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</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> »</li>
|
||||
|
||||
|
||||
|
||||
<li>FreeBSD Jails on FreeNAS</li>
|
||||
<li class="wy-breadcrumbs-aside">
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
<hr/>
|
||||
</div>
|
||||
<div role="main">
|
||||
<div class="section">
|
||||
|
||||
<h1 id="freebsd-jails-on-freenas">FreeBSD Jails on FreeNAS</h1>
|
||||
<p>Mostly a personal distillation for getting a FreeBSD
|
||||
Jail up and running on FreeNAS.</p>
|
||||
<h2 id="in-the-freenas-webgui-create-a-new-jail">In The FreeNAS WebGui, Create A New Jail</h2>
|
||||
<p>The default networking configuration, will give
|
||||
your jail an ip address on the lan. For now, I've
|
||||
decided to just share a pkg cache with each jail.
|
||||
Navigate to <code>Jails -> Storage -> Add Storage</code> and
|
||||
add the <code>pkg</code> storage directory to <code>/var/cache/pkg</code>
|
||||
inside the jail. </p>
|
||||
<p>For instance, on my local FreeNAS server,
|
||||
the pkg directory is at /mnt/VolumeOne/pkg/.</p>
|
||||
<p>If you ssh into the host server, you can type the command
|
||||
<code>jls</code>, to list the jails. Based on the output of the
|
||||
command <code>jls</code>, you can get a shell with <code>jexec <jail number></code>
|
||||
of <code>jexec <jail hostname></code>.</p>
|
||||
<h3 id="updating">updating</h3>
|
||||
<p>How about the command <code>pkg audit -F</code>? Downloads a
|
||||
list of known security issues and checks your system
|
||||
against that.</p>
|
||||
<p>I would recommend, to myself anyway, to shell into
|
||||
the new jail with <code>jexec</code>, run <code>pkg upgrade</code> to install any new packages,
|
||||
and then from the FreeNAS webgui, restart the jail. Although
|
||||
the restarted jail will have a new jail number as reported by
|
||||
the <code>jls</code> command.</p>
|
||||
<h3 id="locale">locale</h3>
|
||||
<p>When you use <code>jexec</code> to get a shell, you get an environment
|
||||
with an utf_8 locale. Not so if you ssh into the new jail.
|
||||
For this put the following contents into ~/.login_conf</p>
|
||||
<pre><code class="conf"># ~/.login_conf
|
||||
me:\
|
||||
:charset=UTF-8:\
|
||||
:lang=en_US.UTF-8:\
|
||||
:setenv=LC_COLLATE=C:
|
||||
</code></pre>
|
||||
|
||||
<h3 id="ssh">ssh</h3>
|
||||
<p>To get ssh running, edit <code>/etc/rc.conf</code> inside the jail.</p>
|
||||
<pre><code class="conf"># /etc/rc.conf
|
||||
sshd_enable="YES"
|
||||
</code></pre>
|
||||
|
||||
<p>To start sshd immediately, make any necessary edits to
|
||||
/etc/ssh/sshd_config, and run the following command.</p>
|
||||
<pre><code class="csh">service sshd start
|
||||
</code></pre>
|
||||
|
||||
<h2 id="byobu">Byobu</h2>
|
||||
<p>You'll need newt to configure byobu, and if you don't install tmux
|
||||
then screen will become the backend.</p>
|
||||
<pre><code class="csh">pkg install byobu tmux newt
|
||||
</code></pre>
|
||||
|
||||
<p>If you execute <code>byobu-config</code>, by pressing <em>f9</em>, the
|
||||
following options seem to work. Some options, of course,
|
||||
will prevent others from working so you have to enable them
|
||||
one at a time to see what happens.</p>
|
||||
<ul>
|
||||
<li>date</li>
|
||||
<li>disk</li>
|
||||
<li>distro</li>
|
||||
<li>hostname</li>
|
||||
<li>ip address</li>
|
||||
<li>load_average</li>
|
||||
<li>logo</li>
|
||||
<li>time</li>
|
||||
<li>uptime</li>
|
||||
<li>users</li>
|
||||
<li>whoami</li>
|
||||
</ul>
|
||||
<h2 id="vim">vim</h2>
|
||||
<p>Via pkg, there are two options: vim and vim-lite. Note vim will pull
|
||||
in a whole bunch of gui dependancies, but vim-lite is not build with python.</p>
|
||||
<p>For instance, powerline will not work with vim-lite because it's not built with
|
||||
python. Also, vim-youcompleteme will not work with vim-lite. However, lightline
|
||||
will work with vim-lite, and VimCompletesMe will work with vim-lite.</p>
|
||||
<p>To get lightline working update $TERM</p>
|
||||
<pre><code class="config"># ~/.config/fish/config.fish
|
||||
export TERM=xterm-256color
|
||||
</code></pre>
|
||||
|
||||
<p>And vimrc</p>
|
||||
<pre><code class="vim"># ~/.vimrc
|
||||
set ls=2
|
||||
</code></pre>
|
||||
|
||||
<p>Another option is to build vim from source via ports. You can prevent vim
|
||||
from pulling in a bunch of gui dependancies with the following in /etc/make.conf.</p>
|
||||
<pre><code class="conf"># /etc/make.conf
|
||||
WITHOUT_X11=yes
|
||||
</code></pre>
|
||||
|
||||
<p>And then when you compile vim from ports, run <code>make config</code> where you can enable
|
||||
python.</p>
|
||||
<h2 id="python">python</h2>
|
||||
<p>For python3 virtualenv</p>
|
||||
<pre><code class="csh">virtualenv-3.6 <directory>
|
||||
</code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<footer>
|
||||
|
||||
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
|
||||
|
||||
<a href="../arch_redis_nspawn/" class="btn btn-neutral float-right" title="Quick Dirty Redis Nspawn Container on Arch Linux">Next <span class="icon icon-circle-arrow-right"></span></a>
|
||||
|
||||
|
||||
<a href="../dynamic_cacheing_nginx_reverse_proxy_for_pacman/" class="btn btn-neutral" title="Dynamic Cacheing Nginx Reverse Proxy For Pacman"><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="../dynamic_cacheing_nginx_reverse_proxy_for_pacman/" style="color: #fcfcfc;">« Previous</a></span>
|
||||
|
||||
|
||||
<span style="margin-left: 15px"><a href="../arch_redis_nspawn/" style="color: #fcfcfc">Next »</a></span>
|
||||
|
||||
</span>
|
||||
</div>
|
||||
<script src="../js/theme.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -91,6 +91,11 @@
|
||||
|
||||
<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>
|
||||
|
||||
@ -145,6 +150,7 @@
|
||||
<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>
|
||||
<li><a href="freebsd_jails_on_freenas/">FreeBSD Jails on FreeNAS</a> </li>
|
||||
<li><a href="arch_redis_nspawn/">Quick Dirty Redis Nspawn Container on Arch Linux</a></li>
|
||||
<li><a href="arch_postgresql_nspawn/">Quick Dirty Postgresql Nspawn Container on Arch Linux</a></li>
|
||||
<li><a href="self_signed_certs/">Self Signed Certs</a></li>
|
||||
@ -198,5 +204,5 @@
|
||||
|
||||
<!--
|
||||
MkDocs version : 0.16.3
|
||||
Build Date UTC : 2017-07-13 12:28:41
|
||||
Build Date UTC : 2017-07-15 10:29:22
|
||||
-->
|
||||
|
@ -95,6 +95,11 @@
|
||||
|
||||
<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>
|
||||
|
||||
|
@ -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\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\nQuick Dirty Redis Nspawn Container on Arch Linux\n\n\nQuick Dirty Postgresql Nspawn Container on Arch Linux\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\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\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. 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 Quick Dirty Redis Nspawn Container on Arch Linux Quick Dirty Postgresql Nspawn Container on Arch Linux Self Signed Certs",
|
||||
"text": "Obviously, the commit history will reflect the time when these documents are written. 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 Self Signed Certs",
|
||||
"title": "Git Repo For These Docs"
|
||||
},
|
||||
{
|
||||
@ -265,6 +265,51 @@
|
||||
"text": "# /etc/systemd/system/proxy_cache_database_clean.timer\n[Unit]\nDescription=Timer for clean The pacman proxy cache database\n\n[Timer]\nOnBootSec=10min\nOnUnitActiveSec=15min\nUnit=proxy_cache_database_clean.service\n\n[Install]\nWantedBy=timers.target",
|
||||
"title": "systemd timer for the systemd service that deletes the pacman database files from the proxy cache"
|
||||
},
|
||||
{
|
||||
"location": "/freebsd_jails_on_freenas/",
|
||||
"text": "FreeBSD Jails on FreeNAS\n\n\nMostly a personal distillation for getting a FreeBSD\nJail up and running on FreeNAS.\n\n\nIn The FreeNAS WebGui, Create A New Jail\n\n\nThe default networking configuration, will give\nyour jail an ip address on the lan. For now, I've\ndecided to just share a pkg cache with each jail.\nNavigate to \nJails -> Storage -> Add Storage\n and\nadd the \npkg\n storage directory to \n/var/cache/pkg\n\ninside the jail. \n\n\nFor instance, on my local FreeNAS server,\nthe pkg directory is at /mnt/VolumeOne/pkg/.\n\n\nIf you ssh into the host server, you can type the command\n\njls\n, to list the jails. Based on the output of the\ncommand \njls\n, you can get a shell with \njexec <jail number>\n\nof \njexec <jail hostname>\n.\n\n\nupdating\n\n\nHow about the command \npkg audit -F\n? Downloads a\nlist of known security issues and checks your system\nagainst that.\n\n\nI would recommend, to myself anyway, to shell into\nthe new jail with \njexec\n, run \npkg upgrade\n to install any new packages,\nand then from the FreeNAS webgui, restart the jail. Although\nthe restarted jail will have a new jail number as reported by\nthe \njls\n command.\n\n\nlocale\n\n\nWhen you use \njexec\n to get a shell, you get an environment\nwith an utf_8 locale. Not so if you ssh into the new jail.\nFor this put the following contents into ~/.login_conf\n\n\n# ~/.login_conf\nme:\\\n :charset=UTF-8:\\\n :lang=en_US.UTF-8:\\\n :setenv=LC_COLLATE=C:\n\n\n\n\nssh\n\n\nTo get ssh running, edit \n/etc/rc.conf\n inside the jail.\n\n\n# /etc/rc.conf\nsshd_enable=\"YES\"\n\n\n\n\nTo start sshd immediately, make any necessary edits to\n/etc/ssh/sshd_config, and run the following command.\n\n\nservice sshd start\n\n\n\n\nByobu\n\n\nYou'll need newt to configure byobu, and if you don't install tmux\nthen screen will become the backend.\n\n\npkg install byobu tmux newt\n\n\n\n\nIf you execute \nbyobu-config\n, by pressing \nf9\n, the\nfollowing options seem to work. Some options, of course,\nwill prevent others from working so you have to enable them\none at a time to see what happens.\n\n\n\n\ndate\n\n\ndisk\n\n\ndistro\n\n\nhostname\n\n\nip address\n\n\nload_average\n\n\nlogo\n\n\ntime\n\n\nuptime\n\n\nusers\n\n\nwhoami\n\n\n\n\nvim\n\n\nVia pkg, there are two options: vim and vim-lite. Note vim will pull\nin a whole bunch of gui dependancies, but vim-lite is not build with python.\n\n\nFor instance, powerline will not work with vim-lite because it's not built with\npython. Also, vim-youcompleteme will not work with vim-lite. However, lightline\nwill work with vim-lite, and VimCompletesMe will work with vim-lite.\n\n\nTo get lightline working update $TERM\n\n\n# ~/.config/fish/config.fish\nexport TERM=xterm-256color\n\n\n\n\nAnd vimrc\n\n\n# ~/.vimrc\nset ls=2\n\n\n\n\nAnother option is to build vim from source via ports. You can prevent vim\nfrom pulling in a bunch of gui dependancies with the following in /etc/make.conf.\n\n\n# /etc/make.conf\nWITHOUT_X11=yes\n\n\n\n\nAnd then when you compile vim from ports, run \nmake config\n where you can enable\npython.\n\n\npython\n\n\nFor python3 virtualenv\n\n\nvirtualenv-3.6 <directory>",
|
||||
"title": "FreeBSD Jails on FreeNAS"
|
||||
},
|
||||
{
|
||||
"location": "/freebsd_jails_on_freenas/#freebsd-jails-on-freenas",
|
||||
"text": "Mostly a personal distillation for getting a FreeBSD\nJail up and running on FreeNAS.",
|
||||
"title": "FreeBSD Jails on FreeNAS"
|
||||
},
|
||||
{
|
||||
"location": "/freebsd_jails_on_freenas/#in-the-freenas-webgui-create-a-new-jail",
|
||||
"text": "The default networking configuration, will give\nyour jail an ip address on the lan. For now, I've\ndecided to just share a pkg cache with each jail.\nNavigate to Jails -> Storage -> Add Storage and\nadd the pkg storage directory to /var/cache/pkg \ninside the jail. For instance, on my local FreeNAS server,\nthe pkg directory is at /mnt/VolumeOne/pkg/. If you ssh into the host server, you can type the command jls , to list the jails. Based on the output of the\ncommand jls , you can get a shell with jexec <jail number> \nof jexec <jail hostname> .",
|
||||
"title": "In The FreeNAS WebGui, Create A New Jail"
|
||||
},
|
||||
{
|
||||
"location": "/freebsd_jails_on_freenas/#updating",
|
||||
"text": "How about the command pkg audit -F ? Downloads a\nlist of known security issues and checks your system\nagainst that. I would recommend, to myself anyway, to shell into\nthe new jail with jexec , run pkg upgrade to install any new packages,\nand then from the FreeNAS webgui, restart the jail. Although\nthe restarted jail will have a new jail number as reported by\nthe jls command.",
|
||||
"title": "updating"
|
||||
},
|
||||
{
|
||||
"location": "/freebsd_jails_on_freenas/#locale",
|
||||
"text": "When you use jexec to get a shell, you get an environment\nwith an utf_8 locale. Not so if you ssh into the new jail.\nFor this put the following contents into ~/.login_conf # ~/.login_conf\nme:\\\n :charset=UTF-8:\\\n :lang=en_US.UTF-8:\\\n :setenv=LC_COLLATE=C:",
|
||||
"title": "locale"
|
||||
},
|
||||
{
|
||||
"location": "/freebsd_jails_on_freenas/#ssh",
|
||||
"text": "To get ssh running, edit /etc/rc.conf inside the jail. # /etc/rc.conf\nsshd_enable=\"YES\" To start sshd immediately, make any necessary edits to\n/etc/ssh/sshd_config, and run the following command. service sshd start",
|
||||
"title": "ssh"
|
||||
},
|
||||
{
|
||||
"location": "/freebsd_jails_on_freenas/#byobu",
|
||||
"text": "You'll need newt to configure byobu, and if you don't install tmux\nthen screen will become the backend. pkg install byobu tmux newt If you execute byobu-config , by pressing f9 , the\nfollowing options seem to work. Some options, of course,\nwill prevent others from working so you have to enable them\none at a time to see what happens. date disk distro hostname ip address load_average logo time uptime users whoami",
|
||||
"title": "Byobu"
|
||||
},
|
||||
{
|
||||
"location": "/freebsd_jails_on_freenas/#vim",
|
||||
"text": "Via pkg, there are two options: vim and vim-lite. Note vim will pull\nin a whole bunch of gui dependancies, but vim-lite is not build with python. For instance, powerline will not work with vim-lite because it's not built with\npython. Also, vim-youcompleteme will not work with vim-lite. However, lightline\nwill work with vim-lite, and VimCompletesMe will work with vim-lite. To get lightline working update $TERM # ~/.config/fish/config.fish\nexport TERM=xterm-256color And vimrc # ~/.vimrc\nset ls=2 Another option is to build vim from source via ports. You can prevent vim\nfrom pulling in a bunch of gui dependancies with the following in /etc/make.conf. # /etc/make.conf\nWITHOUT_X11=yes And then when you compile vim from ports, run make config where you can enable\npython.",
|
||||
"title": "vim"
|
||||
},
|
||||
{
|
||||
"location": "/freebsd_jails_on_freenas/#python",
|
||||
"text": "For python3 virtualenv virtualenv-3.6 <directory>",
|
||||
"title": "python"
|
||||
},
|
||||
{
|
||||
"location": "/arch_redis_nspawn/",
|
||||
"text": "Quick Dirty Redis Nspawn Container on Arch Linux\n\n\nRefer to the \nNspawn\n page for setting up the nspawn container,\ninstall redis, and start/enable redis.service.\nOnce you have the container running, it seems all you have to do to get\nthings working in a container subnet is to change the bind address.\n\n\n# /etc/redis.conf\n# bind 127.0.0.1\nbind 0.0.0.0\n\n\n\n\nyou can nmap port 6379, be sure to restart redis\n\n\nAgain I would refer you to the Arch Wiki",
|
||||
|
@ -101,6 +101,11 @@
|
||||
|
||||
<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>
|
||||
|
||||
|
@ -75,6 +75,11 @@
|
||||
|
||||
<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>
|
||||
|
||||
|
@ -79,6 +79,11 @@
|
||||
|
||||
<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>
|
||||
|
||||
|
@ -113,6 +113,11 @@
|
||||
|
||||
<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>
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
<url>
|
||||
<loc>/</loc>
|
||||
<lastmod>2017-07-13</lastmod>
|
||||
<lastmod>2017-07-15</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
@ -12,7 +12,7 @@
|
||||
|
||||
<url>
|
||||
<loc>/serve_and_share_apps_from_your_phone_with_fdroid/</loc>
|
||||
<lastmod>2017-07-13</lastmod>
|
||||
<lastmod>2017-07-15</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
|
||||
<url>
|
||||
<loc>/nspawn/</loc>
|
||||
<lastmod>2017-07-13</lastmod>
|
||||
<lastmod>2017-07-15</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
@ -28,7 +28,7 @@
|
||||
|
||||
<url>
|
||||
<loc>/mastodon_on_arch/</loc>
|
||||
<lastmod>2017-07-13</lastmod>
|
||||
<lastmod>2017-07-15</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
@ -36,7 +36,7 @@
|
||||
|
||||
<url>
|
||||
<loc>/debian_nspawn_container_on_arch_for_testing_apache_configurations/</loc>
|
||||
<lastmod>2017-07-13</lastmod>
|
||||
<lastmod>2017-07-15</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
@ -44,7 +44,15 @@
|
||||
|
||||
<url>
|
||||
<loc>/dynamic_cacheing_nginx_reverse_proxy_for_pacman/</loc>
|
||||
<lastmod>2017-07-13</lastmod>
|
||||
<lastmod>2017-07-15</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
|
||||
|
||||
<url>
|
||||
<loc>/freebsd_jails_on_freenas/</loc>
|
||||
<lastmod>2017-07-15</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
@ -52,7 +60,7 @@
|
||||
|
||||
<url>
|
||||
<loc>/arch_redis_nspawn/</loc>
|
||||
<lastmod>2017-07-13</lastmod>
|
||||
<lastmod>2017-07-15</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
@ -60,7 +68,7 @@
|
||||
|
||||
<url>
|
||||
<loc>/arch_postgresql_nspawn/</loc>
|
||||
<lastmod>2017-07-13</lastmod>
|
||||
<lastmod>2017-07-15</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
@ -68,7 +76,7 @@
|
||||
|
||||
<url>
|
||||
<loc>/self_signed_certs/</loc>
|
||||
<lastmod>2017-07-13</lastmod>
|
||||
<lastmod>2017-07-15</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user