ResourceSpace on OMV.

Leave a comment

September 4, 2017 by aubreykloppers

This one had me a bit stumped due to the fact that there was an error in the ResourceSpace 8.2 code (now fixed after I reported it) that did not allow for new password or username requests.

To successfully run ResourceSpace (RS) on OpenMediaVault (OMV), there are a couple of things you need to do.  I take it for granted you know how to install OMV and it’s extras, so those steps are just being touched on.  The rest is what I concentrate on.  Well, here we go:

Basic Installation Steps:

  1. Change the OMV default port to 8080.
  2. Install OMV-Extras and activate.
  3. Update the system
  4. Install packages.
  5. Install and activate MYSQL package.
  6. Install NGINX package.

Install steps 2,3,4: (Steps 1,5,6 from OMV interface.)

wget http://omv-extras.org/openmediavault-omvextrasorg_latest_all3.deb
dpkg -i openmediavault-omvextrasorg_latest_all3.deb
apt-get update
apt-get install git-svn php5-gd libimage-exiftool-perl imagemagick libav-tools ghostscript antiword poppler-utils unoconv unzip

MYSQL setup:

mysql> use mysql;
mysql> update user set password=PASSWORD("password") where User='root';
mysql> GRANT ALL PRIVILEGES on *.* to 'root'@'localhost' IDENTIFIED BY 'password';
mysql> flush privileges;
mysql> create database resourcespace;

Now you have a system with mysql password as “password”.

ADD secondary disk to OMV.

  1. Format and initialize.
  2. Create fileserver directory called “resourcespace”.

Setup NGINX:

  1. Create POOL (user/group = www)
  2. Create server and mount on /srv/{your mounted disk}/resourcespace
  3. Edit /etc/nginx/nginx.conf and add after http{:
  client_max_body_size 1G;

Install ResourceSpace using GIT:

cd /var/www/
ln -s /srv/{your mounted disk}/resourcespace resourcespace
cd resourcespace
chmod 777 .
git svn clone http://svn.resourcespace.com/svn/rs/releases/8.2 ./
chmod 777 include
chmod 777 fileserver

Fix PHPFPM:

 php_value[memory_limit] = 200M
 php_value[post_max_size] = 100M
 php_value[upload_max_filesize] = 100M

/var/www/resourcespace/include/config.default.php:

The following values will help you to preview your site with ease.

$mysql_server = 'localhost';
$mysql_server_port = 3306;
$mysql_username = 'root';
$mysql_password = 'password';
$mysql_db = 'resourcespace';

$email_from="resourcespace@<domain>"; # Where system e-mails appear to come from
$email_notify="<user>@<domain>"; # Where resource/research/user requests are sent

$ffmpeg_preview=true;
$ffmpeg_preview_seconds=120; # how many seconds to preview
$ffmpeg_preview_extension="mp4";
$ffmpeg_preview_min_width=32;
$ffmpeg_preview_min_height=18;
$ffmpeg_preview_max_width=700;
$ffmpeg_preview_max_height=394;
$ffmpeg_preview_options = '-f mp4 -ar 22050 -b 650k -ab 32k -ac 1 -strict experimental';

END NOTES:

Make sure your email works from OMV.  Set your proxy if you need to.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: