Unadopted Podcast Session 025 Out Now!

  • Dec. 20th, 2009 at 9:44 AM
Me in the sun

Originally published at Lost Entropy. Please leave any comments there.

Going to Soulwaxmas last weekend made me want to record another podcast session. Music this time around from Faithless, Sidney Samson, Delphic, Florence, Dizzee, Zombie Nation, Felix Da Housecat and more. Get stuck in!

If you love the Unadopted Podcast, please add Unadopted on Facebook and tell your friends about the podcast!

Want to send music in to the Unadopted Podcast? Now you can! Visit the Unadopted Soundcloud and send your music in (it’s dead easy). If I like it, I’ll try and get it into one of the sessions!

  1. Hostage – I Get High
  2. Calvin Harris – Ready For The Weekend (Fake Blood Remix)
  3. Faithless – Insomnia (The Hump Day Project Remix)
  4. Sidney Samson – Riverside (Extended Mix)
  5. Bingo Players – Get Up (Diplo Remix)
  6. Delphic – Doubt (Doc Daneekas VIP Remix)
  7. Evil Nine – They Live (Rogerseventytwo Remix)
  8. Dizzee Rascal & Armand Van Helden – Bonkers (Soulwax Re-Edit)
  9. Zombie Nation – Kernkraft 400 (DJ Gius Remix)
  10. Shinichi Osawa – Rendezvous (Crookers Remix)
  11. Felix Da Housecat – Like Something 4 Porno (Armand Van Helden Remix)
  12. Florence And The Machine – You Got The Love (The XX Remix)

Listen now over at http://unadopted.co.uk/podcast/. If you haven’t already set it up, click the “Subscribe” link on the right-hand-side when you get there to get the podcast automatically delivered right into your iTunes or RSS reader whenever I release a new session!

Unadopted Podcast Session 024 Out Now!

  • Nov. 18th, 2009 at 7:47 PM
Me in the sun

Originally published at Lost Entropy. Please leave any comments there.

It’s time for another funpacked session, with awesome sounds from the likes of Foamo, Boys Noize, Fake Blood and Armand Van Helden’s rather dirty remix of an early nineties anthem. Crank the volume up and let your neighbours party too!

If you love the Unadopted Podcast, please add Unadopted on Facebook and tell your friends about the podcast!

Want to send music in to the Unadopted Podcast? Now you can! Visit the Unadopted Soundcloud and send your music in (it’s dead easy). If I like it, I’ll try and get it into one of the sessions!

  1. Riton & Primary 1 – Who’s There
  2. Fake Blood – Fix Your Accent
  3. Kid Cudi – Make Her Say (Afrojack Remix)
  4. Calvin Harris – Not Alone (Doorly Remix)
  5. Boys Noize – Jeffer
  6. Dizzee Rascal – Dirtee Cash
  7. Foamo – Movin’ It Over Here (Stupid Fresh Remix)
  8. Unkle – Restless (Fake Blood Remix)
  9. Snap! – Rhythm Is A Dancer (Armand Van Helden Remix)
  10. The Bloody Beetroots – We Are From Venice (La Serenissima)
  11. Fukkk Offf – Rave Is King
  12. Rudenko – Everybody
  13. Kraak & Smaak – Squeeze Me (Trevor Lovey’s Skeezer Pleezer Mix)
  14. Basement Jaxx feat Lightspeed Champion – My Turn

Listen now over at http://unadopted.co.uk/podcast/. If you haven’t already set it up, click the “Subscribe” link on the right-hand-side when you get there to get the podcast automatically delivered right into your iTunes or RSS reader whenever I release a new session!

Me in the sun

Originally published at Lost Entropy. Please leave any comments there.


I recently tried to use the image_science gem for Ruby, but it didn’t work after installation because it was looking for FreeImage.h. Thinking it’d be an easy fix, I headed over to http://freeimage.sourceforge.net/ to go grab a copy of a binary file to install, but there wasn’t one.

Undeterred, I went to grab the source and compile it myself. It didn’t work. Eventually I figured there were two key issues:

  1. FreeImage’s source was prepared for Mac OS X 10.3 (Panther)
  2. FreeImage was trying to compile for i386 (32-bit) and my Ruby install is x86-64 (64-bit)

First problem is easy to fix, just replace both instances of /Developer/SDKs/MacOSX10.3.9.sdk with /Developer/SDKs/MacOSX10.6.sdk (or, 10.5 for Leopard, or 10.4u for Tiger).

The second part was a bit more fiddly because I wasn’t sure if order was important, so I started by replacing all instances of i386 and I386 with x86_64 and X86_64 respectively. Then, I replaced all instances of ppc and PPC with i386 and I386.

If you don’t want to worry about making all these changes, you can simply download my Makefile.osx here. It’s built for Snow Leopard, but it’s easy to change it for Leopard or Tiger.

Making chan_sccp build with Asterisk 1.6

  • Sep. 28th, 2009 at 2:40 PM
Me in the sun

Originally published at Lost Entropy. Please leave any comments there.


I was having trouble making chan_sccp compile against Asterisk 1.6 — it kept dying saying that AST_CONTROL_T38 was undeclared. Turns out the solution is easy — Asterisk replaced AST_CONTROL_T38 with AST_CONTROL_T38_PARAMETERS, so you need to replace something in sccp_pbx.c. Full instructions available here.

Unadopted Podcast Session 023 Out Now!

  • Sep. 21st, 2009 at 6:52 PM
Me in the sun

Originally published at Lost Entropy. Please leave any comments there.

It might be Monday, but that doesn’t mean you can’t get up and party! New tracks from Simian Mobile Disco, Fake Blood and bunch of familiar sounding tracks to get your week off to a good start. Get stuck in, and help spread the word!

If you love the Unadopted Podcast, please add Unadopted on Facebook and tell your friends about the podcast!

  1. Simian Mobile Disco – Audacity Of Huge
  2. Felix Da Housecat – Radio (Shinichi Osawa Remix)
  3. Fake Blood – I Think I Like It
  4. Futurecop! – Ain’t That Fresh
  5. Major Lazer feat VYBZ Cartel – Pon De Floor
  6. Yeah Yeah Yeahs – Heads Will Roll (Digiraatii Dance Til You’re Dead Remix)
  7. Daft Punk – Around The World (Alive 2009 Re-Edit)
  8. Bloc Party – One More Chance (Alex Metric Remix)
  9. Ou Est Le Swimming Pool – Dance The Way I Feel (Armand Van Helden Remix)
  10. Shinichi Osawa – Maximum Joy
  11. Frankmusic – Better Off As Two (A1 Bassline Remix)
  12. Florence And The Machine – Drumming Song (Jack Beats Remix)

Listen now over at http://unadopted.co.uk/podcast/. If you haven’t already set it up, click the “Subscribe” link on the right-hand-side when you get there to get the podcast automatically delivered right into your iTunes or RSS reader whenever I release a new session!

Me in the sun

Originally published at Lost Entropy. Please leave any comments there.


I ran into some problems with Perl’s CPAN installer on Snow Leopard, notably, it didn’t work once Bundle::CPAN was installed. Every time I tried to install a package I’d end up with an error like this:

Catching error: 'Can\'t call method "value" on an undefined value at /System/Library/Perl/5.10.0/darwin-thread-multi-2level/IO/Uncompress/RawInflate.pm line 64.
' at /System/Library/Perl/5.10.0/CPAN.pm line 281
CPAN::shell() called at /usr/bin/cpan5.10.0 line 199

Not good. So, how to fix it? Move the broken IO::Uncompress module out of the way. In a terminal window, copy and paste the following

sudo mv /System/Library/Perl/5.10.0/darwin-thread-multi-2level/IO/Uncompress/RawInflate.pm /System/Library/Perl/5.10.0/darwin-thread-multi-2level/IO/Uncompress/RawInflate.pm-broken

Once that’s been shifted out the way, it should work provided CPAN was configured with the proper paths to your tar, bzip2 and gzip executables (if not, nuke your /System/Library/Perl/5.10.0/CPAN/Config.pm and start over).

Note: This isn’t a long-term solution, some things like CPAN::SQLite won’t install if IO::Uncompress::RawInflate is missing, but at least it gets some functionality back into CPAN. I’m very interested in hearing of any better fixes for this.

Unadopted Podcast Session 022 Out Now!

  • Aug. 19th, 2009 at 9:10 PM
Me in the sun

Originally published at Lost Entropy. Please leave any comments there.

An absolutely pounding festival season party pack this time around, featuring a couple of delightful remixes of some classics by Orbital and Paul van Dyk, The Count & Sinden’s new track, Calvertron’s hoofin’ Friendly Fires remix, and Fake Blood’s happy-smiley mix of Miike Snow’s “Animal”. Get stuck in, and help spread the word!

If you love the Unadopted Podcast, please add Unadopted on Facebook and tell your friends about the podcast!

  1. Orbital – Halcyon (Tom Middleton Re-Model)
  2. Paul van Dyk – For An Angel 2009 (Spencer & Hill Remix)
  3. The Count & Sinden – Mega (Club Mix)
  4. Friendly Fires – Jump In The Pool (Calvertron Remix)
  5. Dan Le Sac vs Scroobius Pip – Look For The Woman (Fake Blood Remix)
  6. Surkin – White Knight Two (Laidback Luke Remix)
  7. Mystery Jets – Half In Love (Foamo Remix)
  8. Cicada – The Things You Say (Dirty South Remix)
  9. Miike Snow – Animal (Fake Blood Remix)
  10. Feist – 1234 (Van She Tech Remix)

Listen now over at http://unadopted.co.uk/podcast/. If you haven’t already set it up, click the “Subscribe” link on the right-hand-side when you get there to get the podcast automatically delivered right into your iTunes or RSS reader whenever I release a new session!

Me in the sun

Originally published at Lost Entropy. Please leave any comments there.

Shameless repost of BoingBoing and Reuters content here, but word should be spread on this because quite frankly it’s good that Thomson Reuters are taking the sensible approach on this, unlike the Associated Press (link1, link2)…

“Chris Ahearn, President of Media at Thomson Reuters, has an opinion piece out today which amounts to a response to recent hysterical, illogical, and counterproductive acts on the part of Associated Press management with regard to content-sharing online (and “journalism piracy”).”

Xeni Jardin, BoingBoing.net

And here’s what he said (click the link to read the full story):

“To start, yes the global economy is fairly grim and the cyclical aspects of our business are biting extremely hard in the face of the structural changes. But the Internet isn’t killing the news business any more than TV killed radio or radio killed the newspaper. Incumbent business leaders in news haven’t been keeping up. Many leaders continue to help push the business into the ditch by wasting “resources” (management speak for talented people) on recycling commodity news. Reader habits are changing and vertically curated views need to be meshed with horizontal read-around ones.Blaming the new leaders or aggregators for disrupting the business of the old leaders, or saber-rattling and threatening to sue are not business strategies – they are personal therapy sessions. Go ask a music executive how well it works.

A better approach is to have a general agreement among community members to treat others’ content, business and ideas with the same respect you would want them to treat yours. If you are doing something that you would object to if others did it to you – stop. If you don’t want search engines linking to you, insert code to ban them.”

Chris Ahearn, Thomson Reuters (blogs.reuters.com)

Disclaimer: In the interests of full disclosure, I should probably state that Thomson Reuters currently pay my wages.

Unadopted Podcast Session 021 Out Now!

  • Jul. 8th, 2009 at 10:57 PM
Me in the sun

Originally published at Lost Entropy. Please leave any comments there.

What were the skies like when you were young? The Unadopted Podcast is back again with yet another batch of musical goodies for you. Yet another varied one this time, ranging from Frankie Valli and the Four Seasons to Mujava, and from Pixie Lott to the ever-awesome Fake Blood.

If you love the Unadopted Podcast, please add Unadopted on Facebook and tell your friends about the podcast!

  1. Frankie Valli & The Four Seasons – Beggin’ (Pilooski Re-Edit)
  2. David Guetta – Jack Is Back
  3. Alter Ego – Rocker
  4. Mujava – Township Funk
  5. Hook ‘n’ Sling – The Bump (Tonite Only Mix)
  6. Pixie Lott – Mama Do (Linus Loves Remix Radio Edit)
  7. The Kills – Cheap And Cheerful (Fake Blood Remix)
  8. Alex Gopher – Aurora (Shinichi Osawa Remix)
  9. Little Boots – New In Town (A1 Bassline Remix)
  10. Fake Blood – Blood Splashing (Fake Blood Theme)
  11. Stardust – Music Sounds Better With You (Poj Masta Womp Mix)
  12. The Orb vs Alan Parker – Grey Clouds

Listen now over at http://unadopted.co.uk/podcast/. If you haven’t already set it up, click the “Subscribe” link on the right-hand-side when you get there to get the podcast automatically delivered right into your iTunes or RSS reader whenever I release a new session!

Me in the sun

Originally published at Lost Entropy. Please leave any comments there.


BoingBoing recently linked to a BBC Magazine article where they gave a 13-year-old an original Sony Walkman to review. My favourite quote:

“It took me three days to figure out that there was another side to the tape. That was not the only naive mistake that I made; I mistook the metal/normal switch on the Walkman for a genre-specific equaliser, but later I discovered that it was in fact used to switch between two different types of cassette.”

Unadopted Podcast Session 020 Out Now!

  • May. 23rd, 2009 at 6:58 PM
Me in the sun

Originally published at Lost Entropy. Please leave any comments there.

Checking in with Walter Murphy & The Big Apple Band, a bit of the Mighty Boosh, some Little Boots, and that Duke Dumont version of Two Doors Down by the Mystery Jets (that really sounds a lot more like it’s Muse - New Born…), it’s the Unadopted Podcast with a mixed bag of Bank Holiday Weekend party tracks.

If you love the Unadopted Podcast, please add Unadopted on Facebook and tell your friends about the podcast!

  1. Walter Murphy & The Big Apple Band - A Fifth Of Beethoven (Soulwax Remix) (Unadopted Edit)
  2. Jean Jacques Perrey vs Hervé - EVA (DJ Yoda’s FabricLive.39 Bonus Beats Mix)
  3. Mojo Filter feat The Mighty Boosh - Oaky Timbre (Loose Cannons Reflick)
  4. Does It Offend You, Yeah? - We Are Rockstars
  5. Treasure Fingers - Cross The Dancefloor (Laidback Luke Remix)
  6. Little Boots - Stuck On Repeat (Fake Blood Remix)
  7. The Kills - Cheap And Cheerful (SebastiAn Remix)
  8. Jaydee - Plastic Dreams (Laidback Luke Boot)
  9. Dizzee Rascal & Armand Van Helden - Bonkers (Doorly Dubstep Remix)
  10. The Prodigy - Thunder
  11. Simian Mobile Disco - 10000 Horses Can’t Be Wrong
  12. Mystery Jets - Two Doors Down (Duke Dumont Reconstruction)

Listen now over at http://unadopted.co.uk/podcast/. If you haven’t already set it up, click the “Subscribe” link on the right-hand-side when you get there to get the podcast automatically delivered right into your iTunes or RSS reader whenever I release a new session!

Unadopted Podcast Session 019 Out Now!

  • Apr. 20th, 2009 at 6:44 PM
Me in the sun

Originally published at Lost Entropy. Please leave any comments there.

Starting off with the dark-but-bouncy Sombre Detune by Norwegian funksters Röyksopp, touching on the epic Mars by Fake Blood, and bumping into some Prodigy and Tomas Andersson along the way, here’s the next installment of the Unadopted Podcast!

If you love the Unadopted Podcast, please add Unadopted on Facebook and tell your friends about the podcast!

  1. Röyksopp - Sombre Detune
  2. Friendly Fires - Your Love
  3. Yo Majesty - Club Action (Chris Bagraiders Sailing To Baltimore Edit)
  4. Fake Blood - Mars
  5. Tomas Andersson - Washing Up (Shinichi Osawa Re-Construct)
  6. The Shapeshifters - Chime (Martijn Ten Velden Remix)
  7. Fatboy Slim - Right Here, Right Now (Redanka Mix)
  8. Daft Punk - Robot Rock (Soulwax Remix)
  9. Marco V & Sander van Doorn - Organic
  10. The Prodigy - The Way It Is
  11. Justice - Planisphère (MMMatthias Remix)

Listen now over at http://unadopted.co.uk/podcast/. If you haven’t already set it up, click the “Subscribe” link on the right-hand-side when you get there to get the podcast automatically delivered right into your iTunes or RSS reader whenever I release a new session!

Unadopted.co.uk redesigned!

  • Apr. 15th, 2009 at 10:57 PM
Me in the sun

Originally published at Lost Entropy. Please leave any comments there.

I pushed a new design for Unadopted.co.uk live today. Took a while to get it to look right, but I quite like it. Much more up-to-date. The old look was about 5 years old!

Strange POP3 traffic from Google?

  • Apr. 12th, 2009 at 9:07 AM
Me in the sun

Originally published at Lost Entropy. Please leave any comments there.


I just read a daily email from Logwatch to find some very strange messages…

dovecot: pop3-login: Disconnected (no auth attempts): rip=209.85.198.208, lip=my.ip.ad.dr: 1 Time(s)

dovecot: pop3-login: Disconnected (no auth attempts): rip=209.85.198.210, lip=my.ip.ad.dr: 3 Time(s)

dovecot: pop3-login: Disconnected (no auth attempts): rip=209.85.198.211, lip=my.ip.ad.dr: 1 Time(s)

dovecot: pop3-login: Disconnected (no auth attempts): rip=209.85.198.212, lip=my.ip.ad.dr: 1 Time(s)

dovecot: pop3-login: Disconnected (no auth attempts): rip=209.85.198.213, lip=my.ip.ad.dr: 1 Time(s)

dovecot: pop3-login: Disconnected (no auth attempts): rip=209.85.198.214, lip=my.ip.ad.dr: 1 Time(s)

dovecot: pop3-login: Disconnected (no auth attempts): rip=209.85.198.216, lip=my.ip.ad.dr: 2 Time(s)

dovecot: pop3-login: Disconnected (no auth attempts): rip=209.85.198.217, lip=my.ip.ad.dr: 1 Time(s)

dovecot: pop3-login: Disconnected (no auth attempts): rip=209.85.198.218, lip=my.ip.ad.dr: 2 Time(s)

dovecot: pop3-login: Disconnected (no auth attempts): rip=209.85.198.219, lip=my.ip.ad.dr: 2 Time(s)

dovecot: pop3-login: Disconnected (no auth attempts): rip=209.85.198.220, lip=my.ip.ad.dr: 1 Time(s)

dovecot: pop3-login: Disconnected (no auth attempts): rip=209.85.198.221, lip=my.ip.ad.dr: 4 Time(s)

dovecot: pop3-login: Disconnected (no auth attempts): rip=209.85.198.225, lip=my.ip.ad.dr: 3 Time(s)

dovecot: pop3-login: Disconnected (no auth attempts): rip=209.85.198.227, lip=my.ip.ad.dr: 3 Time(s)

dovecot: pop3-login: Disconnected (no auth attempts): rip=209.85.198.228, lip=my.ip.ad.dr: 1 Time(s)

dovecot: pop3-login: Disconnected (no auth attempts): rip=209.85.198.232, lip=my.ip.ad.dr: 1 Time(s)

dovecot: pop3-login: Disconnected (no auth attempts): rip=209.85.198.234, lip=my.ip.ad.dr: 1 Time(s)

dovecot: pop3-login: Disconnected (no auth attempts): rip=209.85.198.235, lip=my.ip.ad.dr: 2 Time(s)

dovecot: pop3-login: Disconnected (no auth attempts): rip=209.85.198.236, lip=my.ip.ad.dr: 5 Time(s)

dovecot: pop3-login: Disconnected (no auth attempts): rip=209.85.198.237, lip=my.ip.ad.dr: 1 Time(s)

dovecot: pop3-login: Disconnected (no auth attempts): rip=209.85.198.238, lip=my.ip.ad.dr: 1 Time(s)

dovecot: pop3-login: Disconnected (no auth attempts): rip=209.85.198.239, lip=my.ip.ad.dr: 2 Time(s)

dovecot: pop3-login: Disconnected (no auth attempts): rip=209.85.198.240, lip=my.ip.ad.dr: 2 Time(s)

dovecot: pop3-login: Disconnected (no auth attempts): rip=209.85.198.241, lip=my.ip.ad.dr: 2 Time(s)

dovecot: pop3-login: Disconnected (no auth attempts): rip=209.85.198.244, lip=my.ip.ad.dr: 1 Time(s)

dovecot: pop3-login: Disconnected (no auth attempts): rip=209.85.198.245, lip=my.ip.ad.dr: 1 Time(s)

dovecot: pop3-login: Disconnected (no auth attempts): rip=209.85.198.246, lip=my.ip.ad.dr: 1 Time(s)

dovecot: pop3-login: Disconnected (no auth attempts): rip=209.85.198.248, lip=my.ip.ad.dr: 1 Time(s)

dovecot: pop3-login: Disconnected (no auth attempts): rip=209.85.198.249, lip=my.ip.ad.dr: 1 Time(s)

dovecot: pop3-login: Disconnected (no auth attempts): rip=209.85.198.251, lip=my.ip.ad.dr: 1 Time(s)

Okay, so let’s list the strange events here:

  • A whole bunch of sequential IPs are connecting to my POP3 port (not necessarily in order, perhaps Logwatch is just picking them out that way)
  • The remote machines are connecting, but not even attempting to authenticate (log in), they’re just disconnecting
  • The IP range is apparently owned by Google

So… what’s going on here, exactly? Anyone able to shed some light onto this?

Unadopted Podcast Session 018 Out Now!

  • Mar. 13th, 2009 at 3:45 PM
Me in the sun

Originally published at Lost Entropy. Please leave any comments there.

Get your weekend up-to-speed with this collection of early 2000’s dancepop fun! Taking a break from the electro side of things, this one’s crammed full of uplifting jump-around-the-house stuff from the likes of Armand Van Helden, The Shapeshifters, Fatboy Slim, and M&S presents The Girl Next Door.

If you love the Unadopted Podcast, please add Unadopted on Facebook and tell your friends about the podcast!

  1. Armand Van Helden - You Don’t Even Know Me
  2. Michael Moog - That Sound
  3. Shakedown - At Night (Original Version)
  4. M&S presents The Girl Next Door - Salsoul Nugget
  5. The Shapeshifters - Lola’s Theme (Shapeshifters 2008 Re-Edit)
  6. Space Cowboy - I Would Die 4 U
  7. Mr Pink presents The Program - Love And Affection
  8. Fatboy Slim - Talking Bout My Baby (Midfield General’s Disco Reshuffle)
  9. Chemical Brothers - The Golden Path
  10. Daft Punk - Something About Us (Without Brass Version)

Listen now over at http://unadopted.co.uk/podcast/. If you haven’t already set it up, click the “Subscribe” link on the right-hand-side when you get there to get the podcast automatically delivered right into your iTunes or RSS reader whenever I release a new session!

Unadopted Podcast Session 017 Out Now!

  • Feb. 8th, 2009 at 2:19 PM
Me in the sun

Originally published at Lost Entropy. Please leave any comments there.

With music old and new from the likes of Justice, The Presets, Deadmau5, Space Cowboy and more, Session 017 is loaded with enough get-up-and-dance party energy to even make the snowmen start dancing.

If you love the Unadopted Podcast, please add Unadopted on Facebook and tell your friends about the podcast!

  1. Fischerspooner - Emerge
  2. Deelite - Groove Is In The Heart (Electro Remix)
  3. Basement Jaxx - Romeo (Ryback Remix)
  4. Klaxons - As Above, So Below (Justice Remix)
  5. Space Cowboy - My Egyptian Lover (Extended Club Mix)
  6. Crystal Castles - Courtship Dating (J-La Bootleg)
  7. Deadmau5 vs Jelo - The Reward Is Cheese
  8. Arthur Argent - Hold Your Head Up (Soulwhacked Mix)
  9. Justice - Waters Of Nazareth (John Redden Mix)
  10. Boys Noize - Oh! (A-Trak Remix)
  11. Midfield General - Disco Sirens (Calling In Sick Remix)
  12. Felix Cartal - Moss vs Tree
  13. The Presets - My People
  14. Vitalic - La Rock 01

Listen now over at http://unadopted.co.uk/podcast/. If you haven’t already set it up, click the “Subscribe” link on the right-hand-side when you get there to get the podcast automatically delivered right into your iTunes or RSS reader whenever I release a new session!

A little bit of snow…

  • Feb. 2nd, 2009 at 7:25 AM
Me in the sun

Originally published at Lost Entropy. Please leave any comments there.

… and all of London grinds to a halt. The heaviest for 6 years apparently, though, and it’s going to be even heavier this afternoon. For as long as I can remember, I’ve never seen TfL (or its predecessors), cancel every bus service in the entire Greater London area though. This is pretty severe — for London, at least!

iPhone 3G deactivates/reactivates?

  • Jan. 23rd, 2009 at 12:44 PM
Me in the sun

Originally published at Lost Entropy. Please leave any comments there.

That was a bit odd. My iPhone 3G started acting a bit weird so I turned it off. I turned it back on, and it took what seemed like forever to start back up.

When it eventually did come back, it was deactivated! It had the connect-to-itunes image (not text like the image above) at the top of the screen, no service name in the top-left corner, a “slide for emergency” thing at the bottom and an info button which showed the ICC ID and IMEI.

In a bit of a panic I turned it off and on again.

It took another eternity to start back up.

And then it booted normally, with the “iPhone is activated” message. Is my iPhone dying, or is it just time for a factory restore in iTunes?

Me in the sun

Originally published at Lost Entropy. Please leave any comments there.

If you’re running a Linux, Mac OS X or Unix server of any description, SSH is an invaluable tool when it comes to taking control of the machine while you’re not infront of it.

In the world of web hosting, it’s also brings with it SFTP; a fantastic alternative to the very insecure FTP. Except it has one major flaw: by default on Ubuntu (and most Linux distros), one user can see all of another user’s files just by dropping up a directory to /home. Not exactly ideal if you’re providing a shared-hosting service.

So what we want is a chrooted version of SFTP. But this would also chroot SSH too, making it unusable for system administration. So we need to lock down SFTP only, but let SSH run free. We also want to be able to make some users SFTP-only (web hosting customers), and some users SFTP and SSH capable.

Luckily someone known as “The Minstrel”, came up with a pretty good solution to this. Back in November 2007, Mads Madsen also created a guide to this process for Debian/Ubuntu 7.04. This has been my favourite solution for some time now. The OpenSSH project has since created a version of this this idea internally, but annoyingly it’s got a major flaw: wherever you want to chroot the users to must be owned by root. In other words, users will not be able to create any files in the top level of their chroot jail.

Imagine that you have your users data stored in /home/username. You can’t chroot them to /home/username unless you create a directory inside there, and then let them own that. That gives them an ugly chrooted writable path like /htdocs (or whatever you choose to call it), and a / folder they can’t edit. The other option is to chroot them to /home, and let them own their homedir as normal, but then they can see every other user’s files. Again, not ideal.

So I stuck with The Minstrel’s version, but got tired of having to recompile and rebuild all this every time I wanted it on a new machine. Some people would have probably avoided this (actually quite good) solution altogether because it’s a bit too indepth. Well, it just got a bunch easier, because I created all the bits needed and am publishing them here for you to use.

Disclaimer: I make no promises that this won’t electrocute your cat, sleep with your girlfriend, make fun of your children, etc. Infact I make no promises about this at all. That said, for me, this has worked very well several times since Ubuntu 8.10’s release, on a whole variety of machines, and I’ve had no problems with it.

So from your Ubuntu machine, fire up a terminal (or SSH in, if you’re not sat infront of it) and paste this in:

wget http://unadopted.co.uk/openssh/openssh-server_5.1p1-3ubuntu1_i386.deb
sudo dpkg -i openssh-server_5.1p1-3ubuntu1_i386.deb
sudo aptitude hold openssh-server

This will download the modified package, install it, and tell Ubuntu not to replace it with new any of Ubuntu’s versions. Now bear in mind that you won’t get automatic security updates on OpenSSH anymore — you’ll need a new version of this package when OpenSSH 5.2 comes out, but when that comes out, it’ll be a pretty simple copy/paste job to upgrade, just like that was. The Minstrel notes that it’s worth signing up to the openssh-unix-announce mailing list to find out when this is necessary.

Now if this is the first time you’re doing this we need to do a couple extra steps (though you won’t need to do this if you’re just updating):

wget http://unadopted.co.uk/openssh/sftpsh
sudo cp sftpsh /bin/sftpsh
sudo chown root:root /bin/sftpsh
sudo chmod 755 /bin/sftpsh
sudo echo "/bin/sftpsh" >> /etc/shells 

This will download and install a special shell which you’ll need to set up as the login shell for the user accounts for whoever you want to lock down. This will kick them straight out if they try and SSH in, but will still let SFTP work. We also need to tell the system which directory to lock them into by adding a special tag into their home folder definition. Which all sounds a bit more complicated than it really is (it’s just one line to copy and paste).

So, let’s say our web user is called “mywebsite-sftp”. We’d just do this, if we wanted to lock them to their home directory:

sudo usermod -s /bin/sftpsh -d /home/mywebsite-sftp/./ mywebsite-sftp

Simple, right? The Minstrel has built up a pretty good set of FAQs incase you run into any problems.

If you ever change your mind, and want to go back to Ubuntu’s default OpenSSH server and undo all these changes, that’s dead simple too, just copy and paste this in (go-go-gadget uninstaller!):

sudo rm /bin/sftpsh
sudo aptitude remove openssh-server
sudo aptitude install openssh-server 

Warning: If you’re SSH’d in, don’t disconnect between the two aptitude commands, or you won’t have an SSH server to reconnect to (but it will stay alive until you disconnect). Also, you’ll need to remember that the sftpsh shell doesn’t exist anymore, though, and you’ll need to change any users back to a different shell using usermod.

Okay, so that’s that over with. Tell your friends, post it on Facebook, link to this in forum posts, Digg it, link to this from the Ubuntu Wiki, do whatever you feel you must do to share this with the world. :)

Me in the sun

Originally published at Lost Entropy. Please leave any comments there.

“As has been reported, we had staff cuts at LiveJournal Inc. this week. Early media reports seriously exaggerated the impact of the decision on the continued existence of LiveJournal as a company and misrepresented the scope of the staff cuts. The cuts were part of a restructuring that shifted global design and product development to the LiveJournal office in Moscow.”
– Press release in LiveJournal’s news community

This just reinforces to me that I made the correct decision by leaving, and slurping my data out. LiveJournal is dying slowly. The community aspect has completely gone. The company-user relations are now done by an anonymous user called “theljstaff”, as opposed to real people. It’s becoming about as much of a community as being a customer of BT — they’re turning into a service provider rather than a community.

Dumping LiveJournal and switching to WordPress was possibly one of the best decisions I’ve made regarding my journal/blog. Just as joining LiveJournal back in 2000 was one of the best decisions. This offer still stands if you want help leaving.

Related:
The post where I decided to leave LiveJournal, including my reasons why