Skip to content

Instantly share code, notes, and snippets.

View gilangvperdana's full-sized avatar
🎓
Still Learning

Gilang Virga Perdana gilangvperdana

🎓
Still Learning
View GitHub Profile
@gilangvperdana
gilangvperdana / README.md
Last active May 21, 2024 02:23
Kubernetes with KubeSpray on BareMetal Ubuntu Server 20.04 LTS

Kubernetes with KubeSpray on BareMetal Ubuntu Server 20.04 LTS

Provisioning Kubernetes Cluster BareMetal with KubeSpray

Environment

2x Ubuntu Server 20.04LTS
@gilangvperdana
gilangvperdana / README.md
Created May 15, 2022 07:29
Fix SSH Key are too open on Windows 11

Fix SSH Key are too open on Windows 11

If you want to login with your key, but you see an error permission windows 11 "SSH key are too open" do this :

  • Make sure you was regenerate your key from puttygen to OpenSSH Key format
  • Open your Windows PowerShell then :
$path = ".\path\to\your\key.pem"
icacls.exe $path /reset
icacls.exe $path /GRANT:R "$($env:USERNAME):(R)"
icacls.exe $path /inheritance:r
@gilangvperdana
gilangvperdana / README.md
Created May 17, 2024 10:24
See Serial Number of Virtual Disk

General

Have you ever confused about virtual disk with same size? then you can't choose who the right one? you can check with :

  • SCSI ID
  • UUID

Check with UUID

  • Windows
wmic diskdrive where index=0 get serialnumber
@gilangvperdana
gilangvperdana / README.md
Last active May 16, 2024 03:16
Pritunl behind Nginx Reverse Proxy

Install Pritunl

sudo apt-get update
sudo apt-get -y upgrade

echo "deb http://repo.pritunl.com/stable/apt focal main" | sudo tee /etc/apt/sources.list.d/pritunl.list
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list
curl -fsSL https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
sudo apt update
@gilangvperdana
gilangvperdana / README.md
Last active May 15, 2024 19:28
Installation OpenStack Victoria All-in-One on Cloud with Kolla Ansible

Installation OpenStack Victoria on VM Cloud

Environment

1. Virtual Machine Ubuntu 20.04LTS (Azure, GCP, AWS, Aliyun, etc)
2. 16GB RAM
3. 512 GB Storage
4. One disk add for PV
@gilangvperdana
gilangvperdana / README.md
Last active May 13, 2024 06:25
Nginx Reverse Proxy for SSH

Nginx Reverse Proxy for SSH

Use Case

  • 10.10.10.50 is Target VM will to SSH
  • We will expose this to localhost:32

Configuration

  • Make upstream conf :
nano /etc/nginx/conf.d/stream.conf.ssh
@gilangvperdana
gilangvperdana / README.md
Last active May 9, 2024 06:15
Port Forwarding with Windows Server

General

If you want to port forwarding use windows server, you can use netsh command. for now it's compatible just for TCP (not UDP).

Show existing rule

netsh interface portproxy show all

Delete Existing Configuration

@gilangvperdana
gilangvperdana / nginx-minio-static.md
Last active May 7, 2024 03:46 — forked from harshavardhana/nginx-minio-static.md
How to configure static website using Nginx with MinIO ?

How to configure static website using Nginx with MinIO ?

1. Install nginx

2. Install minio

3. Install mc client

  • Add Minio
mc config host add <ALIAS> <YOUR-S3-ENDPOINT> <YOUR-ACCESS-KEY> <YOUR-SECRET-KEY>
mc config host list
@gilangvperdana
gilangvperdana / README.md
Last active April 25, 2024 10:18
Installation OpenStack Xena All-in-One on Cloud with Kolla Ansible

Installation OpenStack Xena on VM Cloud

Environment

1. Virtual Machine Ubuntu 20.04LTS (Azure, GCP, AWS, Aliyun, etc)
2. 16GB RAM
3. 512 GB Storage
4. One disk add for PV
@gilangvperdana
gilangvperdana / AddFail2Ban.md
Last active April 18, 2024 05:30
Proxmox Playground

General

If you want to protect your auth Proxmox VE, you can follow this step.

Brief

This configuration will be make max 3 attempt for Login to SSH or GUI & ban for 1 days you can modify on maxretry & bantime parameter.

Install Fail2ban

apt-get install -y fail2ban