<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Blog on LeerSpace</title>
    <link>/blog/</link>
    <description>Recent content in Blog on LeerSpace</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-US</language>
    <lastBuildDate>Sat, 22 Aug 2015 06:42:21 -0700</lastBuildDate>
    
	<atom:link href="/blog/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>Duplicacy on Linux with Backblaze B2</title>
      <link>/2018/04/duplicacy-on-linux-with-backblaze-b2/</link>
      <pubDate>Tue, 03 Apr 2018 10:03:58 -0500</pubDate>
      
      <guid>/2018/04/duplicacy-on-linux-with-backblaze-b2/</guid>
      <description>This article documents the steps I took to set up a daily backup to my Backblaze B2 bucket using Duplicacy on Linux.
For the sake of this article, lets say that my Backblaze B2 bucket is called duplicacy (it doesn&amp;rsquo;t since someone else took that name) and the path to the directory with all of the data I want to back up is called /path/to/repo/.
Installation Binaries are available from here: https://github.</description>
    </item>
    
    <item>
      <title>Creating a time-lapse from a series of images using avconv</title>
      <link>/2016/01/31/creating-a-time-lapse-from-a-series-of-images-on-ubuntu-server-14-04/</link>
      <pubDate>Sun, 31 Jan 2016 05:35:21 +0000</pubDate>
      
      <guid>/2016/01/31/creating-a-time-lapse-from-a-series-of-images-on-ubuntu-server-14-04/</guid>
      <description>A series of images can be converted into a time-lapse video with Ubuntu Server using avconv. ffmpeg can be used to accomplish the same thing, but it&amp;rsquo;s not available in the 14.04 repositories.
avconv can be installed using
sudo apt-get install libav-tools  Once it&amp;rsquo;s installed, an example of using it to convert a series of sequential images to a time-lapse video is shown below:
avconv -start_number 10006 -i IMG%5d.</description>
    </item>
    
    <item>
      <title>Monitor S.M.A.R.T. with smartmontools</title>
      <link>/2016/01/15/monitor-s-m-a-r-t-with-smartmontools/</link>
      <pubDate>Fri, 15 Jan 2016 03:33:08 +0000</pubDate>
      
      <guid>/2016/01/15/monitor-s-m-a-r-t-with-smartmontools/</guid>
      <description>Monitor S.M.A.R.T. with smartmontools</description>
    </item>
    
    <item>
      <title>Linux screen cheat sheet</title>
      <link>/2016/01/03/linux-screen-cheat-sheet/</link>
      <pubDate>Sun, 03 Jan 2016 23:27:30 +0000</pubDate>
      
      <guid>/2016/01/03/linux-screen-cheat-sheet/</guid>
      <description>Linux screen commands</description>
    </item>
    
    <item>
      <title>Bonjour / mDNS reflection on Ubiquiti EdgeOS</title>
      <link>/2015/12/20/bonjour-mdns-reflection-on-ubiquiti-edgeos/</link>
      <pubDate>Sun, 20 Dec 2015 02:47:38 +0000</pubDate>
      
      <guid>/2015/12/20/bonjour-mdns-reflection-on-ubiquiti-edgeos/</guid>
      <description>mDNS reflection is helpful when trying to get Apple devices to find each other using Bonjour when they happen to be on different subnets.
Getting a Ubiquiti Edgerouter to act as an mDNS reflector between multiple ports used to involve installing avahi on the router and then modifying the /etc/avahi/avahi-daemon.conf file to enable reflection by uncommenting the following line and changing the no to a yes.
#enable-reflector=no  However, now the reflector can be enabled using the GUI configuration tree.</description>
    </item>
    
    <item>
      <title>Managing Crashplan on a Headless Server</title>
      <link>/2015/09/18/managing-crashplan-on-a-headless-server/</link>
      <pubDate>Fri, 18 Sep 2015 23:00:01 +0000</pubDate>
      
      <guid>/2015/09/18/managing-crashplan-on-a-headless-server/</guid>
      <description>2018-01-02 update: With Crashplan version 6.6.0, remotely connecting to the Crashplan daemon running on a headless linux server stopped working. While it was never officially supported, it wasn&amp;rsquo;t outright broken until this update.
One (or the?) workaround is to use X11 forwarding to run the GUI application on the headless server and interact with the interface on a machine with an X server.
The GUI application is called CrashPlanDesktop. In order to run it, you&amp;rsquo;ll likely need to install some dependencies.</description>
    </item>
    
    <item>
      <title>Setting up Plex Media Server on Ubuntu Server</title>
      <link>/2015/08/26/setting-up-plex-media-server-on-ubuntu-server/</link>
      <pubDate>Wed, 26 Aug 2015 01:08:07 +0000</pubDate>
      
      <guid>/2015/08/26/setting-up-plex-media-server-on-ubuntu-server/</guid>
      <description>Download The latest installation packages can be found at https://plex.tv/downloads/1/archive. Note that some of the releases are only available to Plex Pass subscribers.
The downloads we&amp;rsquo;re interested in fall under the COMPUTER downloads; the NAS downloads appear to be geared towards NAS-only devices (e.g., Synology, QNAP, drobo, WD, etc.).
For headless servers you can either download the file to the computer you&amp;rsquo;re running the web browser on and move it to the server or wget the file directly on the server using (being sure to update the URL with the latest deb package):</description>
    </item>
    
    <item>
      <title>Setting up Time Machine Server on Ubuntu Server</title>
      <link>/2015/08/26/setting-up-time-machine-server-on-ubuntu-server/</link>
      <pubDate>Wed, 26 Aug 2015 00:08:01 +0000</pubDate>
      
      <guid>/2015/08/26/setting-up-time-machine-server-on-ubuntu-server/</guid>
      <description>Concisest guide to setting up Time Machine server on Ubuntu Server 12.04, 14.04 &amp;amp; Debian</description>
    </item>
    
    <item>
      <title>Linux per-process memory usage</title>
      <link>/2015/07/29/linux-per-process-memory-usage/</link>
      <pubDate>Wed, 29 Jul 2015 00:55:25 +0000</pubDate>
      
      <guid>/2015/07/29/linux-per-process-memory-usage/</guid>
      <description>I found a one-liner to output the per-process memory usage in human-readable format; however, it included an errant line at the beginning and also included processes with 0 memory usage. By modifying the awk command I was able to suppress the display of processes with no memory usage.
Here is a one-liner that only lists processes with non-zero memory usage:
ps -eo size,command --sort -size | awk &#39;$1~/^[1-9]/{printf(&amp;quot;%13.2f MB &amp;quot;,$1/1024);for (x=2;x&amp;lt;=NF;x++){printf(&amp;quot;%s &amp;quot;,$x)};print &amp;quot;&amp;quot;}&#39;  If some of the lines are very long and keep wrapping onto the next line (or even subsequent lines), you can limit the maximum number of characters output for each process command by using a modified version of the one-liner below.</description>
    </item>
    
    <item>
      <title>PPTP VPN on Ubuquiti EdgeRouter</title>
      <link>/2015/07/15/pptp-vpn-on-ubuquiti-edgerouter/</link>
      <pubDate>Wed, 15 Jul 2015 01:44:39 +0000</pubDate>
      
      <guid>/2015/07/15/pptp-vpn-on-ubuquiti-edgerouter/</guid>
      <description>This set of instructions will result in a PPTP server using local or RADIUS authentication on an Ubiquiti EdgeRouter. This assumes that you already have a basic working configuration already with a dynamic address assigned on the WAN interface and that there are some free IP addresses on the local network to assign to VPN clients.
GUI setup Backup configuration Before changing any settings it&amp;rsquo;s usually a good idea to backup the router configuration.</description>
    </item>
    
    <item>
      <title>Preventing Ubiquiti ERLITE-3 router from using ISP DNS servers</title>
      <link>/2015/03/05/preventing-ubiquiti-erlite-3-router-from-using-isp-dns-servers/</link>
      <pubDate>Thu, 05 Mar 2015 00:32:37 +0000</pubDate>
      
      <guid>/2015/03/05/preventing-ubiquiti-erlite-3-router-from-using-isp-dns-servers/</guid>
      <description>Unfortunately, as of EdgeOS v1.6.0, even if you specify custom DNS servers in the system settings, the default behavior is for DNS servers from your ISP to be added to /etc/resolv.conf where they&amp;rsquo;ll override your custom DNS settings.
New Post (updated with permanent solution) This post used to describe a manual way to remove DNS servers from your ISP, but it wasn&amp;rsquo;t permanent and would occasionally need to be redone.</description>
    </item>
    
    <item>
      <title>Linux fstab: Automount Drive using UUID</title>
      <link>/2015/02/19/linux-fstab-automount-drive-using-uuid/</link>
      <pubDate>Thu, 19 Feb 2015 01:45:12 +0000</pubDate>
      
      <guid>/2015/02/19/linux-fstab-automount-drive-using-uuid/</guid>
      <description>Finding the UUID The UUID (Universally Unique Identifier) for all disks on the system can be found using:
ls -l /dev/disk/by-uuid  Editing fstab The fstab file is typically found in /etc/fstab.
If the UUID for disk you want to mount is 4aefa6e1-f473-455e-9baf-fcfdd97cc7e6, then fstab can be updated by adding something similar to what&amp;rsquo;s shown below (for a simple ext4 partition with default settings):
#mounting data drive UUID=4aefa6e1-f473-455e-9baf-fcfdd97cc7e6 /path/to/mount/point ext4 defaults 0 0  Resources  http://en.</description>
    </item>
    
    <item>
      <title>Standing Desk: MultiTable ModTable and Ikea Gerton</title>
      <link>/2015/02/07/standing-desk-multitable-modtable-and-ikea-gerton/</link>
      <pubDate>Sat, 07 Feb 2015 17:00:07 +0000</pubDate>
      
      <guid>/2015/02/07/standing-desk-multitable-modtable-and-ikea-gerton/</guid>
      <description>Parts  MultiTable Manual Height Adjustable Standing Desk Base Ikea Gerton table top  Assembling the MultiTable ModTable base The base is packed very securely and comes with clear assembly instructions.
My only real deviation from the instructions was when connecting the two legs. For some reason the instructions tell you to connect the drive shaft between the two legs before fastening the structural supports together. Doing this felt awkward and seemed like an unnecessary risk to bending the metal shaft.</description>
    </item>
    
    <item>
      <title>Removing Unused Linux Kernals from /boot on Ubuntu</title>
      <link>/2014/12/14/removing-unused-linux-kernals-from-boot-on-ubuntu/</link>
      <pubDate>Sun, 14 Dec 2014 00:25:27 +0000</pubDate>
      
      <guid>/2014/12/14/removing-unused-linux-kernals-from-boot-on-ubuntu/</guid>
      <description> dpkg -l &#39;linux-*&#39; | sed &#39;/^ii/!d;/&#39;&amp;quot;$(uname -r | sed &amp;quot;s/\(.*\)-\([^0-9]\+\)/\1/&amp;quot;)&amp;quot;&#39;/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d&#39; | xargs sudo apt-get -y purge  References  http://ubuntugenius.wordpress.com/2011/01/08/ubuntu-cleanup-how-to-remove-all-unused-linux-kernel-headers-images-and-modules/ http://markmcb.com/2013/02/04/cleanup-unused-linux-kernels-in-ubuntu/  </description>
    </item>
    
    <item>
      <title>SNMP and MRTG: Ubiquiti Edgerouter Lite and Ubuntu Server</title>
      <link>/2014/11/08/snmp-and-mrtg-ubiquiti-edgerouter-lite-ubuntu-server/</link>
      <pubDate>Sat, 08 Nov 2014 05:33:24 +0000</pubDate>
      
      <guid>/2014/11/08/snmp-and-mrtg-ubiquiti-edgerouter-lite-ubuntu-server/</guid>
      <description>Enable the SNMP agent on Edgerouter Lite:
Install and configure SNMP:
aptitude install snmp  Install the full set of IETF MIBs:
sudo apt-get install snmp-mibs-downloader sudo download-mibs  Enable mibs in /etc/snmp/snmp.conf by commenting out this line
mibs :  Install and configure MRTG and Apache:
aptitude install apache2 snmpd mrtg  cp /etc/mrtg.cfg /etc/mrtg.cfg.backup  cfgmaker &amp;lt;SNMP COMMUNITY NAME&amp;gt;@&amp;lt;NETWORK DEVICE IP ADDRESS&amp;gt; &amp;gt; /etc/mrtg.cfg  mkdir /var/www/mrtg  indexmaker /etc/mrtg.</description>
    </item>
    
    <item>
      <title>Resilio Sync on Linux</title>
      <link>/2014/09/22/bittorrent-sync-on-linux/</link>
      <pubDate>Mon, 22 Sep 2014 03:46:39 +0000</pubDate>
      
      <guid>/2014/09/22/bittorrent-sync-on-linux/</guid>
      <description>Installation 2018-01-02 update: Bittorrent Sync (btsync) has been split off into a new company named Resilio and it&amp;rsquo;s now called Resilio Sync (rslsync). This post has been updated with the new ppa and paths.
2016-04-04 update: This post has been updated to use the official Bittorrent Sync repository from Bittorrent which didn&amp;rsquo;t exist when the post was originally created.
Repository setup echo &amp;quot;deb http://linux-packages.resilio.com/resilio-sync/deb resilio-sync non-free&amp;quot; | sudo tee /etc/apt/sources.</description>
    </item>
    
    <item>
      <title>Converting PFX for Linux</title>
      <link>/2014/09/14/converting-pfx-for-linux/</link>
      <pubDate>Sun, 14 Sep 2014 14:15:01 +0000</pubDate>
      
      <guid>/2014/09/14/converting-pfx-for-linux/</guid>
      <description>Assumptions
 The pfx file is named file.pfx  CA Certificate:
openssl pkcs12 -in file.pfx -cacerts -nokeys -out ca.crt User Certificate:
openssl pkcs12 -in file.pfx -clcerts -nokeys -out cl.crt Private Key:
openssl pkcs12 -in file.pfx -clcerts -out prv.pem </description>
    </item>
    
    <item>
      <title>GnuPG 2 on Ubuntu</title>
      <link>/2014/08/23/gnupg-2-on-ubuntu/</link>
      <pubDate>Sat, 23 Aug 2014 06:06:03 +0000</pubDate>
      
      <guid>/2014/08/23/gnupg-2-on-ubuntu/</guid>
      <description>Installing GnuPG is a complete and free implementation of the OpenPGP standard as defined by RFC4880 (also known as PGP). In addition to the source code being available, GPG also lives in Ubuntu&amp;rsquo;s repositories.
sudo aptitude install gnupg2  Generating a private key gpg2 --gen-key  The private key is stored in ~/.gnupg/secring.gpg.
Key management Exporting keys The -armor option exports the keys in ASCII format instead of binary.</description>
    </item>
    
    <item>
      <title>Securely erasing HDDs</title>
      <link>/2014/08/09/securely-erasing-hdds/</link>
      <pubDate>Sat, 09 Aug 2014 17:57:46 +0000</pubDate>
      
      <guid>/2014/08/09/securely-erasing-hdds/</guid>
      <description> Find the device name lsblk sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL  fdisk sudo fdisk -l  Overwrite the data on the HDD shred shred -vfz -n 2 /dev/sdX  This command forces shred to overwrite the entire disk with zeros two times.
dd Overwriting the disk with zeros:
dd if=/dev/zero of=/dev/sdX iflag=nocache oflag=direct bs=4096  Overwriting the disk with random data:
dd if=/dev/urandom of=/dev/sdX bs=4096  Resources  http://askubuntu.com/questions/182446/how-do-i-view-all-available-hdds-partitions https://wiki.archlinux.org/index.php/Securely_wipe_disk  </description>
    </item>
    
    <item>
      <title>Linux Utilities</title>
      <link>/2014/07/26/linux-utilities/</link>
      <pubDate>Sat, 26 Jul 2014 06:50:40 +0000</pubDate>
      
      <guid>/2014/07/26/linux-utilities/</guid>
      <description>General htop Network nethogs  NetHogs is a small &amp;lsquo;net top&amp;rsquo; tool. Instead of breaking the traffic down per protocol or per subnet, like most tools do, it groups bandwidth by process. NetHogs does not rely on a special kernel module to be loaded. If there&amp;rsquo;s suddenly a lot of network traffic, you can fire up NetHogs and immediately see which PID is causing this. This makes it easy to indentify programs that have gone wild and are suddenly taking up your bandwidth.</description>
    </item>
    
    <item>
      <title>DD-WRT on the TP-Link N600</title>
      <link>/2014/07/18/dd-wrt-on-the-tp-link-n600/</link>
      <pubDate>Fri, 18 Jul 2014 02:25:05 +0000</pubDate>
      
      <guid>/2014/07/18/dd-wrt-on-the-tp-link-n600/</guid>
      <description>Installation  Download factory-to-ddwrt.bin (SHA1:2f0868f8cc0343d3bf2c534c67f8fcaf986adec1); I downloaded the original file from here, but the link doesn&amp;rsquo;t work anymore as of when I&amp;rsquo;m typing this up While logged into the router over a wired connection, install the bin file using the standard firmware update installer Hold the reset button for 30 seconds and do not release it until step 5 (the lights might turn off and on before 30 seconds have passed) While still holding the reset button, switch off the router for 30 seconds Still holding the reset button, switch the router back on and wait 30 more seconds Switch the router back off and release the reset button Finally, turn the router back on and wait for a few minutes until you can access the web interface  Setup Custom DNS servers A few alternate DNS servers:</description>
    </item>
    
    <item>
      <title>Poor Man’s Dynamic DNS</title>
      <link>/2014/02/18/poor-mans-dynamic-dns/</link>
      <pubDate>Tue, 18 Feb 2014 02:54:06 +0000</pubDate>
      
      <guid>/2014/02/18/poor-mans-dynamic-dns/</guid>
      <description>After deciding to host my website using Namecheap&amp;rsquo;s hosting service, I found that their hosting DNS servers don&amp;rsquo;t support Dynamic DNS (unlike their default nameservers).
The point of this is to (at the very least) be able to update and remotely retrieve the IP address of a server that does not have a static IP (and without using a dynamic DNS service, because that would be too easy).
What you need  A website that is hosted remotely PHP  Setup Generate auth key To prevent anyone and everyone from being able to update your &amp;ldquo;dynamic&amp;rdquo; IP address on your website, an authorization key is required for the IP address to be updated.</description>
    </item>
    
    <item>
      <title>Modify WordPress file type restrictions</title>
      <link>/2014/02/15/modify-wordpress-file-type-restrictions/</link>
      <pubDate>Sat, 15 Feb 2014 22:16:35 +0000</pubDate>
      
      <guid>/2014/02/15/modify-wordpress-file-type-restrictions/</guid>
      <description>By default, WordPress is configured to allow you to upload only certain types of files; if you want to upload some source code contained in a text file with a .cpp or .py extension, for instance, WordPress won&amp;rsquo;t let you do it. Supposedly this is done because the WordPress developers believe that files that by default are allowed to be uploaded to WordPress can&amp;rsquo;t be exploited (but others might potentially be exploitable).</description>
    </item>
    
    <item>
      <title>ZFS on Ubuntu Server</title>
      <link>/2014/02/05/zfs-on-ubuntu/</link>
      <pubDate>Wed, 05 Feb 2014 01:45:32 +0000</pubDate>
      
      <guid>/2014/02/05/zfs-on-ubuntu/</guid>
      <description>Install Native ZFS for Linux Add the PPA for zfs-native and install ubuntu-zfs:
sudo add-apt-repository ppa:zfs-native/stable sudo aptitude update sudo aptitude install ubuntu-zfs  Create the ZFS pool (zpool) There are several different types of ZFS pools that can be created. I didn&amp;rsquo;t need anything too fancy, so I just went with a mirror (similar to RAID-1). If I decide to add more capacity later, I can simply add another mirror to my pool; I won&amp;rsquo;t have to mess with destroying my existing ZFS pool and creating a new one with more disks or anything like that.</description>
    </item>
    
    <item>
      <title>FatRat on Ubuntu Server</title>
      <link>/2014/02/04/fatrat-on-ubuntu-server/</link>
      <pubDate>Tue, 04 Feb 2014 06:39:26 +0000</pubDate>
      
      <guid>/2014/02/04/fatrat-on-ubuntu-server/</guid>
      <description>Installing FatRat Fortunately, a FatRat package exists in the ubuntu repositories. Unfortunately, FatRat requires that you install a couple of packages that wouldn&amp;rsquo;t otherwise need to be on my server (X11 and Qt).
aptitude install fatrat  Setup Startup at boot I didn&amp;rsquo;t want the fatrat daemon running as root, so I added the following line to /etc/rc.local so that it would run as my user user without having to log in as that user to start up the daemon.</description>
    </item>
    
  </channel>
</rss>