Spotify on Linux

Hey nerds. Guess what? Spotify on Linux.

Super easy too…fire up a terminal [ctrl-alt-t]

Step one:
cd /etc/apt
Step two:
sudo vim sources.list
Step three:
add “deb http://repository.spotify.com stable non-free” to the file

spotify for linux

sudo vim

Step four:
sudo apt-get update

spotify linux ubuntu

_{_n_/_Y_}_Y

Step five:
sudo apt-get install spotify-client-qt

spotify on ubuntu

can I kick it

That is that. It is not a supported version, but I doubt anyone installing via aptitude will really care about that item.

Side thought: How sad is it that my favorite album came out in 1993? Old balls.

Virtually Awesome

You may be wondering how I could one-up my work setup. Probably not, but play along.

We are too .NET-y for me to nuke Windows, but Oracle-y enough to get carte blanch on a whole bunch of new stuff.

Item one: VM Virtual Box Manager

virtually awesome

virtually.

I have an Ubuntu box rolling on the far right and an Oracle Linux box dead center. DropBox setup on the base machine and virtuals, for quick file mashing…diffing…command line python…grepping, etc. Good stuff.

The only thing that could be more virtually awesome would be a fourth monitor running Arch Linux. Virtually unbeatable.

Android SDK / Eclipse / Ubuntu

I updated to Ubuntu Oneiric Ocelot last week. For some reason, the automatic upgrade process botched pulling over my Android Development Tools (ADT) components. Chalk this one up with the strange camera issue I am seeing, as two votes for bailing on a fixed release cycle. Canonical has pushed out two consecutive iffy builds…but I digress.

It had been a while since I had set my Android development environment up. I had to start from scratch, so figured I would spell out the process.

Note the lack of “Android *” from the list of installed components:

eclipse ubuntu android sdk

...no sign

I’m starting from the point of having Eclipse installed. That part is straight forward…I snagged it off of the Ubuntu Market, but you an do it with Aptitude or however you like. Same goes for the JRE and JDK, the Java Runtime Environment and Java Development Kit. Snag those from the Market, Sun’s site, or apt – get…verify you have the correct version by running “java -version” from the command line. Mine is currently:

swantron@Dell15:~$ java -version
java version “1.6.0_23″
OpenJDK Runtime Environment (IcedTea6 1.11pre) (6b23~pre10-0ubuntu5)
OpenJDK Server VM (build 20.0-b11, mixed mode)

The Android SDK is the next component to snag. It has two pieces: Standard SDK (starter package) and SDK components. The later is where you can grab pieces to test Galaxy Tabs…stuff like that. The specifics are located there. You first need to download the starter package from d.android.com/sdk and run the UI. There you can pick and choose the pieces you want to implement, manage emulators, etc.

The last piece is the actual Eclipse plug-in. It is simple to implement. Navigate to Help . Install New Software, and feed through the process until you are asked for a site location. Said site is dl-ssl.google.com/android/eclipse

A restart should have Eclipse up and running. Give a shout if it doesn’t…after doing this a few times, I am becoming somewhat of an expert.

Ubuntu Update Day

The Dell Mini 9 always draws short straw. The little guy once again gets to play the part of guinea pig, and be the first to upgrade to the new version of Ubuntu.

ubuntu upgrade day

+1 Oneiric

V. 10.11 a.k.a. Oneiric Ocelot

We’ll see if they sharpened Unity up a bit. Preliminary reviews are pointing at a good release. Expect my review before long.

FWIW, ‘oneiric’ is a mouthy way to say dreamy. I don’t care for the word, and neither does my spell checker.

Makeshift Linux Heads-Up Display

Per my last post, I began upgrading my Dell Mini 9 last night…from Ubuntu 10.10 to 11.04. Well, at some point, it tossed a fit about not being able to snag a package, and hung on a dialogue box all night. No worries…I’ll finish this install on the way to work.

ubuntu linux netbook on my silverado dashboard

check the speedometer...

Who said netbooks are passe? Looks like that guy was designed to ride on the dash of a Silverado if you ask me.

For the record, I was not doing 110 MPH by the MSU campus. I have an issue with my speedometer. I was doing 90 MPH, tops.

My install was a success for the record. I will see if all functions are fully functional soon, and put together a post.

HTML to Python to Arduino to LCD

Last week found me standing tall upon my shell script soapbox, shouting command line praises to all who would listen.

Thou ought direct thine output aftways, to-wards thine USB port of thee. And that is well and righteous.

Well, that still is the case. My latest project has made it glaringly obvious that sometimes a little Python script will render a whole bunch of shell scripting moot. Namely, parsing HTML. Let’s see a picture…

outdoor hacking

bad lab mobile

Lunch hour project: parse the comments from swantron.com; feed said comments to an LCD screen.

I was horsing around with wget from a CLI a few days ago. I found myself trying to smash through the resultant file via pure regular expressions…which is incredibly clumsy. Well, as luck would have it, my go-to after my main go-to is Python, and this type of thing has been issue enough to warrant a library. BeautifulSoup. It acts to parse the HTML info into items, that can be smashed around as I see(med) fit.

My setup was simple: py script to snag my comments and write serial, Arduino sketch to drive a LCD and read/write serial. And a source of shade. And a WiFi signal to snag.

mobile mobile

bad lab mobile-mobile

Check, check, check, etc. Video time:

Pretty slick…hit the fold for the code, as promised, and a summary.
Continue reading

Command Line LCD Arduino Interface

Liquid crystal displays are pretty awesome. Command line interfaces are very awesome. Hmm…

I started daydreaming at work about how to go about making hardware interface with an RSS feed. I have seen some projects that use Arduinos with ethernet shields to check Twitter, for example, but they seem unnecessarily bulky. Or clumsy. I spend a lot of time working on the command line, and love to put together dirty little scripts to solve problems. It sort of goes along the lines of ‘when you have a hammer, everything looks like a nail’…I figured that the same thing could be implemented with a little shell scripting and my trusty Arduino, sans anything complicated.

So far, so good.

bad lab mobile

bad lab mobile

I put together a sketch (after the bump) to drive my LCD, writing serial output to the screen. After verifying that the sketch worked via the Arduino IDE’s serial monitor, I popped open a CLI and got to work. FWIW, I am using Ubuntu 11.04 still…ctrl-alt-t pops open a terminal window…unity has me all over shortcuts these days. Anyhow, I was able to verify that I could echo text and direct it to the USB port that the Arduino was mounted to. No sweat.

As a proof of concept, I decided to display the number of times that I had the word “awesome” on swantron.com. Once the LCD was shown to work, the sky is the limit…see some regex, pipes, wget, and so forth in action:

CLI

CLI FTW

Survey says:

+1 awesome

+11 awesome

Eleven “awesome”s. Awesome.
(Hit the bump for some code, an oddity, and more fun…)
Continue reading

Ubuntu Natty Narwhal Features

I’ve had some time to poke around under the hood of Ubuntu 11.04, a.k.a. Natty Narwhal. I still am struggling to spell ‘narwhal’ for the record, but I’ll share some of my first thoughts. After all, sharing is caring. Write that down.

I’ll put the most obvious thing on the table first…they Apple-ed the crap out of this distro. Take a look at this screen shot, and tell me it doesn’t look an awful lot like OSX, with the bottom ‘stuff’ dumped on the left-hand side: (click to enlarge)

natty narwhal

thanks mr. narhwal

The good news is that like Leopard, Narwhal is usable. The same cannot be said for Ubuntu’s first foray into this new territory with Unity. Their last attempt was in 10.10 Netbook Edition, which was horrible to say the least. The UI was attempting to mix desktop features with mobile phone-like buttons, and it was a joke. Pretty much junk…I reverted my Mini 9 to the 10.10 Desktop Edition, and jumped back on the Gnome bandwagon. Well, to their credit, Ubuntu has polished the thing up.

From what I can gather, Unity sits over Compiz…sort of like a plugin. I snagged the Compiz configuration tool via a CLI and messed around with the settings. The snap-to-side function that came stock with this was a pain in my ass, so I reverted it to my beloved ‘wobble windows’ It was sort of odd to have the options bar integrated with the top bar at first, but when I change gears and use multiple windows, I am liking the move.

The window switcher function pans out and shows you four workspaces…see below (click to enlarge)

window switcher ubuntu

window switcher is switchy

So basically, I am writing this post in one area, have Eclipse up in another, and have two CLI sessions live in their own spots. With the integrated file bar, the Gimp is far less cluttered…which is awesome. The taskbar slider function is a bit spotty still. I have taken Compiz down running my Arduino IDE (trying to set a temp file up as a taskbar item…it puked) but now have it configured and snappy. I would chalk that up to a training issue, rather than a show stopper.

At the end of the day, I give it a surprisingly positive review. I was very satisfied with the last few long term support versions of Ubuntu, and hesitant to make the switch after the whole fiasco with Unity last time. You can switch back to Gnome, but I have no plans on doing so.

Pros:
* Linux distro. Give me terminal or give me death.
* Firefox 4. Much improved.
* Update manager. Keeps me current without much hassle.
* Interesting UI. Make sure you download the Compiz manager to tweak things.
* Free.99. Can’t beat the price

Cons:
* Ubuntu’s slant. Not bad, but they are steering us toward their cloud services and apps.
* Not Linux-y. Feels like a Win7/OSX hybrid at times.
* Rushed to market. Unity is in need of some refinement.

At the end of the day, I am sticking with this distro. It will only improve. When the new Gnome drops, I’ll make the call as where to head, but this is it for the time being.

Alarm System In Progress

I suppose I should add a few words. I placed the images in an empty post several days ago, and sort of forgot to update the text on mi telephono.

Dios mio!

speaker

netbook action shot

Well, long story short. I put together the little POC using my PIR sensor a while back. The shit deal, is that the sucker only writes high and low. Easy, for the win. Limited, for the loss.

I may or may not have (I did) disassembled a few CRT TVs last month. Hence, have all sorts of components, such as small sub 9V speakers…

wires

the wires are wire-y

I’m trying to do something with a dual speaker setup, in order to shine up my bugler alarm project. The code is boring…stay tuned…I might be able to come up with something amusing.