From ae35435cf0e8f2f92282f76450a95dd96d95a4c0 Mon Sep 17 00:00:00 2001 From: pierreozoux Date: Mon, 3 Jul 2017 11:19:15 +0100 Subject: [PATCH] Fix codestyle --- INSTALL_LINUX.md | 150 ++++++++++++++++++++++++++--------------------- 1 file changed, 82 insertions(+), 68 deletions(-) diff --git a/INSTALL_LINUX.md b/INSTALL_LINUX.md index fb6c370..d42bfaa 100644 --- a/INSTALL_LINUX.md +++ b/INSTALL_LINUX.md @@ -11,79 +11,93 @@ as root # configure sshd Don't forget to create the user core and adding your ssh key before You could also remove AllowUsers core or/and change the username. - -> cat > /etc/ssh/sshd_config < chmod 600 /etc/ssh/sshd_config -> systemctl restart sshd - - -> cat > /etc/sysctl.d/libresh.conf < chmod 644 /etc/sysctl.d/libresh.conf -> sysctl -p + +``` +cat > /etc/ssh/sshd_config < /etc/sysctl.d/libresh.conf < cat > /etc/hosts < cat > /etc/environment < /etc/hosts < /etc/environment < mkdir -p /opt/bin &&\ -> dockerComposeVersion=$(curl -s https://api.github.com/repos/docker/compose/releases/latest|grep tag_name|cut -d'"' -f4) &&\ -> curl -L https://github.com/docker/compose/releases/download/$dockerComposeVersion/docker-compose-`uname -s`-`uname -m` > /opt/bin/docker-compose &&\ -> chmod +x /opt/bin/docker-compose - - -> git clone https://github.com/indiehosters/libre.sh.git /libre.sh &&\ -> mkdir /{data,system} &&\ -> mkdir /data/trash &&\ -> cp /libre.sh/unit-files/* /etc/systemd/system && systemctl daemon-reload &&\ -> systemctl enable web-net.service &&\ -> systemctl start web-net.service &&\ -> cp /libre.sh/utils/* /opt/bin/ - - -> cat > /etc/profile.d/libre.sh < /opt/bin/docker-compose &&\ +chmod +x /opt/bin/docker-compose +``` # install Libre.sh + +``` +git clone https://github.com/indiehosters/libre.sh.git /libre.sh &&\ +mkdir /{data,system} &&\ +mkdir /data/trash &&\ +cp /libre.sh/unit-files/* /etc/systemd/system && systemctl daemon-reload &&\ +systemctl enable web-net.service &&\ +systemctl start web-net.service &&\ +cp /libre.sh/utils/* /opt/bin/ +``` + # add /opt/bin path + +``` +cat > /etc/profile.d/libre.sh <