Community Blogs

How to install Selenium on Linux and test your web applications

elenium is a web testing toolkit that allows you to test a web application in any browser of your choice. It does this with the help of a software called WebDriver which allows you to emulate a web browser and test your web application in it.

In this post I am going to show you how to test a simple CRUD application, by automating link clicking and form filling.

Software versions
selenium (2.44.0)
python 3.4.2
Linux kernel 3.13.0-37-generic and Mint 17.1 for Desktop.


How to Install LAMP (Apache 2.4, MySQL 5.6, and PHP 5.4) on CentOS/RHEL 7

LAMP ( Linux, Apache, MySQL and PHP ) Stack is a group of open source software used to get web servers up and running. Since the server is already running CentOS. This article will help you to set up LAMP stack (Apache 2.4, MySQL 5.6, and PHP 5.4) on CentOS and Red Hat 7 systems. You may also use video tutorial on Youtube for installation instruction’s.

Read full article here


How To Install Owncloud 8 on CentOS 7

For those of you who didn’t know, OwnCloud is a free and open-source software which enables you to create a private “file-hosting” cloud. OwnCloud is similar to DropBox service with the diference of being free to download and install on your private server. Owncloud made by PHP and backend database MySQL (MariaDB), SQLLite or PostgreSQL. OwnCloud also enables you to easily view and sync address book, calendar events, tasks and bookmarks. You can access it via the good looking and easy to use web interface or install OwnCloud client on your Desktop or Laptop machine (supports Linux, Windows and Mac OSX).

This article assumes you have at least basic knowledge of linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple. I will show you through the step by step installation OwnCloud 8 on CentOS 7.

Read more at idroot


Get Disk Space Email Alerts from your Linux Servers

Headless and unmonitored servers sometimes becomes a pain when your server stops responding and later you figure out it was due to 100% disk usage. This simple php script can periodicly check for disk usage and send you email alert when the disk usage is above 90%.

Step 1) You will need php-cli and come other packages too achive this. In ubuntu or debian you can do this by

apt-get update
apt-get install php-mail php-net-smtp php-net-socket php-pear php5-cli

Step 2) Create /usr/local/bin/diskspacecheck.php with the following content using your favourite editor, mine is nano :)


require_once "Mail.php";

function SendMail($msg){
$date = date('r');
$bodymsg = $msg;
$hostname = gethostname();
$hostname = preg_replace("/[^a-zA-Z0-9_ -]/s","_",$hostname);
$from = " This e-mail address is being protected from spambots. You need JavaScript enabled to view it ";
$to = " This e-mail address is being protected from spambots. You need JavaScript enabled to view it ";
$subject = "$bodymsg";
$body = "This is an automatic alert. Please do not reply.\n\n$bodymsg - $date";
$port = "465";
$host = "ssl://";
$username = " This e-mail address is being protected from spambots. You need JavaScript enabled to view it ";
$password = "MyPassword";
* REPLACE This e-mail address is being protected from spambots. You need JavaScript enabled to view it ANS MyPassword WITH AN ACTIVE GMAIL ACCOUNT.
$headers = array ('From' => $from,
'To' => $to,
'Subject' => $subject);
$smtp = Mail::factory('smtp',
array ('host' => $host,
'port' => $port,
'auth' => true,
'username' => $username,
'password' => $password));

$mail = $smtp->send($to, $headers, $body);

if (PEAR::isError($mail)) {
echo("<p>" . $mail->getMessage() . "</p>");
} else {
echo("<p>Message successfully sent!</p>");


function formatSize( $bytes )
$types = array( 'B', 'KB', 'MB', 'GB', 'TB' );
for( $i = 0; $bytes >= 1024 && $i < ( count( $types ) -1 ); $bytes /= 1024, $i++ );
return( round( $bytes, 2 ) . " " . $types[$i] );


$dt = disk_total_space("/");
$df = disk_free_space("/");
$du = $dt - $df;
$dp = sprintf('%.2f',($du / $dt) * 100);

$df = formatSize($df);
$du = formatSize($du);
$dt = formatSize($dt);

if ($dp > 90){
SendMail("disk usage of / is $dp%\nFree Space - $df\nDisk Usage - $du\n");


$dt = disk_total_space("/home");
$df = disk_free_space("/home");
$du = $dt - $df;
$dp = sprintf('%.2f',($du / $dt) * 100);

$df = formatSize($df);
$du = formatSize($du);
$dt = formatSize($dt);


if ($dp > 90){
SendMail("disk usage of /home is $dp%\nFree Space - $df\nDisk Usage - $du\n");


Step 3) Create a cron job which will run this script daily and alert when the disk space goes low

nano /etc/cron.d/diskspacecheck30 10 * * * root /usr/bin/php -f /usr/local/bin/diskspacecheck.php

This cronjob will run this php script every day 10:30am. Change it to suit your need.


Swapnil Jain | This e-mail address is being protected from spambots. You need JavaScript enabled to view it





VHDL source code under GPL for Altera FPGA based DVB card

NetUP Inc. fully open sourcing firmware for DVB card - NetUP Dual Universal DVB CI. License is GPLv3. Sources is VHDL for Altera FPGA EP4CGX22CF19C8 and can be compiled with Altera Quartus II (free edition).

Announce and details:


Installing Java 8 on Ubuntu and Debian

Java SE Development Kit 8 is available to download. JDK 8 has been released on Mar,18 2014 for general availability with the many featured enhancements. You can find all the enhancements in JDK 8.

The following article will help you for installing Java 8 on Ubuntu and Debian systems.

Read full article here.



How to install Django on Linux

Django is a web framework for python. It provides you with the basic components that are required to build your website like HTML templates, User Authentication, Web Server etc.
In this tutorial I will describe how you can install Django 1.7 on Linux with the latest version of Python and PostgreSQl.

Software Versions
Linux(CentOS 6.5)
Python 3.4
Django 1.7
PostgresSQL 9

Step 1: Install Python 3.4 on your Linux machine.
Ubuntu/Mint/Raspberry Pi users can skip this step as these distro’s generally have the latest versions of python (check by running “python –version”)

Read more at  


Shadow Daemon 1.0 Released: A Web Application Firewall for PHP, Perl and Python

Shadow Daemon

The first major version of the free and open-source security system Shadow Daemon is now available for download.

Shadow Daemon is a collection of tools to detect, protocol and prevent attacks on web applications. Technically speaking, Shadow Daemon is a web application firewall that intercepts requests and filters out malicious parameters. It is a modular system that separates web application, analysis and interface to increase security, flexibility and expandability.

The system combines white- and blacklisting to accurately detect malicious requests and it supports applications that are written in PHP, Perl and Python at the moment. It can be managed by a clear and structured web interface.



How To Patch and Protect Linux Server Against the Glibc GHOST Vulnerability # CVE-2015-0235

A very serious security problem has been found and patched in the GNU C Library called Glibc. It was announced on 27th January 2015. This tutorial explains how to patch Debian, Ubuntu, RHEL, Fedora Linux servers and validate that Linux system no longer vulnerable after patch.

=> Read more.....


Running Oracle XE 11gR2 in Nova-Docker container on OpenStack RDO Juno (CentOS 7)

Docker image arahman/docker-oracle-xe-11g:latest  allows to build Nova-Docker
Container on RDO Juno running Oracle XE instance, which may be accessed remotely via floating IP assigned to nova instance. Several network configuration files require tuning with Nova system  instance-name and floating IP assigned from neutron external pool.Complete article may be viewed here


Getting Ready for 2015’s Cloud, Let’s Embrace The Advancements

Getting Ready for 2015’s Cloud, Let’s Embrace The Advancements

As we get ready to embrace the New Year, most enterprises are already preparing themselves with new business strategies for 2015. Technology continues to innovate even if there are ups and downs in businesses. Starting with a new year is always the best time for new goals, aligning strategies, re-assessing and an internal-analysis as well for ensuring improvements.

Most organisations that rely over IT would already know about the cloud models (IaaS, SaaS and PaaS) and have researched on the major services providers. Where most would be looking forward to moving completely to gain success and manage the IaaS layer.

There will be more choices in the cloud for organizations than ever before. The new year would see a shift towards the multi-cloud world where one would advantage of cloud services from different services providers depending upon the workloads. Cloud is not only going to burst into torrent of services that will be delivered at a cheaper cost but would also see an easy in usage. Though this may be a new concept for some ventures, but many have already adopted it where it’s a mix of private and public clouds to suffice IT needs within the businesses. Need for cloud technology is felt by the organizations as it gives a strong boost to analytics and offers agile and flexible environment. “By giving a new approach to IT, it allows the individuals or ventures to select a method to acquire or deliver IT services to the clients with less reliability on restraints of the outdated software and hardware licensing models”, according to David Cearley, vice president and Gartner Fellow.

In addition to countless choices, the emphasis on what drives good value will be the major theme for 2015. Value isn’t specifically referred to cost but the time and energy that is spent on handling and scaling the corporate environment. This will facilitate providers being more skeptical, strengthening the need for a trusted partner whether you depend on that partner for managing public or private cloud, program the DevOps or maintain tabs on your apps like Google Apps for Work. Instead of recruiting resources to manage the tools and technologies and maximizing the cost for them, it will be eminent for the companies to focus on IT management and decide on their partner to generate more value.

As per the global survey by Equinix, around 38 percent of companies plan to install between 3-5 cloud services over next year along with 11 percent planning on more than 10 services. While the report published by the Cloud Industry Forum (CIF) predicted that UK’s cloud penetration will spike up to 90 percent in 2015 introducing new challenges for firms to manage the significant data inflow. Currently, an approximate of 78 percent of UK businesses are using cloud services as per the CIF figures. More users will make a fresh start by moving their server workloads to cloud, where some would upgrade to primary level while others will try to enhance their IT strategy, commented Alex Hilton, the CIF’s chief executive.

Switching over to the cloud environment doesn’t mean simply shifting everything into another company’s container but it’s a template shift in the way you and your company need to work. Since there has been a great change in the system administration, the next step in cloud evolution is the automation of processes that should further make your life easier. But while selecting a cloud service provider you should find out whether it offers all the essentials including good management and automation tools/skills. Elasticity plays a vital role in any venture and one knows that the capability of scaling up and down, decreases the cost when referring to the balance sheet at the end of the year.

Though we are mentioning all the facts and information here, it completely depends upon you, what type of cloud platform to choose – public, private or hybrid. Moving to cloud provides greater agility, reduces complexity, cuts down on overall cost and allows shifting from capital-intensive to operational cost models. The coming year 2015, is going to be a make or break year for many enterprises who take an initiative step towards cloud. So, utilize your holidays to relax and enjoy as the real tough technology wars are to start from next January. Best luck!

Page 5 of 15

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Linux Training / Board

/** BC-056 Ameex changes to add tracking code - 2016-01-22 **/ ?>