Jump to content

DaFr0n

Members
  • Posts

    60
  • Joined

  • Last visited

Posts posted by DaFr0n

  1. On 12/21/2023 at 6:42 PM, beckp said:

    Now that the Raspberry Pi Zero W is available and we’re not being scalped, I thought I’d share how to make your own key server. It is tailored to the Raspberry Pi Zero W for various reasons. A Raspberry Pi Zero 2 W could be used, it will slightly cost more and consume a little more power. Any other Raspberry Pi may or may not function properly. 

     

    To save power it is configured to be headless, blue tooth and serial console disabled. The time synchronization daemon (ntpd) is not installed and time is synchronized only once a day and at boot.  The activity LED is limited to off, and two styles of flashing. 

     

    I’ve attached a photo of my Diet Key Lime Pi.

     

    What's in a name? Why Diet Key Lime Pi?

     

    • Diet, as in DietPi, the lightweight Debian based operating system (O/S) the Diet Key Lime Pi uses.
    • Key, for the key file the server needs to store.
    • Lime, for Lime Technology Inc., the creator of Unraid.
    • Pi, for the Raspberry Pi the server uses.
    • Last, I like key lime pie.

     

    Why the Raspberry Pi Zero W was chosen?

     

    • The Raspberry Pi Zero W has built in WiFi. There is no physical connection to the unRAID server. It can be placed in an inconspicuous location within Wi-Fi range.
    • The Raspberry Pi Zero W is the smallest form factor Raspberry Pi to have wireless connectivity. The PCB for the Raspberry Pi Zero series is approximately 2.6" x 1.2" (66mm x 30.5mm), almost credit card size.
    • The Raspberry Pi Zero W is the least  expensive  Raspberry Pi to have wireless connectivity. The Raspberry Pi Zero W is approximately $15 USD.
    • The Raspberry Pi Zero W is the lowest powered Raspberry Pi to have wireless connectivity.  The Raspberry Pi Zero W has only one core. My Diet Key Lime Pi consumes approximately 0.5 Watts idle. Something ideal for a system that will be operating 24/7.

     

    Why was the DietPi image chosen?

     

    • DietPi is an extremely lightweight Debian based operating system (O/S). It is 3X lighter than Raspberry Pi OS Lite.
    • DietPi is highly optimized for minimal CPU and RAM resource usage, ensuring the Diet Key Lime Pi will always run at its maximum potential.
    • DietPi boots faster than Raspberry Pi OS Lite. You want the key server up before the Unraid server needs the key file.
    • DietPi can be optimized for the Diet Key Lime Pi system. Only the software the Diet Key Lime Pi needs is installed.
    • DietPi allows for a complete automated installation.

     

    Please find attached two files. KeyServerInstallationGuide.pdf, a tutorial to create your own Diet Key Lime Pi key server. MyKeyServer.zip, files to be used to configure the automated installation.

     

    The most difficult portion of this process will be determining your static IP address. Google can be you friend here. 

    KeyServer.jpg

    KeyServerInstallationGuide.pdf 143.27 kB · 13 downloads MyKeyServer.zip 2.33 kB · 8 downloads

    Does anyone know if this method still works, I'm struggling to get it up and running.

  2. Hi all, I'm having a few problems with unraid behind OPNsense.

     

    OPNsense is setup as a VM within unraid.

    The issues I have at the moment mainly relates to dockers, looking at their address's they are correct 192.168.4.3:32400 e.g. for Plex.

    However if I try to open the Plex webui it doesn't load and the actual webui Ip is 169.254.126.151:32400

     

    If you go into a docker template, delete the last letter of the name & re-add it to enable the save button it recreates the docker and the webui works again.

     

    Is there anything you can recommend?

  3. **UPDATE**

     

    Looks like the Pizero hasnt yet got its static IP during boot, therefore before OPNsense is running I need to use host instead of the IP:

    The file does transfer to unraid, however the server wont start, inspecting the transferred file in nano its actually blank.

    If I do a wget with the system already up and running it pulls fine, therefore why is the keyfile coming over blank during boot?

     

    ***UPDATE***

     

    Scratch the file transferring I had -O which was creating a blank log file. 

    I also tried --tries=0 but it doesn't make a difference. 

     

    I'm at a loss

  4. Ok so far I have done the below:

     

    • Headless Raspbian install on Pizero connected via LAN
    • Installed vsftpd
    • Saved a keyfile on the Pizero
    • SSH directly into Pi from unraid console to generate keypair
    • Tested the wget from the Pizero to unraid, trial and error but I got the transfer to work successfully, though its only ftp, everything else SFTP, curl, threw errors:
      • wget --user=USER --password='PASSWORD' ftp://192.168.4.28/keyfile -O /root/keyfile

    • Amended the go file:

      • #!/bin/bash

         

        # get keyfile

        wget --user=USER --password='PASSWORD' ftp://192.168.4.28/keyfile -O /root/keyfile

         

        # Start the Management Utility

        /usr/local/sbin/emhttp &

     

    • This is where I'm struggling, if I put the wget to the bottom of the go file, then it boots but it wont auto start however the keyfile is there in 'MAIN' , assume its auto starting before it fully pulls the keyfile. If I put the wget as per the above, before /usr/local/sbin/emhttp &, then it wont show the webgui or fully boot.

     

    Any ideas?

  5. As per the title, as of the latest unraid version 6.12, what's the best way to auto start an encrypted array?

     

    I never used to mind entering the passphrase, however I have since installed OPNsense, therefore I need the system to auto boot if it ever goes down & automatically start the OPNsense VM.

     

    My thinking is to have a Pi Zero (lan adapted) hidden somewhere is the house attached to the network, if the unraid server goes down then it automatically pulls the keyfile and starts the array, therefore in the unfortunate instance of the server being stolen, it would not find the pi/keyfile and therefore not start the array leaving the data encrypted.

     

    If anyone is doing this, instructions would be great please.

  6. I'm having similar issues with Zoneminder not starting:

     

    root@30404418888a:/# service mysql start
     * Starting MariaDB database server mysqld                                                                                                 [ OK ] 
    root@30404418888a:/# service zoneminder start
    Starting ZoneMinder:
    06/24/23 10:38:06.166412 zmpkg[22796].INF [main:318] [Sanity checking States table...]
    DBD::mysql::st execute failed: Lost connection to MySQL server during query at /usr/share/perl5/ZoneMinder/Logger.pm line 627.
    06/24/23 10:38:06.234656 zmpkg[22796].ERR [ZoneMinder::Logger:630] [Can't execute log entry 'INSERT INTO Logs ( TimeKey, Component, ServerId, Pid, Level, Code, Message, File, Line ) VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, NULL )': Lost connection to MySQL server during query]
    DBD::mysql::st execute failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) at /usr/bin/zmpkg.pl line 325.
    06/24/23 10:38:06.234864 zmpkg[22796].FAT [main:325] [Can't execute: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111)]
    ZoneMinder failed to start

  7. Hi All, lately I'm having frequent disk errors with Disk3 in my array and it being disabled.

    Removing it from the config then re-adding it starts the parity rebuild process.

     

    I have been looking at unbalance to remove all data from disk3 distributing across the array.

     

    My question is, if I run docker safe new perms will the affect files and folders I have setup using the Windows SMB share (there is a lot)?

    I don't want to reset a load of permissions only to experience further issues.

    unraid-diagnostics-20230623-1524.zip

  8. Anyone had a issue regarding login?

    I can get to the login screen fine, upon entering my login details I get the following error: HTTP ERROR 500

     

     

    Log shows:

     

    Aug 17 18:43:33 256ff5990435 zmstats[1044]: ERR [Failed DELETE FROM `Logs` WHERE `TimeKey` < unix_timestamp(now() - interval 2 day) LIMIT 100 :Table 'zm.Logs' doesn't exist in engine]

×
×
  • Create New...