No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-10-28 09:23:01 +00:00
README.md Update README.md 2026-10-28 09:23:01 +00:00

continuwuity

Ihr solltet nicht vertrauen dass das hier vollständig ist. Bei fragen meldet euch.

#: root
$: user

Add repo to openSUSE

# zypper addrepo https://download.opensuse.org/repositories/home:julian45/16.0/home:julian45.repo
# zypper refresh
# zypper install continuwuity

Override systemD service

# systemctl edit conduwuit.service

[Service]
ExecStart=
ExecStart=/usr/bin/conduwuit --config /etc/conduwuit/conduwuit.toml

Configuration

# mkdir /etc/conduwuit && vim /etc/conduwuit/conduwuit.toml

[global]
server_name = "workshop.binhacken.space"
address = ["127.0.0.1", "::1"]
port = 8008
new_user_displayname_suffix = ":꣓"
allow_registration = true
registration_token = "be8df1c1bef95cb97ed4f9ae23e3246660c6a346c06e04b6e329e24da5b519f6"
allow_public_room_directory_over_federation = true
lockdown_public_room_directory = true
allow_room_creation = true
query_trusted_key_servers_first = false
log = "info"
log_colors = true
log_to_journald = true
auto_join_rooms = []
emergency_password = "rofl"
admin_room_tag = "m.server_notice"
admins_list = [ "@root:workshop.binhacken.space" ]
admins_from_room = true
admin_room_notices = true
request_ip_source = "cf_connecting_ip"
[global.well_known]
client = "https://workshop.binhacken.space"
server = "workshop.binhacken.space:443"

Start and enable

systemctl enable --now conduwuit.service

mautrix-whatsapp

User setup

# useradd -U -m mautrix-whatsapp
# mkdir -p -m 0700 /home/mautrix-whatsapp/.config/systemd/user
# chown -R mautrix-whatsapp:mautrix-whatsapp /home/mautrix-whatsapp/.config/systemd
# mkdir -p -m 0700 /home/mautrix-whatsapp/.local/state/mautrix-whatsapp
# chown -R mautrix-whatsapp:mautrix-whatsapp /home/mautrix- whatsapp/.local/state/mautrix-whatsapp

# loginctl enable-linger mautrix-whatsapp

# machinectl shell mautrix-whatsapp@

Download release

$ wcurl -o ~/.local/bin/mautrix-whatsapp "https://mau.dev/mautrix/whatsapp/-/jobs/artifacts/main/raw/mautrix-whatsapp?job=build%20amd64"
$ chmod +x ~/.local/bin/mautrix-whatsapp

Config

$ ~/.local/bin/mautrix-whatsapp -e
$ mv config.yaml ~/.config/config.yaml
$ vim ~/.config/config.yaml
$ ~/.local/bin/mautrix-whatsapp -c ~/.config/config.yaml -g
$ mv registration.yaml ~/.config/registration.yaml

Necessary Changes:

homeserver:
  address: http://127.0.0.1:8008
  domain: workshop.binhacken.space
bridge:
  permissions:
    "@root@workshop.binhacken.space": admin
database:
  type: sqlite3-fk-wal
  uri: file:/home/mautrix-whatsapp/.local/state/mautrix-whatsapp/sqlite.db?_txlock=immediate
encryption:
  allow: true
  default: true
  require: true
  verification_levels:
    receive: cross-signed-tofu
    send: cross-signed-tofu
    share: cross-signed-tofu

SystemD Service

$ vim ~/.config/systemd/user/mautrix-whatsapp.service

[Unit]
Description=mautrix-whatsapp bridge

[Service]
Type=exec
User=mautrix-whatsapp
WorkingDirectory=%S/mautrix-whatsapp
ExecStart=%h/.local/bin/mautrix-whatsapp -c %E/config.yaml -r %/registration.yaml
Restart=on-failure
RestartSec=30s

# Optional hardening to improve security
ReadWritePaths=%h
NoNewPrivileges=yes
# This may cause issues with libsignal.
# Should be safe for other bridges
#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=default.target

$ systenctl --user daemon-reload && systemctl --user enable --now mautrix-whatsapp.service

If it doesnt work, delete all security-related options and try again

Register App service

$ cat ~/.config/registration.yaml
!admin appservices register

\```
inhalt von ~/.config/registration.yaml, keine backslashes vor den ticks. das markdown rendert nur sonst nicht
\```

Bridging

  • chat mit @whatsappbot öffnen, !wa login qr, dann !wa sync