Summa’s notes 1, You may need to stop the httpd service first if you are using a non-hosting platform. For example, I am using Centos Stream, to stop the web service, systemctl stop httpd.service When the update is finished, to start the httpd service, systemctl start httpd.service 2, I skipped the steps for deactivating and Read More
Category: CentOS
How to Fix “Failed to download metadata for repo AppStream” on CentOS 8
Updated on February 10, 2022 I installed a minimalist CentOS 8 on one of my servers. Installation went successful, however, when I tried to update the system using yum update I see this error message: Failed to download metadata for repo. Below is the complete error. [root@autocontroller ~]# yum update CentOS-8 – AppStream 70 B/s | 38 Read More
How to Migrate from CentOS 8 to CentOS Stream
Author: Vivek Gite Step 1 – Backup Like every seasoned developer and sysadmin, I backed up all my project files, MySQL database and config files. So if something goes wrong, I should be able to go back quickly. That is all. Hence, keep verified backups. I have following software installed: ELEP repo enabled for CentOS 8 Read More
How To Fix a Missing Content-Security-Policy on a Website
by: Kent Ickler Content-Security-Policy-What-What? Content-Security-Policy is a security header that can (and should) be included on communication from your website’s server to a client. When a user goes to your website, headers are used for the client and server to exchange information about the browsing session. This is typically all done in the background unbeknownst Read More
How to Send Mails From Command Line in Linux (Postfix)
In this tutorial, we shall be using an enhanced version of the mail command. It’s called mailx (or just mail when installed), and it can do many more things than what the older mail command from gnu mailutils package can do. How does it work The mail/mailx command needs a local smtp server (MTA) running Read More
Linux / UNIX: Bash Script Sleep or Delay a Specified Amount of Time
Author: Vivek Gite How do I pause for 5 seconds or 2 minutes in my bash shell script on a Linux or Unix-like systems? You need to use the sleep command to add delay for a specified amount of time. The syntax is as follows for gnu/bash sleep command:sleep NUMBER[SUFFIX] Where SUFFIX may be: s for seconds Read More