Language Selection

English French German Italian Portuguese Spanish

today's howtos

Filed under
HowTos
  • CSS: Avoid horizontal scrolling

    If you had told me last year that I’d write not one, but two blog posts about web design, I would not have believed you. Alas here we are, and I’m going to tell you about another pet peeve of mine and how to fix it.

    I view at least half the written content I consume via my mobile phone, which belongs to the class of phones with a slightly smaller than average screen. In fact, it’s width as reported by the Firefox and Chrome viewport simulators is 375 pixels wide, small but not tiny. And yet many websites I visit hinder my mobile viewing experience because of a rather simple issue: horizontal scrolling.

    There I am, happily reading a blog post or article from the front page of $NEWSAGGREGATOR. But suddenly I’m not scrolling down, but down-right and constantly have to scroll back to the left edge in order to read full sentences. My experience is even worse if the site for some reason has a minimum width larger than my screen is wide.

    Reading articles on those sites really cumbersome and more often than not I decide that it’s not worth the hassle to continue reading and move on to the next article. I find that quite sad, since the author invested time and effort to produce it, and the only reason I’m not reading is because of its subpar layouting.

  • Configure Postfix as a Send-Only SMTP Server on Ubuntu 20.04

    Postfix is an open-source Mail Transport Agent (MTA). An MTA is a component of the Simple Mail Transfer Protocol (SMTP) responsible for transferring mail from one mail server to another.

    This tutorial describes how you can install and configure Postfix as a send-only SMTP server on Ubuntu 20.04. You can use this for sending notification emails to an external address when specific events occur on the server -- such as when a backup job succeeds or fails.

  • Get a list of all virtual hosts which are defined in all apache configuration files

    Have you ever looked in the apache config files to see where a website's virtual host is defined? The apache2ctl script has a useful option that could come in good here.

  • Command line quick tips: wc, sort, sed and tr - Fedora Magazine

    Linux distributions are great to use and they have some tricks under their sleeves which users may not be aware of. Let’s have a look at some command line utilities which really come in handy when you’re the guy that likes to stick with the terminal rather than using a GUI.

    We all know that using a terminal is more efficient to use the system. In case you are editing or playing with text files on a terminal then these tools will surely make your life easy.

    For this article let’s have a look at wc, sort, tr, and sed commands.

  • How to recover deleted Logical volume (LV) in LVM

    If you have accidentally removed a logical volume (LV) or LVM meta data got corrupted or damaged in some way, it can be easily restored without losing the data using the ‘vgcfgrestore’ command.

    In this guide, we’ll show you how to restore accidentally deleted a logical volume in Linux.

    By default, LVM automatically takes backup of it’s meta data whenever a configuration change occurs on all LVM devices using the ‘vgcfgbackup’ command.

  • How to use cron on Linux | Opensource.com

    The cron system is a method to automatically run commands on a schedule. A scheduled job is called a cronjob, and it’s created in a file called a crontab. It’s the easiest and oldest way for a computer user to automate their computer.

  • OpenSSH ssh-agent Shielded Private Key Extraction (x86_64 Linux)

    While most of you guys were furiously grep-ing TermService memory for clear-text passwords I found myself searching for plain-text private keys in a ssh-agent process memory on a Linux box. Last time I did something similar was definitely before June 2019, when Shielded Private Keys were introduced in OpenSSH, therefore the tools I have available don’t work anymore.

More in Tux Machines

RK3399K based module and SBC can operate at -20 to 80℃

Forlinx announced a “FET3399K-C SOM” that runs Android 7.1 or Linux on a Rockchip RK3399K with up to 4GB LPDDR3 and 32GB eMMC plus -20 to 80℃ support. An “OK3399K-C” SBC based on it offers GbE, 4x USB, HDMI, MIPI DSI/CSI, M.2, and mini-PCIe. Forlinx announced an update to its FET3399-C SOM and OK3399-C SBC that advances from the the Rockchip RK3399 to the RK3399K, enabling a wider -20 to 80℃ operating range instead of 0 to 80℃ . The FET3399K-C SOM and OK3399K-C SBC appear to be otherwise identical to the year-old originals. Since we missed that announcement, we cover the boards in detail below. Read more

Android Leftovers

Files and GTK 4

Let’s start with some history. GTK 4 has been in development since 2016 and it’s been expected that the Files application would be ported, obviously. In 2018, a Google Summer of Code project from Ernestas Kulik produced a port of Files to GTK 3.9x, the development version of what would become GTK 4. It included a port of the custom EelCanvas widget (used to implement the Files icon view). Although it was not meant for general use, Ernestas’s port was very useful, both for the development of GTK 4 itself, as well as the preparation of the Files app for the future. Many compatible changes were applied to the master branch, which both improved the code design and laid the preparations for a later port to GTK 4. Read more

today's howtos

  • How to install RethinkDB in Rocky Linux/Alma Linux/Centos 8

    RethinkDB is a free and open-source, distributed document-oriented database originally created by the company of the same name. It is a free and open-source NoSQL database system that makes it easier for building realtime apps. It comes with a graphical user interface that can be accessible from the web browser and used to manage the database. It uses JSON to load the applications into and read the database. RethinkDB is built to store JSON documents and you can scale it to multiple machines easily. It is easy to set up and has a simple query language that supports table joins and group by.

  • How to install Ubuntu MATE 21.10 - Invidious

    In this video, I am going to show how to install Ubuntu MATE 21.10.

  • How to install Node.js on Fedora 35 – NextGenTips

    In today’s guide, I am going to take you through the installation of node.js on Fedora 35. Node.js is an open-source cross-platform, backend javascript runtime environment that runs on the V8 engine and executes javascript code outside of a web browser. A Node.js app runs in a single process, without creating a new thread for every request. It provides a set of asynchronous I/O primitives in its standard library that prevent javascript code from blocking and generally, libraries from node.js are written using non-blocking paradigms, making blocking behaviour the exceptions rather than the norm. When Node.js performs an I/O operation, like reading from the network, accessing a database or the filesystem, instead of blocking the thread and wasting CPU cycles waiting, Node.js will resume the operations when the response comes back. This allows Node.js to handle thousands of concurrent connections with a single server without introducing the burden of managing thread concurrency, which could be a significant source of bugs.

  • How to Quickly Start a Django Project and a Django App - SitePoint

    In this tutorial, we’ll learn the difference between a Django project and a Django app, and how to start a new Django project. Django is the Python web framework of choice for building web applications. It’s a mature, full-featured, flexible and open-source framework that lets you build anything from a simple CRUD application to a more complex, multi-app project like a photo-sharing app.

  • How to Make iptables Firewall Rules Persistent on Debian/Ubuntu

    Here’s how to keep iptables firewall rules persistent between reboots, so you don’t lost them after the system is rebooted. Iptables is a command-line firewall utility in Linux operating system that uses policy chains to allow or block traffic. However, by default iptables rules will not survive through a server reboot. They are reset when you reboot your Linux system. So, how do I persist iptables rules? The iptables store the rules in the system memory. In other words, it do not save these rules persistently to the disk as a file. Fortunately, there is a very easy way to keep these iptables rules persistently to a disk, which I will show you now.

  • How to Install Telegraf Configure InfluxDB2 output in Rocky Linux/CentOS 8

    In this guide we are going to learn how to install Telegraf and configure InfluxDB v2 output on a Rocky Linux server 8. This guide also works for any RHEL 8 based server like Alma Linux 8, Centos 8, Oracle Linux 8 etc. Telegraf is a plugin-driven server agent for collecting & reporting metrics, and is the first piece of the TICK stack. Telegraf has plugins to source a variety of metrics directly from the system it’s running on, pull metrics from third-party APIs, or even listen for metrics via a statsd and Kafka consumer services. It also has output plugins to send metrics to a variety of other datastores, services, and message queues, including InfluxDB, Graphite, OpenTSDB, Datadog, Librato, Kafka, MQTT, NSQ, and many others.

  • How To Install System Information Tool HardInfo 0.6 Alpha (GTK3) On Ubuntu, Pop!_OS Or Linux Mint From PPA - Linux Uprising Blog

    HardInfo is a graphical system information (hardware, system info, software) and benchmark tool. Since there have not been any new HardInfo releases since 2009 (but the tool is still under development), I have created a PPA to easily install HardInfo 0.6 alpha (from Git) built with GTK3 on Ubuntu, Pop!_OS and Linux Mint. At the end of the post, you'll also find links with newer, third-party HardInfo packages for Arch Linux and Fedora. Hardinfo system hardware information Linux The application can display system hardware information such as CPU (cores, frequencies, cache, etc.), RAM (available RAM, memory sockets, etc.), motherboard and BIOS, GPU, disks, peripherals, temperatures and much more. What's more, the tool can also show software information like the used Linux distribution and version, kernel information and loaded modules, installed development tools versions, as well as system information like boot history, memory usage, filesystem usage, display (e.g. the screen resolution, the session type: X11 or Wayland, etc.), and more.

  • How To Install MariaDB on Fedora 35 - idroot

    In this tutorial, we will show you how to install MariaDB on Fedora 35. For those of you who didn’t know, MariaDB is an open-source one of the most popular relational database management systems (RDBMS) that is a highly compatible drop-in replacement of MySQL. It offers a better storage engine along with faster caching and query performance. 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 the MariaDB 10.6 on a Fedora 35.

  • Install Cassandra In CentOS Linux - OSTechNix

    Cassandra is an open-source distributed database management system with a wide column store and a NoSQL database that can handle massive amounts of data across many commodity servers with no single point of failure. It was created by the Apache Software Foundation and is written in Java. In this article, we will go through the step-by-step process to install Cassandra in CentOS 7 Linux.