Technology Notes

Collection of stuff that I wish to store for future uses and also content which is so small that donot deserve a separate blogpost

Ubuntu Network Configuration

I run ubuntu machines in VMWare and many times the VM fails to resume for god knows what reasons.Worst if i ever manage to get it started the networking configuration is erased. Hence saving below configurations for future.

General Way

cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
        address XXX.XXX.XXX.XXX
        gateway XXX.XXX.XXX.XXX
sudo service network-manager restart

Using Netplan

Prerrably if your using Ubuntu 20

cat /etc/netplan/01-network-manager-all.yaml
    version: 2
    renderer: networkd
         dhcp4: yes
          addresses: [,]
sudo netplan try
sudo netplan apply
sudo service network-manager restart

System Load Monitor

Configuration settings for using System Load Monitor in Ubuntu. Looks something like below

Updating Indicator Items

CPU - $(percent(cpu.inuse)) | RAM - $(size(mem.user)) | Net ↓ $(speed(net.down)) ↑ $(speed(net.up))

VSCode Extensions List

  • auto-close-tag v0.5.7
  • better-toml v0.3.2
  • code-settings-sync v3.4.3
  • csharp v1.22.0
  • FreeMarker v0.0.9
  • HCL v0.0.5
  • jinja v0.0.8
  • powershell v2020.6.0
  • remote-ssh v0.51.0
  • remote-ssh-edit v0.51.0
  • remote-wsl v0.44.2
  • toml v0.4.0
  • VS-code-vagrantfile v0.0.7
  • vscode-icons v10.1.1
  • vscode-paste-image v1.0.4
  • vscode-ruby v0.27.0

Installing Minikube on Windows


  • Install Virtualbox
  • Install Chocolatey
  • Install WSL
  • Install Windows Terminal

Add in .zshrc/.bashrc

Replace rohit with your username

export DOCKER_HOST=tcp://$(minikube ip):2376
export DOCKER_CERT_PATH=/c/Users/rohit/.minikube
alias choco='choco.exe'
alias kubectl='kubectl.exe'
alias minikube='minikube.exe'

Installation Commands

 choco install kubernetes-cli
 choco install minikube
 minikube config set vm-driver virtualbox
 minikube start
 minikube dashboard
 minikube docker-env
 sudo apt-get install docker-ce
 sudo curl -L "$(uname -s)-$(uname -m)"  -o /usr/local/bin/docker-compose
 sudo mv /usr/local/bin/docker-compose /usr/bin/docker-compose
 sudo chmod +x /usr/bin/docker-compose
 docker info
 docker-compose version

Refresh Env

source ~/.bashrc
source ~/.zshrc

Start Script

minikube start --driver=virtualbox

Stop Script

minikube stop

Final Result

Rohit Salecha
Security Engineering

Rohit Salecha is a technology geek who loves to explore anything that runs and understands binary. As a security engineer he is passionate about learning the length,breadth and depth of technology. Being more on the defensive side he has evangelised secure software development at various organizations for more than a decade. He is ridiculously driven by “everything as code” mantra and strongly believes that security team must strive towards making themselves irrelevant.