today's howtos
-
How to Set Up Wireguard VPN Server on Ubuntu 22.04
WireGuard is an open-source general-purpose VPN that was initially released for the Linux kernel. Now it is used across multiple platforms i.e. Windows, macOS, Android, etc. The WireGuard VPN supports both IPv4 and IPv6 connections.
WireGuard uses public and private keys to establish encrypted tunnels between peers to ensure security. It is much faster compared to other VPN protocols such as OpenVPN and IPSec.
In this tutorial, we are going to learn how to set up WireGuard on a Ubuntu 22.04 Server. First, let’s take a look at the prerequisites needed for this tutorial and make sure you have everything ready before proceeding further.
-
How to Update phpMyAdmin to the Latest Version
Sometimes the repository response time becomes slow and does not deliver the updates. Or you might be facing compatibility issues with your current version of phpMyAdmin.
Whatever the reason, this tutorial is going to show how you can update your phpMyAdmin to the latest version manually.
-
How to Create Large Files in Linux
Creating files in Linux is something we do all the time. Mostly you create an empty text file with the touch command and then add content to it.
But what about creating new files of a certain size?
When you are troubleshooting something or want to test in some particular scenario, you may require large files bigger than a certain size. Let's say 500 MB or 2 GB.
Now, you cannot create an empty file and then start writing garbage text in it. You can never be able to create a file of 1 GB in size this way.
Thankfully, you don't have to manually create large text files. There are various commands that allow you to create large files of predefined size. They won't have desired tex. Just some random garbage but you'll get the file of your desired size.
Let me show how to do that.
-
Writing Single-Line, Inline, and Multi-line Comments in Linux Shell Script
Like other programming languages, bash provides you with the option to ignore a single line, inline, or a block of lines from execution.
The comments always received the least attention due to their simplicity but played a very important role while being used in a program or script.
You can use them to describe the block of lines in your script that can help you understand what you did in the past; others can also benefit from this. Or, you can use the comments to skip the block of lines while debugging your script.
In this article, you will learn three ways to comment lines in your shell script.
-
What is Exit Status Code ($?) of Last Command in Linux
The “$?” is a built-in variable that your shell uses to store the exit status code of the last executed command in integer format and remains unchanged unless the next command is executed.
Using this exit status code, you can debug the problem that occurred while executing the command, which can be extremely beneficial in shell script error handling.
-
How To Install phpMyAdmin on Rocky Linux 9 - idroot
In this tutorial, we will show you how to install phpMyAdmin on Rocky Linux 9. For those of you who didn’t know, phpMyAdmin is a free and open-source tool that enables you to manage MySQL and MariaDB databases from the web browser. It provides a robust and user-friendly interface for managing databases, tables, database users, basic crud operations (create, read, update, delete), and so much more.
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 phpMyAdmin on Rocky Linux. 9.
-
How to Create Ubuntu, Linux OS Bootable USB in Windows
A short tutorial for beginners on creating a bootable USB stick in Windows with Ubuntu/Linux ISO images.
A bootable Ubuntu USB is handy for multiple reasons. Suppose you are a Windows user and thinking of migrating to Linux. In that case, you can experience Ubuntu desktop/Linux desktops without hampering your PC configuration or installation using a Live USB stick. Also, using this, you can boot from the USB stick directly from an Internet Cafe or any borrowed computer. Not only that, if you have a broken system, you can always use the USB stick to boot from and repair the broken system/recover data. Here are the steps to follow to create a bootable Ubuntu USB from Microsoft Windows.
-
Learn how Unix influenced Linux, understand Ansible lists and dictionaries, and more tips for sysadmin | Enable Sysadmin
Check out Enable Sysadmin's top 10 articles from November 2022.
-
Beginners Guide for Set Command in Linux
The set command is a built-in Linux command that can display or modify the value of shell attributes and positional parameters inside the current shell environment.
This modification can help to debug your script by finding undefined variables, errors, job control, printing commands as they are executed, and automatically exporting variables and functions in sub-shell.
-
Beginners Guide for Unset Command in Linux
The set command is a built-in Linux command that can display or modify the value of shell attributes and positional parameters inside the current shell environment.