Docker volume backup and restore the easy way.

I haven’t had to move docker volumes around in a few years, but I finally had the need today. As usual, I searched for the process, knowing that most examples are… well… not very good. Well, as I almost resorted to pulling a manual job using ubuntu, I found a great write-up by Jarek Lipski on Medium. Here’s how you backup using alpine and tar. Also, make sure you “docker stop” the containers that use the volume, so you get a consistent backup. ...

August 29, 2022 · 2 min

Add HEIC support to nextcloud

From https://eplt.medium.com/5-minutes-to-install-imagemagick-with-heic-support-on-ubuntu-18-04-digitalocean-fe2d09dcef1 sudo sed -Ei 's/^# deb-src /deb-src /' /etc/apt/sources.list sudo apt-get update sudo apt-get install build-essential autoconf libtool git-core sudo apt-get build-dep imagemagick libmagickcore-dev libde265 libheif cd /usr/src/ sudo git clone https://github.com/strukturag/libde265.git sudo git clone https://github.com/strukturag/libheif.git cd libde265/ sudo ./autogen.sh sudo ./configure sudo make sudo make install cd /usr/src/libheif/ sudo ./autogen.sh sudo ./configure sudo make sudo make install cd /usr/src/ sudo wget https://www.imagemagick.org/download/ImageMagick.tar.gz sudo tar xf ImageMagick.tar.gz cd ImageMagick-7* sudo ./configure --with-heic=yes sudo make sudo make install sudo ldconfig sudo apt install php-imagick cd /usr/src/ wget http://pecl.php.net/get/imagick-3.4.4.tgz tar -xvzf imagick-3.4.4.tgz cd imagick-3.4.4/ apt install php7.2-dev phpize ./configure make make install sudo phpenmod imagick A restart of apache2 should finish the job. Check with the phpinfo() call… ...

January 18, 2021 · 1 min

Password-less ssh in 2 Glorious Steps...

Local System - Let’s call it alpha Remote System we don’t want to have to enter passwords for, Let’s call it foxtrot Prep: Harden your existing ssh keys since RSA 1024 sucks. This will create a new 4096 version - ed22519 is actually preferred so you can skip the rsa creation if preferred. me@alpha$ mv ~/.ssh/id_rsa ~/.ssh/id_rsa_legacy me@alpha$ mv ~/.ssh/id_rsa.pub ~/.ssh/id_rsa_legacy.pub Step 1: Generate new keys: me@alpha$ ssh-keygen -t rsa -b 4096 -o -a 100 #RSA version me@alpha$ ssh-keygen -o -a 100 -t ed25519 #Preferred ed25519 version Step 2: Copy the Ed25519 keys to the remote system called foxtrot: ...

June 17, 2020 · 2 min

HomeLab Build

Since I had a old windows laptop as a plex and file server for years I thought it would be good to try something new. After researching options I ddecided to try FreeNAS. Since it has ZFS and I’m an old Sun guy - why not. Well…. After a few weeks I decided to abandon FreeNAS and roll my own using a ThinkCentre M93p Tiny. I’ll try to post some notes on how the build goes.

June 5, 2020 · 1 min

Raspberry Pi backup using fsarchiver and other tricks

So I ran into a few issues using the dd image backup I referenced prior Raspberry Pi 3 SDCard backup The Image is very large even though the data was not. For example on a 32GB SD card I was getting a 12GB file. I only have 3GB of data! so that was a bummer. When it comes time to recover, I have to expand the gz image file to a full 32GB to then image it onto another SD device. There’s tricks around this I’m sure but still. Since dd was reading 100% of the SD card (/dev/mmcblk0) even with compression it took a LONG time to create the image. 20 minutes or so. Since I’m backing up a live system this was a real issue. I did manage to figure out how to create a partial image if your partition sizes were smaller than the actual device - This seemed to work but it still was storing 6.6GB of data which was over double what I actually had: ...

June 13, 2017 · 4 min

Raspberry Pi 3 SDCard backup...

From https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=77492 dd if=/dev/mmcblk0 | gzip > /media/usb/mmcblk0.img.gz Checking if this works. More to come :)

March 27, 2017 · 1 min

Living on a Raspberry Pi!

This feels a little weird! Playing with the overclocking and it really makes a difference! The settings below look stable but make the proc very hot (over 85 degrees c.) From /boot/config.txt: Overclock settings - disabled until heat sink is added. 170327 SeanK #arm_freq=1350 #core_freq=500 #over_voltage=4 #disable_splash=1 ##force_turbo=1 #boot_delay=1 #sdram_freq=500 Also created a script to put the governor in ondemand mode and put it in the init.d directory: root@webpi:/sys/devices/system/cpu/cpu0/cpufreq# cat /etc/init.d/sk-perf-set-cpu-governor.sh #!/bin/sh # # 20170327, Sean Kennedy # # From /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors: # conservative ondemand userspace powersave performance governor="ondemand" echo $governor > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor root@webpi:/sys/devices/system/cpu/cpu0/cpufreq# Also got ganglia to report on CPU Frequency and Temp using this init script…. ...

March 5, 2017 · 2 min

Netgear Stora NAS

Warning: Nerd Content ahead...

October 24, 2009 · 1 min

Goodbye Sun Microsystems...

So Oracle is in the final stages of buying Sun Microsystems Inc, a company I adored for years. It’s too bad to see Sun go, and with all other Oracle buyouts I’m sure not much will be left of the original idea of Sun. It’s sad to see, but after seeing Sun as the premier UNIX envorinment in the late 90’s go through it’s demise in early 2000’s the writing was on the wall. I remember distinctly being at a good friends house discussing a plan we had to get in the car, drive to Merlo Park CA, and tell the then CEO exactly how to get back on track: ...

May 11, 2009 · 2 min

Sun Cheatsheet

I published my Sun Cheatsheet document to the world recently. It’s a compilation of Sun commands and processes that I documented over the years. Enjoy! http://docs.google.com/Doc?id=dhjhzg6x_3c6d658

March 4, 2009 · 1 min