Home Blog Page 759

Installation Guide of Linux Mint 18 Codename ‘Sarah’ with Screenshots

Linux Mint is a modern, polished, easy-to-use and comfortable community-driven GNU/Linux desktop distribution based on the popular Ubuntu Linux distribution. It is a great and recommended distribution for computer users switching from Windows or…

[[ This is a content summary only. Visit my website for full links, other content, and more! ]]

High-Availability Storage with GlusterFS on CentOS 7 – Mirror across two storage servers

This tutorial shows how to set up a high-availability storage with two storage servers (CentOS 7.2) that use GlusterFS. Each storage server will be a mirror of the other storage server, and files will be replicated automatically across both storage servers. The client system (CentOS 7.2 as well) will be able to access the storage as if it was a local filesystem. GlusterFS is a clustered file-system capable of scaling to several peta-bytes.

This Week in Open Source News: AGL Updates, Why Pick Linux, & More

1) Jack Wallen shares what’s new with Automotive Grade Linux and why it’s an important Linux Foundation Collaborative Project.

Automotive Grade Linux Wants to Help Open Source Your Next Car– TechRepublic

2) Daniel Robinson shares the latest reasons why it’s smart to opt for Linux
5 Reasons to Ditch Windows for Linux– The Inquirer

3) The ODPi’s Hadoop runtime has been adopted by data analytics vendors.

ODPi Advances Hadoop Standards with Open Source Runtime Specification– The VAR Guy

4) The Linux Foundation’s OpenHPC Project promises to reduce duplicated development, validation and maintenance efforts across HPC.

System Software, Orchestration Gets an OpenHPC Boost– The Next Platform

5) GitHub publishes data visualizations, show the impact of open source development on hosted projects.

GitHub Visualizes the Impact of Open Source– ADT Magazine

How to Install the Nextcloud Server on Ubuntu

You’ve probably already heard the open source cloud server ownCloud has been forked by its founder and the new company/server Nextcloud has been formed. What you might not know, however, is that Nextcloud has already released a ready-to-install server that offers the same functionality as ownCloud as well as a newfound focus on apps (Calendar, Contacts, Documents, Email, and more). What Nextcloud has to offer is really impressive so far and, by the time you finish reading this post (and walking through the steps), you can have a Nextcloud server on premises.

I will be demonstrating the installation of Nextcloud on a Ubuntu 16.04 desktop installation. This installation will start with installing LAMP and conclude with you logging into your first Nextcloud cloud server. Most of this install will be done from the command line, so get ready to start typing.

Snap install

You should know that there are no DEB packages for Nextcloud. There is, however, a snap package to install. This means you can install Nextcloud with a single command:

sudo snap install nextcloud

You should also know, however, that the snap package is limited in what it can do. You will not be configuring this installation nearly as much as you would the standard installation. Because of this, I will give you the step-by-step for installing Nextcloud manually.

With that said, let’s get to the install.

LAMP

I’m going to assume you’re installing Nextcloud on a machine that doesn’t even include LAMP (Linux Apache MySQL PHP). To install the basic LAMP server, open up a terminal window and issue the following command:

sudo apt-get install lamp-server^

During the above installation, you’ll be prompted to enter (and verify) a password for MySQL. Once that is done, you’re ready to finish up your LAMP server install.

Nextcloud does require a few extra PHP modules to function properly. These modules can be installed with the following command:

sudo apt-get install libxml2-dev php-zip php-dom php-xmlwriter php-xmlreader php-gd php-curl php-mbstring

Next, we need to enable mod_rewrite with the command:

a2enmod rewrite

Now you can restart Apache with the command:

sudo service apache2 reload

Nextcloud will gain significant a performance increase with the use of MariaDB. Install this with the command:

sudo apt-get install mariadb-server

Nextcloud configuration

It’s time to download the stable version of Nextcloud and begin the process of configuration. From the terminal window, issue the following command:

wget https://download.nextcloud.com/server/releases/nextcloud-9.0.50.tar.bz2

Extract the above file with the command:

tar -vxjf nextcloud-9.0.50.tar.bz2

You should now see the folder nextcloud in the current working directory. Move that folder with the command:

sudo mv nextcloud /var/www

The next step is to give the proper permission to the /var/www/nextcloud folder (as well as its contents). Fortunately, Nextcloud has created a script for that very purpose. Copy the following and paste it into a file called nextcloud_permissions.sh.

#!/bin/bash

ocpath='/var/www/nextcloud'

htuser='www-data'

htgroup='www-data'

rootuser='root'


printf "Creating possible missing Directoriesn"

mkdir -p $ocpath/data

mkdir -p $ocpath/assets

mkdir -p $ocpath/updater


printf "chmod Files and Directoriesn"

find ${ocpath}/ -type f -print0 | xargs -0 chmod 0640

find ${ocpath}/ -type d -print0 | xargs -0 chmod 0750


printf "chown Directoriesn"

chown -R ${rootuser}:${htgroup} ${ocpath}/

chown -R ${htuser}:${htgroup} ${ocpath}/apps/

chown -R ${htuser}:${htgroup} ${ocpath}/assets/

chown -R ${htuser}:${htgroup} ${ocpath}/config/

chown -R ${htuser}:${htgroup} ${ocpath}/data/

chown -R ${htuser}:${htgroup} ${ocpath}/themes/

chown -R ${htuser}:${htgroup} ${ocpath}/updater/


chmod +x ${ocpath}/occ


printf "chmod/chown .htaccessn"

if [ -f ${ocpath}/.htaccess ]

then

 chmod 0644 ${ocpath}/.htaccess

 chown ${rootuser}:${htgroup} ${ocpath}/.htaccess

fi

if [ -f ${ocpath}/data/.htaccess ]

then

 chmod 0644 ${ocpath}/data/.htaccess

 chown ${rootuser}:${htgroup} ${ocpath}/data/.htaccess

fi

Once you’ve saved that file, give it the proper execution privileges with the command sudo chmod +x nextcloud_permissions.sh and then run the file with the command sudo ./nextcloud_permissions.sh.

Apache configuration

Because we’re working with Ubuntu and Apache2, you’ll need to create a configuration file for Nextcloud in /etc/apache2/sites-available. Create a new file in that folder called nextcloud.conf with the following contents:

Alias /nextcloud "/var/www/nextcloud/"

<Directory /var/www/nextcloud/>
 Options +FollowSymlinks
 AllowOverride All

<IfModule mod_dav.c>
 Dav off
</IfModule>

SetEnv HOME /var/www/nextcloud
SetEnv HTTP_HOME /var/www/nextcloud

</Directory>

Save that file in /etc/apache2/sites-available and then create a symlink to /etc/apache2/sites-enabled with the command:

ln -s /etc/apache2/sites-available/nextcloud.conf /etc/apache2/sites-enabled/nextcloud.conf

There are some recommended Apache modules to be enabled for Nextcloud. Issue the following commands to do this:

  • sudo a2enmod headers

  • sudo a2enmod env

  • sudo a2enmod dir

  • sudo a2enmod mime

The last thing to do is enable SSL. For this, issue the following commands:

  • a2enmod ssl

  • a2ensite default-ssl

  • service apache2 reload

Finally, restart Apache with the command:

sudo service apache2 reload

MariaDB configuration

Our final command-line configuration step creates the MariaDB database and configures the user for permissions. Here are the necessary commands:

  • sudo mysql -u root -p (You’ll be prompted for your MySQL root user password)

  • CREATE DATABASE nextcloud;

  • CREATE USER nextclouduser@localhost IDENTIFIED BY ‘PASSWORD’; (Where PASSWORD is a password you want to use for the nextcloud database users)

  • GRANT ALL PRIVILEGES ON nextcloud.* TO nextclouduser@localhost;

  • EXIT

Log in to Nextcloud

You’re finally ready to log in to your Nextcloud server. Point a browser to https://IP_OF_SERVER/nextcloud (where IP_OF_SERVER is the actual IP address of the server hosting Nextcloud).

Figure 1: Logging in to your Nextcloud installation.
You will be prompted to create an admin user, so enter a username and password for this user. Below this you should see a prompt asking for the Database user, Database password, and Database name (Figure 1 all of which we created a moment ago).

Once logged in, you’re ready to start setting up Nextcloud to your liking!

What’s next?

What you do with Nextcloud is up to you. You can add new modules or just use it as a cloud-based file sync and share. You can install the Android app and even make use of the ownCloud desktop clients (they’ll work fine with Nextcloud). Regardless of what you do, it’s exciting to know that the technology will continue on and, hopefully, expand and grow.

 

Chef: Now We Know DevOps, How to Understand DevOps Metrics

Instead of starting a potentially very long, conceptual conversation about what DevOps means, it’s more effective to identify a small but non-trivial project or area of your business that would benefit from being able to develop and deploy software faster, at scale… and more easily.

This means getting teams and people from across the IT stack together and getting them working on that one project or area, because the results and benefits become rapidly apparent.

Which all sounds marvellous, but what then, are the key metrics for DevOps success? It’s time to ask ourselves some key questions here.

Read more at ComputerWeekly

84% of IoT Data Comes From Data Center Equipment

Even though they may not be familiar with the term “Internet of Things” (IoT), 65 percent of organizations are collecting data from equipment, devices, or other connected endpoints. And they’re using that data for business purposes, according to an IoT study conducted by 451 Research.

The vast majority of IoT data derives from data centers. More than half of IoT data (51 percent) is coming through data center IT equipment, followed by camera/surveillance equipment (34 percent), data center facilities equipment (33 percent), and smartphones (29 percent).

Read more at SDx Central

Atom-Based Gateway Taps New Open Source IoT Cloud Platform

Eurotech’s rugged, IP40 protected “ReliaGate 20-26” IoT gateway runs Red Hat Linux on a Bay Trail Atom, and has cellular, GPS, WiFi, and Bluetooth options.

Eurotech’s ReliaGate 20-26 is the latest in a line of Internet of Things gateways, such as the ReliaGate 10-11, based on a TI AM3352 Sitara SoC, and the Intel Atom Z510-based ReliaGate 50-21. For the ReliaGate 20-26, Eurotech advances to a more modern “Bay Trail” Atom E3800.

Read more at HackerBoards

 

Function as a Service for Docker

I missed DockerCon live for its closing sessions but I saw a tweet from Jerome mentioning Ben Firshman about “Serverless” Docker.

And I really don’t know what does “Severless” mean. So I dig around and found it’s the Function-as-a-Service model. I studied this model a while ago to POC a Map-Reduce model (similar to Apache Spark) based on Docker but I made no progress.

Back to the example. Ben’s example is written in Python but I’m not a Python guy so I started looking around again. Ben pointed to Ahment’s go-dexec.

Read more at Chanwit Kaewkasi’s Blog

7 Best File Comparison and Difference (Diff) Tools for Linux

While writing program files or normal text files, programmers and writers sometimes want to know the difference between two files or two versions of the same file. When you compare two computer files on…

[[ This is a content summary only. Visit my website for full links, other content, and more! ]]

Nvidia Plugin Makes GPU Acceleration Possible in Docker Containers

Machine learning apps in containers can’t run GPU-accelerated code, but a new Docker plugin by Nvidia is set to remedy all that.

Nvidia, developer of the CUDA standard for GPU-accelerated programming, is releasing a plugin for the Docker ecosystem that makes GPU-accelerated computing possible in containers. With the plugin, applications running in a Docker container get controlled access to the GPU on the underlying hardware via Docker’s own plug-in system.

Read more at InfoWorld