AKZN Notes

Archives for My Lazy and Forgetful Mind

Category: Linux

Deploy NodeJs Application to VPS

Deploying a Node.js application to a Virtual Private Server (VPS) is a crucial step in bringing your web applications to life. In this guide, we’ll walk you through the process of setting up your VPS, transferring your Node.js code, and configuring the server to host your application efficiently. Deploy to VPS Set Up Your VPS: […]

How to deploy golang API backend

Step-by-Step Guide: Deploying a Golang API Backend on a Linux Server Prerequisites: You have a Golang API project ready. You have access to a Linux server. Apache is installed and properly configured on the server. Deployment Steps: 1. Check the .env File: Ensure your Golang project has a properly configured .env file containing all the […]

Install Server Stack to Armbian for CVCMA

This article is my notes for step by step to install and configure set top box Armbian into kiosk device. List of Bugs browser failed to launch immediately solution : add sleep 60 before launching the browser display need to restart or reattach the hdmi cable if system rebooted. solution: use xrandr to relaunch the […]

Configuring DNS in Linux with resolv.conf

In Linux, you can configure DNS settings using the resolv.conf file. Here’s a quick guide to get you started: Open a terminal. Edit the resolv.conf file using a text editor: sudo nano /etc/resolv.conf Add your preferred DNS servers: nameserver 8.8.8.8 nameserver 8.8.4.4 Save the changes and close the text editor. To prevent overwriting, create a […]

Using dd Command with Windows 10 Using Cygwin

Using dd Command with Windows 10 Using Cygwin The dd command is a powerful tool commonly used in Unix-like operating systems for disk-related operations. While Windows 10 does not have a built-in dd command, you can leverage the capabilities of Cygwin to use dd in a Windows environment. Cygwin provides a collection of GNU and […]

Nmap Install & Usage

if you want to scan your network, you can use Nmap Nmap is a powerful network exploration and security auditing tool that can be used to discover hosts and services on a computer network. Here’s a tutorial on how to install and use Nmap on Linux: Installation: Open the terminal on your Linux system. # […]

How to backup and restore all mysql database from vps

how to backup all database To backup all MySQL data, you can follow these steps: Connect to your VPS: Log in to your VPS using SSH. Navigate to the MySQL data directory: MySQL data files are typically located in the /var/lib/mysql directory. Navigate to this directory by running the following command: cd /var/lib/mysql Create a […]

Using Github Workflow to Auto Deploy to VPS

original tutorial https://viandwi24.medium.com/github-actions-sederhana-untuk-testing-dan-deploy-ke-server-vps-a43976cd6f46#5752 make new linux user with limited access/no sudo edit the yml workflow name: CI-Deploy-serv3 on: push: branches: [ master ] workflow_dispatch: jobs: build: runs-on: ubuntu-latest steps: – uses: actions/checkout@v2 with: fetch-depth: '0' ref: 'master' – name: Deploy to Serv 3 Dwbz uses: appleboy/ssh-action@master with: host: ${{ secrets.HOST_GITHUBCI_SERV3DWBZ }} username: ${{ secrets.USERNAME_GITHUBCI_SERV3DWBZ }} […]

Docker Wireguard + Mikrotik

todo : make ip address obtained from docker-compose > hostnet static/persistent add clearer documentation about docker-compose > hostnet Installation Prequisities MIkrotik RouterOS v.7.1 and above Docker Wireguard Setup Make sure Docker is installed Using docker-compose # docker-compose.yml version: ‘3’ services: wireguard: image: lscr.io/linuxserver/wireguard container_name: wireguard cap_add: – NET_ADMIN – SYS_MODULE environment: – PUID=1000 – PGID=1000 […]

OpenVPN for Docker

This notes are taken from https://raw.githubusercontent.com/kylemanna/docker-openvpn/master/README.md. Edited to added some notes to make it easier for me to read and install on the near future OpenVPN server in a Docker container complete with an EasyRSA PKI CA. Extensively tested on Digital Ocean $5/mo node and has a corresponding Digital Ocean Community Tutorial. Installation Upstream Links […]