User Tools

Site Tools


how_to_install_tonido_on_2.3_vba

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
how_to_install_tonido_on_2.3_vba [2016/02/04 20:29]
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 32: Line 32:
 0. Login to your VortexBox. 0. Login to your VortexBox.
  
-1. Download the latest Debian package for Tonido: ​+1. Install needed packages. Only have to do this once. 
 +<​code>​yum install binutils libpng12</​code>​ 
 + 
 +2. Download the latest Debian package for Tonido ​(version 7.83.0.27601 as of Feb. 2016):
 <​code>​ <​code>​
 rm -rf /tmp/tonido rm -rf /tmp/tonido
Line 41: Line 44:
 </​code>​ </​code>​
   ​   ​
-2. Unpack the .deb archive to get data.tar.gz and control.tar.gz:​+3. Unpack the .deb archive to get data.tar.gz and control.tar.gz:​
  
 <​code>​ <​code>​
Line 47: Line 50:
 ls -l ls -l
 </​code>​ </​code>​
-Note: If you get 
  
-<​code>​ +4. Save the previous installation,​ if it exists. Skip this step if there is no previous installation in /usr/local/tonido.
-bash: ar: command not found +
-</​code>​ +
-then install the binutils package to get the /usr/bin/ar command:+
  
 <​code>​ <​code>​
-yum install binutils+/​usr/​local/​tonido/​tonido.sh stop 
 +mv /​usr/​local/​tonido /​usr/​local/​tonido.bak
 </​code>​ </​code>​
-Then try "ar -xv TonidoSetup.deb"​ again. +If you wish to start with a fresh configuration:​
- +
-3. Save the previous installation,​ if it exists. Skip this step if there is no previous installation in /​usr/​local/​tonido. +
 <​code>​ <​code>​
-/​usr/​local/​tonido/​tonido.sh stop 
-mv /​usr/​local/​tonido /​usr/​local/​tonido.bak 
 mv /​root/​tonido /​root/​tonido.bak mv /​root/​tonido /​root/​tonido.bak
 </​code>​ </​code>​
  
-4. Unpack data.tar.gz in / to create /​usr/​local/​tonido,​ /​usr/​share/​applications|menu|pixmaps,​ etc.:+5. Unpack data.tar.gz in / to create /​usr/​local/​tonido,​ /​usr/​share/​applications|menu|pixmaps,​ etc.:
  
 <​code>​ <​code>​
Line 74: Line 69:
 </​code>​ </​code>​
  
-5Start the Tonido ​server:+6Create 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>​ + 
-nohupredirecting stderr to stdout +7. Start the Tonido server: 
-</​code>​ + 
-Hit Enter to get a command prompt.+<​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. 
 + 
 +To verify Tonido is running
 +<​code>​systemctl status tonido</​code>​ 
 + 
 +If you want to autostart Tonido at boot time: 
 +<​code>​systemctl enable tonido</​code>​
  
-6. 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.+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 99: 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.+
  
-7. 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.
  
-8To 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.+10Delete work files: 
 + 
 +<​code>​rm -rf /tmp/tonido</code> 
 +11If 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>​
  
-9. 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>​ +
-10. If you are happy with the new install, and want to delete the backup (if you created it in step 3): +
- +
-<​code>​ +
-rm -rf /usr/local/tonido.bak +
-rm -rf /​root/​tonido.bak +
-</​code> ​   +
how_to_install_tonido_on_2.3_vba.1454635743.txt.gz · Last modified: 2016/02/04 20:29 by ron