ehowton: (BSD)
2025-01-14 11:35 am
Entry tags:

URBACKUP


I've been running backups awhile now - nothing unusual - UrBackup on the UNRAID server to backup my desktop and its (seven?) volumes, and TimeMachine (also on the UNRAID server) to backup my Minis and (more importantly) the MacBook Pro - which is only connected to TimeMachine when I am on my personal VPN which allows me to connect to the UNRAID shares at home (and subsequent Windows shares through UNRAID) when I am away, which these days is more often than not. Given the storage capacity of the MacBook, I do most of my audio/video (but not AI) work on the UNRAID shares over VPN, which translates into TimeMachine not being able to assist much in that regard as it doesn't cover remote-mounted volumes (though it does cover the USB-attached volume).

I was working on the graphic below, which contains less than 20 layers, and was saving the PSD file frequently. During one of my last saves I received a "disk error" message, so saved it again - that one went through - then closed the file. As it turns out, the save wasn't successful and I was unable to open it later. I tried a variety of tools which were supposed to work, but didn't, before I remembered I had backups. I logged into the UrBackup GUI (located on the UNRAID server), selected the approximate time of the last known good backup (I've since changed it to two days worth of hourly incremental), and successfully restored my layered PSD. First chance I've had to test my restores, and I was thrilled it was so smooth and easy!



ehowton: (Sun Logo)
2024-10-01 09:30 am
Entry tags:

XML

Trying to undo a corporate corner I painted myself into fifteen years back...

I wrote a webpage:
cat index.html | wc --> 3,827 characters

Used wkhtmltopdf to convert it to PDF, then used Word to turn it back into a webpage:
cat index.html | wc --> 6,646,652 characters



ehowton: (SGI Octane)
2024-09-26 04:54 pm
Entry tags:
ehowton: (Computer)
2024-09-20 09:13 am
Entry tags:

UNRAID 6.12.13

Travel ready; new disk added to pool and full remote access to my systems:


ehowton: (Computer)
2024-09-09 10:46 pm
Entry tags:

UNRAID


It wasn't really fun, or easy, or even really necessary if we're being honest. Mostly because UNRAID isn't much of a hypervisor, and I'm really not into that whole "Docker" thing - which looks freaking awesome if it like, worked and stuff. But I'm a sysadmin - I have needs. Things like access, and tools, and the ability to manipulate things outside their intended purpose. Dockers don't really have that. So I used VMs, but again, UNRAID is not much of a hypervisor which made things difficult. Geekfriend migrated her minecraft server from my R610 to her UNRAID, mostly because COX can eat a bag of dicks. That meant at some point, I'd likely poweroff the minecraft server. And really, the only things running on the ESX host are my bastion (openBSD) and my DNS server (rocky linux), neither of which require many resources. Figured running them on UNRAID would be non-impactful. What I didn't plan on doing was spending most of the day and all night getting something relatively easy to work. Enter the Story of my Life.

Anyway, upgraded openBSD from 6.6 to 7.5 while I was at it, and traded in rocky linux for openSUSE 15.6. What gave me the most difficulty was qemu, which UNRAID runs as it's built-in hypervisor, so I was unfamiliar with....well, just about everything.

Anyway, its done. I have a 14TB drive arriving tomorrow, which is going to be a huge pain in the ass because your parity drive has to be the largest one (the reason I only bought 12TB drives for so long) and migrating that much data is a pain in the ass. Just in case (and because Geekfriend did it also) I'm upgrading from 16GB of RAM to 64GB because running Dockers and VMs requires more than just idling storage - the idea being, I've managed to consolidate my entire homelab into a single box I could lift and ship at a moment's notice.

We'll see.



ehowton: (BSD)
2024-09-05 11:35 am
Entry tags:

macOS nDNS

When macOS can nslookup, but returns the following error when attempting ssh/ping:

ssh: Could not resolve hostname unraid: nodename nor servname provided, or not known

Simply run:

% sudo killall -HUP mDNSResponder
ehowton: (Sun Logo)
2024-05-14 03:59 pm
Entry tags:

HOWTO Round-Robin in dnsmasq


# cat /etc/hosts | grep backendNAS
192.168.0.3

# for x in {4..62} ; do echo "192.168.0.$x backendNAS" >> /etc/roundrobin_nas
# chmod 644 /etc/roundrobin_nas

# cat /etc/dnsmasq.conf | grep addn-hosts
addn-hosts=/etc/roundrobin_nas

# systemctl restart dnsmasq

# nslookup backendNAS

Name: backendNAS
IP: 192.168.1.3

Name: backendNAS
IP: 192.168.1.4

Name: backendNAS
IP: 192.168.1.5

...

Name: backendNAS
IP: 192.168.1.60

Name: backendNAS
IP: 192.168.1.61

Name: backendNAS
IP: 192.168.1.62

ehowton: (BSD)
2024-05-02 08:07 pm
Entry tags:

TTS


Had an idea that would require learning how to utilize AI for text-to-speech projects, but I had to learn some things first. There's an Nvidia-specific application which sounded fun (Tachatron 2), but the RTX4090 is Ada Lovelace architecture and the app only supports Volta, Turing, and Ampere and the next one which looked interesting was ESPnet, which appears to work best on linux. So I fired up the old desktop (the one with the RTX3070) but I had to replace a brand new monitor that went out after only two months of use (ugh), then patch and upgrade the operating system since its been so long since I've powered it on.

Really only three tasks left: Figure out how to install all the inane prerequisites using incomprehensible GitHub links which don't tell you *where* to put stuff so everything can work together, try to start and run the damn thing, and (if all that works), figure out how to actually use the application. Which reminds me, since this is text-to-speech, I probably ought to hook up some sort of audio output device to the linux box.



ehowton: (BSD)
2024-04-11 04:05 pm
Entry tags:

wsl

IF:

Failed to attach disk 'C:\Users\howto\AppData\Local\Packages\46932SUSE.openSUSELeap15.5_022rs5jcyhyac\LocalState\ext4.vhdx' to WSL2: The system cannot find the file specified.

THEN:

> wsl --unregister openSUSE-Leap-15.5

> wsl --install -d openSUSE-Leap-15.5


OR IF:

Error: 0x80070422 The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.

THEN:

Turn Windows features on or off
Check Windows Subsystem for Linux
run --> services.msc
WSL Service --> Automatic --> Start
Reboot (if wsl won't start after the above)
ehowton: (BSD)
2024-01-30 01:53 pm
Entry tags:

Removing Unwanted Mirrored Repos from RMT

rmt:/var/lib/rmt/public # for x in `find . -name "*aarch64*" | sed -r 's/.{2}//'` ; do rm -Rf $x ; done
rmt:/var/lib/rmt/public # for x in `find . -name "*s390x*" | sed -r 's/.{2}//'` ; do rm -Rf $x ; done
rmt:/var/lib/rmt/public # for x in `find . -name "*ppc64le*" | sed -r 's/.{2}//'` ; do rm -Rf $x ; done

Then rmt-cli mirror just the ones you need for quick/dirty:

rmt: # for x in `rmt-cli repos list --all | grep 15 | grep SP5 | grep -v Not | grep -v Don | awk '{print $2}'` ; do rmt-cli mirror repository $x ; done
ehowton: (BSD)
2023-12-10 08:03 pm
Entry tags:

systemd-resolved.service (resolv.conf)

# systemctl stop systemd-resolved.service
# systemctl disable systemd-resolved.service

Removed "/etc/systemd/system/dbus-org.freedesktop.resolve1.service".
Removed "/etc/systemd/system/sysinit.target.wants/systemd-resolved.service".

# ls -al /etc/resolv.conf
lrwxrwxrwx 1 root root 39 Mar 21 2023 /etc/resolv.conf -> ../run/systemd/resolve/stub-resolv.conf

# rm /etc/resolv.conf
# vi /etc/resolv.conf
ehowton: (BSD)
2023-11-14 12:56 pm
Entry tags:

warning: Unsupported version of key: v3

zypper ref | grep "gpg-pubkey-" | xargs rpm -e
ehowton: (BSD)
2023-09-05 02:36 pm
Entry tags:
ehowton: (pic#11704131)
2023-05-04 07:51 am
Entry tags:

Crontab

ehowton@wdt:~> crontab -l
*/5 * * * * /home/ehowton/scripts/directory_listing_unixspook
*/5 * * * * /home/ehowton/scripts/directory_listing_wdt
*/5 * * * * /home/ehowton/scripts/rotate_lj_pic_banner.sh

ehowton@wdt:~/scripts> cat directory_listing_wdt
#!/bin/bash

rm /srv/www/vhosts/wilddamntexan/kids/index.html
echo "" > /srv/www/vhosts/wilddamntexan/kids/index.html
for x in `ls -last /srv/www/vhosts/wilddamntexan/kids/ | awk '{print $10;}'`;
do echo "$x
" >> /srv/www/vhosts/wilddamntexan/kids/index.html;
done

ehowton@wdt:~/scripts> cat directory_listing_unixspook
#!/bin/bash

rm /srv/www/vhosts/unixspook/drop/index.html
echo "" > /srv/www/vhosts/unixspook/drop/index.html
for x in `ls -last /srv/www/vhosts/unixspook/drop/ | awk '{print $10;}'`;
do echo "$x
" >> /srv/www/vhosts/unixspook/drop/index.html;
done

ehowton@wdt:~/scripts> cat rotate_lj_pic_banner.sh
#!/bin/bash
# Script which rotates my LiveJournal header image

cp /srv/www/vhosts/wilddamntexan/kids/kansas1.jpg /srv/www/vhosts/wilddamntexan/kids/spacer.jpg &
sleep 60
cp /srv/www/vhosts/wilddamntexan/kids/kansas2.jpg /srv/www/vhosts/wilddamntexan/kids/spacer.jpg &
sleep 60
cp /srv/www/vhosts/wilddamntexan/kids/kansas3.jpg /srv/www/vhosts/wilddamntexan/kids/spacer.jpg &
sleep 60
cp /srv/www/vhosts/wilddamntexan/kids/kansas4.jpg /srv/www/vhosts/wilddamntexan/kids/spacer.jpg &
sleep 60
cp /srv/www/vhosts/wilddamntexan/kids/kansas5.jpg /srv/www/vhosts/wilddamntexan/kids/spacer.jpg &

exit
ehowton: (BSD)
2023-03-26 01:16 am
Entry tags:

Screen Saver

If your screen won't unblank after overnight, log in remotely and try this command:

dbus-send --session --dest=org.gnome.ScreenSaver --type=method_call --print-reply --reply-timeout=20000 /org/gnome/ScreenSaver org.gnome.ScreenSaver.SetActive boolean:false

If that doesn't work, this will, but will kill your current session (and everything running) and start a new one:

for x in `ps -aef | grep gnome | awk '{print $2}'` ; do kill -HUP $x ; done
ehowton: (BSD)
2023-02-25 06:54 pm
Entry tags:

NetworkManager


In more recent releases of distributions, one might notice a tendency for NetworkManager to overwrite the resolv.conf file with arbitrary numbers effectively rending name resolution inoperable. To fix, add the following verbiage to /etc/NetworkManager/NetworkManager.conf

dns=none
rc-manager=unmanaged

Then restart NetworkManager:
systemctl reload NetworkManager

ehowton: (Windows)
2023-02-13 01:17 pm
Entry tags:

How to Mount NAS in WSL

Windows Explorer right-click NAS folder to "Map Network Drive" and assign as X.

C:> wsl

ehowton@WSL:~$ sudo mkdir /mnt/x
ehowton@WSL:~$ sudo mount -t drvfs X: /mnt/x

ehowton@WSL:~$ cd /mnt/x
ehowton@WSL:/mnt/x$
ehowton: (Computer)
2022-09-02 11:46 am
Entry tags:

Create host file from list of servernames

for x in `cat hostnames`; do echo $(nslookup $x | grep -e Address | sed -n 2p | sed -r 's/.{9}//') $x ; done >> hostfile



for x in `cat hostnames`; do echo $(nslookup $x | grep -e Address | sed -n 2p | sed -r 's/.{9}//') $x $(echo $x | sed "s/\..*//") $(echo $x | sed "s/\..*//").homelab.local ; done >> hostfile
ehowton: (A Beautiful Mind)
2022-08-10 11:39 am
Entry tags:

Instead of Copy

cd /oracle/MRP/origlogA
rsync -aAXxv . /tmporigA/
ehowton: (BSD)
2022-07-21 02:19 pm
Entry tags:

SUMA Major Version Upgrade

https://documentation.suse.com/suma/4.2/en/suse-manager/client-configuration/client-upgrades-major.html

* for worky-work add proxy=[proxy] for Kernel Options (may not need)

You need at least SLES 12 SP5 before you can proceed to SLES 15 SP3/4
Upgrading from SLES 12 SP5 is only supported via an offline upgrade.

# zypper packages --orphaned
# zypper packages remove [module module module] (for Unknown URL in Add-Ons)

Systems --> Autoinstallation --> [upload autoyast.xml] --> Next -->

Add to Distribution KERNEL OPTIONS:
autoupgrade=1
useonlinerepo
insecure=1


Add to Profile VARIABLES Text Box:
IPADDR=192.168.1.69
GATEWAY=192.168.1.1