Skip to content

For Testing

mnswdhw edited this page Oct 18, 2021 · 2 revisions

Changes to Prosody Server Internals

  1. After installing the Prosody server in the conventional way make the changes as explained in the Configuring Prosody Server Page.
  2. Now replace the /usr/lib/prosody/modules/mod_tls.lua in your local machine with prosody/plugins/mod_tls.lua in this repository.
  3. cd to the directory /usr/lib/prosody/util
  4. Download the file prosody/util-src/libnativefunc.c from this repository and add in the directory /usr/lib/prosody/util/
  5. Run the following commands
sudo apt-get install lua5.2-dev

gcc -fPIC -o libnativefunc.o -c libnativefunc.c -I/usr/include/lua5.2

gcc libnativefunc.o -shared -o libnativefunc.so

Raspberry PI Testing

  1. Access the Raspberry PI via anydesk credentials.
  2. Fire the Prosody server by
sudo /etc/init.d/prosody start
sudo telnet localhost 5582

  1. cd ~/Downloads/test_pres
  2. compile testxmpp1.c by gcc-10.1 -w testxmpp1.c -o client -I/usr/include/libxml2 -lxml2
  3. run the file by ./client pp@localhost 123 (./client user_name@localhost password)`
Clone this wiki locally