sudo snap install lxd
sudo lxd init
#!/bin/bash | |
yum update -y | |
yum install -y https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7-x86_64/pgdg-centos96-9.6-3.noarch.rpm | |
yum install -y postgresql96-server | |
/usr/pgsql-9.6/bin/postgresql96-setup initdb | |
systemctl start postgresql-9.6 |
#!/bin/bash | |
IP="/bin/ip" | |
function prepare_rt_table() { | |
local rttables=/etc/iproute2/rt_tables | |
local iface=$1 | |
[[ "${iface}" = 'lo' ]] && return | |
if ! egrep -q "\s${iface}\s*"\$ $rttables; then | |
idx=$(wc -l <$rttables) |
#!/bin/bash | |
IP="/bin/ip" | |
function prepare_rt_table() { | |
local rttables=/etc/iproute2/rt_tables | |
local iface=$1 | |
[[ "${iface}" = 'lo' ]] && return | |
if ! egrep -q "\s${iface}\s*"\$ $rttables; then | |
idx=$(wc -l <$rttables) |
#!/bin/sh | |
# -------------------------------------------------------------------------------------- | |
# Sets up your computer with the tools you need to develop in a modern ruby environment. | |
# -------------------------------------------------------------------------------------- | |
# This install includes: | |
# - homebrew | |
# - rbenv | |
# - ruby-build | |
# - ruby 1.9.3-p125 |
Get a remote connection to your cloud server! This utility script by default installs XFCE, Chrome and Chrome Remote Desktop.
Based on this guide, made ready to install with one command and use xfce by default.
Steps:
#!/bin/bash | |
# <UDF name="ssh_key" Label="Paste in your public SSH key" default="" example="" optional="false" /> | |
# root ssh keys | |
mkdir /root/.ssh | |
echo $SSH_KEY >> /root/.ssh/authorized_keys | |
chmod 0700 /root/.ssh | |
# update to latest |
# https://kubernetes.io/docs/concepts/services-networking/service/#external-ips | |
# If there are external IPs that route to one or more cluster nodes, Kubernetes services can be exposed on those externalIPs. | |
# Traffic that ingresses into the cluster with the external IP (as destination IP), on the service port, will be routed to | |
# one of the service endpoints. | |
# Create test app pods | |
cat <<EOF | kubectl create -f - | |
apiVersion: v1 | |
kind: Pod | |
metadata: |
This is a writedown of how I installed my raspberry pi(s).
The base is a Proxmox, so I don't have to worry about reformat the SD card every time I wanna try out something new, as I can start VMs and LXC containers, as well as Docker containers once it's configured properly.
Note: Those files are versioned, so you can always look what changed from time to time.