Ubuntu Boot-Repair

Ubuntu Boot Repair

Objective

Fix an Ubuntu system that won’t boot properly.

Distributions

Ubuntu 18.04

Requirements

An Ubuntu install with root privileges, and preferably a second computer to create a live CD.

Difficulty

Easy

Conventions

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

Introduction

No one wants a system that doesn’t boot. It’s about as bad and frustrating as any technical problem gets, and more often than not, it feels like the system is totally shot. Fear not, though, Ubuntu has a couple of convenient ways to help repair your computer and get things back to normal.

Read more

How to install Couchbase Server on Ubuntu 18.04 Bionic Beaver Linux

Objective

The objective is to install Couchbase Enterprise or Community Server on Ubuntu 18.04 Bionic Beaver Linux

Operating System and Software Versions

  • Operating System: – Ubuntu 18.04 Bionic Beaver
  • Software: – Couchbase Server 5.0.1 Enterprise or Community Edition or higher

Requirements

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

Difficulty

EASY

Conventions

Read more

How to host Django With Nginx On Ubuntu 18.04 Bionic Beaver Linux

Objective

Install and configure Ubuntu 18.04 to host the Django framework.

Distributions

Ubuntu 18.04

Requirements

A working install of Ubuntu 18.04 with root privileges

Difficulty

Medium

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

Introduction

If you’re looking to build and host web applications with Python, Django is the most popular choice. Since Python is so tightly integrated into the Linux, it’s not too hard to get a Django server set up on Ubuntu.

There isn’t one set way to host Django projects, but a stack consisting of PostgreSQL, Nginx, Gunicorn, and Django is pretty much the standard.

Read more

Image showing a Puppet sync error message

How to use Puppet environments in Linux to safely update an agent

Objective

Create and use puppet environments to test new configuration before updating a live production system.

Operating System and Software Versions

  • Operating System: Any major linux distribution e.g. Ubuntu, Debian, CentOS
  • Software: puppet and puppet-master

Requirements

Privileged access to the puppet master server and the puppet client node.

Conventions

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

Introduction

Most Puppet installations begin life as a master server running a single branch. The master contains all the manifests and other configuration for all the Puppet agents that are synced to it. This is a fine place to begin but there will rapidly arrive a time when an update needs pushing that has the potential to break a production server. Hoping for the best is not the best way to proceed.

Puppet provides the tools to separate entire branches of configuration. These are called environments. A Puppet environment is a way to supply an isolated group of agent nodes with their own dedicated configuration. Each environment contains an entire Puppet configuration tree and can be considered as a separate Puppet master server.

Read more

How to deny all incoming ports except FTP port 20 and 21 on Ubuntu 18.04 Bionic Beaver Linux

Objective

The objective is to enable UFW firewall, deny all incoming ports however only allow FTP port 20 and 21 on Ubuntu 18.04 Bionic Beaver Linux

Operating System and Software Versions

  • Operating System: – Ubuntu 18.04 Bionic Beaver

Requirements

Privileged access to your Ubuntu 18.04 Bionic Beaver will be required.

Difficulty

EASY

Conventions

Read more

Ubuntu Bionic Begin Matmomo Install

How to install Matomo Open Source Analytics On Ubuntu 18.04 Bionic Beaver Linux

Objective

Install Matomo analytics on Ubuntu 18.04 Bionic Beaver

Distributions

Ubuntu 18.04

Requirements

A working install of Ubuntu 18.04 with root privileges

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

Introduction

Analytics are important for nearly every website, but if you’re a fan of free and open source software, the idea of letting Google monitor all of your site’s traffic might not sound too good. There is, however, another option. You can install and host your own analytics with Matomor(formerly Piwik). Matomo is an open source PHP application that you can run yourself, putting you in control of your analytics platform. Plus, Matomo actually respects your users and doesn’t try to break tracking protection.

Read more

How to install Webmin on Ubuntu 18.04 Bionic Beaver Linux

Objective

The objective is to install Webmin on Ubuntu 18.04 Bionic Beaver Linux along with required Linux, Apache, MySQL, PHP (LAMP) stack.

Operating System and Software Versions

  • Operating System: – Ubuntu 18.04 Bionic Beaver Linux
  • Software: – Webmin 1.870 and higher

Requirements

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

Scenario

This guide assumes the following scenario:

  • open firewall port 10000 or disabled firewall. See appendix below on how to open port 10000 on your UFW firewall
  • webmin server can be resolved via hostname webmin.linuxconfig.org. Confirm your DNS settings before continuing.

Difficulty

EASY

Conventions

Read more

How to reset root MariaDB password on Ubuntu 18.04 Bionic Beaver Linux

Objective

The objective is to reset lost root MariaDB password on Ubuntu 18.04 Bionic Beaver Linux.

Please note that if you have just installed your MariaDB server and are unable to login as root user with:

$ mysql -u root
ERROR 1698 (28000): Access denied for user 'root'@'localhost'

you do not need to reset your password. Instead, to login as root amend the above command to:

$ sudo mysql

Operating System and Software Versions

  • Operating System: – Ubuntu 18.04 Bionic Beaver
  • Software: – mysql Ver 15.1 Distrib 10.1.25-MariaDB or higher

Requirements

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

Difficulty

EASY

Conventions

Read more

How to fix Missing plugin: gstreamer on Ubuntu 18.04 Bionic Beaver Linux

Symptoms

The follow error message appears when trying to play video or audio:

** Message: Missing plugin: gstreamer|1.0|totem|MPEG-4 AAC decoder|decoder-audio/mpeg, mpegversion=(int)4, level=(string)2, base-profile=(string)lc, profile=(string)lc (MPEG-4 AAC decoder)
** Message: Missing plugin: gstreamer|1.0|totem|H.264 (Main Profile) decoder|decoder-video/x-h264, level=(string)3.1, profile=(string)main (H.264 (Main Profile) decoder)

Read more

How to install latest Firefox Browser on Debian 9 Stretch Linux

Objective

Debian Linux comes with Firefox ESR (Extended Support Release) version, which in some rare scenarios may not adequately fit your needs. The objective is to replace the Debian’s default Firefox ESR with the latest bleeding edge Firefox.

Operating System and Software Versions

  • Operating System: – Debian 9 Stretch

Requirements

Privileged access to your Debian Linux system will be required.

Difficulty

EASY

Conventions

Read more

VNC server/client setup on Debian 9 Stretch Linux

Objective

The objective is to configure a basic client/server VNC setup on Debian 9 Stretch Linux

Operating System and Software Versions

  • Operating System: – Debian 9 Stretch Linux
  • Software: – vnc4server 4.1.1

Requirements

Privileged access to access do your Debian system may be required to install VNC server and client packages. Fully functional and configured X server.

Difficulty

MEDIUM

Conventions

Read more

How to Setup a VPN with OpenVPN on Debian 9 Stretch Linux

Distributions

This guide is tested for Debian 9 Stretch Linux, but it may work with other recent Debian versions.

Requirements

  • This guide assumes that you’re running Debian on a VPS or a remote server, since that’s the most likely scenario for a VPN.
  • A working install of Debian Stretch with root access

Difficulty

MEDIUM

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

Configuring Iptables

Setting up your own VPN is no small task, but there are plenty of reasons that you’d want to do it. For one, when you run your own VPN, you have complete control of it and know exactly what it’s doing.

Security is an important factor for VPNs. It’s possible to set up a simple one in a few minutes, but it won’t be secure at all. You need to take the appropriate steps to ensure that both the server and your connections remain private and encrypted.

Before embarking down this road, you may want to consider encrypting your disks, beefing up kernel security with SELinux or PAX, and making sure everything else is locked down.

Iptables is a big part of server security. You need iptables to ensure that information doesn’t leak out of your VPN. Iptables also works to prevent unauthorized connections. So, the first step in setting up a VPN on Debian is setting up iptables.

Read more