Install BarracudaDrive on Sheevaplug

From PlugWiki
Jump to: navigation, search

BarracudaDrive is an application/web server that lets you create your own online multiuser file storage, run your own web-site and blog, etc. BarracudaDrive includes a SQLite database driven Content Management System, a secure WebDAV file server, a secure Web File Manager, a HTTPS VPN solution, and more.


Contents

Steps to be followed to install BarracudaDrive on Sheevaplug

Requirements

Hardware

  • Sheevaplug, Guruplug, etc.
  • External USB hard drive (if using BarracudaDrive as a NAS).

Software


Installation Steps

  • Since BarracudaDrive is a combined application and web server, uninstall any other web server on the plug prior to installing BarracudaDrive. Alternatively, configure BarracudaDrive as a proxy for the other web server. Note: not all plug computers come pre-installed with a web server. You may also consider uninstalling Samba since the WebDAV server in BarracudaDrive can be used similar to a Samba server -- i.e. as a NAS.

For example, the following can be uninstalled on a Guruplug:

   # apt-get remove -y --purge lighttpd
   # apt-get remove -y --purge mysql-server
   # apt-get remove -y --purge samba-common
   # apt-get remove -y --purge php5-cgi php5-common php5-gd php5-mysql mysql-server-5.0 libdbd-mysql-perl libmysqlclient15off libsqlite3-0 mysql-client mysql-client-5.0 mysql-common apt-get remove -y --purge dbus-x11 libx11-6 libx11-data x11-common
   # apt-get autoremove -y
  • Create a new user for the server. The name should be 'bd'.
   # useradd -G daemon -m -s /bin/bash  bd 
  • Change from user root to the new user and navigate to the home directory
   # su bd
   # cd /home/bd/
  • Download and unpack BarracudaDrive. Note: make sure you do this as user 'bd'
   # wget http://barracudaserver.com/products/BarracudaDrive/BarracudaDrive.sheeva.tar.gz
   # tar xvzf BarracudaDrive.sheeva.tar.gz
   # rm BarracudaDrive.sheeva.tar.gz
  • Change to user root
   # exit
   # whoami #should be root
  • Install the BarracudaDrive startup scripts as root
  # cd /home/bd/InstallDaemon
  # ./install.sh
  • BarracudaDrive will now start automatically when you power on the plug computer. You can manually start and stop the server by using the following two commands as user root.
  # /etc/init.d/bdd start # Start BarracudaDrive
  # /etc/init.d/bdd stop # Stop BarracudaDrive

Using BarracudaDrive as a Network Attached Storage (NAS)

The internal flash memory in the plug is not sufficient when using BarracudaDrive as a NAS. You need to add an external USB hard drive.

  • Format the new hard drive as a Linux file system, mount the drive, create a new directory on this drive, and change the user to bd.
  # mkdir bddisk
  # chown bd:daemon bddisk
  • Delete the BarracudaDrive 'disk' directory (the NAS directory), and make 'disk' a link to your external drive.
  # rm -rf /home/bd/disk
  # ln -s /my-new-disk-mount-point/bddisk /home/bd/disk

Installing the BarracudaDrive Transmission BitTorrent plugin

BarracudaDrive supports the concept of plugins. The BarracudaDrive Transmission BitTorrent plugin is a separate component that you can download and install manually. The plugin requires that you have installed the Transmission BitTorrent daemon separately. Unfortunately, the Transmission daemon that can be installed with ' apt-get' is too old for the BarracudaDrive Transmission BitTorrent plugin. A newer version of the Transmission daemon can be downloaded from barracudaserver.com.

  • Download the Transmission daemon for BarracudaDrive:
  # su bd
  # cd /home/bd
  # wget http://barracudaserver.com/products/FreeLspApps/unix/sheeva/transmission-daemon
  # chmod +x transmission-daemon
  # exit
  • The transmission daemon requires a few shared libraries such as curl
  # apt-get install curl
  • You can now try to start the transmission daemon as follows:
  # /home/bd/transmission-daemon --version

The Transmission daemon should load and print the version number if all required shared libraries are found.

  • Download and install the BarracudaDrive Transmission BitTorrent plugin
  # su bd
  # cd /home/bd/applications
  # wget http://barracudaserver.com/products/FreeLspApps/unix/transmission.zip
  # exit
  • Navigate to the BarracudaDrive's "load app" page in the integrated administrator application: http: your-server-address/rtl/protected/admin/appmgr/loadapp.lsp
  • Click the load button to load the plugin.

Installing the BarracudaDrive SSL Certificate Wizard Plugin

Install the SSL wizard if you have your own domain name and if want to remove the SSL browser warning that pops up in your browser when accessing your BarracudaDrive server in secure mode.

  • The openssl command line tool is needed by the BarraucdaDrive SSL certificate plugin
  # apt-get install -y openssl

Download the BarracudaDrive SSL certificate wizard plugin:

  # su bd
  # cd /home/bd/applications
  # wget http://barracudaserver.com/products/FreeLspApps/unix/sslcert.zip
  # exit
  • Navigate to the BarracudaDrive's "load app" page in the integrated administrator application: http: your-server-address/rtl/protected/admin/appmgr/loadapp.lsp
  • Click the load button to load the plugin.
Personal tools