Language Selection

English French German Italian Portuguese Spanish

today's howtos

Filed under
HowTos
  • What is Kubectl Rollout Restart?

    Kubernetes is a free and open-source platform for managing, scaling, and deploying containerized applications. If you have worked with Kubernetes before, you know how valuable it is for container management. You will also be aware that containers don’t always perform as expected. If a mistake occurs, you’ll need a quick and simple solution.

    Pods in Kubernetes should typically run until a new deployment replaces them. As a result, “restarting” a single Pod is not possible. When one of the containers fails, instead of restarting it, replace it. The small change in terminology better aligns with Kubernetes Pods’ stateless operating architecture. To eliminate old containers and begin fresh new instances, start a rollout. One can also manually remove Pods from a ReplicaSet or scale the replica count. For modern Kubernetes releases, rollouts are the preferred method, but other ways can be more suited to specific cases. This guide will show different ways to restart Kubernetes pods.

    To run the instructions in Kubernetes, you will need to install Ubuntu 20.04 on your Linux operating system. To run Kubernetes on Linux, you must also install the Minikube cluster on your workstation. Minikube creates a smooth experience by allowing you to test commands and programs systematically. As a result, it offers the best learning experience for Kubernetes beginners. The minikube cluster must be started initially. Then, in Ubuntu 20.04, go to the command line terminal you just installed. By using the Ctrl+Alt+T shortcut key or putting “Terminal” into the Ubuntu 20.04 system’s search box, you can do so.

  • What is Kubectl Proxy?

    user outside of a Kubernetes cluster can utilize the Kubernetes API server proxy to connect to cluster IPs that would otherwise be unavailable. This, for example, enables access to a service that is only available within the cluster’s network. Between the user and the in-cluster endpoint, the apiserver works as a proxy and a bastion.

    We installed Ubuntu 20.04 on our Linux operating system to run the instructions in Kubernetes. You can follow it. You must additionally install the Minikube cluster on your computer to run Kubernetes on Linux. Minikube makes testing commands and programs easy by allowing you to do so in a methodical manner. As a result, it provides the finest Kubernetes learning experience for newcomers. Initially, the minikube cluster must be started. Then, in Ubuntu 20.04, go to the newly installed command line terminal. You can do so by pressing the Ctrl+Alt+T shortcut key or typing “Terminal” into the Ubuntu 20.04 system’s search box. Either of the aforementioned techniques will start the terminal. The minikube will be started after that. Type “minikube start” into the terminal to start the minikube. The Kubernetes cluster will be launched after a virtual machine capable of operating a single node cluster has been built. It’s also compatible with the kubectl environment. This will be used to communicate with the cluster at first.

  • Create an EC2 instance on AWS using Terraform

    In this article, we will see how to create an EC2 Instance using Terraform. Before proceeding, I assume that you are familiar with the basics of Terraform and AWS EC2 Instance. If you want to learn to create an EC2 instance from the AWS console then click here.

  • Postgres Update Rows

    PostgreSQL allows you to insert, update or delete values in a column or row through built-in keywords of “INSERT”, “UPDATE”, and “DELETE”. These keywords make it less complicated, time-efficient, and scalable for users to modify their table rows or columns. In this article, we will be talking about how you can update your rows in a table using the “UPDATE” keyword in PostgreSQL. You will learn different implementations of how to update rows in a table and making it more understandable. To update rows, you need to use the “UPDATE” keyword in your statement. The use of the “UPDATE” command is to modify any changes in your table.

  • Vim Regular Expressions

    Regular expressions (or regexps for short) are tools that are used to alter text and data. They are not available as a stand-alone product but rather as part of a software or utility. UNIX grep, a program that searches files for lines that fit a pattern, is the most well-known example. Regexps can be thought of as a sophisticated pattern language. Regexps are extremely handy and can drastically minimize the amount of time it takes to complete tedious text editing tasks.

    Regular expressions appear to be fast gaining favor among VIM users as they learn about the incredible programming capability that they can bring. VIM’s syntax differs slightly from Perl’s, but it’s close enough. As a result, VIM users can benefit from Perl regular expression examples. In this article, we will discuss the most commonly used regular expressions in vim with examples. Let’s get started.

  • Postgres Insert Into Table Examples

    In PostgreSQL, you have created a table with various columns in it. Now, you need to insert data into those columns. There raises the question, how will you do that? Well, it’s not that difficult. If you follow this guide, most of your questions regarding inserting the data into the table will be answered adequately. This article will guide you on inserting values in a table by demonstrating several examples in PostgreSQL. The purpose of the “INSERT INTO” statement is to add a new row with the values of your database table. You can add single or multiple rows, as well using the “INSERT INTO” statement.

  • Execute Bash in a Pod with Kubectl?

    This article demonstrates how to get a shell into a running container using kubectl exec. This article should be done on a cluster with a minimum of two nodes that do not control plane hosts. You can use minikube to construct a cluster if you don’t currently have one.

    To run the instruction in Kubernetes, you will need Ubuntu 20.04 deployed on your Linux operating system. To run Kubernetes on Linux, you’ll also need to install the Minikube cluster on your PC. Minikube makes it simple to test commands and programmers by allowing you to do it systematically. As a result, it gives novices the best Kubernetes learning experience possible. The minikube cluster should be started first. Go to the newly installed command prompt terminal in Ubuntu 20.04. By using the Ctrl+Alt+T shortcut key or putting “Terminal” into the Ubuntu 20.04 system’s search box, you could do so. Either of the preceding ways will fully initiate the minikube on the terminal shell. The minikube will be started after that.

  • Vanilla Vim is fun | Opensource.com

    When you start Vim with the --clean option, it shows up in "vanilla" mode. No plugins, no configuration, just back to the roots. I have collected a ton of configuration statements over the years, some of them dating from MS-DOS or Windows 3.1. Here is the deal: I will start from scratch to find a good starting-point configuration with just the plugins available in Fedora 35. Will I survive a week of coding? I'll find out!

    Here are the rules: Minimum possible configuration statements and only plugins which ship with Fedora 35+. By the way, if you are not a Fedora user, continue reading. You can always install these plugins from your OS package manager manually or using a Vim plugin manager.

    Before I start, there's the elephant in the room: Vim or Neovim (fork of Vim) question. Well, this is up to you. Everything that is in this article should work for both. However, I only tested with Vim. All the skills will come in handy when you log on to a server where only vi is available. It can be either an old UNIX system, a Linux server with minimum software installed for better security, an interactive shell in a container, or an embedded system where space is precious.

More in Tux Machines

today's leftovers

  • Linux User Group of Mauritius meets Luboš Kocman

    We had a meetup in the conference room of Flying Dodo, Bagatelle, on Saturday 22 Junuary 2022. Luboš Kocman, the Release Manager for openSUSE, who came to Mauritius on vacation was kind enough to spare a few hours and meet us. [...] Luboš told us about some new things that will be coming to Leap in the future. He explained his role as a Release Manager for openSUSE and how the community as a whole is regarded as a SUSE partner. He explained the relationship between SUSE and the openSUSE community. He also talked about SUSE Liberty Linux, a new offering by SUSE which offers support for mixed Linux environment, like RHEL, CentOS and SLES. Luboš showed us code.opensuse.org/leap/features/issues where community members can request the features they want most in openSUSE Leap. Hence, contributing to making openSUSE distributions better.

  • Intro – Modern Bash (Zsh) Scripting

    Writing shell scripts used to be a major, major pain for me. I remember many frustrating sessions, where I tried to find a misplaced quote or a missing backtick. I cursed shell script and only used it as a last resort.

    In those days, I would never, ever have thought, that I would write 100K lines of shell script code for a project and not even mind very much doing so.

    The main reason for this change of mind is ShellCheck. Combined with a colorizing syntax highlighter in an editor like Sublime Text ShellCheck makes the previously tedious search for that elusive missing backtick or doublequote super easy, barely an inconvenience: [...]

  • Raspberry Pi RP2040 Board Features Circular IPS Display

    SB Components has been busy kicking off 2022 with a new selection of Raspberry Pi-based boards and we couldn’t be more excited. Just yesterday, we covered the new StackyPi project which features the RP2040 in a Pi Zero form factor. Today we’re sharing a couple of cool, "well-rounded" boards, including an RP2040 creation SB Components shared to Twitter with plans for an unspecified future release.

  • Linux 5.17 Brings Major Performance Improvements For AMD Ryzen CPUs & APUs

    With the increase of more Linux developers working on the upcoming Linux 5.17 kernel, a lot of AMD-based features will see some significant improvements and will usher in newer advancements in terms of AMD compatibility and processing in Linux.

Proprietary Leftovers

  • Apple fails to satisfy requirements set by ACM

    Apple has failed to satisfy the requirements set by the Netherlands Authority for Consumers and Markets (ACM) regarding payment systems for dating-app providers. ACM has come to this conclusion following an investigation into Apple’s statements of January 15, 2022. This means that Apple now has to pay ACM the first penalty payment of 5 million euros.

    Apple must adjust its conditions for access to the Dutch App Store for dating-app providers. In the App Store, dating-app providers must also be able to use payment systems other than Apple’s payment system. In addition, dating-app providers must have the ability to refer to payment systems outside of the app. This had been laid down in an order subject to periodic penalty payments that ACM imposed on Apple in August 2021. On December 24, 2021, the court ruled that this part of the order could be published.

  • HITMAN 3 Runs Well On Linux With Steam Play - Open-Source Radeon Performance Especially Good - Phoronix

    After being an Epic Games exclusive for its first year, HITMAN III launched on Steam last week. While there isn't a native Linux port for HITMAN 3, it does run wonderful under Steam Play with Proton for enjoying this Windows game on Linux complete with Vulkan API rendering. Here are some initial benchmarks of HITMAN 3 on Linux with NVIDIA GeForce and AMD Radeon graphics cards. [...] Most fascinating with the results is how well the performance is out of the Radeon "RADV" Vulkan driver with HITMAN 3 and stronger than NVIDIA RTX 30 series with their proprietary Vulkan driver. While not having a Radeon RX 6900 XT for testing (never received a review sample), the RX 6800 XT with HITMAN 3 could even outperform the GeForce RTX 3090.

  • The people deciding to ditch their smartphones

    The 36-year-old decided at the end of last year that getting rid of her handset would improve her mental health. So, over Christmas she told her family and friends that she was switching to an old Nokia phone that could only make and receive calls and text messages.

    She recalls that one of the pivotal moments that led to her decision was a day at the park with her two boys, aged six and three: "I was on my mobile at a playground with the kids and I looked up and every single parent - there was up to 20 - were looking at their phones, just scrolling away," she says.

Why we're migrating (many of) our servers from Linux to FreeBSD

There are many alternative operating systems to Linux and the *BSD family is varied and complete. FreeBSD, in my opinion, today is the "all rounder" system par excellence, i.e. well refined and suitable both for use on large servers and small embedded systems. The other BSDs have strengths that, in some fields, make them particularly suitable but FreeBSD, in my humble opinion, is suitable (almost) for every purpose.

So back to the main topic of this article, why am I migrating many of the servers we manage to FreeBSD? The reasons are many, I will list some of them with corresponding explanations. Read more

today's howtos

  1. [Old] On SSDs – Lifespans, Health Measurement and RAID

    Solid State Drive (SSD) have made it big and have made their way not only in desktop computing but also in mission-critical servers. SSDs have proved to be a break-through in IO performance and leave HDD far far behind in terms of Random IO performance. Random IO is what most of the database administrators would be concerned about as that is 90% of the IO pattern visible on database servers like MySQL. I have found Intel 520-series and Intel 910-series to be quite popular and they do give very good numbers in terms of Random IOPS. However, its not just performance that you should be concerned about, failure predictions and health gauges are also very important, as loss of data is a big NO-NO. There is a great deal of misconception about the endurance level of SSD, as its mostly compared to rotating disks even when measuring endurance levels, however, there is a big difference in how both SSD and HDD work, and that has a direct impact on the endurance level of SSD.

    I will mostly be taling about MLC SSD, now let’s start off with a SSD primer.

  2. My requirement for DNSSEC: a napkin

    I’m regularly made fun of when teaching DNSSEC because I tell people I use a “napkin” when creating DNSSEC keys to jot down the key tags (or key IDs), and it’s true: also during trainings I have the “napkin” – to be precise it’s a sheet of A4 paper on which I note modifications to schedule, timezones, whether I still owe answers to questions, and of course, the key IDs of DNSSEC keys.

  3. How to install and configure pCloud on Linux Mint | FOSS Linux

    PCloud offers a range of affordable storage plans that are pocket-friendly to anyone. It also provides a compelling size of free cloud storage and gives users complete control over their privacy, something many, if not all, users are looking for. Since pCloud is a Swiss-based application, it must adhere to strict Swiss privacy laws, meaning more protection for your files. However, it also puts forward a superb option for most personal and business users, hence an excellent option for all users. This software also interfaces with your browser via pCloud “save,” an extension for Opera, Firefox, and chrome. This extension allows you to directly save images to your particular “pCloud save” folder by only right-clicking on them. To add on, this app offers a pCloud web service for users who want to access their files but are away from their PCs. It works exactly like the pCloud app; there are menu links for browsing your files, accessing your public folder, pCloud rewind, backups from other cloud services, and your trash folder. Under this are links for accessing your shared folder, download links, crypto folder, and your audio files. To add a file to your web browser interface of pCloud, drag and drop the files into the specific folder by hovering over them, and pCloud will open an upload screen that displays your files uploading to the specified folder.

  4. Quickly add a new user to all groups the default user is in
  5. How to Create Fillable PDF Forms on Linux with ONLYOFFICE

    PDF (Portable Document Format) was invented many years ago by Adobe. It is currently the most popular format for sharing information due to its ease of use, security, reliability, and compatibility with all devices we use on a daily basis. This format ensures that a file does not alter its original structure under no circumstances when we open it on, for example, computers, tablets, smartphones, etc. Moreover, PDF makes it possible to add fields that other users can fill out with the required information.

  6. Install LAMP Stack on Rocky Linux 8 - LinuxCapable

    LAMP is a collection of open-source software commonly used to serve web applications that have been around since the late 1990s. LAMP is an acronym that stands for Linux, Apache, MySQL/MariaDB, and PHP and provides the components needed to host and manage web content and is still arguably the most utilized stack deployment for developers and web applications today. In the following tutorial, you will learn how to install the LAMP stack (Apache, MariaDB/MySQL, PHP) on Rocky Linux 8 Workstation or Server.

  7. Install UNRAR on Ubuntu 20.04 LTS - LinuxCapable

    UNRAR is widely known and used amongst Windows users. RAR files are much smaller archives and compress better than ZIP for most files by compressing files “together,” saving more space. UNRAR does not come pre-installed natively on Ubuntu, but it is available to install from its repository. The following tutorial will show you how to install UNRAR on Ubuntu 20.04 LTS Desktop or Server, along with the most commonly used commands.

  8. Install R Programming Language on Linux Mint 20 - LinuxCapable

    R is an open-source programming language and free software environment for statistical computing and graphical representation created and supported by the R Core Team and the R Foundation. R’s popularity is widely used among statisticians and data miners for software developers’ statistical and data analysis. In the following tutorial, you will learn how to install R using the CRAN repository and install packages from R’s CRAN repository or PPA cran2deb4ubuntu on Linux Mint 20.

  9. How to Count Number of Files and Sub-directories inside a Directory

    Hi guys, In this article we will show you how to count the number of files and sub-directories in a directory using a tree command.

  10. Find Top 10 IP Addresses Accessing Your Apache Web Server - Unix / Linux the admins Tutorials

    In this post, you will learn how to Find Top 10 IP Addresses Accessing Your Apache Web Server- The monitoring access to your web server is the existence of access log files that store information about every access activities happen in the server. Working with log files is always very important, because they give you an account of everything that has happened within a system or application in this case your Apache web server. In case of any performance or access related problems, then log files can help you point out what could be wrong or is happening. In this article, we will show you how to find the top 10 addresses that accessing your apache web server.