Mikrotik – How to change wireless channel frequency

In order to change the wireless frequency channel on Mikrotik, you must use the “center” channel: https://www.electronics-notes.com/articles/connectivity/wifi-ieee-802-11/channels-frequencies-bands-bandwidth.php Lets take channel 5’s center frequency which is 2432: On your Mikrotik you can enter just 2432 and it will not throw an error (entering e.g. 2431 will throw an error) Running a Read more…

ESP32Cam running ESPHome

This is a continuation from this article: https://techstuff.leighonline.net/2023/03/19/esphome-on-home-assistant-running-in-docker/ Bascially, I have an ESP32Cam that I want to add to Home Assistant. My Home Assistant runs in Docker (So no supervisor. It is also called Home Assistant Core). Steps In ESPHome, click on New Device. I will be using ESPHome Flasher Read more…

ESPHome on Home Assistant running in Docker

This is an extention to my “Home Assistant on Docker” post which can be found here: https://techstuff.leighonline.net/2023/03/10/home-assistant-in-docker-home-assistant-core/ Adding ESPHome to Home Assistant that is running in docker is quite straight forward. Just add the following to the existing docker compose: The ESPHome dashboard can be found here: http://<docker_host_ip>:6052 We can add Read more…

iptables and order of rules

Added an iptables rule but getting “connection reset by peer” or you still cannot connect, then read on. Run this command: sudo iptables -L –line-numbers Always backup your existing rules first: sudo iptables-save > savedrules.txt This is how you can restore your rules if you messed something up: sudo iptables-restore Read more…

SSD performance tip 1

Here is an excellent resource. A bit long but really great! https://sites.google.com/site/easylinuxtipsproject/bugs#TOC-Hibernate-and-suspend-don-t-always-work-well:-they-make-some-computers-malfunction-or-even-enter-a-coma I recently bought myself an SSD hard drive for my old notebook. Well worth it! You need to make a few tweaks though to get ultimate performance and lifetime out of it. This is one of many performance Read more…

Plex not seeing NTFS external hard drive

type sudo blkid. You will get output like this: /dev/sda1: UUID=”9081b56d-8715-49f3-a35d-529a39d5780e” TYPE=”ext4″ PARTUUID=”c8168d71-01″ /dev/sda5: UUID=”fbd90bd5-6b1a-4088-8569-0afbf0faebab” TYPE=”swap” PARTUUID=”c8168d71-05″ /dev/sdb1: UUID=”79a6887b-0168-464e-9507-84cc1233fcb6″ TYPE=”ext4″ PARTUUID=”c3072dd0-01″ /dev/sdc1: UUID=”4E65750852A3B04A” TYPE=”ntfs” PARTUUID=”000dfe15-01″ Way at the end is the NTFS drive. Now create an /etc/fstab entry like this: UUID=4E65750852A3B04A /media/theexternal ntfs-3g permissions,nofail,auto 0 0 nofail means your pc Read more…

PS3MediaServer on Ubuntu

Plex is cool, but if your internet goes down, then your clients can’t always connect. So, back the the basics for me with ps3MediaServer as a backup: sudo apt-get install mencoder tsmuxer avisynth ffmpeg mplayer sudo apt-get install default-jre Download generic-linux-unix from: https://sourceforge.net/projects/ps3mediaserver/files/ Change PMS.sh and tsmuxer to be executable Read more…

Get public IP and email it to yourself using Ubuntu

1.) Get your current public IP and write it to a file: dig +short myip.opendns.com @resolver1.opendns.com >> myip.txt (got this off the internet, thanks to the guy that posted this!) 2.) Read the file contents and email it: Basically, follow this tutorial: https://easyengine.io/tutorials/linux/ubuntu-postfix-gmail-smtp/ If you get an error like this Read more…

Some apache2 configs for owncloud

OMS, the apache guys just can’t stick to a standard. But anyhow, here are some configs to do: Issue 1 (Where is my config.php) Most likely it is in /var/www/owncloud/config/config.php Issue 2 (when starting Apache) AH00558: apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1. Set Read more…

Correct Kali repos and VirtualBox bidirectional clipboard

nano /etc/apt/sources.list deb http://http.kali.org/kali kali-rolling main contrib non-free # For source package access, uncomment the following line deb-src http://http.kali.org/kali kali-rolling main contrib non-free Then do: sudo apt-get update && sudo apt-get upgrade -y sudo apt-get install -y virtualbox-guest-x11 Then do: Original post: https://unix.stackexchange.com/questions/310548/bidirectional-drag-and-drop-shared-clipboard-is-not-working-with-virtualbox-kali In virtualbox make sure your clipboard is Read more…

Kali on Hyper V

I recently had to get Kali up and running on Hyper V. Here are some tips and tricks: After installation, use these sources (they might change after some time so always check the Kali website for the latest): nano /etc/apt/sources.list (and add the below) deb http://http.kali.org/kali kali-rolling main non-free contrib Read more…

Prevent devices from bypassing pihole (mikrotik)

Thanks to this guy for this awesome post: https://www.reddit.com/r/pihole/comments/5g249i/tip_redirect_all_dns_to_pihole_with_mikrotik/ Basically, you need to do this: Change 192.168.88.110 to your pi hole IP Change 192.168.88.0/24 to your subnet #Make sure all DNS goes to pihole IP address chain=dstnat action=dst-nat to-addresses=192.168.88.110 protocol=udp src-address=!192.168.88.110 dst-address=!192.168.88.110 dst-port=53 chain=dstnat action=dst-nat to-addresses=192.168.88.110 protocol=tcp src-address=!192.168.88.110 dst-address=!192.168.1.2 dst-port=53 Read more…

Github RPC failed; curl 56 GnuTLS recv error A TLS fatal alert has been received

I am running Ubuntu 18.04 in HyperV and couldn’t push to Github. Pull was fine. This was LEGIT the fix. A driver issue…. https://stackoverflow.com/questions/56946336/ubuntu-wsl2-git-getting-the-remote-end-hung-up-unexpectedly-on-large-repos/56946337#56946337 Go here to get the latest Intel WiFi driver: https://downloadcenter.intel.com/download/28876/Windows-10-Wi-Fi-Drivers-for-Intel-Wireless-Adapters?v=t