How to change hostname on Linux

Overview In this post we will cover the steps on how to change hostname on Linux. We’ll go through the basics on how to change a hostname on a Linux machine and why we do it and all the steps will be demonstrated using the terminal. Additionally, we’ll showcase a couple of different methods on how to do it. The options we’ll demonstrate can be applied on almost any Linux distro, for an example we can change the hostname on Ubuntu/Debian and even change the hostname on Fedora/RedHat. ...

December 19, 2023 · 4 min · 750 words · MarkoN

Change hostname on Linux using Ansible

Overview This article will demonstrate how we to set a hostname on a Linux server using Ansible playbook. The end goal of this procedure is to automate the process changing the hostname on our remote Linux server. Overall this process is simple when executed manually but this playbook can have it’s uses too. One example - use it as a template for new server deployment Requirements in order to successfully change the hostname: ...

December 18, 2023 · 2 min · 341 words · MarkoN

How to add user to sudoers on Linux

Overview This post will cover multiple procedures on how to add user to sudoers on Linux or in other words, how to give sudo privileges to a user on Linux. The steps showcased here can be applied for almost any Linux distribution. We’re also going to showcase how to add a missing sudoers file and sudoers group in Linux, which by default may occur on some minimal Linux installations(usually on the first and fresh install). ...

December 18, 2023 · 4 min · 751 words · MarkoN

Add user to the group in Linux

Overview We’re going to cover the steps how to add user to the group in Linux via terminal and how to remove a user from the group. This is also another essential skills a Linux user should know since this procedure is a part of user management practice. This post is a part of our Linux user management post series. In one of our earlier posts, we covered the process how to create and delete users in Linux via terminal(you can check out the procedure here - post). ...

December 15, 2023 · 4 min · 784 words · MarkoN

Create multiple files in Linux with one command

Overview Last time I showed you how to create a file in Linux, both ways – using text editors and using almighty terminal(link to »>POST«<). But, did you know that you can create multiple files at once? No, I don’t mean by repeating the same command over and over. I mean creating multiple files at once, with a single command. So that’s, what are going to cover in this article - how to create multiple files in Linux with one command. On a similar topic we also covered how you can create multiple directories in Linux with one command - link to »>POST«<, and how to delete folders and files in Linux too - link to »>POST«<. ...

October 27, 2022 · 3 min · 548 words · MarkoN

Configure IPtables rules using Ansible

Overview The following article will act as a guide and to demonstrate the process how to configure IPtables rules using Ansible. What does this means is - by using Ansible we will create a playbook that we’re going to use to automatically set IPtables firewall rules on a remote Linux server. This solution may prove to be a good option since not only it will do the job automatically but also enables to perform the same procedure on multiple different hosts at once. ...

July 14, 2022 · 4 min · 641 words · MarkoN

How to extract tar.gz file in Linux

Overview The topic for this post will be how to extract tar.gz file in Linux using the tar tool in terminal. In addition we’ll showcase other basic tar options too. If you are new to Linux OS, you must be heard of the tar files. Most open-source packages are distributed in tar format. Every Linux user should be familiar with the the tar command, at least the basics. The tar is the most wildly used archive package in Linux OS, just like zip files. Most Linux distributions used tar by default. A tar archive is pre-installed on many Linux Operating Systems, and it stands for “Tape Archive” every so often it is also referred to as the tarball. ...

June 25, 2022 · 3 min · 539 words · MarkoN

How to install Jellyfin on Debian 11

How to install Jellyfin on Debian 11 Overview The following article will demonstrate the steps on how to install Jellyfin on Debian 11. We’re going to demonstrate two steps on how to install Jellyfin on Debian. First will be focused on installing Jellyfin on Debian 11 by adding the Jellyfin repositories to the apt sources and installing it via apt(this will enable not just to install Jellyfin via apt package manager but also get the updates as well and manage the Jellyfin as a service). ...

May 17, 2022 · 3 min · 611 words · MarkoN

How to jump to the end of file in VIM

Overview This article will act as a simple guide to demonstrate how to jump to the end of file in VIM. Vim is a powerful text editor but it requires time and a learning curve to master it. Vim is made in a way that all commands, functions and editing is done via keyboard. Because of that, Vim has a lot of keyboard shortcuts to execute all those commands and functions. Today we’ll demonstrate how to jump to the end of a file in Vim and some other commands on how to move down the file(or in another words move cursor page up and page down in vim). Small note: These commands also are valid for VI and NVIM. ...

May 10, 2022 · 4 min · 658 words · MarkoN

How to setup NFS server on Alma Linux(NFS share)

This article will act as a guide for a procedure - how to setup NFS server on Alma Linux or in another words and how to create an NFS share on Alma Linux. NFS stands for Network File System is a network file sharing protocol that allows you to share files and directories over the network. You can mount the file systems over a network and use them as your local drive. NFS server is a client-server architecture where multiple clients can mount the shared drive from the NFS server and share resources between Linux systems. By using NFS, you can save space and the cost of storage, especially when you are using cloud instances. ...

May 4, 2022 · 4 min · 789 words · MarkoN

Install Urbackup server using Docker

Overview Urbackup is a cross-platform server/agent backup solution. Quite versatile, feature rich and available on many platforms. We already covered how to install Urbackup on distros such as Ubuntu and Debian and in this post we’ll cover the procedure on how to Install Urbackup server using Docker or in other words - how to deploy Urbackup server as a Docker container. Prerequisites: A Docker node/server with Docker engine installed and running. ...

May 1, 2022 · 5 min · 976 words · MarkoN

Add a remote Docker host in Portainer using the edge agent

Overview The following article will cover the steps how to add a remote Docker host in Portainer using the edge agent. Portainer supports remote management of multiple Docker hosts and has features and multiple tools/methods how to achieve it. This post will focus on using the Portainer edge agent. In order to add a remote Docker host in Portainer there some requirements: Portainer Docker host(Portainer installed and running) Remote host/instance/server with Docker installed and running as well(Install Docker on Debian/Ubuntu) Portainer edge agent installed and running on the remote Docker host Portainer egde agent? Portainer edge agent is a Docker container, which acts as an Portainer agent/client on a remote Docker host in order to establish a connection between one and another add a remote Docker host in Portainer. The edge agent is used because of the simplicity when installing and connecting Portainer to a remote Docker host and also it’s a secure option as well since the agent encrypts all the traffic between the Portainer and the remote Docker host. ...

April 30, 2022 · 4 min · 811 words · MarkoN