...
- Have a computer/server running Linux (recommended: Ubuntu 18.04 LTS or newer)
- Have a copy of the latest Chariot MQTT Server zip file found here:.
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 |
---|
|
sudo adduser chariot |
...
Code Block |
---|
|
sudo apt-get install unzip |
Switch User
Unzip Chariot
Code Block |
---|
|
cd /opt
sudo unzip /tmp/chariot_linux.zip -d ./chariot |
Update scripts and config (if installing v2.0.0)
Code Block |
---|
|
# 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 |
---|
|
cd /opt/chariot
sudo /bin/bash ./install.sh |
Change ownership to be owned by chariot
Code Block |
---|
|
sudo chown -R chariot:chariot /opt/chariot |
Log out of 'chariot' user
Remove chariot from sudo group
Code Block |
---|
|
sudo deluser chariot sudo |
Log in as 'chariot' and start Chariot (as non-super user)
Code Block |
---|
|
su chariot
/etc/init.d/chariot start |
...