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 February 23, 2024 08:21
Libvirt Client

General

If you want to see KVM/QEMU on VMHost with Libvirt client you can use libvirt-clients

Install Libvirt Clients

apt install -y libvirt-clients

Remote Command

Assume UUIDVM result from virsh list & 192.168.2.13 are Server HOST. for Remote Virsh make sure TCP port 16509 are open.

@gilangvperdana
gilangvperdana / README.md
Last active February 23, 2024 07:31
Create Mountpoint with Volume Group

General

If you want to create an mountpoint with Volume Group you can follow this step.

Topology

image

Case

  • We have 2 disk (/dev/sdb & /dev/sdc)
  • We want to combine that 2 disk to one Mountpoint (/mnt)
  • We want to dynamicly extend that disk if we have a new disk
@gilangvperdana
gilangvperdana / README.md
Last active February 9, 2024 18:58
DNS Server with BIND9

Installation DNS Server with BIND9

Environment

Ubuntu 20.04 Server LTS
BIND9

Node Description

@gilangvperdana
gilangvperdana / README.md
Last active February 9, 2024 14:31
Expose your Local VM with VPN

Expose your local VM with VPN

If you want to have an Public IP address, you can have two technique :

  • Reserved Public IP (High Cost)
  • Reserved public VPS (Lower Cost)

Markdown :

  • This Markdown will be sharing about Reserved public VPS Technique to have an Public IP on our Local VM.
  • This tutorial will make public ip on public vps that points to local VM.

Environment

@gilangvperdana
gilangvperdana / README.md
Created February 9, 2024 13:12
Auto DHCLIENT Spesific interface when Booting

General

If you need dhclient spesific interface every VM booting you can try this workaround

Workaround

for Example spesific interface on this workaround are ens18

  • Create this script
sudo nano /etc/init.d/dhclient-ens18
@gilangvperdana
gilangvperdana / install-tmux.sh
Created February 8, 2024 07:22 — forked from pokev25/install-tmux.sh
Install tmux 2.8 on centos 7
# Install tmux 2.8 on Centos
# install deps
yum install gcc kernel-devel make ncurses-devel
# cd src
cd /usr/local/src
# DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL
curl -LO https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz
@gilangvperdana
gilangvperdana / README.md
Last active February 6, 2024 11:55
Multi Port Nginx Block

Multi Port Reverse Proxy on Nginx Configuration

This tutorial are suitable for you if you want to reverse multi endpoint with one domain different port.

Goals

  • You can access on localhost:8443 to access localhost:9200
  • You can access on localhost:8442 to access localhost:5601

Configuration

nano /etc/nginx/sites-enabled/default
@gilangvperdana
gilangvperdana / README.md
Last active January 12, 2024 09:15
PowerCLI VMWare Installation

General

PowerCLI for VMware

Installation (tested on Windows10)

## Install Online (Run Powershell as Administrator)
Install-Module VMware.PowerCLI -Scope CurrentUser
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine
Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$false
 
@gilangvperdana
gilangvperdana / nginx-minio-static.md
Last active December 19, 2023 00:58 — 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