For educational reasons I've decided to create my own CA. Here is what I learned.
Lets get some context first.
#!/bin/sh | |
### | |
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
### | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
# Disable menu bar transparency | |
defaults write NSGlobalDomain AppleEnableMenuBarTransparency -bool false | |
# Show remaining battery time; hide percentage | |
defaults write com.apple.menuextra.battery ShowPercent -string "NO" | |
defaults write com.apple.menuextra.battery ShowTime -string "YES" | |
# Always show scrollbars | |
defaults write NSGlobalDomain AppleShowScrollBars -string "Always" |
# Create a folder for our new root structure | |
$ export centos_root='/centos_image/rootfs' | |
$ mkdir -p $centos_root | |
# initialize rpm database | |
$ rpm --root $centos_root --initdb | |
# download and install the centos-release package, it contains our repository sources | |
$ yum reinstall --downloadonly --downloaddir . centos-release | |
$ rpm --root $centos_root -ivh centos-release*.rpm | |
$ rpm --root $centos_root --import $centos_root/etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 | |
# install yum without docs and install only the english language files during the process |
Instructions on how to install OpenJDK on macOS.
First step should be to unsinstall any previous OpenJDK installation. This step can be skipped if no OpenJDK version was previously installed.
To uninstall any previous OpenJDK installations use the following commands:
Instructions on how to install the Go programming language on macOS.
First step should be to unsinstall any previous Go installation. This step can be skipped if no Go version was previously installed.
To uninstall any previous Go installations use the following commands: