Postingan

Menampilkan postingan dari 2020

Basic Terraform to create an instance on AWS

This is basic implement infrastructure as code using terraform: First, install terraform binary, this is like a command: https://nciptandani.blogspot.com/2020/11/how-to-install-terraform-command-in.html Second, because of using AWS so install AWS-CLI and then configure it with your credentials like using AWS IAM policy EC2-Full access, in this tutorial just only to create an instance. Third, create a folder for the project mkdir learn-terraform cd learn-terraform vim main.tf   resource "aws_instance" "my-practice-www1" {   ami = "ami-015a6758451df3cb9"   instance_type = "t2.micro"   } The last, executing the terraform command. Default AWS configuration will be called automatically by the terraform so just executing that code with the terraform command below: terraform init terraform plan terraform apply So yeah just one file main.tf with some code we can create an instance on AWS but of course with the default configuration. More resources:...

How to install Terraform command in the GNU/Linux Debian

Gambar
Terraform is one of the popular tools to implement infrastructure as code (IAC). My trial is using GNU/Linux Debian. Here are two steps to install the terraform command: Terraform can be downloaded on this website: https://www.terraform.io/downloads.html Unzip it's the file to the binary PATH Reference: https://www.terraform.io/downloads.html

Tips system troubleshooting

Pada kesempatan kali ini saya ingin membagikan tips untuk menyelesaikan system troubleshooting, system troubleshooting menjadi salah satu pekerjaan sysadmin/sysops yang sering dihadapi, secara umum berikut tips nya: 1. Baca dengan baik dokumen system Sebelum menyelesaikan problem pastikan bahwa sysops sudah setidaknya pernah membaca dokumen nya, dokumen ini bisa dalam bentuk engineer notes, system infrastructure, bahkan beberapa catatan dari email, chatting, simple notes, ini sangat bermanfaat untuk menjadi dasar. Hal-hal yang perlu diperhatikan seperti IP Address, konektivitas, hosname, nama domain, service apa saja yang ada terdapat pada server. 2. Cek mulai dari hal dasar Cek IP, cek koneksi ethernet, cek koneksi IP, cek service up/down, Cek apakah ada penamaan yang salah, misalnya IP salah, nama domain salah, nama direktori, nama file, ini hal dasar namun sering terjadi. 3. Berfikir bertahap dan detail Misalnya tadi ada masalah pada koneksi maka perhatikan ethernet jika ethernet su...

Tips sederhana agar tetap semangat ngoprek/ngulik

Dalam bekerja maupun belajar, ada salah satu prinsip yang menurut saya sangat baik, yaitu 3M : Mindset Method Memorize Berikut adalah penjelasan sederhana versi saya mengenai ketiga hal tersebut: 1. Mindset Hal pertama adalah mindset atau pola pikir. Sebelum melakukan sesuatu, pastikan pola pikir kita sudah selaras dengan tujuan yang ingin dicapai. Tujuan tersebut harus jelas, dengan pola pikir yang sederhana, misalnya meyakini bahwa setiap masalah pasti memiliki solusi. Salah satu cara membentuk mindset yang baik adalah melalui doa, yaitu dengan mengucapkan kata-kata yang positif dan penuh harapan, karena hal tersebut dapat membantu membangun pola pikir yang positif pula. 2. Method Yang kedua adalah metode. Pada tahap ini, kita perlu terus mencari dan mencoba berbagai cara melalui proses trial and error dari berbagai sumber. Sumber tersebut bisa berasal dari: Buku Video Internet Pengalaman pribadi Pengalaman orang lain Penting juga untuk mencatat dan memahami set...

Install Packet Tracer 7.3.0 on Ubuntu 19.10

1. Download Packet Tracer 7.3.0 from Netacad website. https://www.netacad.com/portal/resources/packet-tracer 2. Install Dependency wget http://mirrors.kernel.org/ubuntu/pool/main/d/double-conversion/libdouble-conversion1_2.0.1-4ubuntu1_amd64.deb sudo apt install ./libdouble-conversion1_2.0.1-4ubuntu1_amd64.deb wget http://mirrors.kernel.org/ubuntu/pool/main/q/qt-at-spi/qt-at-spi_0.4.0-3_amd64.deb sudo apt install ./qt-at-spi_0.4.0-3_amd64.deb sudo apt --fix-broken install 3. Install Packet Tracer  dpkg -i PacketTracer_730_amd64.deb Done.

Laravel 404 not found but rote exists

This is my case if the webserver is apache2/httpd make sure the following directive is configured properly when installing Laravel. DocumentRoot "/var/www/html/laravel/public/" <Directory "/var/www/html/laravel/public"> Allowoverride All </Directory> More references:   https://laravel.io/forum/06-11-2014-not-found-but-route-exists

PostgreSQL ERROR: permission denied for relation users

Problem ERROR: permission denied for relation users Error ini biasanya terjadi karena user database tidak memiliki hak akses (privileges) yang cukup terhadap tabel atau schema di PostgreSQL. Solution 1. Menampilkan Nama Schema Pertama, hubungkan ke database PostgreSQL Anda, lalu jalankan perintah berikut untuk melihat daftar tabel beserta schema-nya: \dt Dari output tersebut, Anda dapat mengetahui nama schema yang digunakan (biasanya public , tetapi bisa berbeda tergantung konfigurasi). 2. Memberikan Hak Akses (Grant Privileges) Setelah mengetahui nama schema, jalankan perintah berikut sebagai user dengan hak admin (misalnya postgres ): GRANT ALL PRIVILEGES ON DATABASE name_db TO remote_user; GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA <schema_name> TO <username>; GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA <schema_name> TO <username>; Ganti: name_db → dengan nama database Anda <schema_name> → dengan nama schema (misalnya public ...

Configure SSH tunnel MySQL

Pada postingan ini sederhana sebagai catatan yaitu akan seolah-olah mengakses database pada server melalui local-pc. local-pc -----------internet----------------server-db server-db dengan IP misal 1.2.3.4 Daripada mengakses langsung database melalui IP publik internet yang tidak aman maka lebih baik memanfaatkan protokol SSH yang terenkripsi. command nya sederhana yaitu sebagai berikut: ssh nasohi@1.2.3.4  -L 3306:localhost:3306 S etelah berhasil masuk, bisa buka terminal lain/aplikasi database client untuk mengakses database melalu i localhost:3306 pada local-pc SSH tunnel ini bisa dimanfaatkan tidak hanya untuk remote database namun bisa disesuaikan dengan port service lainnya. Referensi lebih lanjut:  https://help.ubuntu.com/community/SSH/OpenSSH/PortForwarding Postingan di blog ini tentang mysql  https://nciptandani.blogspot.com/search?q=mysql

Referensi Link ITNSA

Konfigurasi AAA Cisco dengan Windows NPS https://theitbros.com/radius-server-configuration-on-windows/ https://blog.skufel.net/2012/06/how-to-integrating-cisco-devices-access-with-microsoft-npsradius/ Konfigurasi DMVPN https://networklessons.com/cisco/ccie-routing-switching/introduction-to-dmvpn http://www.firewall.cx/cisco-technical-knowledgebase/cisco-routers/901-cisco-router-dmvpn-configuration.html https://networkdirection.net/articles/routingandswitching/dmvpn/dmvpn-configuration/ https://www.ciscozine.com/dmvpn-phase-3-guide/ Konfigasi IPSec stateless HA https://blog.ine.com/2008/11/06/ipsec-vpn-high-availability-with-hsrp Konfigurasi Voice https://www.youtube.com/watch?v=gebqFiJbepc&list=PLzP4Y1y2eV8djxV3K_-PI-e4xOj4TbsJM

Configure NTP Server pada Cisco Router

Pada tutorial kali ini, router Cisco akan dikonfigurasi sebagai NTP Server sekaligus menggunakan authentication pada koneksi NTP agar lebih aman. Untuk tutorial lain mengenai SNMP Authentication (SNMPv3) dapat dilihat di sini: https://www.youtube.com/watch?v=ConDdPWGxlc Topologi Terdapat 2 router: R-ISP → sebagai NTP Server S-HQ → sebagai NTP Client Konfigurasi 1️⃣ Konfigurasi NTP Server (R-ISP) (config)# clock timezone GMT +7 # clock set 00:50:00 January 7 2020 # show clock (config)# ntp authentication-key 1 md5 ntps3cur3pw (config)# ntp trusted-key 1 (config)# ntp authenticate (config)# ntp master 2️⃣ Konfigurasi NTP Client (S-HQ) (config)# clock timezone GMT +7 (config)# ntp authentication-key 1 md5 ntps3cur3pw (config)# ntp authenticate (config)# ntp trusted-key 1 (config)# ntp server 1.1.1.1 key 1 3️⃣ Verifikasi di NTP Server Pada R-ISP jalankan: # show ntp associations Hasilnya akan terlihat bahwa reference clock mengarah ke: 127.127.7.1 (local clock)...

How to configure apache2 auth openldap debian

Autentikasi Website Apache2 Menggunakan OpenLDAP Berikut adalah konfigurasi sederhana untuk melakukan autentikasi login website di Apache2 menggunakan LDAP (OpenLDAP) . 📌 Prasyarat Pastikan hal berikut sudah siap: Web server Apache2 sudah terinstall dan berjalan dengan baik. Tentukan site / direktori website yang akan dipasang autentikasi. Server sudah siap. Tutorial instalasi OpenLDAP, pembuatan user, dan testing login dapat dilihat pada video berikut: https://www.youtube.com/playlist?list=PL-p0E1DAGrw3cYSqmGUArs1qQSRPdbUmJ 1️⃣ Enable Modul LDAP di Apache2 Jalankan perintah berikut: a2enmod ldap authnz_ldap Modul yang diaktifkan: ldap → koneksi LDAP authnz_ldap → autentikasi & authorization LDAP 2️⃣ Buat Konfigurasi Autentikasi LDAP Buat file konfigurasi baru: vi /etc/apache2/sites-available/auth-ldap.conf Isi dengan konfigurasi berikut: <Directory /var/www/html/> AuthName "LDAP Authentication" AuthType Basic AuthBasicPro...