Skip to content

Instantly share code, notes, and snippets.

@gairys
gairys / 5_steps_for_creating_templates_and_vms_on_proxmox_using_linux_distros_cloud_images.md Creating Templates and Virtual Machines on Proxmox using cloud images from various Linux distributions.

5 Steps for Creating Templates and Virtual Machines on Proxmox using Linux Distro's Cloud Images

This tutorial guides you through the process of creating Templates and Virtual Machines on Proxmox using cloud-based images from various Linux distributions. We provide clear instructions for Alma Linux 9, Amazon Linux 2, CentOS 9, Fedora 38, Oracle Linux 9, RHEL 9, Rocky Linux 9, and Ubuntu 23.04 Lynx Lobster.

Note: The instructions have been tested on Proxmox 8.0.4.

Let's begin by choosing the cloud-based image. If you already have your preferred Linux distribution, skip to the 1st step.

To assist in making informed choices when selecting a Linux distribution for your virtual machines, we've compiled a table showcasing key characteristics of each cloud image. This table provides a snapshot of important attributes, including kernel version, Python version, number of processes initialized after boot, number of packages installed, free memory after boot, VM disk size, root partition disk size, used size on t

@gairys
gairys / haproxy_letsencrypt.md
Created February 24, 2022 19:30 — forked from lmmendes/haproxy_letsencrypt.md
# HAProxy and Let's Encrypt

HAProxy and Let's Encrypt

HAProxy is a open-source TCP/HTTP load-balancing proxy server supporting native SSL, keep-alive, compression CLI, and other modern features.

Let’s Encrypt is a free, automated, and open certificate authority (CA), run for the public’s benefit. Let’s Encrypt is a service provided by the Internet Security Research Group (ISRG).

Concept

@gairys
gairys / LetsEncrypt reverse proxy with docker.md
Created December 3, 2019 00:33 — forked from pascalo7/LetsEncrypt reverse proxy with docker.md
a derps guide to setting up a reverse proxy with certs in docker for derps

This guide is designed for people like myself who seem to find all guides on LetsEncrypt reverse proxies to be like this or any of this

This will cover portainer setup and eventually standarderd CLI only setup

With Portainer

  1. Get onto Linux system
  2. Install docker-ce
  3. Install Portainer
@gairys
gairys / README.md
Created September 9, 2019 19:51 — forked from developius/README.md
Setup SSH keys for use with GitHub/GitLab/BitBucket etc

Create a new repository, or reuse an existing one.

Generate a new SSH key:

ssh-keygen -t rsa -C "[email protected]"

Copy the contents of the file ~/.ssh/id_rsa.pub to your SSH keys in your GitHub account settings.

Test SSH key:

@gairys
gairys / centos-zfs-urbackup.md
Created August 24, 2019 14:04 — forked from dbirks/centos-zfs-urbackup.md
Install Urbackup on CentOS 7 using ZFS

Installing Urbackup on CentOS using ZFS

Here's the details on installing Urbackup on the ZFS file system on the stable CentOS 7.

  • Install CentOS 7. I'll be using the Minimal install.
    • Once you have the .iso, write it to a CD or USB drive. I recommend using Rufus if you're on Windows to write it to USB.
    • Go ahead and boot to it.
    • Most of the defaults on the Installation Summary page should be good. However you will want to:
      • Confirm the time zone is correct.
      • Click the disk you want to install to.
@gairys
gairys / mysql-docker.sh
Created July 20, 2019 00:25 — forked from spalladino/mysql-docker.sh
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
@gairys
gairys / pihole-dnsmasq-cloudflared.conf
Created July 15, 2019 11:33 — forked from bendews/pihole-dnsmasq-cloudflared.conf
Ansible Playbook to set up PiHole with DNS-Over-HTTPS via cloudflared
server=127.0.0.1#5053
@gairys
gairys / rpi.sh
Created June 8, 2019 17:45 — forked from arudmin/rpi.sh
Raspberry Pi Starting Script
#!/bin/bash
echo "RASPBERRY PI UPDATING SCRIPT STARTED"
# Nginx Repo Add
sudo hostname -v pi
sudo localedef en_US.UTF-8 -i en_US -fUTF-8
sudo echo 'deb http://nginx.org/packages/debian/ wheezy nginx
deb-src http://nginx.org/packages/debian/ wheezy nginx' >> /etc/apt/sources.list
wget http://nginx.org/keys/nginx_signing.key
sudo apt-key add nginx_signing.key && rm nginx_signing.key
@gairys
gairys / .check_network.sh
Created June 8, 2019 17:45 — forked from arudmin/.check_network.sh
Reset wlan0 nttwork interface on Raspberry Pi
#!/bin/bash
ping -W 2 -c 1 8.8.8.8 > /dev/null
if [ $? -eq 0 ]; then
echo "online"
else
echo "offline"
logger -t [warn] “Internet connection lost. Trying to reload network interface”
sudo ifdown wlan0
sleep 3
@gairys
gairys / macos.sh
Created June 8, 2019 17:45 — forked from arudmin/macos.sh
installing usefull packets for macos
#!/bin/bash
#install homebrew
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
brew install coreutils wget npm nodejs iftop htop p7zip
# du -h -d 1 / | gsort -hr