# Instructions to install libre.sh on linux with Systemd Recommendation - Systemd distro (ubuntu server 18.04.3 or debian 9 ) ## Installation Where basicly reproduce what the user_data do for us. as root ### configure sshd (Optional) 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 < /etc/sysctl.d/libresh.conf < /sys/kernel/mm/transparent_hugepage/enabled ``` ### define Localhost (should not be needed but... ) ``` cat > /etc/hosts < /etc/environment < /opt/bin/docker-compose &&\ chmod +x /opt/bin/docker-compose ``` ### Libre.sh ``` git clone https://lab.libreho.st/libre.sh/compose.libre.sh /libre.sh &&\ mkdir -p /{data,system} &&\ mkdir -p /data/trash &&\ cp /libre.sh/unit-files/* /etc/systemd/system && systemctl daemon-reload &&\ systemctl enable web-net.service &&\ systemctl start web-net.service &&\ mkdir -p /opt/bin &&\ cp /libre.sh/utils/* /opt/bin/ ``` ### add path ``` cat > /etc/profile.d/libre.sh <