This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
how_to_install_tonido_on_2.3_vba [2016/02/06 23:02] ron [How to install Tonido on VortexBox 2.3:] |
how_to_install_tonido_on_2.3_vba [2016/02/24 00:37] (current) ron Add tonido service file |
||
|---|---|---|---|
| Line 69: | Line 69: | ||
| </code> | </code> | ||
| - | 6. Start the Tonido server: | + | 6. Create service file for Tonido: |
| + | A service file allows Tonido to be controlled by the systemctl command to start, stop, and get status. | ||
| + | |||
| + | Create and edit the service file: | ||
| + | <code>nano /lib/systemd/system/tonido.service</code> | ||
| + | Add the following lines to the file: | ||
| <code> | <code> | ||
| - | /usr/local/tonido/tonido.sh start | + | [Unit] |
| + | Description=Tonido Server | ||
| + | After=local-fs.target network.target | ||
| + | |||
| + | [Service] | ||
| + | Type=forking | ||
| + | User=root | ||
| + | ExecStart=/usr/local/tonido/tonido.sh start | ||
| + | ExecStop=/usr/local/tonido/tonido.sh stop | ||
| + | Restart=on-failure | ||
| + | RestartSec=5 | ||
| + | |||
| + | [Install] | ||
| + | WantedBy=multi-user.target | ||
| </code> | </code> | ||
| - | You should then see the message | + | Write the file (**control-o**) and exit (**control-x**). |
| - | <code> | + | |
| - | nohup: redirecting stderr to stdout | + | |
| - | </code> | + | |
| - | Hit Enter to get a command prompt. | + | |
| + | 7. Start the Tonido server: | ||
| + | |||
| + | <code>systemctl start tonido</code> | ||
| This will start the Tonido server and create the /root/tonido directory and the configuration file /root/tonido/data/configex.xml. | This will start the Tonido server and create the /root/tonido directory and the configuration file /root/tonido/data/configex.xml. | ||
| - | If you wish to verify Tonido is running. | + | To verify Tonido is running: |
| - | <code> | + | <code>systemctl status tonido</code> |
| - | ps -ef | grep tonidoconsole | + | |
| - | </code> | + | |
| - | 7. Note: in recent versions of Tonido (Feb. 2016), the value of **RemoteAdmin** is already set to **1**, so the configex.xml file does not have to be edited, and this step can be skipped. | + | If you want to autostart Tonido at boot time: |
| + | <code>systemctl enable tonido</code> | ||
| + | |||
| + | 8. Note: in recent versions of Tonido (Feb. 2016), the value of **RemoteAdmin** is already set to **1**, so the configex.xml file does not have to be edited, and this step can be skipped. | ||
| To enable administration from a remote browser, stop the server and edit /root/tonido/data/configex.xml: | To enable administration from a remote browser, stop the server and edit /root/tonido/data/configex.xml: | ||
| <code> | <code> | ||
| - | /usr/local/tonido/tonido.sh stop | + | systemctl stop tonido |
| nano /root/tonido/data/configex.xml | nano /root/tonido/data/configex.xml | ||
| </code> | </code> | ||
| Line 101: | Line 119: | ||
| Then restart the server: | Then restart the server: | ||
| - | <code> | + | <code>systemctl start tonido</code> |
| - | /usr/local/tonido/tonido.sh start | + | |
| - | </code> | + | |
| - | You will again see the message | + | |
| - | <code> | + | |
| - | nohup: redirecting stderr to stdout | + | |
| - | </code> | + | |
| - | Then hit Enter to get a command prompt. | + | |
| - | 8. In a browser, go to the Tonido web interface at http://vortexbox-ip:10001 to create account, configure folders, etc. You can also access the Tonido web interface at https://accountname.tonidoid.com | + | 9. In a browser, go to the Tonido web interface at http://vortexbox-ip:10001 to create account, configure folders, etc. You can also access the Tonido web interface at https://accountname.tonidoid.com |
| To access your personal Tonido Cloud on an iPhone or iPad, install the free Tonido App from the App Store. Login and setup a passcode for additional security. | To access your personal Tonido Cloud on an iPhone or iPad, install the free Tonido App from the App Store. Login and setup a passcode for additional security. | ||
| - | 9. To have Tonido autostart at boot, edit /usr/local/sbin/network_up.sh. Note: this file may not exist when you try to edit it. Just enter the nano command and the file will be created when you write the file and exit nano. | + | 10. Delete work files: |
| + | |||
| + | <code>rm -rf /tmp/tonido</code> | ||
| + | 11. If you are happy with the new install, and want to delete the backups (if you created them in step 4): | ||
| <code> | <code> | ||
| - | nano /usr/local/sbin/network_up.sh | + | rm -rf /usr/local/tonido.bak |
| + | rm -rf /root/tonido.bak | ||
| </code> | </code> | ||
| + | 12. Commands to control Tonido: | ||
| - | Add the line | + | To start Tonido: |
| + | <code>systemctl start tonido</code> | ||
| - | <code> | + | To stop Tonido: |
| - | /usr/local/tonido/tonido.sh start | + | <code>systemctl stop tonido</code> |
| - | </code> | + | |
| - | to the end of the file. | + | To check Tonido status: |
| - | Write the file (**control-o**) and exit (**control-x**). | + | <code>systemctl status tonido</code> |
| - | 10. Delete work files: | + | To enable autostart at boot: |
| + | <code>systemctl enable tonido</code> | ||
| - | <code> | + | To disable autostart at boot: |
| - | rm -rf /tmp/tonido | + | <code>systemctl disable tonido</code> |
| - | </code> | + | |
| - | 11. If you are happy with the new install, and want to delete the backups (if you created them in step 4): | + | |
| - | + | ||
| - | <code> | + | |
| - | rm -rf /usr/local/tonido.bak | + | |
| - | rm -rf /root/tonido.bak | + | |
| - | </code> | + | |