ResourceSpace – managing the tiles on the dashboard

resourcespace

Now you have the ResourceSpace¬† DAM up and running you want to do stuff with it. No one has written a book, (maybe I should. It would be a pretty short book though ūüôā ) to tell you how to administer it, so with a bit from the Knowledge base, some from the Google groups¬†https://groups.google.com/forum/#!forum/resourcespace¬†and just general Google, which tends to get you to the group you can start you journey.

There are some odd things, but once you get into it, it is not so bad

 

So you want to tidy up the front screen.

I wanted to remove the “Knowledge Base Tile”, this took forever to find.

Select the tile and drag it to the left, you will see a Red Remove arrow appear, drop the tile over the arrow and you will be presented with a dialog box

Screen Shot 2018-04-04 at 18.41.34

You can “Delete tile for all users” or you can choose the “Manage all user tiles” The url for this is¬†http://images.acem.com/pages/team/team_dash_tile.php, this can be seen in the Admin section of “Manage dash tiles”

So for people searching Google. “How do I remove a dashboard tile from Resourcespace”, hopefully you will find this.

 

 

 

 

Advertisements

Resource Space – error creating a user

resourcespace

One of the first things I did was to create a user, just to test the system and received this error

/var/www/html/resourcespace/include/message_functions.php line 283: count(): Parameter must be an array or an object that implements Countable

It created the user but what a pain, this is to do with php 7.2 and version 8.4 of ResourceSpace. Have a look below (ResourceSpace errors) for the work around for now.

 

ResourceSpace errors

/var/www/html/resourcespace/include/message_functions.php line 283: count(): Parameter must be an array or an object that implements Countable

vi /var/www/html/resourcespace/include/message_functions.php line 283

:set number

:283

Copy the line, comment it and then change it to (this is not my code, I am no PHP developer)

// if($remote_activity==0 || $remote_refs==0 || count($remote_refs)==0 ){return false;}
if($remote_activity==0 || $remote_refs==0 || ((is_array($remote_refs)) && (count($remote_refs)==0 ))){return false;}

 

This line may be needed more often to get around some of the issues

((is_array($remote_refs)) && (count($remote_refs)==0 ))

 

 


Redmine – install mindmapp

Redmine_logo

Tips on how to use it!

Mind maps!, I have used them a few times but always on an A3 sheet with a pencil. Perhaps I need to get into the 20th century never mind the 21st century.

So lets get this installed.

Again turnover your email to get the link

cd /opt/redmine/plugins

wget URL

unzip free_easy_wbs-7577f618e0d8f65bf9179be3ad82c45a.zip

chown -R apache:apache easy_mindmup 

cd /opt/redmine
bundle install --without development test --no-deployment 

bundle exec rake db:migrate RAILS_ENV=production

bundle exec rake redmine:plugins NAME=redmine_agile RAILS_ENV=production 

touch tmp/restart.txt

 

Again you have to allow the plugin to be seen. Roles and permissions

Screen Shot 2018-04-02 at 10.22.28

As always you have to enable the project to use the module and you obviously can add this as a default to the whole of Redmine as an admin.

 

 

 

 

 


Redmine – using the Agile plugin

Redmine_logo

Tips on how to use it!

So you have the plugin installed, you can see it but how best do you use this thing.

The plugin included versioning so you can create sprints etc..

You need to create a new tracker type called user story

All of this is done as an Administrator

Issues Status >> New >> “Backlog”

Trackers >> New >> Name “User Story”:¬† Default Status “Backlog”:¬† Copy Workflow “Bug”

Now you have to enable this is the workflow

Workflow >> Pick the role >> Tracker : Backlog make sure that the check box is unchecked

Screen Shot 2018-04-01 at 13.40.48

Change the settings as below.

Screen Shot 2018-04-01 at 13.43.36

Repeat this for all of the roles where Backlog can be moved from

Now how to use it in anger, but this gets you to where you can start this.

 

Follow this for the best guidelines, but the above is a summary of how to set Redmine up.

https://www.redmineup.com/pages/help/agile/learn-scrum-with-redmine-agile-plugin#2-Create-issues-user-stories

 


Redmine – slack integration

Redmine_logo

Tips on how to use it!

I am not a big fan of slack, but the developers that I am using are, and the fact that they are half way around the world, it is probably the best to use this type of communication.

So there is a slack integration ???

Well the other plugins are from a commercial company all be it free, so this is the first plugin from the talented community base.

So here goes.

For more information https://github.com/alphanodes/redmine_messenger

cd /opt/redmine/plugins

git clone https://github.com/AlphaNodes/redmine_messenger.git

chown -R apache:apache redmine_messenger/

cd /opt/redmine/

bundle install --without development test --no-deployment
bundle exec rake redmine:plugins NAME=redmine_messenger RAILS_ENV=production 

touch tmp/restart.txt

Remember to grant permission to the plugin via roles and permmisions

Screen Shot 2018-04-01 at 14.48.42

You know need to create the integration

Start at the Slack end https://api.slack.com/incoming-webhooks

Once you have the URL, you can add this to the project settings,

Screen Shot 2018-04-01 at 15.25.58

You will need to play around what you want sending to the Slack channel of your choice. But as something is created it is added to the slack channel.

 


Installing s3fs on Centos

centos-logos3_amazon

Many years ago I install s3fs on Centos servers and wrote about it, today I needed to install it on a new server.

I went straight to the instructions and of course as in everything Open Source they were out of date. So here for the next few months are the new install instructions. ūüôā

cd ~
mkdir software
cd software
wget -O master.zip https://github.com/s3fs-fuse/s3fs-fuse/archive/master.zip 

Some prerequisites 

yum -y install automake libcurl gcc-c++ \
libcurl-devel libxml2 libxml2-devel libtool gettext gettext-devel \
openssl openssl-devel
 
unzip master.zip
cd s3fs-fuse-master
./autogen.sh 

 

ERROR

— Make commit hash file ——-
— Finished commit hash file —
— Start autotools ————-
./autogen.sh: 38: ./autogen.sh: aclocal: not found
— Finished autotools ———-

Ensure that you have installed automake

./configure --prefix=/usr

ERROR

checking whether the C++ compiler works… no
configure: error: in `/root/software/s3fs-fuse-master’:
configure: error: C++ compiler cannot create executables
See `config.log’ for more details

Ensure that you have installed  gcc-c++

No package ‘fuse’ found
No package ‘libcurl’ found
No package ‘libxml-2.0’ found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables common_lib_checking_CFLAGS
and common_lib_checking_LIBS to avoid the need to call pkg-config.

Ensure that you installed fuse-devel  libcurl-devel libxml2-devel

ERROR

configure: error: Package requirements (fuse >= 2.8.4 libcurl >= 7.0 libxml-2.0 >= 2.6) were not met:

Requested ‘fuse >= 2.8.4’ but version of fuse is 2.8.3

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables common_lib_checking_CFLAGS
and common_lib_checking_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

You need to uninstall fuse

You may get the following error

Error in PREUN scriptlet in rpm package realplay
XXXXXXX was supposed to be removed but is not!

rpm -e --noscripts --nodeps fuse
rpm --rebuilddb
yum erase fuse*

cd ~/software
wget -O fuse-2_9_bugfix.zip https://github.com/libfuse/\
libfuse/archive/fuse-2_9_bugfix.zip

unzip fuse-2_9_bugfix.zip
cd libfuse-fuse-2_9_bugfix

I tried the install with version 3, this was a disaster

wget -O libfuse.zip https://github.com/libfuse/libfuse/archive/master.zip
unzip libfuse.zip
cd libfuse-master/

./makeconf.sh

Running libtoolize...
./makeconf.sh: line 4: libtoolize: command not found
config.rpath not found! - is gettext installed?

Ensure that libtool gettext gettext-devel

./configure --prefix=/usr/local
make
make install

OK now to fix some path issue and a final dependency

export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

To check if it is installed and the path statement is correct

pkg-config –modversion fuse

This is from version 3

pkg-config --modversion fuse3
ln -s /usr/local/lib/pkgconfig/fuse3.pc /usr/local/lib/pkgconfig/fuse.pc

cd ~/software/s3fs-fuse-master/
./configure --prefix=/usr

ERROR

checking for common_lib_checking… configure: error: Package requirements (fuse >= 2.8.4 libcurl >= 7.0 libxml-2.0 >= 2.6) were not met:

No package ‘fuse’ found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables common_lib_checking_CFLAGS
and common_lib_checking_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

ERROR

checking for DEPS… configure: error: Package requirements (fuse >= 2.8.4 libcurl >= 7.0 libxml-2.0 >= 2.6 libcrypto >= 0.9) were not met:

No package ‘libcrypto’ found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables DEPS_CFLAGS
and DEPS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

Ensure that  openssl openssl-devel

make
make install

OK to test if you have this installed

s3f3 

should then prompt you for a bucket name and credentials

s3fs: missing BUCKET argument.
Usage: s3fs BUCKET:[PATH] MOUNTPOINT [OPTION]…

ERROR

s3fs: error while loading shared libraries: libfuse.so.2: cannot open shared object file: No such file or directory

yum install fuse-libs

You need to create a .passwd-s3fs file. This is best done as root as it should be stored in the home directory and should of course be secured done.

cd ~
echo accessKeyId:secretAccessKey > .passwd-s3fs
chmod 600 ~/.passwd-s3fs

Now create a mount point for the bucket

cd /mnt
mkdir bucketname - this is only a suggestion but it keeps it 
consistent and therefore easy to debug

then issue the s3fs commands (to text if the mount works)

s3fs mybucket /path/to/mountpoint -o passwd_file=~/.passwd-s3fs
 

NOTE the -o allow ‚Äď makes the mounted directory¬†accessible by other users of the server.

If you encounter any errors, enable debug output:

s3fs mybucket /path/to/mountpoint -o passwd_file=~/.passwd-s3fs -d -d -f -o 
f2 -o curldbg

Now to permanently mount the drive when the server boots up etc… the command for the fstab is as follows :

s3fs#bucketname /mnt/mount_folder fuse allow_other 0 0

e.g.

vi /ect/fstab

s3fs#domainname-website-export /mnt/website-export fuse _netdev,allow_other 0 0

To mount the bucket

mount -a 


Install s3fs Ubuntu 14.04 LTS

ubuntu-logo112s3_amazon

Many years ago I install s3fs on Centos servers and wrote about it, today I needed to install in an Ubuntu server.

I went straight to the instructions and of course as in everything Open Source they were out of date. So here for the next few months are the new install instructions. ūüôā

cd ~
mkdir software
cd software
 wget https://github.com/s3fs-fuse/s3fs-fuse/archive/master.zip

Some prerequisites 

apt-get -y install automake build-essential libfuse-dev fuse libcurl3
libcurl3-dev libxml2 libxml2-dev
unzip master.zip
cd s3fs-fuse-master
 ./autogen.sh 

ERROR

— Make commit hash file ——-
— Finished commit hash file —
— Start autotools ————-
./autogen.sh: 38: ./autogen.sh: aclocal: not found
— Finished autotools ———-

Ensure that you have installed automake

./configure --prefix=/usr

ERROR

checking whether the C++ compiler works… no
configure: error: in `/root/software/s3fs-fuse-master’:
configure: error: C++ compiler cannot create executables
See `config.log’ for more details

Ensure that you have installed  build-essential

No package ‘fuse’ found
No package ‘libcurl’ found
No package ‘libxml-2.0’ found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables common_lib_checking_CFLAGS
and common_lib_checking_LIBS to avoid the need to call pkg-config.

Ensure that you installed libfuse-dev  libcurl3-dev libxml2-dev

A quick hint, if you are looking for a package e.g. libcurl you could use the following command :-

apt-cache search libcurl

make
make install

 

OK to test if you have this installed

s3f3 should then prompt you for a bucket name and credentials

s3fs: missing BUCKET argument.
Usage: s3fs BUCKET:[PATH] MOUNTPOINT [OPTION]…

You need to create a .passwd-s3fs file. This is best done as root as it should be stored in the home directory and should of course be secured done.

cd ~
echo accessKeyId:secretAccessKey > .passwd-s3fs
chmod 600 ~/.passwd-s3fs

Now create a mount point for the bucket

cd /mnt
mkdir bucketname - this is only a suggestion but it keeps it 
consistent and therefore easy to debug

then issue the s3fs commands (to text if the mount works)

s3fs mybucket /path/to/mountpoint -o passwd_file=~/.passwd-s3fs
 

NOTE the -o allow ‚Äď makes the mounted directory¬†accessible by other users of the server.

If you encounter any errors, enable debug output:

s3fs mybucket /path/to/mountpoint -o passwd_file=~/.passwd-s3fs -d -d -f -o 
f2 -o curldbg

 

Now to permanently mount the drive when the server boots up etc… the command for the fstab is as follows :

s3fs#bucketname /mnt/mount_folder fuse allow_other 0 0

e.g.

vi /ect/fstab

s3fs#domainname-website-export /mnt/website-export fuse _netdev,allow_other 0 0

Allowing access to a mounted drive from a non root user is a bit of a headache.

change the /etc/fuse.conf file and un-comment the user_allow_other

# Allow non-root users to specify the allow_other or allow_root mount options.
user_allow_other

Then add the mount line to /etc/fstab

s3fs#bucketname mount_point  fuse _netdev,allow_other,umask=700,use_rrs  0 0

The highlighted areas are the imported entries

To mount the bucket

mount -a