SQLite Linux Tutorial

SQLite Linux Tutorial for Beginners

This SQLite Linux tutorial is intended for beginners who wish to learn how to get started with SQLite database. SQLite is one of the world’s most widely-used Database programs. So, what is a Database, and what is SQLite?

Read more

How to use bash array in a shell script

How to use bash array in a shell script

In this tutorial we will see how to use bash arrays and perform fundamental operations on them. Bash, the Bourne Again Shell, it’s the default shell on practically all major linux distributions: it is really powerful and can be also considered as a programming language, although not as sophisticated or feature-reach as python or other “proper” languages. Furthermore, the Bash scripting is a must skill for any Linux system administration job.

Read more

main-image

Introductory tutorial to Git on Linux

Git is without doubt the most used version control system in the world. The software is open source, released under the GPLv2 license, and was created by Linus Torvalds, which is also the father of Linux. In this tutorial we learn
the basic concepts behind its usage, we see how to create or clone a git repository and how to perform the basic actions involved in the git workflow.

In this tutorial you will learn:

  • The basic git concepts
  • How to create a git repository
  • How to clone a git repository
  • How to add file contents to the repository index
  • How to create a commit
  • How to push changes to a remote repository
  • How to pull changes from a remote repository
main-image

Introductory tutorial to Git on Linux

Read more

Fibonacci number sequence with C++

C++ function to calculate Fibonacci number sequence

In this artcile you will learn how calculate Fibonacci sequence with using C++ function. The Fibonacci sequence starts with 0 and 1 where the the following number is always a sum of the two preceding numbers. For example, 0,1,1,2,3,5,8 and so on.

In this tutorial you will learn:

  • How to compile Fibonacci C++ program
  • How to run Fibonacci C++ program

Read more

Listing the biggest directories on Linux

List all directories and sort by size

When it comes to tidying up your hard drive on Linux, either to free up space or to become more organized, it’s helpful to identify which directories are consuming the most storage space.

In this guide, we’ll show you how to list all directories and sort them by their total size on Linux, through command line examples, a Bash script, and GUI methods.

In this tutorial you will learn:

  • How to list directories by size with du command examples
  • How to list directories by size with a Bash script
  • How to check directory sizes with Disk Usage Analyzer GUI utility

Read more

Configuring and testing a BIND nameserver on Linux

Linux DNS server BIND configuration

The BIND DNS software is one of the most reliable and proven ways to configure name resolution on a Linux system. Having been around since the 1980s, it remains the most popular Domain Name Server (DNS) currently in use. This article serves as a quick configuration manual of a Linux DNS server using BIND.

This article is not an introduction to DNS or an explanation of how the protocol works. Rather we will simply concentrate on a simple configuration of a custom zone and config file for a given domain / host supporting www and mail services. Follow along with the instructions below to get BIND DNS set up and configured on your own server.

WARNING
Before you proceed with the installation and configuration of BIND nameserver, make sure that BIND DNS server is exactly what you want. Default setup and execution of BIND on Debian or Ubuntu may take around 200MB of RAM with no zones added to the config file. Unless you reduce the memory usage of a BIND via various BIND “options” config settings, be prepared to have some spare RAM available just for this service. This fact is even more important if you pay for your own VPS server.

In this tutorial you will learn:

  • How to install BIND on major Linux distros
  • How to create a DNS zone file
  • How to configure address to name mappings
  • How to check BIND zone file and configuration
  • How to start or restart the BIND DNS service
  • How to test a BIND configuration with dig command

Read more

Developing and running an Android app on a Linux system

Get Started with Android application development using Linux and Android SDK

Developers interested in the Android mobile operating system are able to use the Android SDK and various IDE software to code applications. These apps can then be made available and marketed to Android users around the world.

There are a lot of choices when it comes to programming Android applications. Your coding environment can involve a Linux system and a variety of different IDE programs to facilitate all of the software development. The trouble here is that each Linux distribution will often have a different set of requirements to run the sofware, and a separate list of steps that need to be followed.

In this guide, we’ll go through the step by step instructions to install Android Studio – which is one of the most popular Android IDEs – on a Linux system. This will work on any distribution because we’ll be using Snap package manager to manage the installation. Love it or hate it, the Snap package manager gets your system ready for Android development very quickly, by handling all the dependencies and working identically on any distribution you’re running, whether it be Ubuntu, Debian, Red Hat, CentOS, AlmaLinux, openSUSE, or any other type of Linux system.

Follow along with us below as we setup Snap package manager, install Android Studio, and then program a Hello World Android application to verify that everything is working properly.

In this tutorial you will learn:

  • How to setup Snap package manager
  • How to install Android Studio and SDK packages
  • How to create a Hello World test application
  • How to run an Android application on an emulated device

Read more

Configuring the wireless interface on Ubuntu Linux

Setup Wireless interface on Ubuntu

Setting up the wireless interface on Ubuntu Linux is likely one of the first things you’ll need to do after installing the operating system and booting into it for the first time. As long as you have the proper hardware, Ubuntu can easily connect to Wi-Fi networks configured with various types of security like WEP, WPA, and WPA2.

In this guide, we will cover the step by step instructions to connect to a Wi-Fi network from the GNOME GUI (the default desktop environment) on Ubuntu. We will also show how to connect to Wi-Fi from command line, which is handy in the case of headless servers or those running without a desktop environment. Follow along with us below to find out how.

In this tutorial you will learn:

  • How to connect to Wi-Fi network in GNOME GUI
  • How to connect to Wi-Fi network via command line
  • How to enable or disable the system’s Wi-Fi adapter

Read more

Compressing a file with zstd on Linux

How to install and use ZSTD compression tool on Linux

Zstandard, often abbreviated as zstd, is a relatively new compression tool that premiered in 2015. It was created by engineers at Facebook, looking to improve on the speed and compression ratio of longstanding tools like gzip. It’s quickly becoming a standard compression tool on many Linux distros, so now’s a perfect time to learn about using it.

In this guide, we’ll go over the instructions to install and use zstd on Linux, with command line examples that show you how to compress files as well as open archives that use zstd.

In this tutorial you will learn:

  • How to install Zstandard on major Linux distros
  • How to use Zstandard through command line examples
Compressing a file with zstd on Linux

Compressing a file with zstd on Linux

Read more

Putting a process into the background and moving it to the foreground

How to run command in background on Linux

Running commands or processes in the background on a Linux system becomes a common task if you need to free up your terminal or disconnect from an SSH session. This is especially true of commands that run for a long time, either to listen for events or complete their lengthy task.

We have a few options on Linux for running commands in the background. In this guide, we’ll cover a few different methods and show you how to use them through examples.

In this tutorial you will learn:

  • How to put a running command into the background
  • How to start a command in the background
  • How to close terminal and keep background job running
  • How to use the screen command
Putting a process into the background and moving it to the foreground

Putting a process into the background and moving it to the foreground

Read more

How to setup an FTP/SFTP server on AlmaLinux

How to setup FTP/SFTP server and client on AlmaLinux

FTP and SFTP are great protocols for downloading files from a remote or local server, or uploading files onto the server. FTP will suffice for some situations, but for connections over the internet, SFTP is recommended. In other words, FTP is not secure to use over an internet connection, since your credentials and data are transmitted without encryption. The ‘S’ in SFTP stands for ‘Secure’ and tunnels the FTP protocol through SSH, providing the encryption needed to establish a secure connection.

In this guide, we’ll go over the step by step instructions to setup an FTP server through VSFTP software or SFTP server through OpenSSH on AlmaLinux. Then, we’ll see how to connect to the server from a client AlmaLinux system. Setting up FTP/SFTP is a common step after installing AlmaLinux or migrating from CentOS to AlmaLinux.

In this tutorial you will learn:

  • How to setup an FTP server through VSFTPD
  • How to setup an SFTP server through OpenSSH
  • How to setup FTP and SFTP user accounts
  • How to allow FTP and SFTP through firewalld
  • How to connect to an FTP/SFTP server via command line
  • How to connect to an FTP/SFTP server via GNOME GUI
How to setup an FTP/SFTP server on AlmaLinux

How to setup an FTP/SFTP server on AlmaLinux

Read more