article-main

How to manage Vim plugins natively

Vim is definitely one of the most venerated text editors in the Unix world. Although its learning curve can be pretty steep when accustomed to more traditional text editors, its usage can dramatically improve productivity. A lot of plugins are available for the editor; almost always their source code is hosted on Github or similar platforms based on Git. To manage such plugins, several third-party plugin managers were developed in time, such as Pathogen or Vim-Plug, but since version 8 of the editor, a native way to manage plugins was introduced.

Read more

Checking the libc version on Linux

Check libc version

The GNU C Library, often abbreviated to libc or glibc, is ordinarily installed out of the box on all major Linux distros. It is an essential library that many software packages will rely on in order to run properly or run at all. In case you need to check what version of libc is installed on your Linux system, we have you covered in this tutorial.

Read more

What is my processor architecture?

What is my processor architecture?

Knowing the architecture of your system’s processor is essential when picking an operating system to download and install. Certain editions of Linux and other operating systems are typically only made to work with a certain architecture, whether that be x86 (32 bit), x86-64 (64 bit), ARM (in the case of Raspberry Pi systems), etc. Furthermore, software that you are interested in running may only be designed to work with a particular architecture.

Read more

Check information of kernel module on Linux

Check information of kernel module on Linux

Every time a Linux system is booted, there are a number of kernel modules that will be loaded by the system and used to provide additional support for filesystems, new hardware, and many other things. Obtaining information about particular kernel modules may a be an important troubleshooting skill. In this tutorial, we will explain how to obtain module information such as description, dependency, author or relevant object file name using the modinfo command and its various options.

Read more

Detach process from parent on Linux

Detach process from parent on Linux

Every program you run from your working shell is, to the Linux system, regarded as a process. Each process, except init, has its parent identified by PPID (parent process ID). When you start a process using your current shell, the shell itself becomes a parent for your newly started process. The trouble with this approach is that this may not always be desirable, since when the parent process is terminated, its child dies with it.

Read more

Retrieve Weather information using Linux command line

Retrieve Weather information using Linux command line

Although most Linux users will use a GUI tool to retrieve weather information, it is also possible to do get a weather forecast from the command line. Whether you are stubborn command line user or you wish to automate flower watering using your Linux system and cron, there are several different options that can do the job. Some tools even allow you to retrieve information such as current outside temperature, wind, pressure, humidity, altitude, and more, directly from your Linux terminal.

Read more

article-main

How to mount a Samba shared directory at boot

Samba is a free and open source interoperability suite of programs which allows us to share files and printers between machines running Linux or Windows. A Samba share is pretty easy to configure and can easily  be accessed on clients, since the vast majority of Linux file explorers has built-in support samba. In certain situations, however, we may want to mount a Samba share at boot, just like a normal filesystem on a specified mountpoint.

Read more

header-image

How to define a custom Firewalld zone

Firewalld is the default high-level firewall manager on the Red Hat family of distributions. One of its peculiarities is that it defines a series of so called firewall zones: each zone can be considered like a different level of trust and can be configured to allow traffic through a specific set of ports. While Firewalld comes with some predefined zones which can be easily examined and modified, sometimes we may want to create our custom zones from scratch.

Read more

article-main

Introduction to Borg Backup

Borg is a very useful application we can use to create deduplicating backups on Linux. Free and open source software, it is, for the most part, written in Python and supports data compression and encryption. Thanks to the data de-duplication feature, only data which actually changes is archived, and this let us optimize both disk space and execution time. Borg is really easy to install, since it is packaged and included in the repositories of the most used Linux distributions.

Read more

Restarting NGINX web server on Linux

How to restart NGINX on Linux

NGINX is popular web hosting and reverse proxy software for Linux systems. Like many other applications and services, it occasionally needs restarted. Restarting is especially common when making updates to configuration files. You’ll always need to restart or reload NGINX for the changes to take effect.

In this article, we’ll go over a couple different command line options for restarting and reloading an NGINX server. In addition, you’ll learn how to check the NGINX configuration file for mistakes before restarting NGINX. After all, you wouldn’t want to load up a configuration that contains errors.

In this tutorial you will learn:

  • How to reload NGINX (no effect on client connections)
  • How to completely restart NGINX

Read more