From 2baebf01844aab36630eb53d8f45814a07316834 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Mon, 18 Aug 2014 14:30:06 +0200 Subject: [PATCH] Mic92 created page: home --- home.markdown | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/home.markdown b/home.markdown index 59ee238..69f34e7 100644 --- a/home.markdown +++ b/home.markdown @@ -5,16 +5,16 @@ - Host: postgres ```bash - $ create-postgres-user-and-database foo bar # create user `foo` and give him access to database `bar` +$ create-postgres-user-and-database foo bar # create user `foo` and give him access to database `bar` ``` Administration shell: ```bash - $ sudo psql -h postgres -u postgres - psql> \l # list databases - psql> \c # connect to database - psql> \d # show tables +$ sudo psql -h postgres -u postgres +psql> \l # list databases +psql> \c # connect to database +psql> \d # show tables ``` ### mysql @@ -22,7 +22,7 @@ Administration shell: - Host: mysql ```bash - $ create-mysql-user-and-database foo # create database and user `foo` +$ create-mysql-user-and-database foo # create database and user `foo` ``` ## List snapshots @@ -52,3 +52,11 @@ Administration: https://ldap.higgsboson.tk | Encryption | STARTTLS or TLS | | MX-Record | mail.higgsboson.tk | | SRV-Record | v=spf1 a:mail.higgsboson.tk ip6:2a01:4f8:210:31fd:1::10 -all | + +## LXC + +``` +$ lxc-attach -n # login +$ systemctl start lxc@ # start container +$ systemctl stop lxc@ # stop container +```