Skip to content

Instantly share code, notes, and snippets.

View sgnconnects's full-sized avatar

Zakhele Dlamini sgnconnects

View GitHub Profile
@sgnconnects
sgnconnects / debian-11-bullseye-sources.list
Created July 26, 2023 12:19 — forked from gustavorv86/debian-11-bullseye-sources.list
Debian Bullseye/Oldstable official repositories
deb http://deb.debian.org/debian bullseye main contrib non-free
deb-src http://deb.debian.org/debian bullseye main contrib non-free
deb http://deb.debian.org/debian-security/ bullseye-security main contrib non-free
deb-src http://deb.debian.org/debian-security/ bullseye-security main contrib non-free
deb http://deb.debian.org/debian bullseye-updates main contrib non-free
deb-src http://deb.debian.org/debian bullseye-updates main contrib non-free
@sgnconnects
sgnconnects / hetzner-proxmox-docker.sh
Created July 25, 2023 23:39 — forked from mstaack/hetzner-proxmox-docker.sh
Hetzner Dedicated with Debian 9 (Stretch) and Proxmox 5 (LXC) + Docker-CE + Portainer [NAT]
#############################################
### Proxmox V & Docker-CE + Portainer #
#############################################
## Rescue System
# Erase other disks
dd if=/dev/zero of=/dev/sda bs=1M count=100
dd if=/dev/zero of=/dev/sdb bs=1M count=100
# You can install debian 9 via the guide:
@sgnconnects
sgnconnects / enable-docker.sh
Created July 16, 2023 11:53 — forked from tprelog/enable-docker.sh
Use docker-compose on TrueNAS SCALE 22.12 (Bluefin) without Kubernetes
#!/usr/bin/env bash
#
# Enable docker and docker-compose on TrueNAS SCALE (no Kubernetes)
#
# This script is a hack! Use it at your own risk!!
# Using this script to enable Docker is NOT SUPPORTED by ix-systems!
# You CANNOT use SCALE Apps while using this script!
#
# 1 Create a dedicated Docker dataset in one of your zpools
@sgnconnects
sgnconnects / Bootable Mac ISO with Linux.md
Created July 13, 2023 01:54 — forked from coolaj86/Bootable Mac ISO with Linux.md
Create Bootable MacOS ISO from Apple's Free PKG
@sgnconnects
sgnconnects / sources.list
Created July 12, 2023 15:09 — forked from ishad0w/sources.list
Debian 11 (Bullseye) -- Full sources.list
deb http://deb.debian.org/debian bullseye main contrib non-free
deb-src http://deb.debian.org/debian bullseye main contrib non-free
deb http://deb.debian.org/debian bullseye-updates main contrib non-free
deb-src http://deb.debian.org/debian bullseye-updates main contrib non-free
deb http://deb.debian.org/debian bullseye-backports main contrib non-free
deb-src http://deb.debian.org/debian bullseye-backports main contrib non-free
deb http://security.debian.org/debian-security/ bullseye-security main contrib non-free

Hello Pi

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.

Topics

  • Pimox
@sgnconnects
sgnconnects / external-ip-services.sh
Created July 7, 2023 16:53 — forked from styblope/external-ip-services.sh
Services routing using external IPs
# 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:
#!/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
@sgnconnects
sgnconnects / README.md
Created June 18, 2023 00:20 — forked from horosin/README.md
Chrome Remote Desktop on Debian Server

Chrome Remote Desktop on Debian/Ubuntu Server

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:

  1. Install requirements (please check if the script is safe before you execute this command!)
@sgnconnects
sgnconnects / install-minishift-ubuntu.md
Created June 17, 2023 12:04 — forked from mehdihasan/install-minishift-ubuntu.md
minishft installationin ubuntu

Install minishift in Ubuntu

OS: Ubuntu 19.10

Install libvirt and qemu-kvm on the system

sudo apt install qemu-kvm libvirt-daemon libvirt-daemon-system