Skip to content

Instantly share code, notes, and snippets.

@valyakuttan
valyakuttan / gpg-ssh-setup.md
Created October 11, 2021 17:28 — forked from mcattarinussi/gpg-ssh-setup.md
A setup guide to use a personal gpg key for ssh authentication

GPG - SSH setup

Generating the master key

Here we create the master key. We want only Certify capability: we use the master key only to create the subkeys, Sign - Encrypt - Authenticate capabilities will be assigned to the subkeys.

Run the following command to start the master key generation process. Select the set your own capabilities creation process (type 8)

  ▶ gpg --full-generate-key --expert

gpg (GnuPG) 2.2.9; Copyright (C) 2018 Free Software Foundation, Inc.

Simple wifi with iwd and networkd for Arch Linux

Original source.

Install and Configure iwd

  1. Install iwd

         $ sudo pacman -S iwd
@valyakuttan
valyakuttan / full-disk-encryption-arch-uefi.md
Last active September 9, 2021 04:01 — forked from huntrar/full-disk-encryption-arch-uefi.md
Arch Linux Full-Disk Encryption Installation Guide [Encrypted Boot, UEFI, NVMe, Evil Maid]

Arch Linux Full-Disk Encryption Installation Guide

This guide provides instructions for an Arch Linux installation featuring full-disk encryption via LVM on LUKS and an encrypted boot partition (GRUB) for UEFI systems.

Following the main installation are further instructions to harden against Evil Maid attacks via UEFI Secure Boot custom key enrollment and self-signed kernel and bootloader.

Preface

You will find most of this information pulled from the Arch Wiki and other resources linked thereof.

Note: The system was installed on an NVMe SSD, substitute /dev/nvme0nX with /dev/sdX or your device as needed.

@valyakuttan
valyakuttan / arch_network.md
Last active August 13, 2023 15:27
Arch Linux Network Setup With dnscrypt-proxy

Arch Linux Network Setup With dnscrypt-proxy

Install and Configure iwd

  1. Install iwd and openresolv

         $ sudo pacman -S iwd openresolv
  2. Configure iwd by editing /etc/iwd/main.conf

Setup tor proxy on Arch Linux

Copied from this article.

Installation

  1. Install tor

         $ sudo pacman -S tor
         $ ## nyx provides a terminal status monitor for bandwidth usage, connection details and more.

$ sudo pacman -S nyx

Linux Cheat Sheet

  1. Linux distribution related commands

  • How to find the distribution details

    $ cat /etc/*release
    
@valyakuttan
valyakuttan / gitcheatsheet.md
Last active November 10, 2023 17:36 — forked from RalucaNicola/github-commands.md
Common ly used git commands

Reverting a File to a Previous Commit

  • see all commits made to App.js.
    $ git log -- oneline src/App.js
  • Use the SHA value to to revert to the desired version
    $ git checkout 55a1dff -- src/App.js
@valyakuttan
valyakuttan / arch_linux_cheat_sheet.md
Last active March 25, 2021 16:42
Arch Linux Cheat Sheet

Arch Linux Cheat Sheet

How to restore all packages to a specific date

Replace your /etc/pacman.d/mirrorlist with the following content:
##                                                                              
## Arch Linux repository mirrorlist                                             
## Generated on 2021-03-25                                                      
##
@valyakuttan
valyakuttan / 01-pre-installation.md
Last active March 30, 2019 12:26
How to install Arch Linux on a Fujitsu Lifebook A514

Pre-installation

Download and verify Arch Linux image

After downloading the image and PGP Signature verify it's integrity with sha1sum and gpg

$ echo '<SHA1SUM> archlinux-x.x.x-x86_64.iso' | sha1sum -c -
archlinux-x.x.x-x86_64.iso:OK
$ gpg --verify archlinux-x.x.x-x86_64.iso.sig archlinux-x.x.x-x86_64.iso
should yield good signature