Skip to content

Instantly share code, notes, and snippets.

View AZDNice's full-sized avatar

AZDNice

  • Hot Azz Arizona
View GitHub Profile
@AZDNice
AZDNice / 01-generate-ed25519-ssh-key.sh
Created May 9, 2021 22:47 — forked from grenade/01-generate-ed25519-ssh-key.sh
generate ed25519 ssh and gpg/pgp keys and set file permissions for ssh keys and config
#!/bin/bash
# generate new personal ed25519 ssh key
ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_ed25519 -C "rob thijssen <[email protected]>"
# generate new host cert authority (host_ca) ed25519 ssh key
# used for signing host keys and creating host certs
ssh-keygen -t ed25519 -f manta_host_ca -C manta.network
eval "$(ssh-agent -s)"
@AZDNice
AZDNice / source.list
Created July 19, 2020 05:51 — forked from malikalichsan/sources.list
/etc/apt/source.list for ubuntu 19.10
# deb cdrom:[Ubuntu 19.10 _Eoan Ermine_ - Release amd64 (20191017)]/ eoan main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://id.archive.ubuntu.com/ubuntu/ eoan main restricted
# deb-src http://id.archive.ubuntu.com/ubuntu/ eoan main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://id.archive.ubuntu.com/ubuntu/ eoan-updates main restricted

mdadm

Glossary:

  • md: multiple devices
command description
cat /proc/mdstat show status of all raids
mdadm --detail /dev/md0 detailed status of raid md0
---------- Commands for disabling Systemd Resolved
sudo systemctl disable systemd-resolved
sudo systemctl stop systemd-resolved
sudo rm /etc/resolv.conf
---------- Host resolv.conf (create a new /etc/resolv.conf on your host)
nameserver 127.0.0.1
nameserver 8.8.8.8
nameserver 8.8.4.4
version: '2'
volumes:
portainer-data:
services:
portainer:
image: portainer/portainer:latest
container_name: base-portainer
#!/bin/bash
set -e
############################## DEFAULT PARAMETERS ##############################
# Indicates whether we want to install or remove one or multiple packages
# TODO: Also autoremove can be used, to force additional cleanup
install_remove="install"
@AZDNice
AZDNice / build-gcc.sh
Created May 20, 2020 06:08 — forked from ashrithr/build-gcc.sh
Build and Install GCC Suite from Scratch
#! /bin/bash
GCC_VERSION="5.2.0"
WORKDIR="$HOME/src/"
INSTALLDIR="/platform"
## NOTE: XCode must be installed (through App Store) and the following run to install command-line tools.
## THIS IS IMPORTANT! Among other things, it creates '/usr/include' and installs the system header files.
# xcode-select --install
@AZDNice
AZDNice / kerberos_setup.md
Created May 20, 2020 06:04 — forked from ashrithr/kerberos_setup.md
Set up kerberos on Redhat/CentOS 7

Installing Kerberos on Redhat 7

This installation is going to require 2 servers one acts as kerberos KDC server and the other machine is going to be client. Lets assume the FQDN's are (here cw.com is the domain name, make a note of the domain name here):

  • Kerberos KDC Server: kdc.cw.com
  • Kerberos Client: kclient.cw.com

Important: Make sure that both systems have their hostnames properly set and both systems have the hostnames and IP addresses of both systems in

@AZDNice
AZDNice / ThingsToDonstallingUbuntu.sh
Created April 19, 2020 04:39 — forked from linuxdevhub/ThingsToDonstallingUbuntu.sh
Things To Do After Installing Ubuntu 18.04 LTS Desktop
#!/bin/sh
# This command will update & upgrade your system
sudo apt update && sudo apt-get upgrade --fix-missing
# Install the package build-essential for making the package and checkinstall for putting it into your package manager
sudo apt install build-essential checkinstall
# Install Ubuntu Restricted Extras
sudo apt install ubuntu-restricted-extras