Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Installing Chariot MQTT Server (as superuser)
Anchor
install-chariot-linux-superuser
install-chariot-linux-superuser

The following installation instructions assume you have superuser privileges. Non-superuser installation instructions can be found here. The Chariot MQTT Server can be installed on the Linux server by following these steps:

...

Code Block
$ ./uninstall.sh


Installing Chariot MQTT Server (as non-superuser)
Anchor
install-chariot-linux-non-superuser
install-chariot-linux-non-superuser

The following installation instructions assume you do not have superuser privileges. Superuser installation instructions can be found here.

Create new user 'chariot'

Code Block
languagebash
sudo adduser chariot

...

Code Block
languagebash
sudo apt-get install unzip

Switch User

Code Block
languagebash
su chariot

Unzip Chariot

Code Block
languagebash
cd /opt
sudo unzip /tmp/chariot_linux.zip -d ./chariot

Update scripts and config (if installing v2.0.0)

Code Block
languagebash
# The following updates are only necessary if installing Chariot v2.0.0 as a non-superuser. This is fixed and no longer required in later versions of Chariot.
 
# In /opt/chariot/chariot-common
In line 28 - Change the script that is called:
'queryDaemon.sh' to be 'queryDaemonNoPriv.sh'
 
# In /opt/chariot/yajsw/conf/wrapper.conf
Add the line:
wrapper.pidfile = /tmp/wrapper.chariot.pid

Install Chariot

Code Block
languagebash
cd /opt/chariot
sudo /bin/bash ./install.sh

Change ownership to be owned by chariot

Code Block
languagebash
sudo chown -R chariot:chariot /opt/chariot

Log out of 'chariot' user

Code Block
languagebash
ctrl + d

Remove chariot from sudo group

Code Block
languagebash
sudo deluser chariot sudo

Log in as 'chariot' and start Chariot (as non-super user)

Code Block
languagebash
su chariot
/etc/init.d/chariot start

...