bash: netstat: command not found – Debian/Ubuntu Linux

The netstat Linux command is used by system administrators to see information about network connections. Netstat is a powerful utility that can print network connections, routing tables, interface statistics, masquerade connections, and multicast memberships. It has been superseded by the ss command in recent years so you may get the “bash: netstat: command not found” error, but is still a viable tool for network diagnostics and troubleshooting.

Read more

How to blacklist a module on Ubuntu/Debian Linux

There may be a time when you need to disable some kernel modules from being loaded during your Linux system’s boot time. In this guide, we will discuss a few different ways to blacklist a module, including its dependencies, on Ubuntu and any other Debian based distros. This will effectively permanently disable a module from loading during the boot time.

In this tutorial you will learn:

  • How to blacklist a kernel module on Ubuntu/Debian-based Linux distros

Read more

How to install OnlyOffice Desktop Editors on Linux

OnlyOffice is an open source office suite compatible with both open and proprietary documents formats. The suite includes applications to create and edit text documents, spreadsheets and presentations. The “community” version of OnlyOffice is cost-free and can be installed both as a service, or in the form of classic desktop editors.

Read more

Check DEB package dependencies on Ubuntu / Debian

A file that has the .DEB file extension is a Debian software package file. They contain software to be installed on Debian Linux or another Debian-based Linux distro such as Ubuntu Linux. When you install software from a DEB file, your system may need to install dependencies for it to run correctly. This is common behavior for apt package manager as well, so you may already be familiar with package dependencies. In this tutorial, we will show you how to check the package dependencies for a DEB file on debian and ubuntu via the Linux command line.

Read more

How to verify an authenticity of downloaded Debian ISO images

There are two steps to verify an authenticity of downloaded debian iso images from Debian mirrors:

  1. Firstly, we need to verify check-sum of the CD image content against its relevant checksums files whether it would be MD5SUMS or SHA512SUMS
  2. Secondly, we need to verify the actual checksums files for a correct signature using accompanied signatures such as MD5SUMS.sign or SHA512SUMS.sign

To get started, first download all relevant files including desired ISO images within a single directory from your preferred debian mirror. In this case we will validate the authenticity of debian net install CD image:

$ ls
MD5SUMS  MD5SUMS.sign  SHA512SUMS  SHA512SUMS.sign  debian-8.0.0-arm64-netinst.iso

Read more

Nextcloud on Debian 10

How To Install Nextcloud on Debian 10 Buster Linux

Whether you’re setting up Nextcloud on a home server or making it accessible online through a VPS, Debian makes an excellent platform. You can even host it on a Raspberry Pi. This guide will get you started with a basic setup.

In this tutorial you will learn:

  • How to Install the Required Packages
  • How to Set Up Your Database
  • How to Download Nextcloud
  • How to Install Nextcloud

Read more

UFW on Debian 10

How to Use UFW on Debian 10 Buster Linux

UFW is very simple to use and configure. To install ufw, it’s available right in the Debian repositories, and it integrates well into a Debian system. The simplified controls and ability to easily start and stop your firewall make in an excellent option for desktops and small servers.

In this tutorial you will learn:

  • How to Install UFW
  • How to Set the Defaults on UFW
  • How to Allow Ports
  • How to Allow Interfaces
  • How to Allow Protocol
  • How to Allow IP Addresses
  • How to Enable UFW

Read more

apt vs apt-get – Advanced Package Tool

If you’ve ever used Debian Linux or one of the many Linux distributions that were derived from it, such as Ubuntu, you may have seen the apt and apt-get commands sprinkled throughout the distro’s documentation.

At surface level, these commands seem interchangeable, and a lot of documentation or online guides throw them around as if they are. However, there are some key differences between the two and we have some recommendations about which one you should be using. In this guide, we’ll explain the differences and give some examples for both commands. Read on to learn about the specific uses for each command and which one is better for you to use.

In this tutorial you will learn:

  • What distros use apt and apt-get?
  • What is the difference between apt and apt-get?
  • Command examples for apt and apt-get

Read more

How to install Java SE Development Kit on Debian Linux

Objective

The objective of this guide is to provide a simple to follow steps on how to install Java SE Development Kit on Debian Linux.

OS and Software Version

Requirements

Privileged access to your Debian Linux is required. Optionally, curl will be used to download an appropriate Java JDK tarball.

Difficulty

EASY

Conventions

Read more

Using Debian package archive as a configuration tool

Introduction

How often do you need to install your favorite Linux distribution in a single year either virtually or using real hardware? How frequently it happens that you just want to test new release of certain Linux distribution so you install it on different partition or simply virtually using your current system as a host. How often do you need to deploy a server which is a complete clone of the one you configured yesterday. The installation part of any Linux system today is a very straightforward process. Nonetheless, the hardest and the most tedious part comes with a fine tuning, customization and configuration of your system’s services as well as your own user environment. You can simply copy your custom system configuration files from one system to another but engaging in this concept this task can become quite disorganized, time consuming and most importantly error-prone.

In this article, we are going to take a different approach which involves a creation of a Debian package archive containing all required custom user and configuration files. First part of this article describes a rather simple way on how to create a Debian package archive containing all custom files followed by its installation. In the second part, we will look at the way on how to create our own very basic Debian Repository and use it to deploy a simple website including Apache webserver installation and configuration on a freshly installed Linux system.

Part1

In this section, we create and install simple Debian package. The package will accommodate some sample user data to serve as an example.

Creating a Debian Package

It took you a while to configure your desktop to have it the way it best suits your needs and convenience. In your custom environment, you may for example include some bash scripts, create several aliases using .bashrc file or changed default behavior of a vim text editor by altering .vimrc file. Furthermore, you may also have customized numerous system configuration files such as /etc/network/interfaces and so on. All this hard work can be saved within a Debian package and installed and removed from any system with a single dpkg command. As a first step we need to create a bare minimum skeleton for a Debian package. This is a fairly simple task as it only involves a single DEBIAN/control file. So let us start by creating a directory named “myenv”. This directory will hold all data for our own version 1.0 Debian package.

$ mkdir myenv

In the next step, we need to create a control file:

$ cd myenv
$ mkdir DEBIAN
$ vi DEBIAN/control

Read more