Install edejabberd Docker container on VPS, able to send messages with Gajim client on Windows, not send files
In this article, we will discuss the process of installing edejabberd Docker container on a VPS (Virtual Private Server) and using it to send messages with the Gajim client on Windows. However, it is important to note that this setup will not allow for file transfers.
Prerequisites
Before proceeding, ensure that you have the following prerequisites in place:
- A VPS with Docker installed
- Gajim client installed on a Windows machine
Installing edejabberd Docker container
To install the edejabberd Docker container, follow these steps:
- Pull the edejabberd Docker image from Docker Hub: ``` docker pull edejabberd/ejabberd ```
- Create a Docker network for the edejabberd container: ``` docker network create ejabberd-net ```
- Run the edejabberd container using the following command: ``` docker run -d --name ejabberd --restart always --network ejabberd-net -p 5222:5222 -p 5269:5269 -p 5280:5280 -v /etc/ejabberd:/etc/ejabberd -v /var/lib/ejabberd:/var/lib/ejabberd edejabberd/ejabberd ```
Configuring Gajim client
Once the edejabberd container is up and running, configure the Gajim client to connect to it:
- Open the Gajim client on your Windows machine.
- Click on "Account" in the left-hand menu.
- Click on "Add new account" and select "XMPP."
- Enter the following details:
- Username: Your VPS username
- Server: The IP address of your VPS
- Port: 5222
- Resource: Leave this blank
- Click on "Next" and then "Connect."
Testing the setup
To test the setup, send a message from the Gajim client on your Windows machine to another XMPP user on the same network as your VPS.
Troubleshooting
If you encounter issues with file transfers, it is because edejabberd does not support file transfers over Docker. However, you can try sending a file over the local network by using a tool like Samba or NFS.