This gist contains commands to:
- Mount the VHDX File: Mount the
ext4.vhdxfile in bare mode. - Run Filesystem Check: Execute a forced filesystem check on
/dev/sda. - List Block Devices: Display a list of block devices.
| #!/bin/bash | |
| # Update package index and install prerequisites | |
| echo "Updating package index and installing prerequisites..." | |
| sudo apt update | |
| sudo apt install -y apt-transport-https ca-certificates curl software-properties-common | |
| # Add Docker's official GPG key | |
| echo "Adding Docker's official GPG key..." | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - |
| #!/bin/bash | |
| # iptables_rules.sh | |
| # | |
| # This script applies a series of iptables rules to drop traffic from specified IP ranges. | |
| # | |
| # INSTALLATION: | |
| # For Debian/Ubuntu: | |
| # sudo apt-get update && sudo apt-get install iptables iptables-persistent | |
| # | |
| # For CentOS/RHEL: |