Language Selection

English French German Italian Portuguese Spanish

today's howtos

Filed under
HowTos
  • How to Connect to a VPN on Ubuntu - Linux Stans

    In this tutorial, we’re going to show you how to connect to a VPN on Ubuntu. Beginner-friendly, step-by-step instructions with screenshots.

  • How to Install Manjaro Linux on PC

    Virtual machines are a great way to run new operating systems without installing them directly on your computer. You can try out your favorite Linux distributions before switching to them permanently, given the isolated, yet easy-to-install procedures.

    If you are sure about installing Manjaro directly on your PC, you can create a bootable USB/CD and use it to boot your computer. On the contrary, if you want to try Manjaro Linux before installing it on your system, you can use a virtual machine.

    Here's how to install Manjaro Linux on your PC, both directly and using VirtualBox.

  • To be fully useful, Prometheus histograms want their cumulative sums

    True Prometheus histograms have a specific set of metrics and time series that they're made up of. As covered in the documentation, there are a bunch of '<basename>_bucket' time series, a '<basename>_count' time series, and a '<basename>_sum' time series that's the cumulative sum of all of the observations that are in the histogram. How all of this works is covered in, eg, How does a Prometheus Histogram work?.

    However, not all external sources of histogram data provide a cumulative sum. For example, ZFS IO statistic histograms just give you histogram bucket counts. When generating Prometheus histogram metrics from such histogram sources, it seems common to generate a _sum metric (well, time series) that's just 0. This gives you something that will work in many situations, but after having wrestled with histograms built this way I've come to feel that you want to avoid it if possible. Prometheus histograms are more useful with their cumulative sums, and you can't rebuild an approximation of this information in PromQL as far as I know.

  • How to set CORS headers on your S3 bucket

    Cross-Origin Resource Sharing (CORS) is an HTTP-header based mechanism that allows a server to indicate any origins (domain, scheme, or port) other than its own from which a browser should permit loading resources. CORS also relies on a mechanism by which browsers make a “preflight” request to the server hosting the cross-origin resource, in order to check that the server will permit the actual request. In that preflight, the browser sends headers that indicate the HTTP method and headers that will be used in the actual request.

    The CORS standard describes new HTTP headers which provide browsers a way to request remote URLs only when they have permission. Although some validation and authorization can be performed by the server, it is generally the browser’s responsibility to support these headers and honor the restrictions they impose.

  • How to use the Pamac GUI package tool in Arch Linux

    Arch Linux users love the terminal, however, it’s not the only way to use the operating system. Introducing Pamac, the default package tool for Manjaro Linux. With it, users can install everything from native Arch Linux packages, AUR packages, and even Snap and Flatpak if they choose.

    If you’re on Arch Linux, or an operating system based on it (Garuda, BlackArch, etc.) and want a nice GUI to install packages, this guide is for you. Follow along as we show you how to install and use Pamac.

  • How to Install Java on Pop!_OS 22.04

    Despite most of the web moving away from Java applications and towards browser-integrated apps, there are still some things that require the Java runtime. If you’re on Pop_OS Linux and need the latest version of Java for an app, we can help you.

    This guide will go over the various ways you can get the Java runtime environment working on Pop_OS 22.04 (and newer).

  • How to sync your sticky notes to Evernote on Linux

    If you use virtual sticky notes on Linux, you’ve probably wondered if it is possible to sync them across desktops via the internet. Well, if you have an Evernote account, you can do this with Eversticky.

    Eversticky is a sticky notes application with Evernote integration. With this, you can create stickies on your desktop and ensure they get backed up to your Evernote account. Here’s how to use Eversticky on your system.

More in Tux Machines

today's howtos

  • How to Change Comment Color in Vim – Fix Unreadable Blue Color

    Are you annoyed about the comment color in vim? The dark blue color of the comment is often hard to read. In this tutorial, we learn how to change the comment color in Vim. There are few methods we can use to look vim comment very readable.

  • How to Add Repository to Debian

    APT checks the health of all the packages, and dependencies of the package before installing it. APT fetches packages from one or more repositories. A repository (package source) is basically a network server. The term "package" refers to an individual file with a .deb extension that contains either all or part of an application. The normal installation comes with default repositories configured, but these contain only a few packages out of an ocean of free software available. In this tutorial, we learn how to add the package repository to Debian.

  • Making a Video of a Single Window

    I recently wanted to send someone a video of a program doing some interesting things in a single X11 window. Recording the whole desktop is easy (some readers may remember my post on Aeschylus which does just that) but it will include irrelevant (and possibly unwanted) parts of the screen, leading to unnecessarily large files. I couldn't immediately find a tool which did what I wanted on OpenBSD [1] but through a combination of xwininfo, FFmpeg, and hk I was able to put together exactly what I needed in short order. Even better, I was able to easily post-process the video to shrink its file size, speed it up, and contort it to the dimension requirements of various platforms. Here's a video straight out of the little script I put together: [...]

  • Things You Can And Can’t Do

    And it got me thinking about what you can and can’t do — what you do and don’t have control over.

  • allow-new-zones in BIND 9.16 on CentOS 8 Stream under SELinux

    We run these training systems with SELinux enabled (I wouldn’t, but my colleague likes it :-), and that’s the reason I aborted the lab: I couldn’t tell students how to solve the cause other than by disabling SELinux entirely, but there wasn’t enough time for that.

  • Will the IndieWeb Ever Become Mainstream?

    This is an interesting question, thanks for asking it, Jeremy. I do have some history with the IndieWeb, and some opinions, so let’s dive in.

    The short answer to the question is a resounding no, and it all boils down to the fact that the IndieWeb is really complicated to implement, so it will only ever appeal to developers.

  • How to Install CUPS Print Server on Ubuntu 22.04

    If your business has multiple personal computers in the network which need to print, then we need a device called a print server. Print server act intermediate between PC and printers which accept print jobs from PC and send them to respective printers. CUPS is the primary mechanism in the Unix-like operating system for printing and print services. It can allow a computer to act as a Print server. In this tutorial, we learn how to set up CUPS print server on Ubuntu 22.04.

Open Hardware: XON/XOFF and Raspberry Pi Pico

  • From XON/XOFF to Forward Incremental Search

    In the olden days of computing, software flow control with control codes XON and XOFF was a necessary feature that dumb terminals needed to support. When a terminal received more data than it could display, there needed to be a way for the terminal to tell the remote host to pause sending more data. The control code 19 was chosen for this. The control code 17 was chosen to tell the remote host to resume transmission of data.

  • Raspberry Pi Pico Used in Plug and Play System Monitor | Tom's Hardware

    Dmytro Panin is at it again, creating a teeny system monitor for his MacBook from scratch with help from our favorite microcontroller, the Raspberry Pi Pico. This plug-and-play system monitor (opens in new tab) lets him keep a close eye on resource usage without having to close any windows or launch any third-party programs. The device is Pico-powered and plugs right into the MacBook to function. It has a display screen that showcases a custom GUI featuring four bar graphs that update in real-time to show the performance of different components, including the CPU, GPU, memory, and SSD usage. It makes it possible to see how hard your PC is running at a glance.

Security Leftovers

How to Apply Accent Colour in Ubuntu Desktop

A step-by-step tutorial on how to apply accent colour in Ubuntu desktop (GNOME) with tips for Kubuntu and others. Read more