Till yesterday I used a simple USB disk as a ZFS backup pool. I had a moderately complex script started by cron at 6’o clok every morning to create a new snapshot about some vital information storing datasets and then zfs send and zfs recv it to the USB disk. It wasn’t too elegant and it made me always a bit nervous knowing how volitaile USB disks are. My 2 cents: do not use USB disks for ZFS, but…
Systemctl throws a hiss if you attempt to run redis in a LX branded zone. Oct 08 21:37:57 paperless (s-s[4078]: redis-server.service: Failed at step USER spawning /usr/bin/redis-server: Operation not permitted Oct 08 21:37:57 paperless (s-s[4078]: redis-server.service: Failed to set up user namespacing: Operation not permitted The solusion is pretty simple, we need to create an override.conf file…
I had configured some firewall rules on my NAS, which initially seemed to work correctly. However, I later noticed that the rules were not being applied after the NAS was rebooted. I began investigating the issue. First, I removed all customizations and disabled, then re-enabled the IP filter service. After rebooting the NAS, I examined the current state of the system: root@omnios:~# svcs |grep…
Connecting to my OmniOS NAS from the Windows 10 Terminal causes a blinking issue in nano. I usually fix it with: % export TERM=vt100 But I sometimes forget - which can be a health risk. I don’t want this in my shell config, since other terminal emulators work fine and need better TERM settings. So I added this to my .ssh/config on the Windows machine: host NAS HostName NAS User username RequestTTY…
ZFS snapshots are a simple and secure way to store a read-only state of a file system that can be restored in the event of accidental data loss, transferred, and replicated to another machine for backup. I wanted the NAS to take a snapshot every day and keep the last 7 snapshots. Here’s how I did it: # cat zfs_snapshot_create.sh #!/usr/bin/env zsh # Daily ZFS Snapshot with Pushover Notification #…
pin import adc import 26 constant x_pin ( GPIO pin of the X axis ) 27 constant y_pin ( GPIO pin of the Y axis ) 2 constant button_pin ( GPIO pin used for the button ) button_pin pull-up-pin ( Defining the button pin as pull-up ) : get-adc-chan pin-adc-chan ; ( Getting the ADC channel of the passed pin ) : x-pin-adc x_pin get-adc-chan ; ( Get the ADC channel of the x-axis pin ) : y-pin-adc y_pin…
We will use zadm for zone administration, installation is simple: # pkg install zadm We need a vnic for our zone, so let’s create an instance: # dladm create-vnic -l e1000g0 zone_transmission_0 Then set up the zone with zadm: # zadm create -b pkgsrc transmission The zone config will open in your $EDITOR, modify it like shown below: { "autoboot" : "true", "bootargs" : "", "brand" : "pkgsrc",…
Write a program that takes an integer, calculates the square and prints the result on the screen also print out a newline character \n after the result. : square-calc ( n -- n*n ) depth 1 < if ." Supply an integer and call square-calc again. " else ." The square of the number you entered is " dup * . cr then ; Write a program that first asks the user for an integer and after that, a floating-point…
I have built the latest U-boot (2025.01-rc5) for Radxa Zero 3 (both W and E version supported): Bootloader storage Note: you have to extract the downloaded file first. How are they built? #!/bin/sh UB_TREE_PATH="/u-boot/u-boot-2025.01-rc5" cd $UB_TREE_PATH # rkbin: https://github.com/rockchip-linux/rkbin RKBIN="/rkbin/bin/rk35/" export BL31="$RKBIN/rk3568_bl31_v1.44.elf" export…