Browsed by
Author: Spencer LeB

Monitoring Systemd Services / Automatic Cron Restart

Monitoring Systemd Services / Automatic Cron Restart

I got a raspberry pi acting as a NUT SERVER, and it keeps flaking out. I keep having to restart nut-server all the time. Lets automate checking if the service is running and restart it if its not. The Issue. Every so often it just stops. See the graph below Lets create a bash script for checking the service Lets save the script and make it executable Lets edit crontab by typing “crontab -e” into the shell and add the…

Read More Read More

Proxmox RAID1 with BTRFS

Proxmox RAID1 with BTRFS

Just making a note. That if you are using BTRFS as the root volume on proxmox. You should (Ahead of time) set the following in /etc/default/grub “rootflags=degraded“ This will allow your Proxmox host to continue to boot with a dead/missing disk. Otherwise, you’ll be in for a bad day.

Continuously updated zpool iostat

Continuously updated zpool iostat

 cmdwatch -n 1 zpool iostat -vy 1 1 For example, cmdwatch -n 1 zpool iostat -vy 1 1 will give us the detailed output from the last section, in an updated in-place format on the screen rather than scrolling. For truly interactive use, this is the superior way to check iostat on an ongoing basis. The only real disadvantage to using watch or cmdwatch to monitor zpool iostat in realtime is that when you ctrl-C out of its loop, it clears the screen one last time, rather than…

Read More Read More

Media Stack – Jackett, Radarr, Sonarr, Plex, TransmissionVPN.

Media Stack – Jackett, Radarr, Sonarr, Plex, TransmissionVPN.

Going to break down my current media stack, as well as list what these tools are and what they do. As well as how you can use these tools together to have a great media automation setup. I’ll specifically be sharing my docker-compose files so you can easily set this up quickly. You can customize it to your needs afterwards. Or even run each service in it’s own VM. But why would you with docker being a thing? https://github.com/Jackett/Jackett Jackett…

Read More Read More

Add Youtube-dl to Termux in Android

Add Youtube-dl to Termux in Android

Install Termux from the Play store. In termux: Give termux access to your phone’s filesystem via ~/storage/shared : Install python: Install youtube-dl Create a folder to store your downloaded videos: Create youtube-dl config (volume-down key emulates Ctrl in termux): The contents of my config is as follows: (the height<=480 tells youtube-dl to download the best quality version up to 480px in height. You can change to 240, 360, 720 or 1080, etc to suit your needs / bandwidth restrictions. Save…

Read More Read More

Truenas 12 – Access Based Share Enumeration – Hide folders from users without read/write access

Truenas 12 – Access Based Share Enumeration – Hide folders from users without read/write access

I took me forever to figure this out working the way I wanted. What I basically wanted was User A to not see User B’s folders. A more detailed explanation can be found here.https://www.reddit.com/r/truenas/comments/lb344p/smb_access_based_enumeration_not_working_for/ If your problem is similar to the reddit post. These instructions should work for you too. You’ll want to figure out which user you don’t want to see on a specific folder. You will need SID. You can get a USER SID or GROUP SID.Here are…

Read More Read More

Farewell Synology DS416

Farewell Synology DS416

I can’t recommend Synology enough. I’ve had this little guy running since 2017. With some questionable and not so questionable drives installed. I never had one single issue with it. In fact I really enjoy working with these NAS units. It never outgrew my storage capacity needs. However my need for 10GB networking, massive disk io, and speed did lead this relationship to the bitter end. I would gladly buy another Synology unit if they made a device reasonably priced…

Read More Read More

Backup Truenas to Synology via rsync

Backup Truenas to Synology via rsync

I found loads of posts on how to backup Synology to Truenas. However found it quite difficult to find a full up to date guide for Truenas to Synology. So I’ll attempt to make a guide here. There are a number of various ways to accomplish this, however I will list the steps I took. I’ll try to provide in depth detail. Setup a new user account on Truenas named “rsync” SSH Public Key comes later On Truenas when creating…

Read More Read More

Windows 10 Analyze the wireless network report

Windows 10 Analyze the wireless network report

The wireless network report is one of the more useful tools in Windows 10 that can help you diagnose Wi-Fi connection problems. To create the wireless network report In the search box on the taskbar, type Command prompt, press and hold (or right-click) Command prompt, and then select Run as administrator > Yes. At the command prompt, type netsh wlan show wlanreport. This will generate a wireless network report that’s saved as an HTML file, which you can open in your favorite web browser. The report…

Read More Read More

Truenas/Freenas performance testing

Truenas/Freenas performance testing

May help others Network performance – FreeNAS From a Linux machine: 1Gb on both sides Write Test: Read Test: Additionally IOZONE testing Source: https://www.thegeekstuff.com/2011/05/iozone-examples/ As we discussed in our Linux performance monitoring introduction article, measuring IO subsystem performance is very important. If someone is complaining that a database (or any application) running on one server (with certain filesystem, or RAID configuration) is running faster than the same database or application running on another server, you might want to make sure that the…

Read More Read More

Reduce the fan noise of the Dell R720XD (plus other 12th gen servers) with IPMI

Reduce the fan noise of the Dell R720XD (plus other 12th gen servers) with IPMI

Introduction In this guide I will be showing you how you can reduce the fan noise of the Dell Powerdge r720XD. This will probably work on the r720 and other 12th gen dell servers. To do this, we will be using IPMI to manually override the fan speed. Requirements In order to follow this guide, you will need the following: A Linux machine (or anything with ipmitool available) 12th gen Dell Poweredge Server with iDRAC 7 Disclaimer Make sure you keep an…

Read More Read More

Basics Linux Network Sharing Python & HTTP

Basics Linux Network Sharing Python & HTTP

Super quick network sharing.  Simple HTTP Server Python has a super useful tool for serving files over HTTP. This is great if you just want to create a quick network share that other machines on your network can access. To do that just go to the directory you want to share and run: $ python -m SimpleHTTPServer This sets up a basic webserver that you can access via the localhost address. So grab the IP address of the machine you…

Read More Read More

How to enable Wake On LAN in Ubuntu Server 18.04 / Debian based systems / Systemd

How to enable Wake On LAN in Ubuntu Server 18.04 / Debian based systems / Systemd

What you’ll need The only things you’ll need to make this work are: An instance of Ubuntu Server 18.04 A user account with sudo privileges A network interface that supports WOL How to install ethtool The tool that makes this possible is ethtool. Chances are, it’s already installed on your server. However, on the off-chance it’s not, let’s install it. Open a terminal window and issue the following command: sudo apt-get install ethtool -y How to locate the interface name…

Read More Read More

How to find any or all DHCP server or servers on your network without download software using command line

How to find any or all DHCP server or servers on your network without download software using command line

After searching high and low, I thought I would share some commands that will allow you to find all active DHCP servers on your network. There is software like FIND DHCP SERVER however there are some incompatibilities we have found on some operating systems. Temporarily disable your production DHCP server and see if other servers respond. You can get the IP address of the server by runningipconfig /allon a windows machine, and then you can get the MAC address by…

Read More Read More