Sure, VirtualBox is a popular solution for quick and easy virtualization on Linux, but KVM can provide a more robust and efficient solution with minimal configuration. With the use of tools like Virt-Manager, it can be just as easy to use.
Ubuntu 16.04 running in a virtual machine

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.

Ruby on Rails is one of the most popular web development platforms today, with some of the hottest start-ups and tech giants employing it in their software stacks. One of the biggest selling points of Ruby on Rails is the ease of development. It is just as easy to get set up and start developing, especially on Linux.

Ruby on Rails running on Ubuntu 16.04

Installing the Packages

There are a couple of packages needed before Ruby can be installed in set up, and no, Ruby isn’t one of them. Since this tutorial is going to be using the Ruby Version Manager, or RVM, to manage Ruby, there’s no need to install the package through Ubuntu. There are a couple of packages that RVM needs in order to work and one that never seems to get pulled in by gem installs(nodejs).
# sudo apt-get install build-essential curl nodejs

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

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.

Introduction

This article will deal with installation and configuration of WebDAV server on Ubuntu Linux. WebDAV stands for Web Distributed Authoring and Versioning and allows connected users the edit and share data online via the HTTP protocol. This makes WebDAV a popular choice for developers when combined, for example, with Subversion or OpenLink Virtuoso. WebDAV is supported by number of clients ranging from davfs2, which makes it possible to mount the WebDAV's data storage to include into the local filesystem. This can be done with the mount command to various GUI applications with the native WebDAV support such as Nautilus, konqueror, etc. Futhermore, in this guide we will combine WebDAV with the Apache2 server.

Scenario

In this section I would like to describe a scenario used in this tutorial. WebDAV can be very flexible service, which allows for number of configuration settings and scenarios. In this WebDAV tutorial we will start with the simplest basic startup WedDAV configuration and from there we will build it up to fit more complex environment. You can think of WebDAV as a HTTP extension for your existing website configuration. Normally, you may already have your apache website up and running. Thus, in that case, all you need to do to in order to include the WevbDAV service is to:

  1. create additional upload data directory to use by WebDAV
  2. configure your existing apache2 virtual host file

However, in this guide we will start from scratch starting from apache2 installation, virtual host creation, etc. Therefore, feel free to skip to any section most appropriate to your configuration requirement.

Introduction

In the previous article we have discussed how to install OpenJDK java on ubuntu from the standard Ubuntu repository or Oracle's Java JDK 7 using Personal Package Archives ( PPA ). This article will cover installation of Oracle Java JDK 7 from a source package or by converting RPM Java package to the Debian software package format.

Download Oracle Java JDK 7

First, we need to download Oracle Java JDK source package from the official Oracle website. Navigate to JDK Downloads, accept license terms and download jdk-7<version>-linux-<architecture>.tar.gz. Current version of this source package is jdk-7u11-linux-x64.tar.gz and this is also what we are going to use in this tutorial. Store this tarball source package into your home directory or some other arbitrary place.

Introduction

How to install Java on Ubuntu Linux? Although, this topic is a quite self explanatory to an experienced Linux system administrator it still creates lots of confusion for beginners in terms what version of Java I need, how do I install it or how to change my system settings between multiple different types of Java versions. The aim of this short article is to shed some light on this topic as we will show how to install Java JDK for both Oracle and as well as OpenJDK.

What is Java

In short, Java is an object-oriented programming language. The current owner of the official implementation of the Java SE ( Standard Edition ) platform is Oracle Corporation. The free and open source implementation of the Java Platform SE is called OpenJDK and OpenJRE. There is also another Java version maintained by IBM. IBM provides also both JDK and JRE. Currently only OpenJDK and OpenJRE Java versions are available via standard Ubuntu repository.

The following quick tutorial will provide you with the information on how to configure LAMP ( Linux, Apache, MySQL, PHP ) server on the Ubuntu 16.04 Xenial Xerus Linux. This guide consists of the three simple to follow steps: installation, database setup and testing.

Installation

Let's begin by installation of all required packages:
$ sudo apt-get update
$ sudo apt-get install libapache2-mod-php php-mysql mysql-server apache2

The following guide will provide you with some information on how to improve Ubuntu's repository download speed by selecting the closest, that is, possibly fastest mirror relative to your geographical location.

Country Code

The simplest approach is to make sure that your Ubuntu mirror defined within /etc/apt/sources.list includes a relevant country code appropriate to your location. For example, below you can find a official United States Ubuntu mirror as found in /etc/apt/sources.list:
deb http://us.archive.ubuntu.com/ubuntu/ xenial main restricted
If you are not located in United States simply overwrite the us country code with appropriate code of your country. That is, if your are located for example in Australia update your /etc/apt/sources.list file for all entries as:
deb http://au.archive.ubuntu.com/ubuntu/ xenial main restricted

Use mirror protocol

Using mirror protocol as part of your /etc/apt/sources.list entry will instruct apt command to fetch mirrors located within your country only. In order to use mirror protocol update all lines within /etc/apt/sources.list file from the usual eg.:
deb http://us.archive.ubuntu.com/ubuntu/ xenial main restricted

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

The following config will guide you through the process of enabling SSH root login on Ubuntu 16.04 Xenial Xerus Linux Server or Desktop. This guide assumes that you are in possession of root password and are able to login directly on your system as root user. Use the following guide, if you do not have a root's user password.

By default the root's ssh remote shell access is denied by default. Any attempt to remote login as root will result in Permission denied message:
$ ssh This email address is being protected from spambots. You need JavaScript enabled to view it.
This email address is being protected from spambots. You need JavaScript enabled to view it.'s password: 
Permission denied, please try again.
This email address is being protected from spambots. You need JavaScript enabled to view it.'s password:

Introduction

If you ever wanted to have a personal robot then you are reading a correct article. This tutorial is a brief demonstration on how easily you can configure your personal or company robot, then soon after, connect it with one of available adapters like: shell, campfire, hipchat, irc, gtalk or skype. In this tutorial I'm going to teach you how to set up Hubot with its default adapter Shell. Although it's the simplest option, it's the solid foundation for your future modifications.
Correctly configured and connected Hubot can dramatically improve and reduce employee efficiency as well as give your company lots of fun. Additionally, It can provide your team with the newest rss feeds or send crucial notifications. Keep in mind, that Hubot is developed by Github team, so it's next pros for spending a while on investigations.

So what is Hubot ?

Hubot is open source, written in CoffeeScript on Node.js. It can be easily deployed on PaaS platforms like Heroku. Hubot comes preinstalled with several core scripts like math, ping, help, translate or youtube.
Additionally you can visit community repository which provides tons of other interesting scripts (i.a: ascii, coin, deploy, dice or jenkins). If this list still doesn't meet your expectations, feel free to write your own script using CoffeScript.
As a starter I wanted to present few examples which I hope will bring some light to this topic.

Hubot> hubot convert me 56MB KB
Hubot> 57 344 kilobytes
Hubot> hubot mustache me linuxconfig.org
Hubot> http://mustachify.me/2?src=http://img1.tuicool.com/aqi6r52.jpg#.png
Hubot> hubot translate me praktyczne
Hubot> "praktyczne" is Polish for " Practical "
Hubot> hubot image me niagara falls
Hubot> http://www.niagarafallslive.com/images/HorseshoefromSkylon.jpg#.png
Hubot> hubot convert me 5 years days
Hubot> 1 826.21099 days
Hubot> hubot math me 2(3+7)/4
Hubot> 5
Hubot> hubot die
Hubot> Goodbye, cruel world.

Introduction

You need Windows for a program you use for work, your favorite game runs only on Windows or you are a developer that works on some cross-platform project. And of course, you can't even think about giving up your favorite OS. Whatever the reason, you need Windows and a virtual machine won't cut it so all you're left with, if you don't have a spare machine, is dual-boot. I usually recommend against multiple-boot machines, but I can't argue with the fact that here are situations when the idea is very useful. So this is what this article is about: making sure you need a dual-boot system, acknowledging the requirements, making backups if need be and proceed. You are expected to have some experience in installing Windows as well as Linux, at least Ubuntu in this case, and some courage. But first let's make some concepts clear.

Concepts

We don't want to lie to you: any task that involves advanced partitioning schemes isn't for the faint of heart. But it isn't rocket science either, and we're here to help you. Various operating systems have various partitioning schemes but since the partitioning concepts of the PC are so "smart", there are some things you should know. Every OS that I know of that is installable on the PC requests a primary partition to boot from. Linux is the most flexible in this respect, as you can have its' /boot or / on a logical partition, but I'm not so sure if your BIOS will be able to boot from it. Windows, Solaris and the BSDs absolutely demand primary partitions, with Windows being the most "oppressive" in that respect. So whenever you install a dual-boot system with Windows involved, install it first, as it won't ask you and overwrite the MBR. If you want to dual-boot Linux and BSD or Solaris, install Linux first. Now that we settled this, we will insist you make backups if you have other partitions on the target disk, and you still need them. Our setup will start with a blank drive, and we'll show you how it's done.

Installing Windows 7

As said, you need to install Windows first, and this is more than an advice, and it doesn't apply only to Windows 7 either. We suggest you don't try over-complicated setups, because your chances of having a system actually up and running in decent time are decreasing rapidly that way. Take note that this article is not a step-by-step how-to on installing Windows 7 and/or Ubuntu. We will only refer to the parts that involve partitioning for a successful dual-boot experience. So, when you will get to Windows' partitioning screen, here's a screenshot for you to get an idea:

Windows 7 partitioning

So, since Windows asks for a minimal primary partition size of more than 12 GB (!) , I gave it that, it auto-created it's system one and left me the rest of the disk empty and blank. After installing finished successfully, I was prepared for the tricky part: installing Linux. No, I'm just kidding, it's as simple as it can be.

Introduction

Do you feel that someone is attempting to access you server? To find out, you can deploy a honeypot within your system to help you ease your paranoia by either confirming or dismissing your initial believe. As an example you can start the Kippo SSH honeypot, which allows you to monitor brute-force attempts, collect up today exploits and malware. Kippo also automatically records hacker's shell session, which you can replay to explore various hacking techniques and later use this gathered knowledge to harden your production server. Another reason why to install a honeypot is to take away an attention from your production server. In this tutorial we will show how to deploy a Kippo SSH honeypot on the Ubuntu server.

Prerequisites

Kippo SSH honeypot is a python based application. Therefore, we need to first install python libraries:

$ sudo apt-get install python-twisted

Normally you would run you sshd service listening on default port 22. It makes sense to use this port for your SSH honeypot and thus if you already run the SSH service we need to change the default port to some other number. I would suggest not to use alternative port 2222 as its use is already generally known and it could sabotage your disguise. Let's pick some random 4-digit number like 4632. Open your SSH /etc/ssh/sshd_config configuration file and change the Port directive from:

FIND LATEST LINUX JOBS on LinuxCareers.com
Submit your RESUME, create a JOB ALERT or subscribe to RSS feed.
LINUX CAREER NEWSLETTER
Subscribe to NEWSLETTER and receive latest news, jobs, career advice and tutorials.
DO YOU NEED ADDITIONAL HELP?
Get extra help by visiting our LINUX FORUM or simply use comments below.

You may also be interested in: