Installing A Django Development Environment on Ubuntu

Django is easily the most popular web framework written in Python. It strikes a delicate balance between feature completeness and efficiency, including powerful features like automatic migration generation and a full-featured admin interface. Setting up a Django development environment in Ubuntu is fairly easy, and can be done in only a few steps.

Installing Virtualenv

It’s best to use a Python virtual environment when developing in a complex framework like Django, especially if you intend to work on multiple projects at once. It’s also probably a good idea to make sure that you have both versions of Python up to date.

$ sudo apt-get install virtualenv python python3

Read more

qTox running on Ubuntu

Protecting Your Chat With qTox on Ubuntu Linux

Intro

Many people rely on proprietary chat solutions like Skype, but those solutions pose serious concerns for both privacy and security. Additionally, development of the Skype Linux client has been unpredictable at best, even stalling for a number of years, only to resume just recently.

qTox running on Ubuntu

Read more

Install LXD with apt-get install lxd

Getting Started With LXD containers on Ubuntu 16.04

Why LXD?

It’s no secret that containers are hot right now in the Linux world. They are quickly becoming the backbone of the Cloud and are making DevOps dreams come true. Even so, at first glance, it seems a bit redundant for Canonical to develop a new container system for Ubuntu in a world easily dominated by Docker. So why, then, did they do it? To fill a middle ground between traditional virtual machines and Docker. Canonical said it themselves, “By combining the speed and density of containers with the security of traditional virtual machines, Canonical’s LXD is the next‐generation of container hypervisor for Linux.” Not only that, but Docker containers can be run within LXD containers, adding another dimension to potential container configurations.

LXD is an enhancement of the existing LXC Linux container hypervisor with it’s own toolset, sharing a similar relationship to the original project as Ubuntu does with Debian with the goal of taking existing great software and streamlining it for easier use. On Canonical’s latest Ubuntu LTS release, 16.04, LXD is well integrated and easy to use with clear and concise CLI tools that make container creation and management seamless.

Initial Setup

Getting started with LXD on Ubuntu 16.04 is as close to effortless as could be expected. Canonical condensed the install to a single package, making this a one command install. A simple sudo apt-get install lxd will get everything needed to get started.

Install LXD with apt-get install lxd

Read more

Install AMDGPU-PRO 16.50 on Ubuntu 16.04 Xenial Xerus Linux

Introduction

The latest AMDGPU drivers launched from AMD only a few short days ago bringing changes like FreeSync support and additional support for mobile chipsets as well as the obvious performance improvements.

Like the previous versions of the proprietary AMDGPU driver, only “Enterprise Grade” distributions are supported, so you won’t find official Ubuntu 16.10 support just yet. Ubuntu 16.04 is continuing to be supported, and that will be the target of this guide.

Getting The Packages

AMD has provided the packages required for the install in a tarball. The reason for a tarball of .deb packages instead of the .run installer of previous AMD drivers is that AMDGPU-PRO functions by providing its own custom versions of key pieces of software needed for the drivers to function properly.

AMDGPU-PRO is build ton the open source AMDGPU drivers, and just like those drivers, requires newer versions of Mesa, DRM, and the Kernel. To ensure that these requirements are met, they are provided.

You can get the tarball one of two ways. If you prefer to use your browser, go to AMD’s website and download the drivers and untar them with your graphical archive manager of choice.

https://support.amd.com/en-us/kb-articles/Pages/AMDGPU-PRO-Driver-for-Linux-Release-Notes.aspx

If you’d prefer to use the command line, wget the package directly and untar it from the command line.

$ cd ~/Downloads
$ wget https://www2.ati.com/drivers/linux/ubuntu/amdgpu-pro-16.50-362463.tar.xz
$ tar -xJvf amdgpu-pro_16.50-362463.tar.xz

Read more

check vpnserver installation

Setting up SoftEther VPN Server on Ubuntu 16.04 Xenial Xerus Linux

Introduction

Whether you want to be able to connect remotely to your corporate network or to construct a virtual network between two remote points, through an unsecure network (eg: Internet), you will somehow need a VPN (Virtual Private Network). A VPN allows you to securely connect to a remote LAN (Local Area Network) through Internet or untrusted networks.

SoftEther is an Open Source VPN Server, an alternative to OpenVPN. It’s thought to be the world’s most powerful and easy-to-user multi-protocol VPN software.
Our article concerns how to setup SoftEther on Ubuntu Xenial Xerus Linux.

What you will need

  • Ubuntu 16.04 Xenial Xerus Linux
  • A 30 GB available disk space is recommended
  • A root privilege

Note that binaries used for this article are x64 architectures. If your machine is not x64, you need to choose the suitable binaries.

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
> – given command to be executed from vpncmd command line interface

Preparing the server

Upgrade the system:

$ sudo apt update
$ sudo apt upgrade

Install (if not installed yet) build-essential for compilation purpose:

$ sudo apt install build-essential

Read more

Setting up apt proxy Server Approx on Ubuntu Linux

Introduction

Approx is a proxy server for Debian archive files. Having such a service within your LAN with multiple Debian like systems will provide you with number of benefits such as update speed since any update package needs to be downloaded only once. This will also lower down Internet download usage requirements, etc. This article will describe a process of approx setup for Ubuntu Linux.

Installation

As any other installation from standard Ubuntu repository, installation of the approx apt proxy server is a fairy simple process. Install the approx apt proxy server with:

$ sudo apt-get install approx

The above command will also install all prerequisites including Internet superserver inetd, which is used to invoke the approx server.

Read more

How to restart network on Ubuntu 16.04 Xenial Xerus Linux

The following linux commands will assist you with network restart procedure on Ubuntu 16.04 Xenial Xerus Linux. We will start with the most recommended commands and move down to more obscure or obsolete commands in case the above commands will fail from some reason.
Let’s begin with system and service manager by using systemctl command to restart network service:

$ sudo  systemctl restart NetworkManager.service

Next command service will restart a relevant networking System V init script:

$ sudo service network-manager restart

Read more

Allow ssh root login on Ubuntu 14.04 Linux server

By default the root ssh login to Ubuntu 14.04 Linux server is disable. This is a security feature and even though you chnage the root password the root ssh login will be denied showing message similar to the one below:

$ ssh root@10.1.1.12
root@10.1.1.12's password: 
Permission denied, please try again.
root@10.1.1.12's password: 
Permission denied, please try again.
root@10.1.1.12's password: 
Permission denied (publickey,password).

Read more

Ubuntu Xenial Xerus 16.04 Linux ISO image download with zsync

zsync is a very handy download tool if you would like to keep your Ubuntu Xenial Xerus ISO image up to date without the need to re-download and entire ISO image every time there was an update. This is especially true with a daily build Ubuntu Xenial Xerus ISO images or if you have a limited download speed or bandwidth. In this case thezsync will allow you to download only that part of the ISO image which has been changed since your last download.

Prerequisites

To get begin let’s start by installation of zsync package:

# apt-get install zsync

Read more

Ubuntu – The headers for the current running kernel were not found. – Solution

Symptoms

The following message appears during the building stage of VirtualBox Guest Additions:

Building the VirtualBox Guest Additions kernel modules
The headers for the current running kernel were not found. If the following
module compilation fails then this could be the reason.

Solution

First check whether your system includes kernel headers matching your currently running kernel. For example:

# dpkg --get-selections | grep linux-headers
linux-headers-3.13.0-53                         install
linux-headers-3.13.0-53-generic                 install
linux-headers-generic                           install
# uname -r
3.13.0-53-generic

Read more

How to install Wine on Ubuntu Linux 64bit

The following linux command procedure can be used to install Wine the Microsoft Windows Compatibility Layer (Binary Emulator and Library) on Ubuntu Linux amd64. If you are running 64bit Ubuntu Linux system in order to install Wine the i386 architecture needs to be enabled first. Otherwise any attempt to install Wine will result in:

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 wine : Depends: wine1.6 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Read more

A beginner’s introduction to snaps the universal Linux package format

Introduction

What are snaps and why you should use them? The Linux ecosystem has suffered from an old problem since the dawn of the concept of ‘distribution’, and that
problem is fragmentation. One of the biggest issues that cause this fragmentation is different package formats; I can’t run my .debs on my Fedora system or my .rpms on my
Ubuntu machine. Yes, we do have alien, which should allow the transition between the two formats, but there are two problems with this approach : there are other package
formats besides rpm and deb and besides, alien doesn’t always work as expected. So the issue is still there, or I should say, was there. Enter snap, the universal Linux
package format, which strives to offer users and developers a single packaging format and easiness when it comes to creating new packages with the applications and libraries
that are needed, ensuring that said packages are easily shareable between distributions. Dell, Samsung and the Linux Foundation are quoted as contributors, while among
supported distributions are Fedora, Ubuntu, Arch or OpenSUSE.

This article will detail how to use snaps as a simple user, as well as instructions for developers/packagers
on how to create snaps for others to use. The OS we’re gonna use is Ubuntu 16.04, but the instructions below shouldn’t be hard to adapt to other distributions.

Snaps as a simple user

This part will give you a tour of snap from a user perspective : how to install the necessary tools and how to use them for basic, day-to-day
usage. First, you need to install snapcraft, a package that provide snap, the go-to tool for aforementioned day-to-day operations :

 $ sudo apt install snapcraft

Read more