CroxFox Microblog

Reader

Read the latest posts from CroxFox Microblog.

from The Fox Diary

Nina and Narla and Norman

A warm evening and it's the youngster's turn tonight. Mum, Dad and Aunty fed well yesterday.

The girls were immediately out and little Norm was too slow to get the chicken. Got an egg though.

 
Read more...

from The Fox Diary

Nina, Dadfox and some bad rainy weather.

Rain was from last night. Moved the bowl to avoid the worst of it. Think it was appreciated.

The lighter pics are tonight. Dadfox and I think Nina, the largest of the young females.

 
Read more...

from HomelabOS on a Raspberry Pi

Maloja

Wow! Got this self-hosted Last.fm style self-hosted scrobbler working on one of my servers after a lot of head scratching with my other development server. Can't quite work out why the other development server couldn't scrobble properly but I think it needs a rebuild anyway.

Not dared to try this on a Pi yet.

This works with the associated “Multi-Scrobbler” which is indescribably cool until you get it working (a challenge!)

Also as a note, possibly scrobbling from Tautulli would include Tidal plays?

Multi-Scrobbler

I need to make some notes on how I got this working, particularly the Spotify API.

Malojaplum

 
Read more...

from HomelabOS on a Raspberry Pi

More of primer for another server I use for development that I want to hibernate when not using to save energy. Plus I'm too lazy to switch the darn thing on and off..

$ ip a

 eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 6c:4b:90:03:9c:9e brd ff:ff:ff:ff:ff:ff
    altname enp1s0
    inet 192.168.1.225/24 brd 192.168.1.255 scope global eno1
       valid_lft forever preferred_lft forever
    inet6 fd41:4bbf:28e6:6894:6e4b:90ff:fe03:9c9e/64 scope global dynamic mngtmpaddr noprefixroute
       valid_lft 1701sec preferred_lft 1701sec
    inet6 fe80::6e4b:90ff:fe03:9c9e/64 scope link
       valid_lft forever preferred_lft forever```
       

MAC Address.. 6c:4b:90:03:9c:9e

 $ sudo ethtool eno1
        Settings for eno1:
        Supported ports: [ TP MII ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Supported pause frame use: Symmetric Receive-only
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Advertised pause frame use: Symmetric Receive-only
        Advertised auto-negotiation: Yes
        Advertised FEC modes: Not reported
        Link partner advertised link modes:  10baseT/Half 10baseT/Full
                                             100baseT/Half 100baseT/Full
                                             1000baseT/Full
        Link partner advertised pause frame use: Symmetric
        Link partner advertised auto-negotiation: Yes
        Link partner advertised FEC modes: Not reported
        Speed: 1000Mb/s
        Duplex: Full
        Port: MII
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: on
        Supports Wake-on: pumbg        
        Wake-on: d
        Current message level: 0x00000033 (51)
                               drv probe ifdown ifup
        Link detected: yes

The man-page for ethtool tell you what that cryptic pumbg means – the letters are different options that this interface supports for Wake-On-LAN. In this case they are:

Option Description p Wake on PHY activity u Wake on unicast messages m Wake on multicast messages b Wake on broadcast messages g Wake on MagicPacket messages There's an additional option which is what the interface was set on – d – as you can see in the last line of the output. This means Disable (wake on nothing). This option clears all previous options. I don't have many devices on my network, so I don't know that there's a lot of broadcasts, multicasts, etc. that would be waking it up all the time, but since one feature of Wake-On-LAN is that it only wakes the machine when it gets the “Magic Packet”, only the g and d options matter. Now that I knew it was supported, it was time to try it out.

~$ sudo ethtool --change eno1 wol g

Suspend to test..

``` $ sudo systemctl suspend

or if brave..
```$ sudo systemctl hibernate
$ wakeonlan -i 192.168.1.225 6c:4b:90:03:9c:9e

Create a file at /etc/systemd/system/wol.service (I think you can use another systemd sub-folder, and you can name the file anything you want, within reason, but this one seems to work well enough). In this file you put settings that look something like this:

[Unit]
Description=Enable Wake On Lan

[Service]
Type=oneshot
ExecStart = /sbin/ethtool --change eno1 wol g

[Install]
WantedBy=basic.target

Enable The Service

To enable it you can do this:

sudo systemctl daemon-reload
sudo systemctl enable wol.service

Make an alias command

alias wakeup='wakeonlan -i 192.168.1.225 6c:4b:90:03:9c:9e

Alias on server

alias snooze='sudo systemctl hibernate'

Stick them in .bash_aliases for Ubuntu.

 
Read more...

from HomelabOS on a Raspberry Pi

The problem is with how HomelabOS has not updated the password hash algorithm. The fix is here

user.yml then needs to be edited with the corrected argon password deleting the garbled stuff from the file.

Docker

docker run -it authelia/authelia:latest authelia crypto hash generate argon2

To generate an Argon2 hash with the docker image without a prompt you can run:

Docker

docker run authelia/authelia:latest authelia crypto hash generate argon2 --password 'password' Output Example:

Digest: $argon2id$v=19$m=65536,t=3,p=4$Hjc8e7WYcBFcJmEDUOsS9A$ozM7RyZR1EyDR8cuyVpDDfmLrGPGFgo5E2NNqRumui4

plug this into user.yml

 
Read more...

from mrplum

A bit of a stupid day workwise. Went in to King's Cross hoping to get back for lunch. Some trespasser on the Met Line so got stuck in Wembley for a couple of hours and got very hungry.

Evening cataloguing music library with the barcode scanner and getting another couple of microservices running in the Pi.

 
Read more...

from HomelabOS on a Raspberry Pi

Syncthing and Tautulli also run on the Pi so can sync from phone and alos lok at Plex music play stats... Nerd.

Syncthing has a bug where files synced to a Samba share (images) are hidden files until you unhide them – A Samba bug where the compression and use of dot files doesn't quite work properly. The files do transfer.. just took me a while to find them then use “properties” in windows file manager to deselect “hide”.

 
Read more...

from mrplum

There can be fewer more nerdy and dull tasks that using a barcode scanner to compile my massive music CD library into Discogs.. I knew I bought it for that reason a long time ago.

I'm pulling out and enjoying L.P.s as I'm doing this and there is a lot more of an emotional attachment and memories to where and when I bought them.

Vinyl Blog

 
Read more...