How to install GUI desktop environment on Ubuntu Linux 14.04 LTS (Trusty Thar)

This article will describe multiple procedures on how to install various GUI desktop environments on Ubuntu Linux 14.04 LTS (Trusty Thar). The article assumes that no desktop manager nor display manager is currently installed on your system. Furthermore, If the display manager needs to be installed explicitly we will install lightweight XDM. In case that you require different display manager simply replace xdm package listed in below commands with some alternatives such as GDM, KDM, lightdm etc.

UNITY

$ sudo apt-get install ubuntu-desktop

How to install unity desktop on ubuntu linux

GNOME

$ sudo apt-get install ubuntu-gnome-desktop

How to install gnome desktop on ubuntu linux

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

CGI bash example

Simple CGI and Apache examples on Ubuntu Linux

Introduction

CGI ( Common gateway Interface ) is an interface between Web client and the web server that runs your CGI script/program. CGI is a quite old and was largely superseded by different programing languages such as PHP, etc. However, it still can find its place in Linux system administrator’s hands as a quick tool for system monitoring and administration via web browser. This article describes in step-by-step manner how to run basic CGI scripts with various programming languages and scripts using Apache web server on Ubuntu Linux.

Install Apache

First we need to install apache web server. This is a fairly simple task and can be achieved with the apt-get command:

$ sudo apt-get install apache2

The above command will install Apache 2 web server with a default site located at: /etc/apache2/sites-available/default. When you open this default configuration site you will see that it is configured to run CGI scripts from /usr/lib/cgi-bin directory with URL alias /cgi-bin/:

Read more

Ubuntu 16.04 running MPD with the Cantata client

Configuring the MPD Music Server on Ubuntu Linux

Linux has a ton of options when it comes to media players. Many of them are just as feature packed as their proprietary counterparts on other operating systems. What most Linux users don’t realize is that there are additional options that utilize one of Linux’s greatest strengths, servers. MPD(Music Player Daemon) is a lightweight server for sharing a music library both locally and over a network.

The best aspect of MPD is, by far, its flexibility. Not only does MPD allow music to be shared and played over the network, but it also allows for numerous different front end clients. These clients range from full graphical music players to minimal command line options.

Ubuntu 16.04 running MPD with the Cantata client

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

Basic PHP 7 and Nginx Configuration on Ubuntu 16.04 Linux

Nginx is quickly overtaking Apache as the favorite web server. For web apps built in languages like Rails and Python it’s virtually ubiquitous, but it’s a bit slower to catch on in the PHP world. Part of the reason for that is how easily PHP and Apache go together. However, PHP and Nginx can cooperate nearly as easily, and with the release of PHP 7, combining the two can be a fairly speedy option.

The Packages

First thing’s first. Update Ubuntu and get the the Nginx and PHP packages.

# sudo apt-get update && sudo apt-get -y upgrade
# sudo apt-get -y install nginx php7.0 php7.0-fpm

When the installation is finished, the packages should all be in place, and actually running. To make sure that this is the case, you can check that both Nginx and the PHP-FPM services are running in Systemd.

# sudo systemctl status nginx
# sudo systemctl status php7.0-fpm

If Systemd confirms that both services are running, the server should actually be up, and you should be able to see the default Nginx welcome page by navigating to localhost in the browser.

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

How to install Google Chrome Browser on Ubuntu 16.04 Xenial Xerus Linux

Objective

The objective is to install Google Chrome browser on on Ubuntu 16.04 Xenial Xerus Linux.

Requirements

Privileged access to your Ubuntu 16.04 Xenial Xerus Linux Desktop

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

Install gdebi

The easiest way to install external *.deb packages such as google chrome, is by use of gdebi tool. gdebi will automatically fetch and install all chrome’s dependencies. If you have not done so yet, install gdebi now:

$ sudo apt-get install gdebi

Read more

How to reset lost root password on Ubuntu 16.04 Xenial Xerus Linux

This guide will provide you with an information on how to reset lost root ( administrator ) password on Ubuntu 16.04. This guide assumes that you have the actual physical access to your Ubuntu 16.04 Linux box.

Reboot to Grub Menu

In the first step you need to reboot your Ubuntu 16.04 Linux box to Grub’s menu. If the Ubuntu 16.04 is the only installation available keep pressing SHIFT after you start your computer until GRUB’s menu appears:
reboot your Ubuntu 16.04 Linux box in Grub's menu

Read more