···15151616## Install
17171818+---
1919+1820⚠️ This is how I set it up on Debian Bookworm. If you need help adapting it to your distribution, please open an issue or ask for help on [Jabber](xmpp:bridging@joinjabber.org?join).
19212022⚠️ This guide also does not use a "venv" (virtual environment). I had an issue running it in its own "venv". If someone wants to troubleshoot it, contributions are welcome.
2323+2424+---
212522261. Install needed dependencies.
23272424- sudo apt install git python3-full pip cmake
2828+```shell
2929+sudo apt install git python3-full pip cmake
3030+```
253126322. Create a new system user to run it under.
27332828- sudo adduser --system --home /var/lib/xmpp-discord-bridge xmpp-discord-bridge
3434+```shell
3535+sudo adduser --system --home /var/lib/xmpp-discord-bridge xmpp-discord-bridge
3636+```
293730383. Now open a shell as that user.
31393232- sudo -u xmpp-discord-bridge -s
4040+```shell
4141+sudo -u xmpp-discord-bridge -s
4242+```
334334444. Run:
35453636- cd && git clone "https://codeberg.org/queer-spark/xmpp-discord-bridge.git" && cd xmpp-discord-bridge && python3 -m pip install . --user --break-system-packages && cd
4646+```shell
4747+cd && git clone "https://codeberg.org/queer-spark/xmpp-discord-bridge.git" && cd xmpp-discord-bridge && python3 -m pip install . --user --break-system-packages && cd
4848+```
374938505. Create and edit `~/config.toml`. Refer to [example.toml](example.toml) for options.
3951···415342547. Copy the service file to systemd's system directory.
43554444- sudo cp /var/lib/xmpp-discord-bridge/xmpp-discord-bridge/optional/xmpp-discord-bridge.service /etc/systemd/system/
5656+```shell
5757+sudo cp /var/lib/xmpp-discord-bridge/xmpp-discord-bridge/optional/xmpp-discord-bridge.service /etc/systemd/system/
5858+```
455946608. Read through the [XMPP](#xmpp) and [Discord](#discord) sections and make sure the listed requirements are met.
476148629. Start and enable the bridge.
49635050- sudo systemctl enable --now xmpp-discord-bridge.service
6464+```shell
6565+sudo systemctl enable --now xmpp-discord-bridge.service
6666+```
51675268### XMPP
5369