AKZN Notes

Archives for My Lazy and Forgetful Mind

Archives

Using Rclone to sync file to Google Drive on Ubuntu

As of now, Google has yet to release an official backup/sync client for Linux. The following write-up describes an approach for using an open source package, rclone, to automate backups from Linux to Google drive. Download/install rclone: To download/install rclone: $ cd $HOME $ curl https://rclone.org/install.sh | sudo bash … rclone v1.53.1 has successfully installed. […]

Mikrotik Auto Update Nice

Make a scheduler to run this script below #google :if ([:len [/file find name=google_ip.rsc]] > 0) do={ /file remove google_ip.rsc }; /tool fetch "https://raw.githubusercontent.com/im-sm/Mikrotik-IP-List/main/GOOGLE/mikrotik_terminal.rsc" dst-path=/google_ip.rsc mode=https; /ip firewall address-list remove [find list=GOOGLE] /import google_ip.rsc; /ip firewall address-list remove [find comment=GOOGLE_im_sm] /ip firewall address-list set [find list=GOOGLE] list=IP_LB_LIST comment=GOOGLE_im_sm #facebook agregate :if ([:len [/file find name=facebook_ip.rsc]] […]

OpenWRT Resize Squashfs Partition to Utilize all SD Card Space

Based on Openwer document here Expanding the filesystem To use the whole available space of your sdcard, you probably have to resize your partition. squashfs image To resize the squashfs-image one has to know the offset of the hidden f2fs filesystem. In this example, the squashfs partiton is /dev/sde2. You can find the offset, by […]

OpenWRT USB Connection to MiFi (Mobile WiFi) Huawei e5573

Connecting MiFi e5573 (or any other mifi) to OpenWRT are similiar with connectiong Openwrt to Smartphone USB Thetering Check / Install Driver OpenWRT USB Thetering Docs Provide USB tethering support for Android 8/10 with RNDIS: opkg update opkg install kmod-usb-net-rndis Extra steps depending on USB type and drivers for your router: opkg update opkg install […]

VLAN OpenWRT as DHCP Server/client and Mikrotik as DHCP Server/client on a Single Ethernet Port

Why ? I want to use OpenWRT on Orange Pi Zero, but OPiZ only have one ethernet port. So, how i can use that single port as dhcp server (to give internet), and dhcp client (to get internet). Mikrotik Setting Configure DHCP Server and vlan interface Configure MIkrotik DHCP server as usual, for this notes […]

OpenVPN Client to Client Connection Configuration

follow this tutorial https://openvpn.net/community-resources/how-to/#scope dont forget to do step below how to add route (not persistent) on ubuntu example sudo ip route add 10.10.10.0/24 via 192.168.1.254 # Specific route sudo ip route add default via 192.168.1.254 # Default route (gw) how to add persistent route on ubuntu modify the /etc/network/interfaces file. $ sudo nano /etc/network/interfaces […]

Alpine Linux LAMP Installation Notes

Apache2 .htacess : makesure AllowOverride All on directory htdocs on httpd.conf PHP make sure all module installed Session : make sure session.save_path on php.ini is enabled SSL Letsencrypt make sure apache-ssl module installed sudo apk update & sudo apk upgrade & sudo apk add apache2-ssl sudo apk add certbot-apache sudo certbot certonly make site-avalaible conf […]

Mikrotik Cheat Sheet

Cheat Sheet Map Usability Code example Filter Log Link Detail Filter Log log print where message~"the-text-you-want" and (topics~"topic-name-1" or topics~"topics-name-2") PPPOE Setup PPP>Secret Setting secret for client. If you use radius, click tab PPP Auth&Accounting instead, set it to use Radius PPP>Profiles Local Address: use ip address interface local that will be used for PPPoE […]

Freeradius + Daloapi + mikrotik

Daloapi setting install freeradius (with mysql) and daloradius daloradius need php-pear and php-db sudo apt-get install php-common php-gd php-curl php-mail php-mail-mime php-pear php-db sudo pear install db deploy daloapi from git, setting database as same with freeradius setting, make sure daloapi database migration is set. after git deployment .env.example to .env configure db credential to […]

[ubuntu][xrandr] Autodetect Display

cant get to work, use autorandr instead https://github.com/phillipberndt/autorandr config file on ~/.config/autorandr/ just in case some error(like what happened to me), just edit some parameter on those files that make errors, taken from https://unix.stackexchange.com/a/11891 with fix and personal customization I’m using this simple (homemade) script that keeps polling RandR and switches between LVDS1 and VGA1 […]