Install Xibo Digital Signage Software on CENTOS

Xibo Digital Signage Software turns a computer and monitor into a digital display that can be easily managed and updated with dynamic content via a CMS. Xibo is open source and free with an easy to use interface.

You can turn any TV into a food menu or a digital message board that can be scheduled to change on a regular basis.  Many of the other similar software costs more and doesn’t offer a feature rich and easy to use interface.

Xibo’s main website

Xibo Open Source Digital Signage

 

Steps to Setup CENTOS and Xibo CMS:

 

Base CENTOS Setup

 

Base CentOS Setup (only install needed applications/server applications. )

#check hostname
echo $HOSTNAME
#edit hostname
sudo nano /etc/hostname

#configure static ip 
nano /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
HWADDR=[MAC ADDRESS UPPER CASE]
TYPE=Ethernet
UUID=[GUID lower case]
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=static
IPADDR=[IP4 ADDRESS]
NETMASK=255.255.255.0
GATEWAY=[GATEWAY IP ADDRESS]


#reset network and test
sudo service network restart
ifconfig  #confirm settings stuck
ping www.google.com


#install needed programs/utilities
sudo yum install net-tools
sudo yum install links
sudo yum install wget
sudo yum install epel-release
sudo yum install p7zip
sudo yum install gcc

#update CENTOS
sudo yum -y update && yum -y upgrade

How to Install LAMP Stack on CENTOS

#install apache
sudo yum install httpd
sudo systemctl start httpd.service
sudo systemctl enable httpd.service

#install mariadb
sudo yum install mariadb-server mariadb
sudo systemctl start mariadb
sudo systemctl enable mariadb.service
sudo mysql_secure_installation

#install php
sudo yum install php php-mysql 

#review available php modules
sudo yum search php-

#firewall
sudo firewall-cmd --add-service=http
sudo firewall-cmd --permanent --add-port=443/tcp
sudo firewall-cmd --reload 

sudo yum install nano


#restart apache (php was installed)
sudo systemctl restart httpd.service

How to Add Users to CENTOS

#add a user
sudo adduser [USERNAME]
#set the password for a user
sudo passwd [USERNAME]

#add user as sudo user (admin privileges on the server if needed)
sudo gpasswd -a [USERNAME] wheel

Allow Webmin port 10000 through the CENTOS Firewall

#setup webmin repository in rpm
sudo vi /etc/yum.repos.d/webmin.repo

Next, add these 5 lines into the file and save it

[Webmin]
name=Webmin Distribution Neutral
#baseurl=http://download.webmin.com/download/yum
mirrorlist=http://download.webmin.com/download/yum/mirrorlist
enabled=1


#Install the webmin key into rpm
cd /tmp && wget http://www.webmin.com/jcameron-key.asc
rpm --import jcameron-key.asc

#install webmin
sudo yum install webmin

#Allow Webmin Through the firewall

sudo firewall-cmd --permanent --add-port=10000/tcp
sudo firewall-cmd --reload

 

 

How to install php-gd (extra steps needed to install php-gd)

sudo yum install gd gd-devel php-gd

 

How to install needed php extensions for xibo cms

sudo yum install php-intl php-common php-json php-xml php-soap php-mysql php-session php-dom php-mcrypt php-pdo

 

 

How to update CENTOS

sudo yum -y update && yum -y upgrade

 

Make Changes to the php.ini file for Xibo

sudo nano /etc/php.ini

edit “post_max_size = 128MB”

edit “upload_max_filesize=128MB”

edit “max_execution_time=120”

 

XIBO Linux Install instructions (not all the steps are covered)

http://xibo.org.uk/manual/en/install_environment_linux.html

 

Active JSON extension :

sudo nano /etc/php.d/json.ini

Make THE changes below:

# Json Extension

extension=json.so

Download XIBO cms and copy to /var/www/html/

 

 

cd /var/www/html sudo tar zxvf ~/xibo-VERSION-server.tar.gz

sudo mv xibo-VERSION-server xibo

sudo chown apache:apache -R xibo

cd ..

cd /var/www

sudo chown apache:apache -R html

sudo chmod 777 -R html

cd /var/www/html

sudo mkdir library

sudo chown apache:apache -R library

SELinux Allow Apache Anonymous users to write files for the xibo html folder and xibo library folder

https://blog.lysender.com/2015/07/centos-7-selinux-php-apache-cannot-writeaccess-file-no-matter-what/

 

XIBO Install Overview and Instructions for finalizing the install (Xibo database creation etc.)

http://xibo.org.uk/manual/en/install_cms.html

 

 

 

Resources:

 

30 Things to Do After Minimal RHEL/CentOS 7 Installation

https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-centos-7

https://www.digitalocean.com/community/tutorials/how-to-add-and-delete-users-on-a-centos-7-server

How to Install Webmin on CENTOS

https://www.liberiangeek.net/2015/01/install-webmin-centos-7/

 

Leave a Reply

%d bloggers like this: