Glossary:
- md: multiple devices
| command | description |
|---|---|
cat /proc/mdstat |
show status of all raids |
mdadm --detail /dev/md0 |
detailed status of raid md0 |
| #!/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)" |
| # 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 |
| ---------- 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" |
| #! /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 |
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):
Important: Make sure that both systems have their hostnames properly set and both systems have the hostnames and IP addresses of both systems in
| #!/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 |