Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
compose.libre.sh
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ecobytes
compose.libre.sh
Commits
ae35435c
Commit
ae35435c
authored
7 years ago
by
Pierre Ozoux
Browse files
Options
Downloads
Patches
Plain Diff
Fix codestyle
parent
d835ffcd
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
INSTALL_LINUX.md
+82
-68
82 additions, 68 deletions
INSTALL_LINUX.md
with
82 additions
and
68 deletions
INSTALL_LINUX.md
+
82
−
68
View file @
ae35435c
...
@@ -11,79 +11,93 @@ as root
...
@@ -11,79 +11,93 @@ as root
# configure sshd
# configure sshd
Don't forget to create the user core and adding your ssh key before
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
cat > /etc/ssh/sshd_config <<EOF
Subsystem sftp internal-sftp
UsePrivilegeSeparation sandbox
PermitRootLogin no
Subsystem sftp internal-sftp
AllowUsers core
PermitRootLogin no
PasswordAuthentication no
AllowUsers core
ChallengeResponseAuthentication no
PasswordAuthentication no
EOF
ChallengeResponseAuthentication no
> chmod 600 /etc/ssh/sshd_config
EOF
> systemctl restart sshd
chmod 600 /etc/ssh/sshd_config
systemctl restart sshd
```
> cat > /etc/sysctl.d/libresh.conf <<EOF
fs.aio-max-nr=1048576
vm.max_map_count=262144
EOF
> chmod 644 /etc/sysctl.d/libresh.conf
> sysctl -p
# add kernel parameter
# add kernel parameter
```
cat > /etc/sysctl.d/libresh.conf <<EOF
fs.aio-max-nr=1048576
vm.max_map_count=262144
EOF
chmod 644 /etc/sysctl.d/libresh.conf
sysctl -p
```
# define Localhost
# define Localhost
> cat > /etc/hosts <<EOF
```
127.
0.0.1 localhost
cat > /etc/hosts <<EOF
255.
255.255.255 broadcasthost
127.0.0.1 localhost
::1 localhost
255.255.255.255 broadcasthost
EOF
::1 localhost
EOF
```
> cat > /etc/environment <<EOF
NAMECHEAP_URL="namecheap.com"
NAMECHEAP_API_USER="pierreo"
NAMECHEAP_API_KEY=
IP="curl -s http://icanhazip.com/"
FirstName="Pierre"
LastName="Ozoux"
Address=""
PostalCode=""
Country="Portugal"
Phone="+351.967184553"
EmailAddress="pierre@ozoux.net"
City="Lisbon"
CountryCode="PT"
BACKUP_DESTINATION=root@xxxxx:port
MAIL_USER=
MAIL_PASS=
MAIL_HOST=mail.indie.host
MAIL_PORT=587
EOF
# define envrionment
# define envrionment
```
cat > /etc/environment <<EOF
NAMECHEAP_URL="namecheap.com"
NAMECHEAP_API_USER="pierreo"
NAMECHEAP_API_KEY=
IP="curl -s http://icanhazip.com/"
FirstName="Pierre"
LastName="Ozoux"
Address=""
PostalCode=""
Country="Portugal"
Phone="+351.967184553"
EmailAddress="pierre@ozoux.net"
City="Lisbon"
CountryCode="PT"
BACKUP_DESTINATION=root@xxxxx:port
MAIL_USER=
MAIL_PASS=
MAIL_HOST=mail.indie.host
MAIL_PORT=587
EOF
```
# install docker-compose
# install docker-compose
*Remark I did a variante to find the last version of DockerCompose and download it*
*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 &&\
mkdir -p /opt/bin &&\
> chmod +x /opt/bin/docker-compose
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 <<EOF
export PATH=$PATH:/opt/bin
EOF
chmod 644 /etc/profile.d/libre.sh
# install Libre.sh
# 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
# add /opt/bin path
```
cat > /etc/profile.d/libre.sh <<EOF
export PATH=$PATH:/opt/bin
EOF
chmod 644 /etc/profile.d/libre.sh
```
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment