#Installing colloqui's PiSignage on CentOS 7.2 https://github.com/colloqi/pisignage-server
##Create the server user sudo adduser mediaservice sudo gpasswd -a mediaservice wheel
This user will run your PiSignage server instance
##Installing Mongo DB
echo -e "[mongodb-org-2.6] \nname=MongoDB 2.6 Repository \nbaseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/ \ngpgcheck=0 \nenabled=1" | sudo tee /etc/yum.repos.d/mongodb-org-2.6.repo
sudo yum install -y mongodb-org
Wait for Yum to complete the install before proceeding
Check if the /data/db
exists
cd /data/db
If it doesn't exist, create it and change the permissions to your server user
sudo mkdir -p /data/db
sudo chown mediauser /data/db
Verify your permissions
[hdml@centos ~]$ ls -lah /data/db
total 8.0K
drwxr-xr-x 2 mediaservice root 4.0K Mar 15 17:43 .
drwxr-xr-x 3 root root 4.0K Mar 15 17:43 ..
Start the mongodb service
sudo service mongodb start
##Installing node.js and npm
sudo yum install -y epel-release
sudo yum install -y nodejs
sudo yum install -y npm
sudo yum install -y git
##Install ffmpeg
This is a tricky installation, but follow this gist and you'll be able to compile it and install it successfully. https://gist.github.com/hdml/13384af9a9dbf3f004eb
cd ~
wget https://gist.githubusercontent.com/hdml/13384af9a9dbf3f004eb/raw/2c19a259c9b724b5e2f528c24ab4a41405bdba3d/latest-ffmpeg-centos6.sh
sudo chmod +x latest-ffmpeg-centos6.sh
sh latest-ffmpeg-centos6.sh
Move your compiled packages to /usr/bin
mv ~/bin/* /usr/bin
##Install imagemagik
sudo yum install -y ImageMagick ImageMagick-devel
##Install PiSignage
sudo su mediaserver
cd ~
git clone https://github.com/colloqi/pisignage-server
cd pisignage-server
npm install
sudo node server.js
This should pass the sanity checks and start your server on port 3000.