<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Unix on kenops</title><link>https://www.kenops.io/categories/unix/</link><description>Recent content in Unix on kenops</description><generator>Hugo</generator><language>en</language><lastBuildDate>Mon, 29 Aug 2022 21:06:02 +0000</lastBuildDate><atom:link href="https://www.kenops.io/categories/unix/index.xml" rel="self" type="application/rss+xml"/><item><title>Docker volume backup and restore the easy way.</title><link>https://www.kenops.io/posts/docker-volume-backup-and-restore-the-easy-way/</link><pubDate>Mon, 29 Aug 2022 21:06:02 +0000</pubDate><guid>https://www.kenops.io/posts/docker-volume-backup-and-restore-the-easy-way/</guid><description>&lt;p&gt;I haven&amp;rsquo;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&amp;hellip; well&amp;hellip; 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&amp;rsquo;s how you backup using alpine and tar. Also, make sure you &amp;ldquo;docker stop&amp;rdquo; the containers that use the volume, so you get a consistent backup.&lt;/p&gt;</description></item><item><title>Add HEIC support to nextcloud</title><link>https://www.kenops.io/posts/add-heic-support-to-nextcloud/</link><pubDate>Mon, 18 Jan 2021 01:57:59 +0000</pubDate><guid>https://www.kenops.io/posts/add-heic-support-to-nextcloud/</guid><description>&lt;p&gt;From &lt;a href="https://eplt.medium.com/5-minutes-to-install-imagemagick-with-heic-support-on-ubuntu-18-04-digitalocean-fe2d09dcef1"&gt;https://eplt.medium.com/5-minutes-to-install-imagemagick-with-heic-support-on-ubuntu-18-04-digitalocean-fe2d09dcef1&lt;/a&gt;&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;sudo sed -Ei &amp;#39;s/^# deb-src /deb-src /&amp;#39; /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
&lt;/code&gt;&lt;/pre&gt;&lt;pre tabindex="0"&gt;&lt;code&gt;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
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;A restart of apache2 should finish the job. Check with the phpinfo() call&amp;hellip;&lt;/p&gt;</description></item><item><title>Password-less ssh in 2 Glorious Steps...</title><link>https://www.kenops.io/posts/password-less-ssh-in-2-glorious-steps/</link><pubDate>Wed, 17 Jun 2020 23:54:55 +0000</pubDate><guid>https://www.kenops.io/posts/password-less-ssh-in-2-glorious-steps/</guid><description>&lt;p&gt;&lt;img loading="lazy" src="https://www.ionos.com/digitalguide/fileadmin/DigitalGuide/Teaser/public-key-authentifizierung-t.jpg"&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Local System - Let&amp;rsquo;s call it alpha&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;Remote System we don&amp;rsquo;t want to have to enter passwords for,&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;Let&amp;rsquo;s call it foxtrot&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Prep:&lt;/strong&gt; 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.&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;me@alpha$ mv ~/.ssh/id_rsa ~/.ssh/id_rsa_legacy
me@alpha$ mv ~/.ssh/id_rsa.pub ~/.ssh/id_rsa_legacy.pub
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;Step 1:&lt;/strong&gt; Generate new keys:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;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
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;Step 2:&lt;/strong&gt; Copy the Ed25519  keys to the remote system called foxtrot:&lt;/p&gt;</description></item><item><title>HomeLab Build</title><link>https://www.kenops.io/posts/home-server-build/</link><pubDate>Fri, 05 Jun 2020 05:36:50 +0000</pubDate><guid>https://www.kenops.io/posts/home-server-build/</guid><description>&lt;p&gt;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&amp;rsquo;m an old Sun guy - why not. Well&amp;hellip;. After a few weeks I decided to abandon FreeNAS and roll my own using a ThinkCentre M93p Tiny. I&amp;rsquo;ll try to post some notes on how the build goes.&lt;/p&gt;</description></item><item><title>Raspberry Pi backup using fsarchiver and other tricks</title><link>https://www.kenops.io/posts/raspberry-pi-backup-using-fsarchiver-and-other-tricks/</link><pubDate>Tue, 13 Jun 2017 06:56:17 +0000</pubDate><guid>https://www.kenops.io/posts/raspberry-pi-backup-using-fsarchiver-and-other-tricks/</guid><description>&lt;p&gt;&lt;img loading="lazy" src="http://makezine.com/wp-content/uploads/2016/02/Raspberry-Pi-3-small.gif"&gt;So I ran into a few issues using the dd image backup I referenced prior Raspberry Pi 3 SDCard backup&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;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.&lt;/li&gt;
&lt;li&gt;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&amp;rsquo;s tricks around this I&amp;rsquo;m sure but still.&lt;/li&gt;
&lt;li&gt;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&amp;rsquo;m backing up a live system this was a real issue.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;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:&lt;/p&gt;</description></item><item><title>Raspberry Pi 3 SDCard backup...</title><link>https://www.kenops.io/posts/raspberry-pi-3-sdcard-backup/</link><pubDate>Mon, 27 Mar 2017 17:52:31 +0000</pubDate><guid>https://www.kenops.io/posts/raspberry-pi-3-sdcard-backup/</guid><description>&lt;p&gt;From https://www.raspberrypi.org/forums/viewtopic.php?f=63&amp;amp;t=77492
dd if=/dev/mmcblk0 | gzip &amp;gt; /media/usb/mmcblk0.img.gz
Checking if this works. More to come :)&lt;/p&gt;</description></item><item><title>Living on a Raspberry Pi!</title><link>https://www.kenops.io/posts/living-on-a-raspberry-pi/</link><pubDate>Sun, 05 Mar 2017 01:52:59 +0000</pubDate><guid>https://www.kenops.io/posts/living-on-a-raspberry-pi/</guid><description>&lt;p&gt;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:&lt;/p&gt;
&lt;h1 id="overclock-settings---disabled-until-heat-sink-is-added-170327-seank"&gt;Overclock settings - disabled until heat sink is added. 170327 SeanK&lt;/h1&gt;
&lt;p&gt;#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: &lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;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=&amp;#34;ondemand&amp;#34;
echo $governor &amp;gt; /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
root@webpi:/sys/devices/system/cpu/cpu0/cpufreq#
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Also got ganglia to report on CPU Frequency and Temp using this init script&amp;hellip;.&lt;/p&gt;</description></item><item><title>Netgear Stora NAS</title><link>https://www.kenops.io/posts/netgear-stora-nas/</link><pubDate>Sat, 24 Oct 2009 22:31:50 +0000</pubDate><guid>https://www.kenops.io/posts/netgear-stora-nas/</guid><description>&lt;p&gt;Warning:  Nerd Content ahead&lt;img alt="&lt;img loading=\"lazy\" src=\"/uploads/2009/10/stora.jpg\"&gt;" loading="lazy" src="https://www.kenops.io/uploads/2009/10/stora.jpg"&gt;&lt;/p&gt;
&lt;p&gt;Since I work helping companies manage their enterprise storage environment, I tend to be very anal with storing my data at home.  It needs to be resilient, redundant, and fast. Why?  I&amp;rsquo;m retarded. Most of the time, I spend more than enough money on something I have to manage and tweak constantly.  No inexpensive NAS device has had all the features I wanted in an embedded device - until now.&lt;/p&gt;</description></item><item><title>Goodbye Sun Microsystems...</title><link>https://www.kenops.io/posts/goodbye-sun-microsystems/</link><pubDate>Mon, 11 May 2009 05:03:33 +0000</pubDate><guid>https://www.kenops.io/posts/goodbye-sun-microsystems/</guid><description>&lt;p&gt;So Oracle is in the final stages of buying Sun Microsystems Inc, a company I adored for years. It&amp;rsquo;s too bad to see Sun go, and with all other Oracle buyouts I&amp;rsquo;m sure not much will be left of the original idea of Sun. It&amp;rsquo;s sad to see, but after seeing Sun as the premier UNIX envorinment in the late 90&amp;rsquo;s go through it&amp;rsquo;s demise in early 2000&amp;rsquo;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:&lt;/p&gt;</description></item><item><title>Sun Cheatsheet</title><link>https://www.kenops.io/posts/sun-cheatsheet/</link><pubDate>Wed, 04 Mar 2009 17:28:12 +0000</pubDate><guid>https://www.kenops.io/posts/sun-cheatsheet/</guid><description>&lt;p&gt;&lt;img loading="lazy" src="file:///Users/Sean/Desktop/images.jpg"&gt;
&lt;img loading="lazy" src="http://people.roqe.org/kr/pht/sun.jpg" title="Sun"&gt;
I published my Sun Cheatsheet document to the world recently. It&amp;rsquo;s a compilation of Sun commands and processes that I documented over the years. Enjoy! &lt;a href="http://docs.google.com/Doc?id=dhjhzg6x_3c6d658"&gt;http://docs.google.com/Doc?id=dhjhzg6x_3c6d658&lt;/a&gt;&lt;/p&gt;</description></item></channel></rss>