Language Selection

English French German Italian Portuguese Spanish

today's howtos

Filed under
HowTos
  • How Memset Function is Used – Linux Hint

    In C, the memset() function is used to set a one-byte value to a memory block byte by byte. This function is useful for initialization of a memory block byte by byte by a particular value. In this article, we will see in detail how this function can be used. So, let’s get started.

  • How can I make Nginx Faster? – Linux Hint

    Nginx is considered one of the most commonly used web servers today. The reasons behind preferring this webserver over other web servers available in the market are as follows: 1) It does not create a separate worker thread for each incoming request; rather, its single worker process is capable of catering to multiple requests at the same time. 2) It loads the static content immediately as soon as the user requests for it because it keeps that content in its cache.

    However, there are still other hacks available out there, with the help of which we can make the performance of this webserver even better. Therefore, in today’s article, we would like to share with you some of the most efficient tips with which you can make your Nginx web server all the faster.

  • How To Connect MongoDB Compass On Windows To Remote MongoDB On Linux

    In this post, we will learn how to configure MongoDB Compass (running on windows) to connect to remote MongoDB on Centos.

  • How to Install (.NET Core) Dotnet Core on Linux Distributions [Ed: Helping Microsoft dominate the competition]
  • How to Find Files Case-Insensitive in Linux – Linux Hint

    If you have a large bulk of files in your computer system, it is very important to keep them organized so that you can easily access the files whenever you want. If you have a busy schedule, you may simply keep dumping files onto your computer system without even knowing where a particular file is located. In this situation, it can get very difficult to work, especially when you need a specific file immediately.
    The Linux operating system provides you with multiple commands that you can run in the terminal to find a specific file. Although, most of these commands are case sensitive, meaning that you need to know the exact name of your file and whether it is in lower-case or upper-case letters or a combination of both. If you do not know which letters are capitalized in the file name, then it would not be possible to locate the file that you need with these commands.

    There is a method that can be used to make a file search case insensitive using certain flags in the command-line interface. This article shows you how to perform a case-insensitive file search in Linux Mint 20.

  • How to Install NixOS – Linux Hint

    In the Linux world, there are many distributions, and these distributions usually differ in terms of package manager, environment, and packages. Once installed, you can find files in specific places in the file structure. Directories like /usr, /usr/local and /bin are used to store different files, and this standard makes it possible for an experienced Linux user to know where files are located and to run scripts that use these files over many distributions. To find out more, look up the LSB project.
    While you can run applications under NixOS because they follow the above standard, the files are not where they would be in another system. The developers of NixOS and GNU Guix have strong opinions about this system, and they have come up with clever ways to comply with it.

  • How to Install and Use i3 Window Manager on Linux

    Written in C language, the i3wm ( i3 Windows Manager ) is a lightweight, easy-to-configure, and hugely popular tiling windows manager. Unlike the conventional desktop environment, a tiling manager provides just sufficient functionality to arrange windows on your screen in an easy and appealing manner suited for your workflow.

    i3 is a minimalist tiling manager that intelligently arranges the windows on your screen in a seamless non-overlapping manner. Other tiling managers include xmonad and wmii.

    In this guide, we will explain how to install and use the i3 Windows manager on Linux desktop systems.

  • How to install Dashlane password manager on Ubuntu 20.04 - Linux Shout

    Dashlane is one of the popular password managers that is available in both free and premium versions. In the free version, the user can save 50 passwords, auto-fill Form & payment, password share up to 5 accounts, personalized security alerts, password generator, password changer, and two-factor authentication are also available. The free trial of their premium plan is available for 30 days.

    This freemium password manager is not available as an app for Linux, however, we can use it as a browser extension to get its benefits. Moreover, most of the time we need a password manager to save and autofill our passwords in browsers only. Thus, a dedicated desktop application is not a very essential need.

  • How to change time format in Wireshark – Linux Hint

    Wireshark is a popular network capturing and analysis tool. There are many options for doing better and quick analysis. One of them is using the time format in Wireshark. Let’s understand for this article how to use the time format in Wireshark.

  • How to Send Email with Attachments from Command Line in Linux – Linux Hint

    Most computer users are probably familiar with the simple process of sending and receiving emails. Apart from simple text conversations, emails can also be used for sending and receiving files. These files are transferred inside of an email as attachments. Any email client of your choice may be used for sending and receiving emails with attachments.
    As a Linux user, you might prefer terminal-based methods of sending emails with attachments. This article shows you four different methods of sending emails with attachments from the command line in Linux Mint 20.

    You can use any of the following four methods to send an email with attachments from the command line in Linux Mint 20.

    Note: For all the methods discussed below, attached the sample text file named abc.txt to every email. You can also attach other kinds of files, such as PDFs, spreadsheets, images, audios, and more.

  • How to Replace Strings and Lines with Ansible

    Ansible provide multiple ways that you can use to replace a string, an entire line or words that match a certain pattern. There are two modules that you can use to achieve this: the replace module and the inline module. We are going to dive deep and take a look at some examples of how these modules can be used in a playbook to replace strings and lines.

  • How to install KeePass Password Manager on Ubuntu 20.04 LTS

    KeePass Password Manager is a free and open-source application that can be installed on Linux such as Ubuntu 20.04 LTS easily using the APT package manager.

    This open-source password manager offers encryption algorithms AES-256, multiple User Keys,
    Portable version for Windows 10/7/8; Auto-Type, Global Auto-Type Hot Key, and Drag & Drop of passwords. The user can export saved passwords to TXT, HTML, XML, and CSV Files. If you are using LastPass, Bitwarden, Dashlane, AnyPAssword, Code wallet, and many others, then importing passwords from them is also possible in KeePass.

    Easy Database Transfer, Support of Password Groups, Time Fields and Entry Attachments, Intuitive and Secure Clipboard Handling; Random Password Generator are some other key features of it.

  • Turn off SELinux on CentOS 8 – Linux Hint

    The term “SELinux” is an acronym for Security-Enhanced Linux, and it is defined as a mechanism that is implemented within the Linux based systems for providing an advanced level of security that is essentially based on policy rules. By following these rules, an administrator can allow or deny access to a certain object for any specified user. It means that the security of your Linux based systems relies heavily on this mechanism.

    This mechanism works on three different modes of operation, i.e., Enforcing, Permissive, and Disabled. The first two modes work when you have enabled the SELinux mechanism, whereas the “Disabled” mode obviously works if your SELinux has been disabled. Also, the “Enforcing” mode works by applying all the policy rules that are written for SELinux, whereas the “Permissive” mode allows you to add new rules to the security policy.

    However, at times, the rules defined in the SELinux security policy are so strict that they start causing trouble with your routine tasks, i.e., they might cause a hindrance in an important task that you are trying to perform. In this situation, you may prefer to turn off SELinux till the time you perform that task and then turn it on again once you are done. That is why today, we would like to share with you the method of turning off SELinux on CentOS 8.

  • Remove Directory Recursively without Prompting for Confirmation in Linux – Linux Hint

    At times, you may have more than one directory within a single directory. This is known as a subdirectory, defined as a directory within a directory. Usually, the subdirectories within a directory are closely related to that directory. This means that whenever you feel like you do not need a particular directory anymore, then you also will not need its subdirectories further. So, the question arises, “How do I get rid of all the files and directories within a directory?”
    This is where the concept of recursive deletion comes into play. Recursive deletion aims to delete all the files and directories within a subdirectory. Generally, whenever you attempt to delete any file or a directory within any operating system, the OS prompts you to provide confirmation to prevent accidental deletion of important files or directories. However, if you are 100% sure of what you are going to delete, and there is a large number of files to be deleted, then you might find it troublesome to provide confirmation for every file or directory.

    In this case, you can remove a directory recursively without being prompted by the OS for confirmation every time. This article explains how to remove a directory recursively without prompting the user for confirmation in Linux Mint 20.

    To remove a directory recursively in Linux Mint 20 without prompting the user for confirmation, the following series of steps should be performed.

  • KeePassXC on Linux – Linux Hint

    In the present world, technology runs our lives as we have become fully dependent on devices such as smartphones, computers, etc. and it has become an integral part of our everyday lives. Such has been its impact that a life without these devices just cannot be imagined. With the invention of cars, planes, Google, and computers, humans have indeed become much more efficient and less erroneous. Things like artificial intelligence, cloud computing, blockchains, virtual reality, and so many others have opened astounding avenues for humans to explore and have allowed humans to step into a realm that could only have been imagined in science fiction books.

    However, our dependency on technology has also led to our privacy being more exposed than ever. Things like data breaches and cyber-attacks have become quite the norm and are growing in scale with time. Linux users have had less to worry about these issues as it has often been said that Linux systems are more secure than its counterparts, but it is important to remember that hackers are becoming more skilled, and thus, it still is not a hundred percent completely safe from malicious attacks. Therefore, it is essential for one to employ procedures with which they can protect their Linux systems. One excellent solution is to use a password manager, which shall also be the topic of our discussion in this article, where we will be focusing on one open-source password manager by the name of KeePassXC.

  • Linux Stat Command and its Usage

    Stat command is used in Linux/Unix to display detailed information about files and file systems. It is commonly used to get file timestamps.

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.