How to upgrade Debian 8 Jessie to Debian 9 Stretch

Objective

This article explains a system upgrade procedure from Debian 8 Jessie Linux to Debian 9 Stretch.

What’s New

Apart from the up to date Linux kernel, Stretch comes with a considerable amount of new and updated software as well as a number of packages had been rendered obsolete:

This new release of Debian again comes with a lot more software than its predecessor jessie; the distribution includes over 15346 new packages, for a total of over 51687 packages. Most of the software in the distribution has been updated: over 29859 software packages (this is 57% of all packages in jessie). Also, a significant number of packages (over 6739, 13% of the packages in jessie) have for various reasons been removed from the distribution.
SOURCE: debian.org

Read more

Check your Local and Public IP address

Your Local IP address is:


Above is your local/private IP address(es) assigned to your internal hardware or virtual network card on your computer. Depending on your LAN configuration the above IP addresses may be static or dynamic.

In case you can’t find any address above, to check your internal IP address manually on Linux with ifconfig or ip command execute:

# ifconfig | grep -w inet | awk '{ print $2}'
OR
# ip a s | grep -w inet | awk '{ print $2}'

Read more

How to change MAC address using macchanger on Kali Linux

Objective

The objective is to change or fake an original network card’s hardware MAC address. The following article will show how to change MAC address using macchanger on Kali Linux.

Requirements

Privileged access to you Kali Linux system.

Difficulty

EASY

Conventions

  • # – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
  • $ – requires given linux commands to be executed as a regular non-privileged user

Instructions

Change to a Random MAC address

First, let’s see how we can use macchanger to change network card’s hardware MAC address to a random address. We can start by investigating our current MAC address of eg eth0 network interface. To do this we execute macchanger with an option -s and an argument eth0.

Read more

How to install Popcorn Time movie player on CentOS 7 Linux

Introduction

Popcorn Time streams movies and TV shows from torrents directly into your screen.

Objective

The objective is to install Popcorn Time player on CentOS 7.

Requirements

Optional privileged access to your CentOS is required if system-wide installation is required.

Difficulty

EASY

Conventions

  • # – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
  • $ – requires given linux commands to be executed as a regular non-privileged user

Instructions

Prerequisites

First install some tools to be used for the Popcorn Time installation:

# yum install wget xz

Popcorn Time Installation

Please note that, if you experience the bellow error message with version 0.3.10, try to install older Popcorn Time version.

Illegal instruction (core dumped)

Popcorn Time Version 0.3.9

32-bit
# mkdir /opt/popcorn-time; wget -qO- https://get.popcorntime.sh/build/Popcorn-Time-0.3.9-Linux-32.tar.xz | unxz | tar x -C /opt/popcorn-time
# ln -sf /opt/popcorn-time/linux64/Popcorn-Time /usr/bin/popcorn-time

Read more

PHP 7 - speed

Installation of the latest bleeding edge PHP 7 on Debian 8 Jessie Linux

Introduction

PHP 7 - speedDebian’s current stable package repository may not always contain an up to date software to be in line with
our expectations. There is a very good reason for this, such as a stable system as a trade-off for running bleeding edge software.

PHP server-side scripting language is not an exemption! At
the time of writing the current Debian’s PHP version is 5.6.29 whereas the latest PHP source release is 7.1.0( given that there is no PHP 6 at all ).

The current PHP developer’s claims put PHP 7 in front of PHP 5.6 in terms of speed, where PHP 7 is supposed to be as twice as fast as its predecessor:

Thanks to the new Zend Engine 3.0, your apps see up to 2x faster performance and 50% better memory consumption than PHP 5.6, allowing you to serve more concurrent users without adding any
hardware. Designed and refactored for today’s workloads, PHP 7 is the ultimate choice for web developers today.

Reference: zend.com/en/resources/php-7

Objective

To compare a speed between PHP 5.6 and latest PHP 7.1.0 is not an objective of this article. However, the objective is the get that latest PHP 7 release installed on Debian 8 system. Additionally we
will install PHP-FPM (FastCGI Process Manager). This guide will offer two possible installations.

Read more

LEMP ( Linux, Nginx, MySQL, PHP7 ) stack Docker image deployment

About

The automated build docker LEMP image linuxconfig/lemp-php7 can be used as a testing and also as a production environment for a dynamic PHP applications. It comprises of Debian GNU/Linux, lightweight and yet powerful Nginx webserver, MySQL relational database management system and PHP scripting language.

At the time of writing, Debian Linux does not come with PHP 7 as a part of a its standard repository. From this reason PHP 7 was compiled from the source code during docker image build using compile-php-debian script located at https://github.com/linuxconfig/compile-php-debian.

Furthermore, not all 3rd-party PHP modules are currently supported on PHP 7.

Deployment

The following section describes the deployment of linuxconfig/lemp-php7 docker on your docker host. Let’ start by creating a sample PHP website with a MySQL connection handle. Alternatively add phpinfo(); into the mix to display current PHP information page:

<?php
$link = mysqli_connect("127.0.0.1", "admin", "pass");

if (!$link) {
    echo "Error: Unable to connect to MySQL." . PHP_EOL;
    echo "Debugging errno: " . mysqli_connect_errno() . PHP_EOL;
    echo "Debugging error: " . mysqli_connect_error() . PHP_EOL;
    exit;
}

echo "Success: A proper connection to MySQL was made!" . PHP_EOL;
echo "Host information: " . mysqli_get_host_info($link) . PHP_EOL;

mysqli_close($link);
?>

Read more

How to install Popcorn Time movie player on Ubuntu 16.04 Xenial Xerus Linux

Objective

Popcorn Time streams movies and TV shows from torrents directly into your screen. The objective is to install Popcorn Time movie streamer on Ubuntu 16.04 Linux.

Requirements

Privileged access to your Ubuntu System as root or via sudo command is required.

Difficulty

EASY

Conventions

  • # – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
  • $ – requires given linux commands to be executed as a regular non-privileged user

Instructions

Download Popcorn Time binaries

In this step we will download and extract Popcorn Time binaries into /opt/popcorn-time directory:

$ sudo mkdir /opt/popcorn-time
FOR 32-BIT SYSTEM EXECUTE:
$ sudo wget -qO- https://get.popcorntime.sh/build/Popcorn-Time-0.3.10-Linux-32.tar.xz | sudo tar Jx -C /opt/popcorn-time
FOR 64-BIT SYSTEM EXECUTE:
$ sudo wget -qO- https://get.popcorntime.sh/build/Popcorn-Time-0.3.10-Linux-64.tar.xz | sudo tar Jx -C /opt/popcorn-time

Read more

Installation of latest Go language binaries on Ubuntu 16.04 Xenial Xerus Linux

Objective

Go is an open source programming language developed by Google. The objective is to install latest Go language pre-compiled binaries on Ubuntu 16.04 Linux.

Requirements

Privileged access to your Ubuntu System as root or via sudo command is required.

Difficulty

EASY

Conventions

  • # – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
  • $ – requires given linux commands to be executed as a regular non-privileged user

Instructions

Download Go language binaries

First, we need to download Go language binaries. Visit https://golang.org/dl/ page and either download your relevant Golang Linux libraries directly using your browser or simply use wget command as shown below:

$ wget -q https://storage.googleapis.com/golang/go1.7.4.linux-amd64.tar.gz

Once downloaded, you should be able to see the Go tarball with ls command:

$ ls go*
go1.7.4.linux-amd64.tar.gz

Read more

How to install KODI media software on Ubuntu 16.04 Linux Desktop

Objective

The installation of KODI media software is fairly easy and straight forward procedure. The objective is to install KODI media software on Ubuntu 16.04 Linux Desktop via PPA repository.

Requirements

Privileged access to your Ubuntu System as root or via sudo command is required.

Difficulty

EASY

Conventions

  • # – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
  • $ – requires given linux commands to be executed as a regular non-privileged user

Instructions

Add PPA KODI repository

If applicable, first make add-apt-repository command available on your system:

$ sudo apt-get install python-software-properties

Next, add PPA repository:

$ sudo add-apt-repository -y -r ppa:team-xbmc/ppa

Read more

How to Install Node.js on Ubuntu 16.04 Xenial Xerus Linux server

Objective

The objective is to install Node.js the cross-platform JavaScript runtime environment on Ubuntu 16.04 Xenial Xerus Linux

Requirements

Privileged access to your Ubuntu System as root or via sudo command is required.

Difficulty

EASY

Conventions

  • # – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
  • $ – requires given linux commands to be executed as a regular non-privileged user

Instructions

There are multiple ways on how to install Node.js on your Ubuntu 16.04 Xenial Xerus Linux server. The below steps will show you how to install Node.js using a standard Ubuntu repository, PPA repository, Node.js native setup script and by use of Node Version Manager. The easiest installation is by using standard Ubuntu repository, however it yields lower Node.js version. If you need a bleeding-edge Node.js version you better opt for an automatic installation using the Node.js native setup script.

node.js installation from Ubuntu Repository

Installation of Node.js using Ubuntu’s standard repository cannot be simpler:

$ sudo apt-get install nodejs

Read more

How to install Android Studio on Ubuntu 16.04 Xenial Xerus Linux

Objective

The objective is to perform an installation of the Android Studio on Ubuntu 16.04 Xenial Xerus Linux

Requirements

Privileged access to your Ubuntu System as root or via sudo command is required.

Difficulty

EASY

Conventions

  • # – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
  • $ – requires given linux commands to be executed as a regular non-privileged user

Instructions

Download Android Studio

The first step is to use web browser and navigate to https://developer.android.com/studio/ to download Android Studio IDE for Linux. Save the zipped bundle file locally into eg. Downloads directory.

ubuntu 16.04 Xenial download android studio

Install Prerequisites

Android Studio requires few prerequisites before it can be installed. Run the following linux command to fulfill this requirement:

$ sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 libbz2-1.0:i386

Read more

Installation of TeamViewer on Ubuntu 16.04 Xenial Xerus Linux

Objective

The objective is to install TeamViewer the remote control and desktop sharing software on Ubuntu 16.04 Xenial Xerus Linux

Requirements

Privileged access to your Ubuntu System as root or via sudo command is required.

Difficulty

EASY

Conventions

  • # – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
  • $ – requires given linux commands to be executed as a regular non-privileged user

Instructions

Prerequisites

We will be using gdebi command to install TeamViewer as it allows us to automatically download all required TeamViewer dependencies. If you have not done so yet install gdebi package:

$ sudo apt-get install gdebi

TeamViewer download

At the time of writing only multi-arch TeamViewer package is available. Use your browser to download Ubuntu version of TeamViewer or execute the below wget command, while updating the below URL is necessary:

$ wget https://downloadus2.teamviewer.com/download/version_12x/teamviewer_12.0.71510_i386.deb

Read more