User Tools

Site Tools


prosody_on_raspberry_pi

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
prosody_on_raspberry_pi [2023/11/21 18:33] – [Install other modules] dougy147prosody_on_raspberry_pi [2024/08/18 13:04] (current) – external edit 127.0.0.1
Line 5: Line 5:
 ==== Install packages ==== ==== Install packages ====
  
-<code bash>+<code console>
 apt update && apt upgrade            # udpate the system apt update && apt upgrade            # udpate the system
 apt install prosody prosody-modules  # prosody and modules apt install prosody prosody-modules  # prosody and modules
Line 122: Line 122:
 User accounts and other informations are going to be stored in a PostgreSQL database. User accounts and other informations are going to be stored in a PostgreSQL database.
  
-<code bash>+<code console>
 sudo -i                     # be sure to be root sudo -i                     # be sure to be root
 sudo su - postgres     # log as postgres user sudo su - postgres     # log as postgres user
Line 142: Line 142:
 Open ''5222'' (standard XMPP port), ''5281'' (file uploads) and ''5269'' (federation, HTTPS) on your router and redirect to your machine. Also open those ports on the machine firewall if you have one. Open ''5222'' (standard XMPP port), ''5281'' (file uploads) and ''5269'' (federation, HTTPS) on your router and redirect to your machine. Also open those ports on the machine firewall if you have one.
  
-<code bash>+<code console>
 ufw allow 5222,5281,5269/tcp # assuming your firewall is ufw ufw allow 5222,5281,5269/tcp # assuming your firewall is ufw
 </code> </code>
Line 148: Line 148:
 ==== Start the services ==== ==== Start the services ====
  
-<code bash>+<code console>
 systemctl restart postgresql systemctl restart postgresql
 systemctl restart prosody systemctl restart prosody
Line 160: Line 160:
 Create an **ephemeral** unprivileged account that we will delete after testing the server: Create an **ephemeral** unprivileged account that we will delete after testing the server:
  
-<code bash>+<code console>
 prosodyctl adduser test@example.org prosodyctl adduser test@example.org
 </code> </code>
Line 168: Line 168:
 On Android phones there is Snikket or Conversation (free on F-Droid). On Linux you can use profanity (lightweight TUI client with good level of logs). On Android phones there is Snikket or Conversation (free on F-Droid). On Linux you can use profanity (lightweight TUI client with good level of logs).
  
-<code bash>+<code console>
 apt install profanity apt install profanity
 tail -f ~/.local/share/profanity/logs/profanity.log tail -f ~/.local/share/profanity/logs/profanity.log
Line 185: Line 185:
 ==== Add/remove users ==== ==== Add/remove users ====
  
-<code bash>+<code console>
 prosodyctl adduser username@example.org # add new user prosodyctl adduser username@example.org # add new user
 prosodyctl deluser username@example.org # remove user prosodyctl deluser username@example.org # remove user
prosody_on_raspberry_pi.1700591593.txt.gz · Last modified: (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki