Giter VIP home page Giter VIP logo

setup.arch-xorg-dwm's Introduction

Arch Linux ISO Downloader and Verifier

This script automates the process of downloading the latest Arch Linux ISO, along with its checksum and signature files, and then verifies both the checksum and the signature to ensure the integrity and authenticity of the downloaded ISO.

How it Works

The script performs the following actions:

  1. Downloads the Arch Linux ISO, BLAKE2b checksum (b2sums.txt), and the PGP signature file.
  2. Verifies the downloaded ISO against the BLAKE2b checksum.
  3. Downloads the release signing PGP key.
  4. Verifies the ISO's PGP signature against the downloaded key.

Requirements

  • Linux environment.
  • wget, b2sum, sq, and gpg installed.

Usage

  1. Save the script in a file, e.g., download_arch.sh.
  2. Make the script executable:
    chmod +x download_arch.sh
    
  3. Run the script:
    ./download_arch.sh
    

Script

#!/bin/bash

# Set the URL for the download
BASE_URL="https://mirror.informatik.tu-freiberg.de/arch/iso/2023.11.01"
ISO_FILE="archlinux-2023.11.01-x86_64.iso"
B2SUMS_FILE="b2sums.txt"
SIGNATURE_FILE="$ISO_FILE.sig"

# Download the ISO, checksum, and signature files
wget "$BASE_URL/$ISO_FILE"
wget "$BASE_URL/$B2SUMS_FILE"
wget "$BASE_URL/$SIGNATURE_FILE"

# Verify the BLAKE2b checksum
b2sum -c $B2SUMS_FILE

# Download the release signing key
sq wkd get [email protected] -o release-key.pgp

# Verify the ISO signature
sq verify --signer-file release-key.pgp --detached $SIGNATURE_FILE $ISO_FILE

Note

  • Ensure an active internet connection.
  • If verification fails at any step, do not use the downloaded ISO.

setup.arch-xorg-dwm's People

Watchers

Martin Christoph Frank avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.