#!/bin/sh
for file in *.zipdounzip -d "${file%.zip}" "$file"done
Monday, October 14, 2024
Unzip a bunch of archives into their own directories - Linux
Tuesday, May 28, 2024
SMB "no such file or directory" error on RHEL 9 and Fedora 40 (SELNINUX)
While setting up RHEL 9.4 for a file server and I constantly ran into "No such file or directory" errors when trying to browse a samba share. It turns out I needed to set SELINUX to permissive for samba.
The below fixed my SELINUX samba woes.
sudo setsebool -P samba_export_all_rw on
Wednesday, May 8, 2024
CD-ROM Art - Akumajo Dracula X Chi no Rondo - PC Engine CD-ROM
I took a low resolution image of Dracula X's disc art and made it better. It was originally made for printing on an Epson et-8550 but should scale to print on any disc printer. Hopefully someone will find this helpful.
Friday, March 29, 2024
libFLAC.so.8 errors with GOG games on Linux
I was getting ready to throw down some Starfleet justice when my crusade was derailed by the absence of libFLAC.so.8 . It seems that the DOSBOX binary GOG includes with their games is missing the libFLAC library. Not only is the library missing but it wants a specific version of it. I'm sporting Fedora 39 on my main box and my version of flac-libs was newer than what GOG's DOSBOX wanted. I found a packaged version that was as close as I could get and from a similar Linux distro. I ended up using flac-libs-1.3.3-12.el9.x86_64.rpm. My line of thought was to extract the libraries and throw them in the lib64 directory of the installed game. In the end it worked and I was happy.
I downloaded the correctly versioned RPM package from HERE. Once I had it in my Downloads directory I used rpm2cpio to decompress the rpm file. The command to unarchive the rpm via cpio is
rpm2cpio flac-libs-1.3.3-12.el9.x86_64.rpm | cpio -idmv
After the deed was done I moved all the files form ./usr/lib64 onto the <game directory>/dosbox/lib/lib64/ directory. Upon completion of this you should be back aboard the NCC-1701 and doing whatever it is a Starfleet Captain does.
Friday, December 22, 2023
Do you need to 'open' a bunch of .dylib files and macOS bitches about it?
On a brisk December morning I was trying to run qemu from a terminal on my Mac mini. When I issued the 'qemu-system-ppc' command macOS threw a shit fit about all 36 .dylib files in the libs directory not being from a recognized developer. I figured I needed to right click and open each one a few times to set them as unblocked. I got about five files into it and was like "e'ff this noise'. I went out on google and found this site. The below command fixed the problem.
xattr -dr com.apple.quarantine <file name>
or in my case
xattr -dr com.apple.quarantine *.dylib
Thank you Dave Anderson.
Wednesday, September 20, 2023
Enable XMOS Audio Codec on Atomic Pi
I've had an Atomic Pi for a while not but only started to mess with it. One of the features it has is a XMOS dedicated audio codec. Unfortunately it does not enable at boot time on Linux. Make the below a shell script and execute it to bring the magic of audio to life. You might have to run the script using sudo. This needs to be done on every reboot.
#!/bin/sh
echo 349 > /sys/class/gpio/export echo low >/sys/class/gpio/gpio349/direction
sleep 1
echo high > /sys/class/gpio/gpio349/direction
echo 332 > /sys/class/gpio/export echo low >/sys/class/gpio/gpio332/direction
If all goes as it's supposed to then you should have audio through the built on speaker out jacks.