2017-06-27 15:19:36 -07:00
<!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" >
2017-06-28 16:11:23 -07:00
< title > Quick Dirty Postgresql Nspawn Container on Arch Linux - Trent Docs< / title >
2017-06-27 15:19:36 -07:00
< 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
2017-06-28 16:11:23 -07:00
var mkdocs_page_name = "Quick Dirty Postgresql Nspawn Container on Arch Linux";
var mkdocs_page_input_path = "arch_postgresql_nspawn.md";
var mkdocs_page_url = "/arch_postgresql_nspawn/";
2017-06-27 15:19:36 -07:00
< / 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 >
2017-06-27 16:44:04 -07:00
< li class = "toctree-l1" >
2017-07-23 11:49:29 -07:00
< 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" >
2017-07-21 07:04:12 -07:00
< a class = "" href = "../lxd_container_home_server_networking_for_dummies/" > LXD Container Home Server Networking For Dummies< / a >
< / li >
< li class = "toctree-l1" >
2017-07-22 11:21:17 -07:00
< 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" >
2017-06-28 21:34:09 -07:00
< a class = "" href = "../serve_and_share_apps_from_your_phone_with_fdroid/" > Serve And Share Apps From Your Phone With Fdroid< / a >
2017-06-28 16:50:07 -07:00
< / li >
< li class = "toctree-l1" >
2017-06-27 16:44:04 -07:00
< a class = "" href = "../nspawn/" > Nspawn< / a >
< / li >
2017-06-28 16:11:23 -07:00
< li class = "toctree-l1" >
2017-07-04 14:53:28 -07:00
2017-07-29 10:20:59 -07:00
< a class = "" href = "../gentoo_lxd_container/" > Gentoo LXD Container< / a >
< / li >
< li class = "toctree-l1" >
2017-07-13 05:29:08 -07:00
< a class = "" href = "../mastodon_on_arch/" > Mastodon on Arch< / a >
< / li >
< li class = "toctree-l1" >
2017-07-04 14:53:28 -07:00
< 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" >
2017-06-28 16:11:23 -07:00
2017-07-01 14:14:22 -07:00
< a class = "" href = "../dynamic_cacheing_nginx_reverse_proxy_for_pacman/" > Dynamic Cacheing Nginx Reverse Proxy For Pacman< / a >
< / li >
< li class = "toctree-l1" >
2017-07-15 03:29:38 -07:00
< a class = "" href = "../freebsd_jails_on_freenas/" > FreeBSD Jails on FreeNAS< / a >
< / li >
< li class = "toctree-l1" >
2017-06-28 16:11:23 -07:00
< a class = "" href = "../arch_redis_nspawn/" > Quick Dirty Redis Nspawn Container on Arch Linux< / a >
< / li >
2017-06-27 15:19:36 -07:00
< li class = "toctree-l1 current" >
2017-06-28 16:11:23 -07:00
< a class = "current" href = "./" > Quick Dirty Postgresql Nspawn Container on Arch Linux< / a >
2017-06-27 15:19:36 -07:00
< ul class = "subnav" >
2017-06-28 16:11:23 -07:00
< li class = "toctree-l2" > < a href = "#quick-dirty-postgresql-nspawn-container-on-arch-linux" > Quick Dirty Postgresql Nspawn Container on Arch Linux< / a > < / li >
2017-06-27 15:19:36 -07:00
< / ul >
< / li >
2017-07-01 14:14:22 -07:00
< li class = "toctree-l1" >
2017-07-23 23:22:56 -07:00
< a class = "" href = "../misc_tips_troubleshooting/" > Misc Tips, Trouble Shooting< / a >
< / li >
< li class = "toctree-l1" >
2017-07-01 14:14:22 -07:00
< a class = "" href = "../self_signed_certs/" > Self Signed Certs< / a >
< / li >
2017-12-13 16:53:41 -08:00
< li class = "toctree-l1" >
< a class = "" href = "../selfoss_on_centos7/" > Selfoss on Centos7< / a >
< / li >
2017-06-27 15:19:36 -07:00
< / 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 >
2017-06-28 16:11:23 -07:00
< li > Quick Dirty Postgresql Nspawn Container on Arch Linux< / li >
2017-06-27 15:19:36 -07:00
< li class = "wy-breadcrumbs-aside" >
< / li >
< / ul >
< hr / >
< / div >
< div role = "main" >
< div class = "section" >
2017-06-28 16:11:23 -07:00
< h1 id = "quick-dirty-postgresql-nspawn-container-on-arch-linux" > Quick Dirty Postgresql Nspawn Container on Arch Linux< / h1 >
2017-06-29 21:37:54 -07:00
< p > Refer to the < a href = "../nspawn/" > Nspawn< / a > page for setting up the nspawn container.< br / >
And then refer the < a href = "https://wiki.archlinux.org/index.php/PostgreSQL" > ArchWiki instructions< / a >
for postgresql. < / p >
< p > You'll want to install postgresql, set a password for the default user < code > postgres< / code > ,
and then login as postgres and initilize the database. < / p >
< pre > < code class = "bash" > pacman -S postgresql
# passwd for postgresql user
passwd postgres
# login as postgres
su -l postgres
# initialize the databse cluster
[postgres]$ initdb --locale $LANG -E UTF8 -D '/var/lib/postgres/data'
< / code > < / pre >
< p > You'll need to configure < code > /var/lib/postgres/data/pg_hba.conf< / code > and
< code > /var/lib/postgres/data/postgresql.conf< / code > for remote access,
presumably with an identd daemon in mind. The ident daemon will
listen on port 113, not on the machine with the database server,
but it listens from the machine where is the client that remotely
wants to access the database.< / p >
2017-06-27 15:19:36 -07:00
< / div >
< / div >
< footer >
< div class = "rst-footer-buttons" role = "navigation" aria-label = "footer navigation" >
2017-07-23 23:22:56 -07:00
< a href = "../misc_tips_troubleshooting/" class = "btn btn-neutral float-right" title = "Misc Tips, Trouble Shooting" > Next < span class = "icon icon-circle-arrow-right" > < / span > < / a >
2017-07-01 14:14:22 -07:00
2017-06-28 16:11:23 -07:00
< a href = "../arch_redis_nspawn/" class = "btn btn-neutral" title = "Quick Dirty Redis Nspawn Container on Arch Linux" > < span class = "icon icon-circle-arrow-left" > < / span > Previous< / a >
2017-06-27 15:19:36 -07:00
< / 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 >
2017-12-13 16:53:41 -08:00
2017-06-27 15:19:36 -07:00
< / div >
< / div >
< / section >
2017-12-13 16:53:41 -08:00
2017-06-27 15:19:36 -07:00
< / div >
< div class = "rst-versions" role = "note" style = "cursor: pointer" >
< span class = "rst-current-version" data-toggle = "rst-current-version" >
2017-06-28 16:11:23 -07:00
< span > < a href = "../arch_redis_nspawn/" style = "color: #fcfcfc;" > « Previous< / a > < / span >
2017-06-27 15:19:36 -07:00
2017-07-23 23:22:56 -07:00
< span style = "margin-left: 15px" > < a href = "../misc_tips_troubleshooting/" style = "color: #fcfcfc" > Next » < / a > < / span >
2017-07-01 14:14:22 -07:00
2017-06-27 15:19:36 -07:00
< / span >
< / div >
2017-12-13 16:53:41 -08:00
< script > var base _url = '..' ; < / script >
2017-06-27 15:19:36 -07:00
< script src = "../js/theme.js" > < / script >
2017-12-13 16:53:41 -08:00
< script src = "../search/require.js" > < / script >
< script src = "../search/search.js" > < / script >
2017-06-27 15:19:36 -07:00
< / body >
< / html >