Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
compose.libre.sh
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
17
Issues
17
List
Boards
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
libre.sh
compose.libre.sh
Commits
d835ffcd
Commit
d835ffcd
authored
Jul 03, 2017
by
Pierre Ozoux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove trailing space
parent
13b022bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
INSTALL_LINUX.md
INSTALL_LINUX.md
+13
-13
No files found.
INSTALL_LINUX.md
View file @
d835ffcd
# Instructions to install libre.sh on linux with Systemd
# Instructions to install libre.sh on linux with Systemd
## Recommendation
-
Systemd (debian 8 or debian 9, CentOS 7 ...)
## Recommendation
-
Systemd (debian 8 or debian 9, CentOS 7 ...)
# Installation
Where basicly reproduce what the user_data do for us.
# Installation
Where basicly reproduce what the user_data do for us.
as root
as root
# configure sshd
# 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.
You could also remove AllowUsers core or/and change the username.
> cat > /etc/ssh/sshd_config <<EOF
UsePrivilegeSeparation sandbox
...
...
@@ -23,7 +23,6 @@ EOF
> chmod 600 /etc/ssh/sshd_config
> systemctl restart sshd
# add kernel parameter
> cat > /etc/sysctl.d/libresh.conf <<EOF
fs.aio-max-nr=1048576
...
...
@@ -31,6 +30,7 @@ vm.max_map_count=262144
EOF
> chmod 644 /etc/sysctl.d/libresh.conf
> sysctl -p
# add kernel parameter
# define Localhost
...
...
@@ -40,7 +40,6 @@ EOF
::1 localhost
EOF
# define envrionment
> cat > /etc/environment <<EOF
NAMECHEAP_URL="namecheap.com"
...
...
@@ -63,15 +62,15 @@ MAIL_HOST=mail.indie.host
MAIL_PORT=587
EOF
# install docker-compose
# define envrionment
# install docker-compose
*Remark I did a variante to find the last version of DockerCompose and download it*
> 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
# install Libre.sh
> git clone https://github.com/indiehosters/libre.sh.git /libre.sh &&\
> mkdir /{data,system} &&\
...
...
@@ -81,9 +80,10 @@ EOF
> systemctl start web-net.service &&\
> cp /libre.sh/utils/* /opt/bin/
# add /opt/bin path
> cat > /etc/profile.d/libre.sh <<EOF
export PATH=$PATH:/opt/bin
EOF
chmod 644 /etc/profile.d/libre.sh
# install Libre.sh
# add /opt/bin path
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment