Language Selection

English French German Italian Portuguese Spanish

today's howtos

Filed under
HowTos
  • How To Install CakePHP on Debian 11 - idroot

    In this tutorial, we will show you how to install CakePHP on Debian 11. For those of you who didn’t know, CakePHP is a web application development framework written in PHP, built on the concepts of Ruby on Rails. As we know Ruby on Rails uses Ruby as a language but with development features that Cake wanted to implement in PHP. It’s a foundational structure for programmers to create web applications. Models, Views, and Controllers are used for the separation of business logic from data and presentation layers.

    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 installation of the Gitea on a Debian 11 (Bullseye).

  • Ansible local_action

    In most situations, we use Ansible to manage and configure remote hosts from a single control node. Hence, when creating playbooks, it’s with the understanding that they shall execute on the remote machines we specify in the host’s block of the playbooks.

    However, there are instances where you may need to perform a specific action on the local machine instead of remote hosts. In such instances, a feature like local_action comes in handy.

    This guide will show you how to work with the Ansible local_action module to execute tasks locally.

  • Ansible When Conditional

    Ansible supports conditional evaluations before executing a specific task on the target hosts. If the set condition is true, Ansible will go ahead and perform the task. If the condition is not true (unmet), Ansible will skip the specified task.

    To implement conditions in Ansible, we use the when keyword. The keyword takes Boolean expressions based on a value or a variable from previous tasks or facts gathered from the remote hosts.

    This guide will teach you how to implement conditions in Ansible playbooks using the when keyword.

  • Ansible User Module Tutorial

    Managing users and user attributes is a typical operation for any system administrator. The Ansible user module is one of the handiest ways to manage users and their attributes when working with remote hosts.
    Ansible.builtin.user module is part of ansible-core and is available by default in most ansible installations.

    In this guide, we will focus on how to manage user accounts using the ansible user module.

  • Ansible Stat Module Usage

    In Linux, the stat command is a command-line utility that provides detailed information about filesystems or files.

    Ansible, considered the most diverse and popular automation tool, provides a module for fetching file and file system information as native Linux stat command.

    In this guide, we will understand how to work with the stat module in Ansible playbooks.

  • Ansible File Module Tutorial

    Ansible is an incredible automation utility that comes packed with features and tools to manage remote hosts. It works by implementing modules to perform specific tasks and operations.

    One practical module in Ansible is the file module. This module is responsible for performing tasks such as creating files and directories, deleting files and directories, creating soft and hard symbolic links, adding and modifying file and directory permissions, and more.

    This guide will walk you through how to work with the Ansible file module. We will illustrate this using a collection of examples and playbooks.

    NOTE: Ensure you have access to your remote hosts specified in Ansible’s inventory file.

  • Ansible notify when changed

    In Ansible, a handler refers to a particular task that executes when triggered by the notify module. Handlers perform an action defined in the task when a change occurs in the remote host.

    Handlers are helpful when you need to perform a task that relies on a specific task’s success or failure. For example, you can set a handler to send Apache logs if the service goes down.

    This article will help you understand how to define and use the Ansible handler in playbooks.

  • How to install Mongodb 5 on Fedora 34/35 – Citizix

    In this guide we are going to learn how to install MongoDB 5.0 Community Edition on a Fedora 34/35 server.

    MongoDB is a cross-platform document-oriented NoSQL database program that uses JSON-like documents with optional schemas. MongoDB is developed by MongoDB Inc. and licensed under the Server Side Public License.

    Instead of storing data in tables of rows or columns like SQL databases, each record in a MongoDB database is a document described in BSON, a binary representation of the data. Applications can then retrieve this information in a JSON format.

  • How to monitor the serial port in Linux - PragmaticLinux

    Although modern PCs no longer come with a physical serial port, plenty of devices still require RS232 serial communication to interact with them. With the help of an RS232-to-USB adapter you can easily connect them to your PC. Once connected, you might wonder: How do I monitor the serial port in Linux? Luckily several tools exist, both for the terminal and with a GUI. In this article I’ll introduce you to few popular programs to monitor the serial port in Linux.

  • How Do I Sort in Elasticsearch?

    You can sort Elasticsearch results using the sort keyword. The sort query requires you to provide a field under which to sort. Elasticsearch does not support sorting on fields of type text.

    In this short guide, we will look at how to sort query results in Elasticsearch.

  • How Do I Filter Elasticsearch Results?

    By default, Elasticsearch uses a relevance score to sort the results from a search query. A relevance score determines how relevant a document is depending on the queried data.

    However, we can apply filters to narrow down and maximize the relevant documents returned from a query.

    This guide will learn how to apply conditions in an Elasticsearch query to filter out more precise query results.

  • How Do I Enable Xpack in Elasticsearch

    Elasticsearch is a free, open-source, distributed search and analytics engine based on the Apache Lucene project. It provides a robust RESTful API to manage and work with the engine. Elasticsearch is fast, highly scalable, and secure.

    Elasticsearch engine is responsible for ingesting data, storage, analysis. Although Elasticsearch is powerful as a standalone service, it becomes mightier when powered with its sisters’ services such as Kibana and Logstash.

    This tutorial will show you how to install Elasticsearch and Kibana and discover how to enable Elasticsearch security feature: Xpack.

  • How Do I Change the Field Type in Elasticsearch?

    Using the _ mapping API, you can update existing fields or add new fields to an existing index.

  • Elasticsearch Range Query Tutorial

    In Elasticsearch, we can get the results of documents that match a specific range using the range query.

    Throughout this guide, you will learn to define a range parameter in your search query using Boolean expressions such as greater than, less than, and more.

  • Elasticsearch Fuzzy Search

    Have you ever wondered how search engine tools such as Google can accurately predict your search queries as you type? Or correct typos in your search queries? No, it’s not human-like reasoning.

    This functionality is possible because of a concept called fuzzy logic, fuzziness, or fuzzy search.

  • Array Sort Ruby

    Ruby is a simplistic and powerful programming language that provides exceptional features for daily programming operations.

    Because arrays are a fundamental object in Ruby and other programming languages, Ruby provides a way to sort elements without writing an excellent custom algorithm.

    This guide will teach you how to sort an array by using Ruby’s built-in methods and functionalities.

  • How to Install and configure Jenkins on Ubuntu - Unixcop the Unix / Linux the admins deams

    Jenkins is an open source automation server. It helps automate the parts of software development related to building, testing, and deploying, facilitating continuous integration and continuous delivery.

    Jenkins is a server-based system that runs in servlet containers such as Apache Tomcat. It supports version control tools, including AccuRev, CVS, Subversion, Git, Mercurial, Perforce, ClearCase and RTC, and can execute Apache Ant, Apache Maven and sbt based projects as well as arbitrary shell scripts and Windows batch commands.

    In this article, we will show you how to install Jenkins on Ubuntu Systems.

  • How to install Kdenlive 21 in Ubuntu 21.04 – NextGenTips

    In this tutorial we are going to install kdenlive on Debian 11. Kdenlive is an acronym for KDE Non-Linear Video Editor.

    Kdenlive is open source non-linear video editing suite, which support DV, HDV and many more formats.

  • Synchronize folders with Syncthing in Ubuntu 20.04 - Unixcop the Unix / Linux the admins deams

    Hello, friends. In this post, you will learn how to install Syncthing on Ubuntu 20.04 This cool tool allows us on our server to have instant access to one or more folders on many devices. So we are talking about a synchronization tool.

    So, let’s go for it.

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.