Language Selection

English French German Italian Portuguese Spanish

today's howtos

Filed under
HowTos
  • What OpenSSH sshd logs when a session disconnects (on Linux)

    There are many reasons you might care about the causes of SSH session disconnections, including that you're trying to troubleshoot potential network or firewall problems and you want to see if people are getting abruptly disconnected from their SSH sessions or if the sessions are ending normally.

  • Easy spamAssassin with OpenSMTPD

    Today I will explain how to setup very easily the anti-spam SpamAssassin and make it work with the OpenSMTPD mail server (OpenBSD default mail server). I will suppose you are already familiar with mail servers.

  • Record system audio output with ALSA

    This was written & tested on an Archlinux system, but I believe it applies to most Linux/ALSA systems.

  • CSRF Attack Examples and Mitigations

    Cross-Site Request Forgery (CSRF) attacks allow an attacker to forge and submit requests as a logged-in user to a web application. CSRF exploits the fact that HTML elements send ambient credentials (like cookies) with requests, even cross-origin.

    Like XSS, to launch a CSRF attack the attacker has to convince the victim to either click on or navigate to a link. Unlike XSS, CSRF only allows an attacker to make requests to the victim’s origin and does not give the attacker code execution within that origin. This does not mean CSRF attacks are any less important to defend against. As we’ll see in the examples, CSRF can be as dangerous as XSS.

  • Ubuntu: ping computers on the network [Guide]

    Do you need to ping a computer on your local network from your Ubuntu PC? Can’t figure out how to do a ping on Ubuntu? We can help! Follow along as we show you how to ping computers on the local network in Ubuntu!

  • Louis-Philippe Véronneau: Preventing an OpenPGP Smartcard from caching the PIN eternally

    While I'm overall very happy about my migration to an OpenPGP hardware token, the process wasn't entirely seamless and I had to hack around some issues, for example the PIN caching behavior in GnuPG.

    As described in this bug the cache-ttl parameter in GnuPG is not implemented and thus does nothing. This means once you type in your PIN, it is cached for as long as the token is plugged.

    Security-wise, this is not great. Instead of manually disconnecting the token frequently, I've come up with a script that restarts scdameon if the token hasn't been used during the last X minutes.

  • Paint faster repetitive patterns in perspective, step by step. - David Revoy

    Painting complex patterns for background in perspective can really be tedious and a long task. Over the years, I came up with my own technique, using the cool features of Krita to spice up my background while lowering the time budget spent on this areas. In this video I'm sharing this technique! I'm detailing the process so this video is very beginner friendly.

  • Create a KDE Plasma Theme with No Code! Part 4

    Create a KDE Plasma Theme with No Code! Part 4

  • Install Plex Server on Raspberry PI - peppe8o

    Being one of most famous media server, Plex brings your media on a single app available for any device and from everywhere. Raspberry PI computer boards fits perfectly plex server needs and are a good option to run your server from your home

    In this tutorial I’m going to show you how to install Plex server in your Raspberry PI.

    Plex has a huge number of followers. It is really flexible and makes your media together, accessible in simple way from any device. Moreover, it allows you to reach a number of new services, so discovering web TVs, Shows, channels, podcasts and so on.

  • Creating a Kodi media PC using a Raspberry Pi 4

    Here's how I set up a media PC using Kodi (formerly XMBC) and a Raspberry Pi 4.

  • How to share files between Android and Linux wirelessly | FOSS Linux

    Are you looking for a way to wirelessly transfer files between your Android phone/tablet and your Linux PC? If so, then you have come to the right place. Now there are no native solutions for sharing files between the two platforms. You need to make use of third-party solutions, of which there are plenty. However, for this tutorial, we will be using the KDE Connect app to transfer the files.

    But before we get started, let’s get a quick idea of KDE Connect and the features it brings to the table.

  • How To Install Erlang on Debian 10 - idroot

    In this tutorial, we will show you how to install Erlang on Debian 10. For those of you who didn’t know, Erlang is a programming language used to build massively scalable soft real-time systems with requirements for high availability. The Erlang runtime system has built-in support for concurrency, distribution, and fault tolerance.

    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 Erlang on a Debian 10 (Buster).

  • Migrate from WordPress to Jekyll in 3 Steps

    So, you are here because you need to migrate from WordPress to Jekyll. You are at the right place! I’ll explain to you how to do just that in 3 steps (this takes approximately 30 mins).

  • [Old] From Wordpress To Jekyll

    This method of maintaining a blog appeals mainly to coders, so I’m assuming you’re comfortable with command line operations, already have Git installed, and have a basic working knowledge of HTML and CSS. Jekyll is written in Ruby, so you’ll need Ruby and Bundler installed.

    Your first step is to install Jekyll Exporter on your WordPress site, which will add an “Export to Jekyll” command to your “Tools” menu. This converts all your WordPress posts and drafts to Markdown, organizes them into the Jekyll directory structure, generates a _config.yml, and saves it all in a .zip archive. It also includes your wp-content directory with all your site’s images. It does not, however, attempt to convert your design theme. More on that later.

  • [Old] How To: WordPress to Jekyll

    After I was sure that I wanted to embark on this journey I had to think about how this would all work and what sacrifices I would have to make. I would need to implement some custom stuff to get some features and pages I was used to with WordPress. It was also important that I kept the exact same URL structure.

    Here was the initial list of tasks that had to be completed/built:

    Import WordPress database and retain tags

    [...]

  • [Old] Moving From WordPress to Jekyll

    When I first started this blog back in 2008 I hosted it myself using an Arch Linux instance with Linode. For the blogging platform I used WordPress MU because it was, and still is, one of the most popular blogging platforms. At that time the MU version was how multiple domains (subdomains) were supported on a single installation. Later it was merged into standard WordPress. It was easy to use and Administer. For a long time I was happy with this setup but at a certain point upkeep was taking to much of my time.

    In December 2017 I decided to move to WordPress.com and let them handle all of the system maintenance. The idea was it would give me more free time and I wouldn’t have to worry about security issues. Also, If I ran into a problem they have people on staff to help.

    The only plugins I was using were ones provided by JetPack so I wasn’t going to lose any functionality. I made the switch moved off of my Arch Linux instance and shut it down.

  • [Old] Why WordPress to Jekyll Migration?

    WordPress to Jekyll migration is really simple for a small blog. But when there are too many posts, you might encounter a lot of errors.

    I cannot cover everything under the sun but I have tried to present all the issues I have faced while migrating.

    We have to export all the pages, posts and media. Pages and posts will be converted to markdown while exporting. So we can directly put these things inside any Jekyll theme. It should work as expected with some troubleshooting.

    Jekyll Export plugin is not so compatible with other WordPress plugins. So try to deactivate all other plugins before performing the export. Try to achieve a plugin-free WordPress site and then run Jekyll Export.

    Here is how you can Migrate from WordPress to Jekyll.

  • A look at search engines with their own indexes

    This is a cursory review of all the indexing search engines I have been able to find.

    The three dominant English search engines with their own indexes1 are Google, Bing, and Yandex (GBY). Many alternatives to GBY exist, but almost none of them have their own results; instead, they just source their results from GBY.

    With that in mind, I decided to test and catalog all the different indexing search engines I could find. I prioritized breadth over depth, and encourage readers to try the engines out themselves if they’d like more information.

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.