Raspberry Pi NAS……kind of

UPDATE Jan 31 2021:  I updated from Pi OS Buster to Bullseye which broke the Geekworm fan control.  The only way to get it going again was to do a fresh installation.

This was a fun albeit unnecessary project that costs a few bucks. I wanted to build a small portable NAS around a Raspberry Pi 4.

I ended up buying parts to create a polished, professional looking solution that utilizes a SATA 2.5″ SSD.  Here are the parts I bought:

Geekworm Stuff

This is a good looking case and I obviously have the front panel off of it for this picture.

There are a few things you need to know about this set up though.  It may or may not be the solution for you.

First the case fit and finish is beyond exceptional. The SATA board is excellent for mounting the SSD on the bottom side and pogo pins make the appropriate connections to the Pi.

Make no mistake though.  The SSD is connected via the USB 3.0 bus. And herein lies the rub.

Continue reading

Tailscale

You should NEVER hook up to a free wifi hotspot.  EVER.  If you MUST then you should instantly connect to a VPN to create an encrypted tunnel for your traffic to keep you safe.

Trouble is VPN’s either:

  • Cost money
  • Or are difficult to configure

Enter Tailscale which advertises itself as a zero configuration VPN and for the most part……….that’s true.

Basically, you install the app or program on your phone, tablet, or computer (easy) and then log in either by making an email account, using a Google or Microsoft account or a Github account. I personally would only do Github or the private email.

Tailscale login

That was easy.

Continue reading

Apple USB Superdrive with Unraid and MakeMKV

I’m ready to start ripping DVD’s on my newly built Unraid server.  In order to do it efficiently I ordered a SATA Optical Drive and my case (Fractal Node 804) has a slot in the front panel for just such a device.

In the interim, I have an old Apple USB Superdrive.  I plugged it in the server ……….and ……….nothing happened.  The disk wouldn’t insert.  It was like it was dead.   I plugged it in my laptop and it worked fine.  The dirty dogs at Apple make it so that their proprietary drive needs a wake up command that the Mac OS of course gives it.

SSH into your Unraid server and issue the following command.  If there is a disk in the slot it was auto-magically get sucked in.

sg_raw /dev/sr0 EA 00 00 00 00 00 01

In order to rip DVD’s directly into your file system in Unraid you need to add an app called “MakeMKV”. Once installed click on the logs to view.  We are looking for something specific.

MakeMKV Logs (click pics to enlarge)

[envira-gallery id=”4348″]

Scroll through the logs until you find the section that deals with check-optical-drive.sh

Continue reading

DIY NAS Build – Network Attached Storage

DIY NAS Build – Network Attached Storage

Your house may have numerous computing devices which means you probably have data you want backed up.  Yes, there are all manner of cloud services (Google Drive, Dropbox, iCloud, etc.) that you can utilize and they are indeed handy but your data now exists on SOMEONE ELSE’S COMPUTER.  And maybe that is what you want because there is something to be said for off site back up’s.  If there is a natural disaster and something tragic happens then you may lose all your data if it is stored locally.  We’re going to explore building our own DIY NAS.

That is a subject all in itself but back when I was working I built two small, identical NAS servers and just took one to work.  Because there was no private internet connectivity besides a phone hotspot, I would just bring one from home and take the other one back home to update it.  Again, off site back ups are an entirely different subject.

Another very common reason you might want a dedicated locally controlled server would be to rip all those DVD movies, and CD music you have to a media server.  Or a NAS server can act as storage for your security cameras (to hell with paying some company a monthly fee for your video) or for DVR.  I have a couple favorite old shows that I record currently from over the air (OTA) TV to my media server.

And if you build a device that is probably going to be on 24/7 you probably should exploit the heck out of it and make it do stuff.  Let’s build a NAS, shall we?

Continue reading

Raspberry Pi SATA add on board with OpenMediaVault

So once I needed to add some storage to a Pi and I opted for an SSD.  I added the SSD by installing a USB 3.0 to SATA adapter.  It was a good solution for the price but configuration was somewhat involved.

But now Raspberry Pi OS supports SATA devices natively.  That allows you to connect via a proper SATA add on board from Geekworm instead of a USB SATA device.  At $30 (not counting a case, power supply, and Power Management with Safe Shutdown add on board which costs all total around $100).

What you gain here is the ability to boot the Pi from the SSD drive and not the SD card.  This speeds things up.  A LOT.   You could take this device and install Plex and have your very own portable media server that you can travel with.

I’m not doing that here as I want to use 100% of my SSD drive for a SAMBA share.  This gives me a terabyte (or more if I get a larger capacity SSD) of network attached storage.  And while this isn’t a proper NAS with an array of drives, it is still pretty cool.  You can never have enough network attached storage and you can use this device for specific tasks.  In fact I was going to put Handbrake on it however there is no docker image for armhf7 for handbrake.   Still, you get the idea.  You can run any docker image and have it do a task or just be network attached storage.  Or as I suggested above use it as a traveling media (music, movies, shows) server.

Continue reading

LogitechMediaServer on Unraid

I heart LogitechMediaServer (LMS).  What is it?  It is a streaming music platform.  Back in the day it was among the first of the internet radio platforms.

Now we have Sonos.  Nothing wrong with Sonos if you are rich.  Big money for crappy sound.

Logitech made a line of “Squeezebox” devices such as the Touch and Radio, etc.  You can still find the same things basically with Sonos and Grace Digital Internet Radio.

LogitechMediaServer abandoned its hardware stake some years ago and now the software is community maintained and Open Source.

So you can essentially run the same streaming services FOR FREE and your clients can be small, low powered devices such as Raspberry Pi or essentially any computer you have.

So I install LMS (with the S meaning SERVER) on a Raspberry Pi and a music PLAYER called Squeezelite.  The newer Pi’s such as the Pi 3 or Pi 4 work pretty good but with some heavy use and network traffic you might experience a slight hiccup or two because of the relatively low CPU power and memory of a Pi.

Let’s move our LMS SERVER off the Pi and onto our REAL server.  I use Unraid at my house.   This blog won’t be a full installation blog but rather the “gotcha” I experienced.

Continue reading

Time To Upgrade The NAS Server

Finally got around to pulling my old NAS server out of the moving box and hook it up.  It had been out of service for about 3 months.

IT WOULDN’T BOOT.

One of my 4TB Western Digital Red Hard Drives gave up the ghost and also FreeNAS is now TrueNAS.  I didn’t catch that change because my server was kind of “set and forget”.

I decided to move to Unraid which uses Docker containers rather than “Jails” such as are used in FreeNAS.  Jails were always kind of hard for me, especially upgrading.

Unraid is a snap to upgrade the container and it runs all the stuff I want to run such as HomeAssistant, Emby, Plex, Apple Time Machine, etc.

Since I’m upgrading it was tempting to get cutting edge stuff.  However, in server builds faster and sexier is not always better.  Why?  Because a server is on 24/7 and that bleeding edge  motherboard and chip and power supply and 5 or 6 huge case fans will put a dent in your power bill.

Unless you are doing something crazy you really should consider a platform that SIPS power.  Serving files and streaming your movies on the network really doesn’t take that much overhead, especially if you have plenty of RAM.

I personally like motherboards with the Intel Atom chips.  Let’s pro and con the motherboard I chose.  The Asrock C3558D4I-4L

Asrock C3558D41-4L

Continue reading

More on Local Control of Internet of Things (IoT) Devices

Local Control of IoT Devices

I’m all about tech and gadgets but I’m all about security as well.  Internet of Things is a term coined that relates to smart devices that are connected to the internet.  Local control is a term that means your IoT devices only run on your LOCAL network and are not internet facing. Typically, the state of security is very poor with IoT devices.   There have been some very high profile hacks and intrusions and I’ll highlight just a few of them.  You can dig deeper if you want.

  • A Computer Takeover of a Jeep.  Yep.  It happened.
  • Ring doorbell cameras and microphones hacked.
  • Multitudes of smart devices with open SSH, Telnet, or HTTP ports open.
  • St. Judes hackable cardiac devices.
  • Baby monitor hacks. – This one is semi personal to me.  I am into Ham Radio and RTL-SDR devices.  One day I’m using an RTL-SDR device and listening around 900 MHz.  Lo and behold I can hear my neighbors baby monitor IN THE CLEAR.   Also in a similar vein one day I find Television audio where there shouldn’t be television audio.  Turns out it is the next door neighbors wireless headphones.
  • SimpliSafe – Same thing.  One day I’m setting up a 433 MHz receiver for RF home automation and I begin receiving packets of information from a neighbors SimpliSafe.  Got their Pin Code and password because it was transmitted in the clear.  Hope they fixed that by now.
  • Mirai Bot Net Attack – using hundreds of thousands of hacked IoT devices to perform Denial of Service attacks.
  • Phillips Hue – Terrible security.

IoT Can Be Dangerous

I can go on and on and on.  If you google “IoT exploits” or “IoT hack examples” you can go down the rabbit hole.  I think the biggest take-away here is that all those cool cameras, LED strips, smart light bulbs, smart outlets and smart switches, and security devices can be a giant security issue waiting to happen.   What a dichotomy, huh?  You buy some security devices to make you safe and they in turn CAUSE you to get exploited.

Continue reading

Home Entertainment TV Observations

After setting up a new household, network, and entertainment devices I have observed the following items.  My apologies for not going in depth with device names and photos and statistics……….I’m trying to keep this as simple a read as possible.

We have a smart TV and several smart devices.  Roku, Firestick, Apple TV, and HDHomeRun for Live TV connected to an antenna.

Quick observations:

  • Wireless devices and TV’s are the norm.  You have to pay bigger $$’s to get an ethernet port.  Streaming video and hi res is more likely to glitch over wifi.
  • All have abandoned Optical out for audio.  They seem to think that all devices operate perfectly over HDMI or that no one has an older Audio Visual (AV) system.
  • The HDHomeRun app only provides audio on some TV sets if set to Dolby Audio.

Granted I have older stuff but still.  Anyone with anything more than a few years old might have an AV system or surround sound system that worked on Optical or Digital out.  All these new devices seem to be HDMI only.

I have a Polk Audio sound bar on one TV that was several hundred dollars (came with the house) and isn’t that old.  It DOES NOT connect to HDMI.  So if I want to use a Roku AND THE SOUND BAR …………..it ain’t gonna happen.  In order to use the sound bar I have to hook up a super old (2015 era) Apple TV that I have.  Yeah it works but Apple no longer supports those devices and you just don’t get updated apps, etc. for them.

In other words, there is no backwards compatibility.

You would think that at a Tech Blog the guy writing it would only have the latest and greatest.  Well, let me tell you something about the latest.

Continue reading

Flashing QuietCool-AFG-SMT-PRO-2.0 Attic Fan with Tasmota

Decided to put an attic fan in over the garage and tried to find a “smart” one.  Sure enough Quietcool makes them and even better they have an ESP32 wifi chip in them which can be flashed with Tasmota.

ESP32

This means the fan can be controlled locally with Home Assistant and doesn’t need a separate app to control it.

Also while having an attic fan being smart it doesn’t need to be super smart.  You want them to come on at a certain temp and go off at a certain temp.

The manufacturers app has too much going on in my opinion.  And with these apps you just have no idea what they are up to.

The only person who has any business knowing my attic fan is on or off is ME.  Not QuietCool, not Google, just me.

 

DISCLAIMER:  This is not my work. I was walked through this by user kwikSi1ver on the Digiblur Discord discussion group.  I am only documenting this for posterity and re-creation purposes.  Again, I claim no credit for this.

Flashing with Tasmota is really no issue.  I can do that.  The magic and genius behind this is the reverse engineering.  Telling what relay to do what.  Making sure both relays don’t come on at the same time.  Making sure the power LED comes on.  Making sure all the sensors are recognized and spew out the right information and are DISCOVERABLE.

Yep, anyone can flash Tasmota.  The guys who reverse engineer stuff get all the credit.  But first ya gotta flash it.  But first lets back up the manufactures firmware in case something goes wrong.

Continue reading