Language Selection

English French German Italian Portuguese Spanish

today's howtos

Filed under
HowTos
  • How To Use A Photoresistor With Raspberry PI Pico

    Projects running different actions in function of sun exposure usually need acquiring information on the light level as a trigger to execute specified tasks. Photoresistors with Raspberry PI Pico can provide light info by acquiring analog levels from its input pins

    In this tutorial, I’m going to show you how to use a photoresistor with Raspberry Pi Pico. If you have instead a Foundation computer board, you can also use my tutorial to use Photoresistors with Raspberry PI computer board.

  • The day Pixar deleted 'Toy Story 2' by mistake before the premiere - Market Research Telecast

    Toy Story 2, the film where Jessie joins the adventures of Woody, Buzz Lightyeart and the rest of the toys, has an impressive story that few know. When the movie had been in production for over ten months and was almost ready, a simple Linux / Unix command to delete a file erased the entire tape without having a backup. It almost ended in catastrophe!

    The story happened in 1998 when someone in the pixar studios en Richmond, executed by distraction the option “remove” on your computer and in just a few seconds almost completely lost all files from Toy Story 2, including the work of the entire production staff.

  • How to rsync a directory? – Linux Hint

    Rsync stands for “Remote Sync.” It is a synchronization method for directories and files that works both locally and remotely. This tool employs the “delta algorithm” that reduces the amount of copied data by only transferring the modified part of the files or directories. In this post, we will go through the basics of using this tool to sync a directory.

  • How to use rsync dry run? – Linux Hint

    For Linux based system, rsync is a file synchronization tool. This tool is based on the “delta algorithm” that makes the remotes file syncing faster. It deploys this algorithm by transmitting only the differences or modifications in the files across the network. For syncing files, rsync does not require the set of files that exist at one of the link ends. Therefore, it is considered a lightweight program. After the complete transfer of initial files, it only syncs the changed file bits. It also provides support for offsite backups in which it syncs data to a remote system present outside of the firewall. Many Linux users also utilize rsync for mirroring websites.

  • How to use rsync with –ignore-existing? – Linux Hint

    Rsync or remote synchronization is a Linux and Unix-based utility that syncs files and directories efficiently between two devices or hosts. In this synchronization process, one is the local host or the source from which we will sync the files, and the other is the remote host, where all the synchronization will occur.

  • How to update new files with rsync – Linux Hint

    rsync is a command-line tool used for the synchronization of directories and files between two systems. It supports syncing files, directories, devices, file and directory owners, groups, and permissions. The remote-update protocol that transfers the change between directories or file content distinguishes rsync from other file synchronization commands in Linux.

    I recently needed to utilize rsync to copy and update the new files that did not already exist at the destination system or directory. Are you also willing to use rsync for only updating and transferring new files? Then follow the rest of the article to learn how to do it.

  • How Do I Increase Swap Space in Linux – Linux Hint

    Every processor in the machine needs an amount of data capacity to run and store loaded applications. All the PCs are designed to have primary and secondary memories from where programs can run, and information is being stored while executing.
    You need to think about storage seriously if you belong to IT or working as a computer scientist. In that case, bundles of software packages are required to work on.

    There could be many issues related to storage capacity in Linux systems to run applications; you need adequate RAM; otherwise, the application will crash.

    The Swap in the Linux system helps when RAM is about to exhaust. While working with multiple applications, if RAM fills up and there is no space to function, the system starts utilizing the secondary storage where Swap is located.

  • How I Give a User Permission to a Folder in Linux – Linux Hint

    Privacy is an essential part of someone’s life, whether social media or the workplace. It helps protect the personal and professional data that we don’t want to share with everybody. Sometimes, people work on sensitive data that couldn’t be shared inside or outside the firm.

    Similarly, when multiple users are connected with the system, they may need some private access to the specific resources. If we talk about files or folders/directories permission, it means you allow them to read, write, or modify the files or directories. It is essential to revert the ownership of files/folders from the users who are not part of your current account but can own them.

    It is assumed as challenging for a Linux user to access permission to a file or folder because they are a bit aware of it. Setting the permission to the specific folder is quite simple and can be done via command-line or GUI (we will later discuss how we can do it).

  • How to Copy All Files from a Directory to another Directory in Linux – Linux Hint

    Copying the file or folder means creating a new file having duplicate content as in the existing file.
    Sometimes, we need to copy the files or folders rather than having a backup program. The files can be copied with the same name, or you can change the name as well.

    Copying a file, folder, or directory is a simple and basic task in the Linux operating system. Rename, delete or copy commands are used as daily purpose operations while working with the command-line interface.

    Although there are multiple commands to copying the files, the “cp” and “rsync” command are widely used simplest approaches.

  • How to Remove User from Sudoers Centos 8 – Linux Hint

    Adding and removing the users are the most basic functions when getting started with the centOS 8. We may need to have many users and allow them sudo permissions. And sometimes, due to security purposes, you want to remove them from the host.
    The account with the sudo privileges can run the system as an administrator that a normal user cannot. These privileges allow the user to act as a root user through which the user can perform all the administrative tasks or commands.

    It is not compulsory to assign the root password to every user. If you assign them sudo permissions, they will have access to perform all the operations without knowing the root password.

  • How do I show unmounted drives in Linux – Linux Hint

    Unmounting a file/folder means it is inaccessible for the device to read and make any modification. To access the particular unmounted folder or drive, we need to mount it first. Mounted drives mean it is in the active state, and data is accessible for the system.
    Multiple types of disks can be mounted, such as USB, flash memory disk, external hard drives, etc. When a disk or drive is unmounted, it prevents the data from the device.

    In the Linux system, there are several mounted and unmounted devices. The mount command helps to mount while the umount command unmount the storage drives or filesystem.

  • How do I increase video memory in VirtualBox? – Linux Hint

    VirtualBox is a well-known open-source hypervisor used for installing and using multiple guest operating systems simultaneously on an operating system or host.

    While working in a VirtualBox and its virtual machines, if you find the display is very slow and you want to improve it or in other words, if we use true technical terms, we need to increase the video memory, then this is exactly the right place to get the answer.

    To increase the virtual machine’s video memory, all you need to do is change a little setting in the Virtual Machine settings in VirtualBox and increase the video memory as per your requirements.

  • How Do You Keep a Terminal Session Alive? – Linux Hint

    The system or server administrator often needs to keep a terminal session alive for maintaining a process or application running. However, when we close the SSH connection or do not send any information to the server, the terminal session will close. To prevent the server to auto-close the terminal session, we can perform some configuration.

  • How Do You Replace a Variable in a File Using sed? – Linux Hint

    Steam editor, shortened as sed, is a command used to find and replace any text in a file using various techniques and syntaxes. In this post, we will grasp the concepts of sed and learn how you can replace a variable or its value in a file using sed.

  • How to List All Symlinks in the Linux Directory – Linux Hint

    The symbolic link, also known as symlink or soft link, is the file type that can hold the location of a file or directory in any Linux file system. You have created a couple of Symbolic links in your Linux filesystem, and sometimes there comes a need to list all the symbolic links. This post provides you with a step-by-step guide on how to list all symlinks in a Linux filesystem or a specific Linux directory.

    From a couple of ways to list all the symbolic links in a Linux directory, we will follow the reliable and best way using the find command.

  • How to Symlink a Directory in Linux – Linux Hint

    Symlink, also known as a symbolic link in Linux, creates a link to a file or a directory for easier access. To put it in another way, symlinks are links that points to another file or folder in your system, quite similar to the shortcuts in Windows. Some users refer to symlinks as soft-links. Before moving forward, let’s elaborate soft-links and hard-links.

    Hard-links: Hard-links are the links that mirror or copy the original file. Hard-links have the same inode numbers.

    Soft-links: Soft-links are simple links that points to the original file. You can access the original file through soft links. Soft-links can point to a file or folder in any partition and have different inode numbers.

    Learning about creating symlink in Linux is a great way to improve your grip on the Linux terminal. So, let’s learn the steps involved in making the soft-links in Linux.

  • How to Boot Ubuntu into Recovery Mode – Linux Hint

    Every device comes up with the “Recovery Mode” feature which has the capability to perform different operations. These operations include cleaning the junk data, update installation, data restoration, back up or device reset.

    Similarly, in Linux distributions, we also have the accessibility of the “Recovery Mode” feature. It allows the user to reboot the system and get it with a new setup.

    We may need “recovery mode” at any time in the system. There could be many possibilities, i.e when the system slows down, it fails to start up for any reason, or if you find any glitches, then it means your system needs to recover. You can also recover broken files and test if the memory is working correctly or not.

  • How to Disable a Service in Ubuntu? – Linux Hint

    In many situations, we need to disable some unnecessary services in Ubuntu to keep the system well maintained. Disabling redundant services helps to improve the system’s efficacy as some of these services use the processor and a portion of the memory in the background. Services can be disabled temporarily or permanently, but it depends upon your need.

    Before we discuss how we can disable services in Ubuntu, let’s understand the initialization system of Ubuntu. There are two different initialization systems Ubuntu uses. The first one is the “upstart” and the second is “systemd”.

    The “upstart” is now deprecated and was last used in Ubuntu 15.04. The init system of current Ubuntu and many other distributions is “systemd”. Both systems have their own methods to enable and disable services. Since the latest distributions have been widely adopted, we will use “systemd” method to disable a service.

  • How to Know if IP Address is Static or Dynamic in Linux – Linux Hint

    On the internet, a user is recognized by a distinctive identity called IP address. This 32-bit address is dynamically assigned by Dynamic Host Configuration Protocol (DHCP). Addresses allocated by DHCP can be changed upon rebooting your system, whereas static IP address does not change.

    So why do people use static IP address? Static IP address is crucial if you run the server on your device to share files and other services. You can pay your internet service provider (ISP) to get a static IP address, or you can tweak and make your dynamic IP address into static in your system as well.

    Though both IP configurations have their own purposes and are not perfect, static IPs are easy to hack and will cost you. Whereas dynamic IPs are not suitable for hosting services, they can cause connection interruptions and less accurate geo-location.

    It is very important for you to know the type of your IP address for a number of reasons. There are many methods to check the type of your allocated IP address. This write-up is going to mention some of the approaches to learn about the type of IP address your system has. So, let’s begin.

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.