Git SVN Error in SourceTree for Mac after upgrading to OS X Mavericks 10.9

I upgraded my Mac to OS X Mavericks 10.9 yesterday evening and everything has been going well, except for one thing with SourceTree and Git SVN repositories. When attempting to synchronize SVN repositories with SourceTree via Git, the following error occurs:

Can't locate SVN/Core.pm in @INC (@INC contains: 
/Applications/Xcode.app/Contents/Developer/usr/share/git-core/perl 
/usr/../Library/Perl/5.12/darwin-thread-multi-2level 
/usr/share/git-core/perl /Library/Perl/5.12/darwin-thread-multi-2level 
/Library/Perl/5.12 /Network/Library/Perl/5.12/darwin-thread-multi-2level 
/Network/Library/Perl/5.12 /Library/Perl/Updates/5.12.4 
/System/Library/Perl/5.12/darwin-thread-multi-2level 
/System/Library/Perl/5.12 /System/Library/Perl/Extras/5.12/darwin-thread-multi-2level 
/System/Library/Perl/Extras/5.12 .) at /usr/libexec/git-core/git-svn line 61.

So something’s wrong with OS X’s Perl installation. I couldn’t figure out what exactly, but configuring SourceTree to use your system’s Git installation (instead of SourceTree’s built-in version) seems to do the trick. Here’s how:

  1. Open SourceTree Preferences
  2. Click the “Git” tab
  3. Click the “Use System Git” button

SourceTreePreferences

SourceTreeSystemGit

Advertisements

How to find and delete duplicate files in Ubuntu/Linux

Massively duplicated files are oftentimes a problem with music and movie collections. Because hunting for dupes by hand is definitely not the way to go, you may want to look to command-line tools like fdupes for help.

fdupes is available via apt-get in Ubuntu, so install it first:

sudo apt-get install fdupes

This is the basic syntax for looking up duplicated files:

fdupes -r [target-directory]

How to delete all duplicates and generate a report at the same time:

fdupes -rdN [target-directory] > textfile.txt

A quick overview of what the options mean:

  • -r recursive, traverse subdirectories
  • -d delete, delete duplicates
  • -N keep the first file, remove other (duplicate) files

Needless to say: use this with caution! Files will be deleted forever.

Find more information on fdupes here (UbuntuGeek).

How to install JungleDisk on Ubuntu 11.10

Had trouble installing JungleDisk (‘junglediskdesktop’) on Ubuntu again. This time it’s version 11.10. Mike Jennings from gmjjavadesigns.com has a complete guide on how to get libnotify.so.1 linked correctly and make the tray icon appear. The latter part in particular was of interest to me:

gsettings set com.canonical.Unity.Panel systray-whitelist “[‘all’]”

Find his post here.

Thanks Mike!

How to eject your Kindle (so it keeps charging) in Linux

Ejecting your Kindle reading device is different from ‘unmounting’ because it allows you to keep using the reader while it charges over USB. In most distros, you’ll need the command-line to achieve this. Here’s how.

First, find out where your device is mounted:

fdisk -l

Then, use the ‘eject’ command

sudo eject /dev/sdb1

 

 

How to access better/more advanced power settings in Ubuntu/Linux Mint with Gnome 3

Gnome3 on Linux Mint/Ubuntu comes with a pretty bare-bones power manager. Luckily, there’s a better alternative and it’s called dconf-editor. Here’s how to get it and use it for power management purposes:

$ sudo apt-get install dconf-tools
$ dconf-tools

The relevant settings can be found in org/gnome/settings-daemon/plugins/power

How to get JungleDisk Desktop running on Ubuntu 11.10 and Gnome 3

JungleDisk is broken for Ubuntu again. It won’t start when selected from Gnome 3’s Activities dashboard, nor will it start when calling it manually from the command line.

$ junglediskdesktop
junglediskdesktop: error while loading shared libraries: libnotify.so.1: cannot open shared object file: No such file or directory 

As suggested by JungleJason (http://askubuntu.com/a/84499), you’ll need to symlink libnotify.so.4 to libnotify.so.1. The latest version of Ubuntu (11.10) apparently only comes with the former variant.

If you’re running a 32-bit Ubuntu: 

$ cd /usr/lib/i386-linux-gnu/ ; sudo ln -s ./libnotify.so.4 libnotify.so.1

If you’re running a 64-bit Ubuntu: 

$ sudo ln -s /usr/lib/x86_64-linux-gnu/libnotify.so.4 /usr/lib/libnotify.so.1

 

Console2 + Powershell: A Better Windows Command Prompt

Windows has always had a ponderous command-line experience. And no wonder, because for the longest time, Microsoft developed Windows to be GUI-first. As a result, the terminal shell in Windows was always something of an afterthought (until Windows PowerShell happened). While PowerShell is a big improvement by virtue of its .NET roots and UNIX-inspired command set, the UI still suffers greatly from strange issues of old, e.g. fixed window size and screwed copy-paste.

Fortunately, free software comes to the rescue. Console2 is a software project hosted on SourceForge and describes itself as (citing their project page):

Console is a Windows console window enhancement. Console features include: multiple tabs, text editor-like text selection, different background types, alpha and color-key transparency, configurable font, different window styles

Yeah, Console2 adds everything Command Prompt lacks, and it gets better, because we can configure it to use PowerShell as its shell to create the ultimate Windows command-line environment.

Here’s how.

Download & Install Console2

Get it from its project page at SourceForge, here.

(optional) Download Windows PowerShell

If Windows Update hasn’t already installed PowerShell on your system, you might want to fire up Windows Update manually and enable it. If you’re running Windows XP, you can get it manually.

Configure Console2 to use PowerShell

Open up a Console2 instance and open the settings dialog via Edit > Settings.

Use the browse button next to the Shell field to select powershell.exe from its installation directory. On my system (a Windows XP machine, issued by work..), I used a system variable to reference the PS executable, like so:

%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe 

Console Settings

Hit OK.

I’ve been using this setup for a couple of months now and I’m extremely satisfied with it. The combination of PowerShell and the features Console2 adds, I’m in CLI Nirvana whenever I need to use it.

That’s all folks!