Putting My Home Into Git

Tue 28 August 2018 by pj Tagged as linux

So I currently have two laptops: one for work and one for personal use. There is, however, a fair bit of overlap; I'd like to have a bunch of config files (.bashrc, .vimrc, ~/.config/i3/config, etc) and a bunch of useful scripts (in ~/bin) available in both places. I looked at a couple solutions, including dotfiles and such, but a post on StackOverflow had the outline of a solution that I'm fairly happy with.

I put an alias into my .bashrc:

  • alias homegit='git --work-tree=$HOME --git-dir=$HOME/.home.git'

And wrote a little script to automate setup on new machines:


if [ -d "$HOME/.home.git" ]; then
   echo "homegit already set up."
   exit 1

homegit="git --work-tree=$HOME --git-dir=$HOME/.home.git"

$homegit init
$homegit remote add origin $MY_HOMEDIR_REPO
$homegit fetch origin
$homegit reset
$homegit checkout -t origin/master

and then ran it. Then I wrote an info/exclude file:

# exclude everything
# ...except the following



So only the files I wanted to save were listed in a 'homegit status'. Then I could just homegit add them and could go to town!

I imagine maintaining the info/exclude file is going to be the main issue, but it's probably good for me to keep up with that minor skill anyway.

Putting Puppy Linux on a Raspberry Pi

Fri 21 July 2017 by pj Tagged as linux raspi

I like the Raspberry Pi machines.... mostly. It's reasonably cheap, reasonably reliable, very widespread hardware. I just can't get comfortable running from an SD card - I've dealt with corrupted OSs on them waaaay too often in the past. So I went looking for a linux distro that would load from …

read more

dCore notes v0.1

Mon 17 August 2015 by pj Tagged as dcore linux raspi

What's dCore?

dCore is a TinyCoreLinux derivative that's based on Debian. TinyCoreLinux has the nice property of, once booted, running from RAM instead of scribbling on your USB stick for ephemeral things like log writes and pid files and etc.


I was lazy so I took the TinyCoreLinux installer …

read more

OSMC and hostapd

Tue 19 May 2015 by pj Tagged as kodi linux raspi wifi

I recently hooked up a Raspberry Pi running Kodi to my Living Room television, and it was a hit with the kids (their favorite shows and moving more easily accessible than by swapping DVDs) and the wife (easy to run via a remote app on her phone).

Separately, trips with …

read more

Transcoding mpeg2 to mp4 with avconv

Tue 22 January 2013 by pj Tagged as linux media

I'm using mediatomb to share my media files across my home LAN, and a friend pointed me at stream-chan which would stream live TV from my HDHomeRun via DLNA. Way cool! Except that the main endpoints in my network are phones and tablets, which are none too happy about trying …

read more