- Details
I struggled a bit with getting my new 8BitDo M30 controller to pair properly with Batocera. Before we begin, please make sure the controller is on the latest firmware from 8BitDo, and that you're running the latest version of Batocera. Below are my notes and tips that got the controller working.
1) Put the controller into pairing mode first, then start Bluetooth discovery on Batocera. Use the Android D-input (Start + B) pairing mode.
2) After pairing it, it will likely go kinda crazy. Down doesn't work, and it keeps scrolling to the side, etc. Take a deep breath. We can fix this.
3) Turn off the controller by holding down start.
4) Restart Batocera.
5) Turn on the controller by holding down start. BOOM! PROFIT!
In some cases it may not even be necessary to restart Batocera (step 4). So basically the solution is to turn the controller off, then back on again. LOL! Some things never change.
- Details
I re-built my LEMP web-server fresh on Ubuntu 22.04 and learned some things along the way. This is my base build outline mostly created for my own notes.
Read more: Ubuntu 22.04 Nginx Build Outline
- Details
Here's how to create and mount an encrypted unassigned device in UnRAID.
1) Make sure the unassigned devices plugin is installed in UnRAID. :-)
2) Wipe the device
I do this to remove any old partition tables, etc., and I think the easiest way to do it is on the command line. Change the "of" device to your unassigned device. Confirm you have the right device!
dd if=/dev/null of=/dev/sdb1
3) Create partition table in UnRAID
You can also do this via the command line, but I prefer to use the UnRAID GUI for this to ensure it's created the proper UnRAID way. It will also format it.
4) Encrypt and format the device again
Encrypt it using the same passphrase you used for any encrypted array. Otherwise, it won't mount in the GUI.
5) Try mounting it in the GUI
Try mounting it in unassigned devices. Hopefully it will mount and you're good to go!
- Details
I've been figuring out how to block or redirect web traffic in Nginx based on the country geoIP.
NOTES
* You need the package nginx-extras for this because this package has the geoIP Nginx plugin.
* I used Japan (JP) in these examples, so change the country code to whatever you wish.
APPROACH #1 - BASIC
This uses a locally-downloaded GeoIP database.
Read more: Nginx - How to Block or Redirect by GeoIP
- Details
I re-built my LEMP web-server fresh on Ubuntu 20.04, and learned some things along the way. This is my base build outline.
Read more: Ubuntu 20.04 Nginx Build Outline
- Details
PRE-REQUISITES
- Rsync plugin
- User Scripts plugin (if you want to schedule the jobs)
- Unassigned Devices plugin
RSYNC TO UNASSIGNED BACKUP DRIVE
I often configure rsync jobs to backup critical data to an unassigned drive outside the array. My scheduled job looks something like this:rsync --archive --delete /mnt/user/SourceFolder/ /mnt/disks/TOSHIBA_MD05PBA60_1900876554/DestinationFolder/
RSYNC TO ARRAY BACKUP DRIVE
I read about a very interesting alternative backup approach with UnRAID. Instead of creating an unassigned drive to use for the backup, you actually add it to your array. Configure your shares to never use this drive. The idea here is that the backup drive will be a member of the array, but completely excluded from any and all shares. Then setup an rsync job like this:rsync --archive --delete /mnt/user/SourceFolder/ /mnt/disk4/DestinationFolder/
* Where disk4 is your backup disk.
An advantage to this approach is that the backup drive is an array member, so it's protected by parity. A disadvantage is that the drive is an array member, so it's not as easy to just pull the backup drive out if necessary. One scenario that comes to mind is if you want to rotate the backup drive with another one (e.g. off-site). Physically pulling the drive would affect the array and parity would have to be rebuilt. It would be easier to use an unassigned drive in that scenario.