User Tools

Site Tools


temp

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
temp [2021/11/07 14:51] – va7fitemp [2026/10/01 12:17] (current) – removed va7fi
Line 1: Line 1:
-====== Installing Mesh Chat on LinuxMint ====== 
- 
-===== Fresh LinuxMint Install ===== 
- 
-  * Change Hostname to ''VA7FI-Linux'' because that'll be the Node name on Mesh chat:<code bash> 
-sudo hostnamectl set-hostname VA7FI-Linux</code> 
- 
- 
-===== Installing Mesh Chat ===== 
-Following the instructions on [[http://www.trevorsbench.com/meshchat-messaging-for-mesh-networks |Trevorsbench]]: 
-  * Install dependencies:<code bash> 
-sudo aptitude install curl apache2 
-</code> 
- 
-  * Download and install Mesh Chat:<code bash> 
-wget https://s3.amazonaws.com/aredn/meshchat_1.02_all.deb 
-sudo dpkg -i meshchat_1.02_all.deb 
-</code> 
- 
-  * Edit configuration file:<code bash> 
-sudo pico /usr/lib/cgi-bin/meshchatconfig.pm 
-</code> 
-<WRAP indent> 
-and edit the last two lines so that the zone matches the other Mesh Chat Instances, and the node is the name of your AREDN Node.  In my case: 
-our $pi_zone                    = 'MIMeshChat'; 
-our $local_meshchat_node        = 'VA7FI-HAP-1'; 
-</code bash> 
- 
-===== Tests ===== 
-  * [[http://localhost/meshchat/]] 
-  * [[http://<ip from AREDN>/meshchat/]] 
- 
-====== Problem 1 ====== 
- "Lock Error"  Ref: [[https://www.arednmesh.org/content/pi-meshchat-error-sending-message]] 
- 
-Looking in ''/var/log/apache2/error.log'', I see many of:<code bash> 
-touch : cannot touch '/tmp/meshchat/lock' : No such file or directory. 
-clould not get lock at /usr/lib/cgi-bin/meshchatlib.pm line 35</code> 
- 
-Issue is that apache doesn't allow use of ''/tmp'' folder.  So created these:<code bash> 
-sudo mkdir /var/www/html/meshchat/tmp/ 
-sudo mkdir /var/www/html/meshchat/tmp/meshchat/ 
-sudo chown www-data:www-data -R /var/www/html/meshchat/tmp/ 
-sudo chmod 770 -R /var/www/html/meshchat/tmp/ 
-</code> 
- 
-Edit config file to update location of ''/tmp'' folder:<code bash> 
-sudo pico /usr/lib/cgi-bin/meshchatconfig.pm 
-</code> 
-And replace every instance of ''/tmp/'' by ''/var/www/html/meshchat/tmp/'' 
- 
-Restart services:<code bash> 
-sudo systemctl daemon-reload 
-sudo /etc/init.d/apache2 restart 
-sudo /etc/init.d/meshchatsync restart 
-</code> 
- 
-====== Problem 2 ====== 
-Not getting chats from other ''MIMeshChat'' instances 
  
temp.1636325496.txt.gz · Last modified: by va7fi