Language Selection

English French German Italian Portuguese Spanish

today's howtos

Filed under
HowTos
  • Easily Understand Your Linux RAM Usage With Smem

    Linux memory usage can be difficult to interpret and hard to understand. With smem it’s easy to find out what memory a process is using, and which processes are using the most.

  • 5 scripts for getting started with the Nmap Scripting Engine | Enable Sysadmin

    Nmap is a popular tool for scanning and monitoring networks. There are many ways to find information using Nmap, from blogs and articles to formal training. Yet few of these learning tools discuss one of Nmap's most powerful features: The Nmap Scripting Engine (NSE).

    What is the NSE? This tool does two things. First, it allows the nmap command to accept options that specify scripted procedures as part of a scan. Second, it enables Nmap users to author and share scripts, which provides a robust and ever-evolving library of preconfigured scans.

  • Bash 02 – Variables and Such | Linux.org

    Within BASH, you can use variables. Variables are names that can represent specific information. If you remember your days in math, specifically some stage of algebra, you may recall variables. There were all the letters of the alphabet, mainly X and Y. In BASH, we can use variable names, not just letters.

    We will cover other topics to help manipulate the variables and even perform math functions. These can help you make better BASH Scripts that will calculate and manipulate data.

  • Different types of Backups

    In my previous post, I explained how I recently set up backups for my home server to be synced using Amazon's services. I received a (correct) comment on that by Iustin Pop which pointed out that while it is reasonably cheap to upload data into Amazon's offering, the reverse -- extracting data -- is not as cheap.

    He is right, in that extracting data from S3 Glacier Deep Archive costs over an order of magnitude more than it costs to store it there on a monthly basis -- in my case, I expect to have to pay somewhere in the vicinity of 300-400 USD for a full restore. However, I do not consider this to be a major problem, as these backups are only to fulfill the rarer of the two types of backups cases.

    There are two reasons why you should have backups.

    The first is the most common one: "oops, I shouldn't have deleted that file". This happens reasonably often; people will occasionally delete or edit a file that they did not mean to, and then they will want to recover their data. At my first job, a significant part of my job was to handle recovery requests from users who had accidentally deleted a file that they still needed.

  • Record your terminal session with Asciinema | Opensource.com

    Support calls are important and often satisfying in the end, but the act of clear communication can be arduous for everyone involved. If you've ever been on a support call, you've probably spent several minutes spelling out even the shortest commands and explaining in detail where the spaces and returns fall. While it's often easier to just seize control of a user's computer, that's not really the best way to educate. What you might try instead is sending a user a screen recording, but one that they can copy commands from and paste into their own terminal.

    Asciinema is an open source terminal session recorder. Similar to the script and scriptreplay commands, Asciinema records exactly what your terminal displays. It saves your "movie" recording to a text file and then replays it on demand. You can upload your movie to Asciinema.org and share them just as you would any other video on the internet, and you can even embed your movie into a webpage.

More in Tux Machines

Programming Leftovers

  • Return String From Function C++

    A way to identify a series of strings as a class member is specified in C++’s definition. The String class holds attributes as a stream of bits, with the ability to handle a single-byte character. In C++, we may retrieve a string, but we should still examine how the string will be retained and transferred. Because C++ returns elements on the heap, which has a finite amount of space, providing immense components will induce stack overflow issues that could result in errors and security flaws. If we can return a std::string object from the standard template library, we may provide a constant pointer to the string. Ascertain that the string is retained in static memory. This article outlines various approaches for returning a string from a C++ function.

  • How to round of Numbers in Java

    Java provides a built-in class known as Math class which belongs to the java.lang package. The java.lang.Math class provides numerous methods that are used to perform different numeric operations such as rounding of a number, finding square root, and so on. The Math class offers multiple methods to round off a number such as round(), ceil(), floor().

  • Writing it down

    PWC 165 refers us to mathsisfun for the algorithm to be used. Let’s write it down.

Emulate the VIC-20 home computer with Linux

Emulation is the practice of using a program (called an emulator) on a PC to mimic the behaviour of a home computer or a video game console, in order to play (usually retro) games on a computer. Home computers were a class of microcomputers that entered the market in 1977 and became common during the 1980s. They were marketed to consumers as affordable and accessible computers that, for the first time, were intended for the use of a single non-technical user. Back in the 1980s, home computers came to the forefront of teenagers’ minds. Specifically, the Amiga, ZX Spectrum, and Atari ST were extremely popular. They were hugely popular home computers targeted heavily towards games, but they also ran other types of software. The Commodore VIC-20 is an 8-bit home computer that was released in 1980/1. It featured a MOS Technology 6502 CPU, with 20KB ROM and 5KB RAM although 1.5K of the RAM was used for the video display and aspects of the BASIC and kernal. It offered limited low-resolution graphics (176 x 184) with storage provided by cassette and floppy disk. Read more

PostgreSQL Anonymizer 1.0: Privacy By Design For Postgres

PostgreSQL Anonymizer is an extension that hides or replaces personally identifiable information (PII) or commercially sensitive data from a PostgreSQL database. The extension supports 3 different anonymization strategies: Dynamic Masking, Static Masking and Anonymous Dumps. It also offers a large choice of Masking Functions such as Substitution, Randomization, Faking, Pseudonymization, Partial Scrambling, Shuffling, Noise Addition and Generalization. Read more

today's howtos

  • Web UI Dashboard for Kubernetes
  • Dmesg Command in Linux – Options + Examples
  • How to set up your graphics card in Zorin OS - Real Linux User

    Most modern Linux distributions have out of the box outstanding support for most of the available hardware components, like your graphics card, printer and WiFi adapter. Even for many relatively new hardware technologies there is support with the help of Hardware Enablement. But it is always possible that the setup procedure doesn’t come up directly with the correct or most optimized drivers for your specific internal or external devices. In this article as part of my Zorin OS tutorial series I will focus on the support of graphics cards and will show you how to install or update graphics drivers in Zorin OS.

  • How to install Vivaldi browser on Fedora 36 - NextGenTips

    Vivaldi browser is a freeware, cross-platform web browser developed by Vivaldi Technologies. It has a minimalistic user interface with basic icons and fonts and, an optionally color scheme that changes based on the background and design of the web page being visited.