Language Selection

English French German Italian Portuguese Spanish

today's howtos

Filed under
HowTos
  • Handling SELinux roles - Linux Concept

    We saw how SELinux users define the role(s) that a user can hold. But how does SELinux enforce which role a user logs in through? And when logged in, how can a user switch their active role?

  • How Do I Find Parent Process in Linux – Linux Hint

    During the execution of a program, the kernel creates a process that helps store the program’s execution details in the system’s memory. When a program executes, it becomes a process for the system. So, we can say a process is a program until it executes.

    The process created by the kernel is known as the “Parent Process,” and all the processes derived from the parent process are termed as “Child Processes.” A single process may consist of several child processes having a unique PID but with the same PPID.

  • How do I fix SSH permission denied public key – Linux Hint

    The Secure Shell (SSH) key is the access credential for SSH protocol. Although the SSH protocol supports multiple approaches for authentication, the Public key is considered one of the best ways that help in automated and interactive connections.

    While working on the unsecured open networks, the SSH protocol helps for remote connections among different devices. Using this, users can transfer the files remotely and also manage the network.

    As there are multiple devices on the unsecured networks, the SSH uses a set of keys, i-e Private Key and Public Key, to create a secure connection between devices remotely.

  • How to Catch All Exceptions in Python – Linux Hint

    Programmers frequently classify exceptions as code faults that result in errors whenever the program is executed. Exceptions represent errors that take place as a result of a script. Some programmers still can’t tell the difference between mistakes as well as exceptions. The majority of such errors seem logical. In Python, exceptions are caught using straightforward logic. Whenever a Python interpreter encounters an exception, it terminates the workflow. It is dealt with by going through the calling procedure. The software will crash if this is not done.

  • How to Install Memcached on Ubuntu 21.04 - Unixcop

    Memcached is a general-purpose distributed memory-caching system. It is often used to speed up dynamic database-driven websites by caching data and objects in RAM to reduce the number of times an external data source (such as a database or API) must be read. Also it is a high performance free and opensource in-memory key-value store used as a caching system. It’s mainly used for speeding up database-driven sites and web applications by caching data in RAM. In so doing, it significantly reduces the frequency that an eternal source of data read.

    Memcached was first developed by Brad Fitzpatrick for his website LiveJournal, on May 22, 2003. It was originally written in Perl, then later was rewritten in C by Anatoly Vorobey, then employed by LiveJournal. Memcached now used by many other systems

    Memcached is simple and easy to deploy and its API is widely available for a wide range of popular programming languages such as Python.

  • How to Install Package to a Specific Directory Using Yum – Linux Hint

    Installing packages in any Linux-based Operating system is like a task that happens on a daily basis, and it is seen that we often need to install some packages for a brief period. However, the packages required for very little time stay inside our system and consume the disk space.

    In a system where we have fewer resources in terms of disk space, the disk space stays almost full, and we have to keep check on unwanted applications and packages and remove them from time to time.

    For such scenarios where you have to install and use some packages for a short period, it is a better practice and recommended to install the packages in some specific or temporary directory. The directory will stay separate from all other package clusters, and you can easily remove the packages.

  • How to configure authorized_keys of SSH on Ubuntu – Linux Hint

    SSH or Secure Shell is designed to access the content of the remote host for doing different types of tasks remotely. SSH is not installed on Ubuntu by default. The SSH can provide password-protected encrypted access to the remote system after the installation. The SSH server runs on the remote host, and the SSH client runs on the system that will establish the remote connection. The authorized_keys file is the most important part of the SSH connection. It specifies the keys used to authenticate the users permitted to log into the remote host using public-key authentication. The uses of this file for the SSH connection have explained in this tutorial.

  • How to see rsync progress? – Linux Hint

    rsync is a popular tool for synchronization files between two computer systems. It is a valuable utility for syncing files locally and remotely. This file transfer and synchronization tool are often seen in Linux or Unix-based systems. For saving network bandwidth, rsync employs a type of delta encoding. This delta encoding enables rsync to send only the differences between the destination and the source files.

  • SELinux users and roles - Linux Concept

    In SELinux-enabled environments, the login binary calls the libselinux API to establish the initial mapping between SELinux users and local users. Then, after finding the right SELinux user, the system looks up the role and domain that the user should be in and sets that as the user’s context.

  • User-oriented SELinux contexts - Linux Concept

    Once logged in to a system, our user will run inside a certain context. This user context defines the rights and privileges that we, as a user, have on the system.

  • A comprehensive guide on how to use MySQL | FOSS Linux

    MySQL is the globe’s most popular open-source database software used to manage the relational database. Besides having powerful features, it is fast, scalable, and easy to use than Microsoft SQL Server and Oracle database. As a result, PHP scripts are commonly used for creating powerful and dynamic server-side/web-based applications.

    Note: A database is a structured collection of data

    SQL is an abbreviation for Structured Query Language, and it is the standardized language used to access the database.

  • Navicat for MySQL | FOSS Linux [Ed: Not FOSS but proprietary though]

    If you have been facing challenges related to MySQL/MariaDB administration and/or development and are in dire need of an ideal solution, then look no further than Navicat for MySQL. With Navicat for MySQL existing as a single application, making a MySQL or MariaDB database connection is easy and simultaneous.

    Navicat for MySQL shares awesome compatibility with cloud database infrastructures like Microsoft Azure, Oracle Cloud, Amazon RDS, Google Cloud, and Amazon Aurora. If you are looking for a reliable solution to manage, develop, and maintain databases, the all-inclusive frontend nature of Navicat for MySQL is intuitive and graphically powerful enough to get the job done.

    This database administration solution is applicable and supported by popular OS environments like Windows, macOS, Linux, and iOS.

  • Document Typeset with LaTeX and TeXstudio on Fedora – Part 2 | FOSS Linux

    LaTeX is a free and open-source software for typesetting documents. It is a preparation system for high-quality typesetting and the defacto for large technical documents, computer science, and mathematics documents. For example, you can use LaTeX to create math formulas, equations, cover letters, present assignments or thesis, or edit presentations, syllabi, and exams.

    Leslie Lamport originally wrote LaTeX to extend the functionality of the TeX typesetting engine by Donald Knuth. Technically, LaTeX is a set of macros and commands for the programming language TEX.

    This article is the second part of our LaTeX typesetting series. You can refer to Part 1 for a comprehensive introduction to LaTeX, learn about page designs, formatting, tables, lists, and how to work with graphics. Part 2 will cover how to typeset math formulas, cross-references, listing contents, and bibliographies.

  • Install and Use Glances to monitor Ubuntu 20.04 Server or desktop

    Let’s see the steps and commands to install Glances on the monitoring tool on Ubuntu 20.04 LTS and start keeping track of system processes and resources.

    Glances is a system monitor for the command line. Compared to the classic top and htop, the program offers process information as well as additional real-time statistics on the file system, network, hardware components, etc. It has a ncurses interface and can be easily operated with the keyboard. It was created with Python and the library psutil, thus, supports any major platform having python installed such as Windows, macOS, Linux, FreeBSD, and Android.

    If you want to monitor a remote computer, you can use the integrated web server in addition to an SSH connection, server/client mode, or API (XML-RPC and RESTful). Stats can also be exported to files or external time/value databases such as InfluxDB, Cassandra, CouchDB.

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.