Migrate ECS Fargate from x86 to ARM (Graviton)

What is Graviton? AWS Graviton is a custom-designed processor by Amazon Web Services (AWS) specifically optimized for their cloud infrastructure. Graviton processors are based on ARM architecture rather than the more traditional x86 architecture used by Intel and AMD processors. ARM processors are known for their energy efficiency and are commonly found in mobile devices … Read more

Increasing Amazon Linux 2 AMI /tmp Size

cd # change to your home directory fallocate -l 20G mydrive.img # create the virtual drive file mkfs -t ext3 mydrive.img # format the virtual drive sudo umount /tmp # unmount the /tmp sudo mount -t auto -o loop mydrive.img /tmp # mount the virtual drive  

Setup simple wardrive device with Raspberry PI + Kali Linux

/etc/hostapd/hostapd.conf interface=wlan0 country_code=ID ssid=KALIPI hw_mode=g channel=13 macaddr_acl=0 ignore_broadcast_ssid=0 auth_algs=1 ieee80211n=1 wme_enabled=1 # The following is for adding a PW wpa=2 wpa_passphrase=difficultpassword wpa_key_mgmt=WPA-PSK wpa_pairwise=TKIP /etc/dnsmasq.conf interface=wlan0 dhcp-range=192.168.1.2,192.168.1.10,24h dhcp-option=option:dns-server,192.168.1.1 Enable and restart services systemctl enable hostapd systemctl enable dnsmasq systemctl restart hostapd systemctl restart dnsmasq References : https://unix.stackexchange.com/questions/699968/hostapd-disables-and-enables-interface

Setup scrot on Fedora with manual installation

Scrot is a quite popular command line tool and one of the swiss army tools sysadmin need to have. When I’m not be able to install it via the repository, this is what I did to make it work : $ wget http://mirror.ghettoforge.org/distributions/gf/el/7/gf/x86_64/giblib-1.2.4-27.gf.el7.x86_64.rpm $ wget http://packages.psychotic.ninja/7/base/x86_64/RPMS/scrot-0.8-12.el7.psychotic.x86_64.rpm $ sudo rpm -i giblib-1.2.4-27.gf.el7.x86_64.rpm $ sudo rpm -i … Read more

Deploying Kubernetes Cluster With Ingress and Load Balancer on DigitalOcean

This article will give you the a simple way how to deploy a kubernetes cluster and it’s components on DigitalOcean Managed Kubernetes (DOKS). Along with my learning journey with kubernetes, I started to get my hands on trying kubernetes on DigitalOcean. It’s actually one of my favorite hosting platform that also offers Kubernetes managed service … Read more

How to safely drain and remove k8s node

In this lab, I use Ubuntu 20.04 LTS for my k8s cluster. To remove the k8s node from the cluster, first drain the node : $ kubectl get nodes $ kubectl drain node If required, you also need to ignore daemonsets : $ kubectl drain node –ignore-daemonsets And delete the node : $ kubectl delete … Read more

Setup kubernetes cluster in Ubuntu 20.04 from scratch

Hello again, this article is a walk through how to setup your own kubernetes cluster with Ubuntu 20.04 LTS. Some steps are very straightforward, and you can directly follow along while you try to setup yourself. So before get started, I tried this using 2 ubuntu servers : ks8-master : 2gb memory, 2vCPUs k8s-node-0 : … Read more