installation_de_mautrix-whatsapp
Différences
Ci-dessous, les différences entre deux révisions de la page.
installation_de_mautrix-whatsapp [2021/12/03 01:06] – créée tomamplius | installation_de_mautrix-whatsapp [2021/12/03 01:10] (Version actuelle) – tomamplius | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | < | + | < |
cd /tmp/ | cd /tmp/ | ||
apt install wget ca-certificates git libolm3 libolm-dev build-essential | apt install wget ca-certificates git libolm3 libolm-dev build-essential | ||
Ligne 9: | Ligne 9: | ||
git clone https:// | git clone https:// | ||
- | cd whatsapp/ | + | cd whatsapp/ |
- | | + | ./ |
- | useradd mautrix-whatsapp -r -s /bin/false -m -d / | + | useradd mautrix-whatsapp -r -s /bin/false -m -d / |
- | cp mautrix-whatsapp / | + | cp mautrix-whatsapp / |
- | mkdir / | + | mkdir / |
- | mv ~/ | + | mv ~/ |
- | + | nano / | |
- | nano / | + | systemctl start mautrix-whatsapp |
- | | + | systemctl enable mautrix-whatsapp |
- | | + | |
</ | </ | ||
+ | |||
+ | <file bash / | ||
+ | [Unit] | ||
+ | Description=mautrix-whatsapp bridge | ||
+ | |||
+ | [Service] | ||
+ | Type=exec | ||
+ | User=mautrix-whatsapp | ||
+ | WorkingDirectory=/ | ||
+ | ExecStart=/ | ||
+ | Restart=on-failure | ||
+ | RestartSec=30s | ||
+ | |||
+ | # Optional hardening to improve security | ||
+ | ReadWritePaths=/ | ||
+ | NoNewPrivileges=yes | ||
+ | MemoryDenyWriteExecute=true | ||
+ | PrivateDevices=yes | ||
+ | PrivateTmp=yes | ||
+ | ProtectHome=yes | ||
+ | ProtectSystem=strict | ||
+ | ProtectControlGroups=true | ||
+ | RestrictSUIDSGID=true | ||
+ | RestrictRealtime=true | ||
+ | LockPersonality=true | ||
+ | ProtectKernelLogs=true | ||
+ | ProtectKernelTunables=true | ||
+ | ProtectHostname=true | ||
+ | ProtectKernelModules=true | ||
+ | PrivateUsers=true | ||
+ | ProtectClock=true | ||
+ | SystemCallArchitectures=native | ||
+ | SystemCallErrorNumber=EPERM | ||
+ | SystemCallFilter=@system-service | ||
+ | |||
+ | [Install] | ||
+ | WantedBy=multi-user.target | ||
+ | </ |
installation_de_mautrix-whatsapp.1638489967.txt.gz · Dernière modification : 2021/12/03 01:06 de tomamplius