DMARC Options

Policy Options p=none: With this directive, DMARC does not change how email is handled by the receiver. In other words, no action is taken/messages remain unexamined. p=quarantine: This policy sets aside questionable emails for further processing, which are usually exiled to the “Junk” folder. p=reject: When emails do not come from your email infrastructure, this designation has the receiver outright reject those messages that fail DMARC authentication. Failure Reports fo=0:…

Setup Rocky 9 Linux SMTP Server

System Configuration Upgrade Current System dnf install epel-release -y dnf upgrade -y Configure SELinux setenforce 0 sed -i 's/^SELINUX=.*/SELINUX=disabled/g' /etc/selinux/config Disable Firewall systemctl disable firewalld.service Install Core Tools dnf install bind-utils bzip2 cups cifs-utils enscript ftp gdb ghostscript java-1.8.0-openjdk-headless java-11-openjdk-headless krb5-workstation ksh lftp lrzsz lsof libnsl lzop mariadb-server mlocate mutt ncompress net-tools net-snmp net-snmp-utils net-tools nfs-utils nmap nvme-cli openldap-clients openssh-clients psmisc realmd rsync samba-client strace sysstat tcpdump telnet telnet-server tmux…

How to Install .NET 8 on Rocky Linux 9

Introduction .NET is a popular free, cross-platform, open-source developer platform for building many different types of applications. With .NET, you can use multiple languages, editors, and libraries to build for web, mobile, desktop, games, and IoT. This guide will walk you through the steps to install .NET 8 on Rocky Linux 9. Prerequisites A machine running Rocky Linux 9. Apache Installed Sudo or root access on the machine. Step-by-Step Installation…

Samba Setup Rocky

Step 1: Install Samba on Linux To get started out with Samba, install the Samba core packages including the client package: dnf install -y samba samba-common samba-client Install-Samba in LinuxOpen https://www.tecmint.com/wp-content/uploads/2021/12/Install-Samba-in-Linux.png The command installs the packages specified along with the dependencies as displayed on the output. After the installation is complete, you will get a summary of all the packages that have been installed. Samba Installation CompletesOpen https://www.tecmint.com/wp-content/uploads/2021/12/Samba-Installation-Completes.png Step 2:…

Raspberry Pi Kiosk

Configure kiosk mode Install the following sudo apt install xdotool unclutter Create a kiosk file sudo nano /home/pi/kiosk.sh Paste the following in #!/bin/bashxset s noblankxset s offxset -dpmsunclutter -idle 0.5 -root &sed -i 's/"exited_cleanly":false/"exited_cleanly":true/' /home/pi/.config/chromium/Default/Preferencessed -i 's/"exit_type":"Crashed"/"exit_type":"Normal"/' /home/pi/.config/chromium/Default/Preferences#/usr/bin/chromium-browser --noerrdialogs --disable-infobars --kiosk https://www.raspberrypi.com/ https://time.is/London &/usr/bin/chromium-browser --no-sandbox --window-size=1024,768 --kiosk --window-position=0,0 https://hdrcameras.onling.com:5001/webman/3rdparty/SurveillanceStation/?launchApp=SYNO.SS.App.VideoViewerVue.Instance&SynoToken=W9ZwQIG7NiF1Q & while true; do xdotool keydown ctrl+Tab; xdotool keyup ctrl+Tab;sleep 10 done Make it executable chmod 777 kiosk.sh Make a service…

Rocky 9 – Apache Server Multiple Site Setup

What you’ll need Rocky 9 Installation  Install Apache Add extra directories Configuration The site configuration Configuration https using an SSL/TLS certificate Placement of the SSL/TLS keys and certificates¶ The site configuration - https Taking it live Migrating from old server to new another SAMBA Configuration What you’ll need A server running Rocky 9 Linux Know the vi text editor, here's a handy tutorial. Basic knowledge of installing and running web…

VMWare – Delete inacessible datastore

Rename the store Use the web client to rename each store and a DEL in front of the name Access the shell of the appliance server and then the database VMware vCenter Server 8.0.2.00300 Type: vCenter Server with an embedded Platform Services Controller Connected to service * List APIs: "help api list" * List Plugins: "help pi list" * Launch BASH: "shell" Command> shell Shell access is granted to root…

Linux Bag Of Tricks

Introduction This document has many useful command. Linux Set Time Examples You can also simplify format using following syntax: date +%Y%m%d -s "20081128" To set time use the following syntax: date +%T -s "10:13:13" Use the following syntax to set new data and time: date --set="STRING" For example, set new data to 2 Oct 2006 18:00:00, type the following command as root user: date -s "2 OCT 2006 18:00:00" OR…

MySQL Bag Of Tricks

Introduction This document has many useful command. MySql Kill users You can use the following syntax to lookup users within a database SHOW PROCESSLIST; SELECT group_concat(concat('KILL ',id,';') SEPARATOR ' \n') FROM information_schema.processlist WHERE `db` LIKE 'ashe%' AND `user` ='kiwilive'; Then cut and paste into a query window

LVM Resize – How to Decrease an LVM Partition

Note: In this example we are working in CentOS 7, some commands may differ in different Linux distributions. As of CentOS 7 the default file system is XFS which is not currently possible to shrink, this example is working with the ext4 file system. In this example we will work through shrinking logical volume /var/centos/var from 10GB to 5GB. Overview of Logical Volume Manager (LVM) Before working through the resizing…