Ansible – Setup and examples
You can run Ansible in a VM, a laptop with Linux installed, an LXC container, etc. In this tutorial we will cover the following: Authentication For every host I want Ansible to be able to Read more…
You can run Ansible in a VM, a laptop with Linux installed, an LXC container, etc. In this tutorial we will cover the following: Authentication For every host I want Ansible to be able to Read more…
There doesn’t seem to be a single, simple, straight forward tutorial online that shows how to get Lancache working with Pihole. These are the URLs that I referenced to get this working, so just listing Read more…
In later versions of Proxmox 8 you can manage your repositories from the GUI. If you’re getting the 401 Unauthorized, IP Not Allowed error, check the below. Disable the Enterprise repositories and add the non-production Read more…
In order to create a Proxmox LXD Container, we first need to download the templates. If you want to check out a full list of images go to https://linuxcontainers.org/ Take note that Proxmox doesn’t show Read more…
If you converted a Virtual Machine to a template in Proxmox, but then you realize you should not have done it, you can convert it back to a VM. The best option is to always Read more…
Flash ESP12f First we need to get our ESP12f into flashing mode. You will need a 10k resistor. You will also need an FTDI adapter. I used this tutorial: https://www.youtube.com/watch?v=wyolY1OwSxc You also need an adapter Read more…
My Lenovo Legion Y540 BIOS corrupted due to the “Use iGPU” setting in the Lenovo Vantage software. Here are the steps I followed to reflash my BIOS. Disclaimer You are on your own when trying Read more…
I had a scenario where I had to use a cloudflare worker to redirect one page to another, but, I also had to do the following: Cloudflare Worker Code Apart from the above, the following Read more…
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 Read more…
Here is what my setup looks like with a bridge I dont want to use a bridge anymore But now I want a more advanced setup, so in other words I don’t want a bridge. Read more…
When you have a python virtual environment you would activate the virtual environment’s python as such: But when you try to run this command in cron it will not work because by default crontab uses Read more…
Scenario Solution Cloudflare has an extensive list of APIs available to do just about anything. We are interested in this API: https://developers.cloudflare.com/api/operations/zero-trust-gateway-locations-update-zero-trust-gateway-location Step 1: Create an API Key and grab your Account ID You can Read more…
I will be running pi-hole on Ubuntun 22.04. The problem is, port 53 is already in use by my host, so lets sort this out first. Check if port 53 is in use You can Read more…
I am running an Axpert inverter with Solar Assistant on a Raspberry Pi. Solar Assistant collects data and makes an MQTT broker available. My Home Assistant (core, running in docker) has an MQTT broker defined Read more…
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 Read more…
I recently added Google ads (Adsense) to this blog to help generate some passive income. I am hosting by blog on WordPress in a container and had to ad the “ads.txt” file and its contents Read more…
All thanks to this developer: https://github.com/jlesage/docker-firefox Why use browser isolation? Running an isolated (also called sanbox) browser in a container is a good idea to compartmentalize your browsing or to investigate a potentially suspicious URL. Read more…
In this post we will look at how we can send notifications from Uptime Kuma to our Home Assistant. Home Assistant is behind Cloudflare Zero Trust. I am using Uptime Kuma to monitor a bunch Read more…
In this post we will diarize using pyannote, segment using pydub, and transcribe using whisper. Installing pyannote on Windows While on https://huggingface.co/pyannote scroll down and click on the diariazation model for example code. In the Read more…
Caveats First NGINX Proxy Manager (NPM) is running in its own docker-compose file (or “stack”) in portainer. I could not get it to use the hosts’s local IP to connect to containers running in different Read more…
This is a quick writeup on how to dockerize a nodejs application, using Github Actions to automatically build when you push to the main branch, and publish your image to Github Container Registry (ghcr) Create Read more…
Here is the full article: https://code.visualstudio.com/docs/sourcecontrol/github The main takeaways are:
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 Read more…
This is an extension 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/ The issue Because I access Home Assistant over SSL, the IFrames must also be loaded over SSL. Keep Read more…
In this tutorial we will look at setting up the Arduino IDE and writing a basic program to flash an LED using the delay function and not using the delay function. Delay is not the Read more…
Backup the database We will connect to the MySQL container for this. Create a file that will store our backup command: touch export_sql_db.shPut this in the file: (It is recommended to create a user specifically Read more…
This assumes you already have a Portainer server set up and running. If not, you can set one up as such: You can log into this portainer instance using https://<ip of server>:9443 Now lets say Read more…
When running Home Assistant in docker, you do not get the supervisor capability which means you must install everything yourself. It is not a big deal because you just install it with docker and add Read more…
The easiest and most reliable is to just use Python (you can use Windows or Linux, does not matter). I used Windows. Now that you have all the prerequisites done, plug in your dongle. No Read more…
You can use the Solarman API to create your own custom projects. First register on: https://pro.solarmanpv.com/login Contact Solarman Contact Solarman by sending them an email: [email protected] and include the following information: They will send you Read more…
Intro Alexxit Home Assistant add-on makes it possible to get Sonoff stats without flashing Tasmota. This is done by using a second Ewelink account. We will use the Sonoff PowR2 in this tutorial but it Read more…
I am taking bits and pieces from everywhere and making one article with all the information in one place. Please support the sites and projects I am referencing. The CC2531 is getting old now, but Read more…
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 Read more…
Refer two posts down on how to move your /tmp folder to memory (tempfs). Now symlink your Google Chrome (or Firefox) cache to /tmp (which resides in memory). rm -rf ~/.cache/google-chrome ln -s /tmp ~/.cache/google-chrome
Remember to set the sticky bit as well as nodev, noexec and nosuid for /tmp. Here is a line in fstab and the meaning of these 3 taken from the mount man page: nodev Do Read more…
For a while now I wanted to post this. I am running this on my PC at home because I don’t feel like doing it manually every day/week/month etc, and also because I don’t use Read more…
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 Read more…
Wait what? Is swappiness even an actual word? According to Google Chrome’s built in spell checker and most probably any dictionary it is not, but to any Linux user and expert out there, it most Read more…
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 Read more…
Because /media is owned by root, plex will have issues. Add the plex user to your group: sudo addgroup plex YOURGROUP Then, open the “disks” app in ubuntu, choose your flash drive, click on the Read more…
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 Read more…
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 Read more…
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) Read more…
service cron status — check if it is running ps -ef |grep cron –another way to check if cron is running You can use the below to generate output files every XX minutes with a Read more…
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 Read more…
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 Read more…
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 Read more…
Always wanted to set up a squid and squidguard transparent proxy on your Mikrotik router, and a raspberry pi? Then look no further! To get squid up and running on your PI, check out this Read more…
I sometimes get this in docker or a VM. It is related to checksum offloading onto the NIC. Diable checksum offloading: sudo apt install ethtool sudo ethtool –offload eth0 rx off tx off
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