Skip to content

Instantly share code, notes, and snippets.

Avatar
🎓
Still Learning

Gilang Virga Perdana gilangvperdana

🎓
Still Learning
View GitHub Profile
View README.md

MongoDB notes for Ubuntu 20.04LTS

Installation

wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add -
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0.list
sudo apt update
sudo apt install -y mongodb-org
sudo systemctl enable mongod
sudo systemctl start mongod
sudo systemctl status mongod
@gilangvperdana
gilangvperdana / README.md
Last active Jan 23, 2023
PPTP (Point to Point Tunneling Protocol Virtual)
View README.md

Mikrotik PPTP Server Creates

  • Aktifkan fitur PPTP VPN Server Mikrotik. Masuk ke menu PPP --> Pada Tab Interface --> Klik PPTP Server --> Centang kotak Enabled --> OK
  • Selanjutnya kita buat User PPTP VPN nya. Masuk ke tab Secret --> Klik Tombol + --> Isikan Data Sebegai Berikut :
    • Name : Username PPTP VPN nya
    • Password : Password PPTP VPN nya
    • Service : Pilih service yang digunakan, bisa pilih pptp atau pilih any saja.
    • Profile : Pilih profile yang akan digunakan, pilih default-encryption saja.
    • Local Address : IP Address yang akan digunakan oleh PPTP VPN Server
    • Remote Address : IP Address yang akan diberikan kepada PPTP VPN Client
@gilangvperdana
gilangvperdana / README.md
Last active Jan 20, 2023
Make your Ubuntu Server be Router!
View README.md

Goals

  • Can use Ubuntu Server 20.04 LTS to be Router Gateway include DHCP Server
  • Client who connected to Ubuntu Server can be access Internet

Environement

  • Ubuntu 20.04 LTS
  • 2 Interface
    • 1 Interface from WAN / ISP (enp2s0)
    • 1 Interface for distribution clients (enx00e04c534458)
@gilangvperdana
gilangvperdana / README.md
Last active Jan 11, 2023
Psono PW Self Hosted Installation on Ubuntu 20.04 LTS
View README.md

Goals

Can deploy Psono.pw self hosted on Ubuntu 20.04 LTS Server.

Env

  • Ubuntu 20.04 LTS
  • Docker
  • Nginx Systemd

docker-compose.yml

@gilangvperdana
gilangvperdana / GoDaddySSLHAProxy.md
Created Jan 2, 2023 — forked from sethwebster/GoDaddySSLHAProxy.md
Creating a PEM for HaProxy from GoDaddy SSL Certificate
View GoDaddySSLHAProxy.md

GoDaddy SSL Certificates PEM Creation for HaProxy (Ubuntu 14.04)

1 Acquire your SSL Certificate

Generate your CSR This generates a unique private key, skip this if you already have one.

sudo openssl genrsa -out  etc/ssl/yourdomain.com/yourdomain.com.key 1024

Next generate your CSR (Certificate Signing Request), required by GoDaddy:

@gilangvperdana
gilangvperdana / README.md
Last active Jan 2, 2023
Expose KubeAPI with Nginx
View README.md

Goals

Can expose KubeAPI with NGINX Reverse Proxy on Kubespray cluster edition.

Make sure our FQDN has recorded on SAN KubeAPI Certificate

  • to make sure we can dump SAN information on openssl x509 -in /etc/kubernetes/pki/apiserver.crt -text
  • If SAN not yet on recorded cert, on Kubespray we can declare it in nano inventory/mycluster/group_vars/k8s_cluster/k8s-cluster.yml in supplementary_addresses_in_ssl_keys section.

Create Nginx Block

  • Assume KubeAPI domain is k8s.adaptivenetworklab.org will be resolve in 172.20.1.79
@gilangvperdana
gilangvperdana / README.md
Last active Jan 14, 2023
Nextcloud Ubuntu 20.04LTS with Docker
View README.md

Docker-compose

---
version: '2'

services:
  app:
    image: linuxserver/nextcloud
    restart: always
    ports:
@gilangvperdana
gilangvperdana / README.txt
Last active Jan 1, 2023
Deploy Ceph Quincy & Openstack Zed Multinode on Ubuntu 22.04
View README.txt
=========================
ENVIRONMENT
=========================
- 2x Ubuntu 22.04
- Vda-Vdd Disk
- ens3-ens6 Network Interface
- ens6 == no-IP
=========================
CEPH-ANSIBLE PREPARE
@gilangvperdana
gilangvperdana / backup-and-restore.rst
Created Dec 31, 2022 — forked from yankcrime/backup-and-restore.rst
Kolla-Ansible Backup and Restore
View backup-and-restore.rst

Backup and Restore of MariaDB

Kolla can facilitate either full or incremental backups of data hosted in MariaDB. It achieves this using Percona's Xtrabackup, a tool designed with hot backups in mind - an approach which means that consistent backups can be taken without any downtime for your cloud.

@gilangvperdana
gilangvperdana / minio.conf
Created Dec 30, 2022
Nginx Block for Minio Behind Reverse Proxy
View minio.conf
## MINIO
upstream console {
keepalive 32;
server 10.8.0.4:9091;
}
upstream cli {
keepalive 32;
server 10.8.0.4:9000;
}