Language Selection

English French German Italian Portuguese Spanish

today's howtos

Filed under
HowTos
  • Everything You Need to Know About Snap and Snap Store

    A package manager is a set of integrated services that facilitate installing, updating, removing, and configuring packages/programs on a computer.

    Talking specifically about the Linux operating system, you get to choose from a wide range of package managers, such as APT, YUM, RPM, and Pacman. Each of these package managers has some distinct feature that sets them apart from the other.

    However, a relatively new package manager, Snap, has emerged as a viable alternative to traditional package managers. Let's check out Snap, its pros and cons, and how to install and use it on Linux.

  • Get the name of the newest file in a directory on the linux shell

    If you have a directory with many files (a few thousand in my case) and need to know which one is the newest, then the following command might be useful.

  • How to run SSH command and exit – Linux Hint

    The users need to connect with the remote host by using SSH (Secure Shell) to run different commands for multiple purposes remotely. It helps the user do their task more easily. Many administrative tasks can be done remotely by the user with some simple steps that save the time and effort of the user. The user may require to run a single or multiple SSH commands remotely and terminate the connection safely from the remote host. How the SSH command can be run in the remote host and exit have shown in this tutorial.

  • How To Install Brotli Module for Nginx on Ubuntu 20.04 LTS - idroot

    In this tutorial, we will show you how to install the brotli module for Nginx on Ubuntu 20.04 LTS. For those of you who didn’t know, Brotli is a high-performance, lossless compression algorithm developed and maintained by Google. It can be used by webservers to compress files like .html and .css files and increase the perforce of websites and reduce their bandwidth requirements.

    This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo‘ to the commands to get root privileges. I will show you through the step-by-step enabling Brotli Compression on Nginx. You can follow the same instructions for Ubuntu 18.04, 16.04, and any other Debian-based distribution like Linux Mint.

  • How to Increase SSH Connection Timeout – Linux Hint

    If the user remains inactive for long times after connecting to a remote server, the user must connect again with the server using SSH. The connection of the server resets if the user is not doing any activity for a while. It is necessary for security purposes. But when the user tries to perform any task on the server that needs long times to complete, the user will require to log in multiple times after a certain time. Sometimes it becomes very irritating for the user. The user will require to increase the SSH connection timeout to solve this problem; It can be done in two ways. One way is to set the keep-alive options in the server configuration file, and another way is to set the keep-alive option in the client configuration file. Both ways have been explained in this tutorial.

  • How to disable the screen lock in ubuntu – Linux Hint

    This short tutorial explains how to disable the screen lock in Ubuntu, which is enabled by default.
    Below you’ll find instructions to turn off the screen lock from Gnome settings and the command line using the gsettings cli. You’ll also find instructions to disable the screen lock at boot, allowing automatic login.

  • How to Use LDD Command in Linux – Linux Hint

    In Linux systems, we constantly work with executable files either in the terminal or graphical applications. Executables contain shared libraries, which are files that are shared and reused across programs. In windows, these are typically in the form of DDL files. In Linux, however, they are in the form of .o or .so files.

    This guide will show you how to use the ldd command-line utility to show shared objects and the dependencies in an executable.

  • How to Emulate Kali Linux as a Virtual Machine – Linux Hint

    Virtualization involves running a virtual computer system in a separated layer from the actual computer hardware. It allows users to run more than one operating system without installing them on the actual hardware.

    Operating systems that run using a hypervisor will operate as they would in the actual hardware. That allows you to install tools, test systems, and other tools on your virtual machine without affecting the main host.

    This tutorial will show you how to use Virtual-Box as the Hypervisor to run Kali-Linux as a virtual machine.

    Before we begin, allow me to give a few theory concepts about virtualization before getting to the practical part. Feel free to skip if you are familiar with the concepts.

  • Kill All Stopped Jobs Linux – Linux Hint

    In Linux, a job refers to a process started and managed by the shell. That can be a single command, a long and complex shell command including pipes and redirections, an executable, or a script. Each job in Linux is managed by assigning a sequential job IP associated with a specific process.

  • Linux Sync Time with Another Server – Linux Hint

    Time is a crucial factor in our daily lives and the technical side of things.

    Therefore, maintaining an accurate time between the Linux systems is an important factor. It allows you to accurately know when various accounts are logged, file changes, network packets, and other critical system logs. This can, in turn, be useful in troubleshooting and fixing problems.

    In this tutorial, you will learn how to synchronize the time between two servers using SSH.

  • Use Netcat to Transfer Files – Linux Hint

    This tutorial offers an easy explanation of how to use Netcat to transfer files between devices.

  • MySQL INFORMATION_SCHEMA Examples – Linux Hint

    In version 5.0, MySQL implemented the INFORMATION_SCHEMA database, which is visible as a normal database. Although its behavior and functionality are similar to a normal database, the information contained in the database is not all regular data.

    Here is the best way I can describe the MySQL INFORMATION_SCHEMA database. It is a database containing information about other databases. It is available in every MySQL instance and is used to store metadata information about all other databases in the server. It is also called the system catalog or data dictionary.

    Like all the MySQL databases, the information in the INFORMATION_SCHEMA database gets stored in read-only tables. However, in actuality, they are views and not base MySQL tables. In that sense, you can not perform MySQL triggers against the tables stored in the database, nor are there any files associated with them.

    NOTE: You will also not find a directory in the name of INFORMATION_SCHEMA.

    Despite all that, the INFORMATION_SCHEMA database is the perfect place to query information about other databases stored on the server. This tutorial aims to provide you with an overview of the INFORMATION_SCHEMA database and give you a few examples of using the database.

  • Linux xargs Command – Linux Hint

    The xargs command is a command-line tool used to read data from standard input and later runs a command based on the standard input. It is a useful tool in file management, especially when used with other commands such as mkdir, grep, rm etc. In this tutorial, we are going to learn how to use xargs on Linux.

  • Is It Okay to Use Different RAM Brands and Sizes Together? – Linux Hint

    Adding more memory to your PC can be one of the most rewarding upgrades you can make, resulting in an instant boost in responsiveness, decreased loading times, and the ability to keep more applications and web browser tabs open without annoying slowdowns.

    But RAM sticks come in many different sizes and from many different brands. As such, you have a good reason to wonder if using a random stick of RAM that’s been sitting in your drawer for ages or buying a discounted memory kit instead of the one that’s currently on your computer is a good idea. The answer may surprise you.

  • How to Install NEOS CMS on Ubuntu 20.04

    Neos CMS is a free and open-source content management system that allows you to build your website easily. It has its own CMS system that helps you to manage websites and blogs without any coding knowledge. It is designed for ease of use and allows business owners to collaborate with users across multiple devices. It offers a rich set of features including, full Unicode support, complete internationalization, SEO, inline editing, and more.

    In this post, we will show you how to install Neos CMS with Apache on Ubuntu 20.04 server.

  • How to Use ssh-keygen to Generate an SSH Key – Linux Hint

    SSH or Secure Shell is a useful encrypted protocol to secure connections between the client and the server for different administrative tasks. It supports various types of authentication systems. Public key-based authentication and password-based authentication are mostly used. Key-based authentication is more secure than password-based based authentication. Authentication key pairs for the SSH are generated by the ssh-keygen tool that can be used for different purposes such as authenticating the host, automating login, etc. How this tool can be used in Ubuntu has been shown in this tutorial.

  • LiteSpeed Benefits Over Other Servers for WordPress Hosting | RoseHosting

    The purpose of web servers is to store files belonging to a website and broadcasting them further online to your audiences. Web hosting is simply the service offered by hosting providers where they lease web server resources to other users.

  • How to Use UEFI Interactive Shell and Its Common Commands – Linux Hint

    The newer generation UEFI motherboards come with UEFI Interactive Shell. The UEFI interactive shell is a simple shell program (like bash) responsible for booting your operating system. You can also use the UEFI interactive shell to run EFI shell commands and scripts. It can be used to update the System Firmware of your motherboard as well.

    This article will show you how to access the UEFI interactive shell on UEFI motherboards and use some of the common EFI commands on the UEFI interactive shell. So, let’s get started.

  • Updating the BIOS on UEFI Systems – Linux Hint

    The BIOS of your UEFI-supported motherboard is also called the UEFI firmware of the motherboard. There are times when you will need to update the BIOS/UEFI Firmware of your motherboard. You may have different reasons for that. For example, your motherboard manufacturer may have released new features or bug fixes for your motherboard that are important for you. Or, you may want to replace the processor of your motherboard with a later generation one, and for that, a BIOS/UEFI Firmware update of the motherboard is required. Or, you may just want to keep the BIOS/UEFI Firmware of your motherboard up to date.

    Whatever the case may be, if you’re thinking of updating the BIOS/UEFI Firmware of your motherboard, this article should assist you on your job. So, let’s get started.

  • Getting started with automating and managing SSH server configuration with RHEL system roles

    The SSH server is a critical, ubiquitous service that provides one of the main access points into Red Hat Enterprise Linux (RHEL) for management purposes. Over my career as a system administrator, I can not think of any RHEL systems I have worked on that were not running it.

    RHEL 8.4 adds new roles to manage the SSH server and SSH client configurations, which are the sshd and ssh roles, respectively. This post will walk you through an example of how to use the sshd RHEL system role to manage the SSH server configuration. In the next post, you’ll see how to adapt to different real-world scenarios where servers need a slightly different configuration.

    Why automate SSH server configuration?

    Having a properly configured and secured SSH server is a key component of hardening a RHEL system. This is why security benchmarks such as the CIS benchmark and DISA STIG specify SSH server configuration options that need to be set. This makes the SSH server a great candidate for automation.

    While it is possible to manually configure the SSH server, doing so is time consuming and prone to error. Additionally, if you manually configure SSH, there is no guarantee it will stay properly configured (e.g., when a fellow system administrator is troubleshooting and makes a few "temporary" changes to the configuration that end up being permanent).

    Red Hat introduced RHEL System Roles in RHEL 7. These are Ansible roles and collections that provide a stable and consistent interface to manage and automate multiple releases of RHEL. RHEL System Roles are a feature included in RHEL subscriptions and are supported by Red Hat.

More in Tux Machines

digiKam 7.7.0 is released

After three months of active maintenance and another bug triage, the digiKam team is proud to present version 7.7.0 of its open source digital photo manager. See below the list of most important features coming with this release. Read more

Dilution and Misuse of the "Linux" Brand

Samsung, Red Hat to Work on Linux Drivers for Future Tech

The metaverse is expected to uproot system design as we know it, and Samsung is one of many hardware vendors re-imagining data center infrastructure in preparation for a parallel 3D world. Samsung is working on new memory technologies that provide faster bandwidth inside hardware for data to travel between CPUs, storage and other computing resources. The company also announced it was partnering with Red Hat to ensure these technologies have Linux compatibility. Read more

today's howtos

  • How to install go1.19beta on Ubuntu 22.04 – NextGenTips

    In this tutorial, we are going to explore how to install go on Ubuntu 22.04 Golang is an open-source programming language that is easy to learn and use. It is built-in concurrency and has a robust standard library. It is reliable, builds fast, and efficient software that scales fast. Its concurrency mechanisms make it easy to write programs that get the most out of multicore and networked machines, while its novel-type systems enable flexible and modular program constructions. Go compiles quickly to machine code and has the convenience of garbage collection and the power of run-time reflection. In this guide, we are going to learn how to install golang 1.19beta on Ubuntu 22.04. Go 1.19beta1 is not yet released. There is so much work in progress with all the documentation.

  • molecule test: failed to connect to bus in systemd container - openQA bites

    Ansible Molecule is a project to help you test your ansible roles. I’m using molecule for automatically testing the ansible roles of geekoops.

  • How To Install MongoDB on AlmaLinux 9 - idroot

    In this tutorial, we will show you how to install MongoDB on AlmaLinux 9. For those of you who didn’t know, MongoDB is a high-performance, highly scalable document-oriented NoSQL database. Unlike in SQL databases where data is stored in rows and columns inside tables, in MongoDB, data is structured in JSON-like format inside records which are referred to as documents. The open-source attribute of MongoDB as a database software makes it an ideal candidate for almost any database-related project. This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo‘ to the commands to get root privileges. I will show you the step-by-step installation of the MongoDB NoSQL database on AlmaLinux 9. You can follow the same instructions for CentOS and Rocky Linux.

  • An introduction (and how-to) to Plugin Loader for the Steam Deck. - Invidious
  • Self-host a Ghost Blog With Traefik

    Ghost is a very popular open-source content management system. Started as an alternative to WordPress and it went on to become an alternative to Substack by focusing on membership and newsletter. The creators of Ghost offer managed Pro hosting but it may not fit everyone's budget. Alternatively, you can self-host it on your own cloud servers. On Linux handbook, we already have a guide on deploying Ghost with Docker in a reverse proxy setup. Instead of Ngnix reverse proxy, you can also use another software called Traefik with Docker. It is a popular open-source cloud-native application proxy, API Gateway, Edge-router, and more. I use Traefik to secure my websites using an SSL certificate obtained from Let's Encrypt. Once deployed, Traefik can automatically manage your certificates and their renewals. In this tutorial, I'll share the necessary steps for deploying a Ghost blog with Docker and Traefik.