-
Notifications
You must be signed in to change notification settings - Fork 2
For Testing
mnswdhw edited this page Oct 18, 2021
·
2 revisions
- After installing the Prosody server in the conventional way make the changes as explained in the Configuring Prosody Server Page.
- Now replace the
/usr/lib/prosody/modules/mod_tls.lua
in your local machine withprosody/plugins/mod_tls.lua
in this repository. - cd to the directory
/usr/lib/prosody/util
- Download the file
prosody/util-src/libnativefunc.c
from this repository and add in the directory/usr/lib/prosody/util/
- 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
- Access the Raspberry PI via anydesk credentials.
- Fire the Prosody server by
sudo /etc/init.d/prosody start
sudo telnet localhost 5582
- cd ~/Downloads/test_pres
- compile testxmpp1.c by
gcc-10.1 -w testxmpp1.c -o client -I/usr/include/libxml2 -lxml2
- run the file by
./client pp@localhost 123
(./client user_name@localhost password)`