Skip to content
LinkedIn Twitter YouTube
tech-head.uk
Skip to content
  • Home
  • Categories
    • Apache
    • email
    • Linux
    • Mac
    • Monitoring
    • MySQL
    • Networking
    • PHP
    • Scripting
    • Tools
    • VMware
    • Windows
  • About
Home Archive by category "Linux"

Category: Linux

Change the date a file was last modified or created in Linux

moonoi 1 August 2022 1 August 2022Linux Linux 0

To change the date or time you can use the touch command as with the following example: The switches are as follows: -a = accessed date and time -m = modified date and time -t = timestamp – use YYYYMMDDhhmm[.ss] time format To verify they are all the same, use…

Continue reading

Add Mounted Disk to Ubuntu 20.04 or 22.04

moonoi 1 August 2022 5 July 2023Linux Linux, Ubuntu 0

Finding the new Disk Once the new physical or virtual hard drive has been installed on the system and is visible to the operating system. Once added, the new drive should automatically be detected by the operating system. Typically, the disk drives in a system are assigned device names beginning…

Continue reading

How to Add Iptables Firewall Rules

moonoi 22 May 2021 22 May 2021Linux Firewall, IPTables, Linux 0

Iptables is the software firewall that is included with most Linux distributions by default. This post guide provides a quick reference to iptables commands that will create firewall rules for everyday scenarios. Allow Loopback Connections The loopback interface, also referred to as lo, is what a computer uses to forward network connections to…

Continue reading

How to List and Delete Iptables Firewall Rules

moonoi 22 May 2021 5 December 2022Linux Firewall, IPTables, Linux 0

Iptables is a firewall that plays an essential role in network security for most Linux systems. This post will focus on listing and deleting rules in Iptables. In this post, I will cover how to do the following iptables tasks: Listing Rules by Specification To list out all of the…

Continue reading

Running Multiple Versions of PHP on Apache and Ubuntu 20.04 and 22.04

moonoi 3 January 2021 5 July 2023Apache, Linux Apache, Linux, PHP 0

PHP-FPM uses a daemon to manage the multiple PHP versions on a single server. Together we can use Apache and PHP-FPM to host multiple PHP web sites, each using a different versions of PHP at the same time. This is useful because different applications may require different versions of PHP. HP-FPM…

Continue reading

Set Up Postfix With Mailgun as SMTP Relay

moonoi 3 January 2021 9 January 2021email, Linux email, Linux, Mailgun, Postfix 0

If you ever find that you need to send out email from your server via a relay, as you cannot send them out directly from your server’s IP (eg its been black listed). Relaying the mail via Mailgun is a good option. To do this you will need to setup…

Continue reading

Nagios Error – CHECK_NRPE: (ssl_err != 5) Error – Could not complete SSL handshake

moonoi 28 May 2019 14 June 2024Linux, Monitoring, Nagios Linux, Nagios 0

There is a known error when your Nagios Monitoring Server is running Ubuntu 16.04 and you are trying to monitor a server with a newer version of Ubuntu like Ubuntu 18.04. In Ubuntu 18.04, NRPE uses a 2048 bit DH key, but in earlier versions of NRPE use a 512…

Continue reading

Fix Ubuntu Read Only File System

moonoi 30 January 2015 9 January 2021Linux File System, Linux, Ubuntu 0

I had an issue today where a Linux VM’s file system was read only after a SAN issue.  When a Linux server like Ubuntu looses access to its disks, the file system can go into read only to protect it from corruption. To resolve this you will need to run the following command:…

Continue reading

Removing non UTF-8 Characters

moonoi 5 February 2014 9 January 2021Linux Linux 0

While generating a PDF from a dynamically created HTML file, I found that the PDF generation failed as there were non UTF-8 characters in the HTML file. To try and find these characters, I used the strings command with the -n 8 switch to remove any non UTF characters: I was…

Continue reading

Setup Bind 9 DNS Logging and Statistics

moonoi 19 September 2013 14 November 2022Linux Bind, Linux, Networking, Ubuntu 0

Logging To setup logging in Bind 9 you will need to complete the following: First configure logging in your named.conf.options file Add this at the bottom of the file: Now create a directory for the logs.  Unless you edit  your /etc/apparmor.d/usr.sbin.named, you will have to use the default directory of…

Continue reading

12
  • Tags

    3Par Apache Backups Bind Cisco DKIM email File System Firewall Fonts Hacking HPE HTML5 IPTables Linux Mac Mailgun Minikatz MPDF MySQL Nagios Netbackup Networking OpenSSL PHP PHPMailer Postfix PowerShell Proxy Redis Scripting Squid Storage Tools Ubuntu UFW VMware Windows Wordpress Zimbra
2012 - 2024 © Colin Barlow
Powered by Nirvana & WordPress.
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Cookie settingsACCEPT
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT