Archive | Linux RSS feed for this section

Reset root password Ubuntu 16:04LTS

5 Aug

This fixed it for me

Xibo – Ubuntu Linux Install

9 Sep

What is Xibo?

Xibo is a great content management system that can be used for Digital Signage which is  a form of electronic display used to show messages to the public mainly in the advertisement industry. It is free of charge and this tutorial will help you to learn how to install it on an Ubuntu machine.

According to the official page Xibo includes the followings:

  • Content Management System (CMS);
  • Windows Display Client;
  • Ubuntu Display Client;
  • Ubuntu Off-line Download Client;
  • Android Display Client (Commercial Software*);
  • With Xibo the content is designed from anywhere using a web browser on the internet accessible CMS, scheduled to your Display clients and then downloaded automatically when appropriate. This manual will guide you through the application from installation to troubleshooting, from the CMS to the display clients;
  • Commercial software provided by the project sponsors.

Download And Install Requirements

Since Xibo is a web application built in php programming language we need to use the following command in order to install PHP5, Apache2, MYSQL server and the following php plugins:

  • PHP5 GD plugin
  • PHP5 MySQL plugin
  • PHP5 crypt plugin

Open a new terminal on your Ubuntu operating system (CTRL+ALT+T) machine and run the apt-get update command to update the official repositories like shown below.

sudo apt-get update

Then use the following command to install all the requirements in order to run the Xibo CMS on Ubuntu.

sudo apt-get install apache2 mysql-server php5 php5-gd php5-mysql php5-mcrypt

Once the installation of the required packages is finished it is time to download and configure the latest Xibo application on your machine.

Download And Install Xibo On Ubuntu

The wget utility is very useful when it comes to downloading software from the commandline. I use it alot during development work and even when I test new software.

Use the wget utility like shown below.

wget -O xibo-server.tar.gz

You can also download the archive direct from the github website

Then extract it using the tar utility. The option is used to indicate verbose mode which is very helpful if you want to see the output of the command displayed on your terminal.

tar xvzf xibo-server.tar.gz

Then run the following commands.

sudo mv xibo-server /var/www/xibo-server
sudo chown www-data:www-data -R /var/www/xibo-server

Once you have finished create a directory for the storage of the media files you will use on Xibo. The following commands will help you do to that.

sudo mkdir /media/xibo-library
sudo chown www-data:www-data -R /media/xibo-library

Web Installation

Restart the webserver with the following command and visit the addresshttp:// in a new tab on your favorite web browser.

sudo /etc/init.d/apache2 restart

Once you visit the url in your web browser it will look like the following.

Click next to continue. There are six steps we need to follow in order to complete the installation of Xibo on your system.

As you can clearly see from the above screenshot Xibo needs to use a connection to your MySQL database. I am going to create a new empety database and will let Xibo do it for me. I suggest you do the same. Leave host as localhost, create an admin password, database name, database username and click on next again.

You will se the following displayed on your screen.

The above will help you to create the administrator account will gain access to the CMS. Mine are the followings. Make sure you use a strong password and an original username.

Click on next again so you can continue with the next step.

The Library Location is the place where things you upload will be stored. Put the full path location of the folder we created for the media files. It should be /media/xibo-library.

Then click on next.

Xibo is finally installed on your machine. Use the login credentials you created and login.

FSCK needs to be run manually on VM start

10 Mar

Linux Volume Cleaning

Sometimes a virtual linux machine will not start up properly due to a file system issue.  If this happens, a manual file system check (fsck) will need to be performed.

To perform a manual file system check you will need to boot into GParted followed various commands in the system.
Below is a step by step guide to fix this problem:

  1. Log into vCenter
  2. Find the machine that is having the issue
  3. Power Off the machine
  4. Click on Edit Settings
  5. Click on Options
  6. Choose to boot into the bios on next boot
    PSPHP - Virtual Machine Properties
  7. Start the machine
  8. When in the bios mount the GParted and change the boot order to have the CDROM first
    • the GParted disc can be found on Nerd>ISO>Linux
    • An alternative option is that when the machine boots up press ESC.  This will allow you the time to add the GParted disc and boot menu will appear
  9. Choose GParted Live (default settings)
  10. Choose Don’t Touch keymap
  11. Press enter to choose the default language which is English
  12. Choose 2
  13. Type fdisk -l
    • This will list all of the disks that will need to fsck
    • Make a note of the this, but it will also be onscreen
  14. Type fsck -y /dev/<device boot from step 13>
    • Example is fsck -y /dev/sda1
    • Errors may appear but can be ignored
    • the -y is to try and automatically fix any errors found
  15. Repeat step 14 for all devices in step 13
  16. Type reboot
  17. Eject/remove the disc when told to

In the case of an LVM that is dirty do these commands.

vgchange –ignorelockingfailure -ay

The LVM should be active now

lvscan –ignorelockingfailure

Now you can run fsck on the LVM

fsck -y /dev/mapper/LVM label

Once all partitions are clean, issue the command shutdown -h now. Remove Live CD and turn back on.


Remove Footer from Turnkey Linux Appliance

5 Mar

As much as I like to link back to such a great project sometimes its necessary to remove


1. Login to webmin using your root account.

2. Under the Servers tab go into Apache.

3. Click Default server.

4. Under Per-Directory Options click Location /

5. Click Edit Directives.

6. Delete all the stuff in that box. Save and restart apache/ click apply changes.

7. Reload your webpage, you might need to clear your cache.