Categories
Uncategorized

Raspberry Pi auto login

Linux

Occasionally I post things here because I may need them in the future… this is probably one of those things, which is setting a Raspberry Pi to auto-magically login to the shell (not the desktop) on boot.

Install and configure Raspbian as you normally would, setting it to boot up to the command line, not the desktop.

Boot the Pi and login as the user pi, and then run the following command:

sudo nano /etc/inittab

Find the following line:

1:2345:respawn:/sbin/getty --noclear 38400 tty1

and comment it out by adding a # to the front:

#1:2345:respawn:/sbin/getty --noclear 38400 tty1

Just under it, add this line:

1:2345:respawn:/bin/login -f pi tty1 </dev/tty1 >/dev/tty1 2>&1

Save the file, quit nano, and reboot.

Obviously this can pose a security risk, just like any other auto-login procedure. If you’re using a Raspberry Pi that is not connected to the network, and doesn’t have a keyboard attached, and is secured in a case, there’s a bit less of a concern.

(Most of this info is from the post Auto Login and Auto Start in Raspberry Pi. Thanks!)

Categories
Uncategorized

(The Making of) A Life Time of Yeahs!

Yeahs! Pi!

I presented A Life Time of Yeahs! at Bay View Gallery Night but I didn’t really post much about how it was made, so I’ll do that now, as well as talk about the shortcomings. Above you can see the front and the back. The front piece is actually from an IKEA picture frame I found in the trash. It was a nice smooth MDF-like surface, so I figured it would take the vinyl and paint pretty well.

For the illustration of Mr. Rollins I did a few searches and didn’t find anything that was perfect, so I grabbed a few images as reference and traced/drew my own in Inkscape. I then created a stencil by cutting vinyl on the Silhouette Cameo (including the lettering) and stuck it all down to the IKEA board which I had already painted white.

With the vinyl in place I then painted it all flat black. I didn’t leave it all smooth as it sort of looked too polished, so I smeared some paint around with a brush and then with my fingers so it gave it some texture. I’m still not sure that was the right thing to do, but I did it, and there’s no going back.

Once I had the front piece done I found some scrap wood for the frame in my garage and cut it on the table saw. I made sure the wood was wide enough to fit the speakers into. It was, but as I’ll get to in a bit, wider would have been better…

Yeahs!

The back of the piece contains a Raspberry Pi, a set of speakers, and a Teensy 3.0 with a few buttons connected to it. It’s all powered by a power bank from Brown Dog Gadgets.)

The speakers are USB powered so they, along with the Raspberry Pi, connect to the power bank. Turning on the power bank boots up the Pi and starts a script called “rpisounds.pl” which is a Perl script that starts running and waits for keyboard input to do something. That “something” is playing an audio file if you press the red button on the front of the piece. There’s also a small button on the back of the piece that safely shuts down the Pi if you want to turn it all off.

Yeahs! Pi!

It’s been suggested that the Teensy in addition to the Raspberry Pi is overkill, and… it is! I originally had a separate project that used some of this code and hardware and ended up just grabbing what I had lying around because it was quick and easy. Sometimes it works out that way, and that’s fine…

I should have gone with the more powerful speakers I had, because as I learned last time, if you’re doing something with audio in a public space, make it much louder than you think it should be. I had a louder pair of speakers, but they would have required AC power, so I compromised. Oh well. (You can’t tell from the photo, but there are speaker hole drilled in the side of the frame.)

I’ll probably clean up the code and publish it eventually, but essentially it gets kicked off by /etc/rc.local and runs it a continual loop waiting for a key to be pressed. If you press “a” (the button on the front) it randomly selects a WAV file and plays it. If you press the button on the back the script sees a “r” and shuts down. Why an “r” instead of an “s”? I don’t know… There’s another button that was taped up that types a “q” for quit, which quits the script, and is handy for debugging or troubleshooting if you have a monitor and keyboard attached.

That’s the summary of my Raspberry Pi based interactive painting titled “A Life Time of Yeahs!”

I hope you enjoyed it… As always, let me know if you have any questions.

Categories
Uncategorized

A Life Time of Yeahs!

Yeah!

In 1987 the Rollins Band released the album Life Time, which was produced by Ian MacKaye of Minor Threat, Fugazi, The Teen Idols, and of course, Egg Hunt.

The album Life Time was groundbreaking, not just in showcasing the talents of Mr. Rollins as one of the greatest screamers of all time, but in cementing into our popular culture the use of the word “Yeah!” for emphasis. You may remain unconvinced that Mr. Rollins accomplished such a thing, so I listened to the album Life Time over and over and over again. Yeah! I! Did! I then fired up my audio editing software and collected all of the best “Yeah!” moments.

Obviously you know the opening of “Burned Beyond Recognition” (the first track) starts with five consecutive “Yeahs!” and you also know that “Turned Out” ends with a massive, some would say bone-chilling “Yeah!”, but there are so many more great “Yeah!” moments. After collecting the best “Yeahs!” I culled the list to just under 50 (it was not easy!) and I’ve provided them at the push of a button for the interactive piece titled “A Life Time of Yeahs!”

Yeah! Button

I believe “A Life Time of Yeahs!” stands as a testament to the positivity that Henry Rollins exudes in everything he does. From his position as a lead vocalist to a spoken word performer, and from his portrayal as an actor to his role as a talk show host, you can expect nothing but positive “Yeah!-ness” from Mr. Rollins. If you’re feeling down, maybe you’ve got the “gun in mouth blues” or you just need someone to agree with you… Mr. Rollins and “A Life Time of Yeahs!” has got you covered.

Categories
Uncategorized

The Like Tracker Kiosk

Like Tracker Kiosk

You may remember my post about the Sir Like-A-Lot, which was a kiosk to show how many “Likes” your Facebook page has. I built it for an event that z2 Marketing had last fall. Well, with it being Raspberry Pi week over at Make Magazine, I was asked to write up a proper how-to, so there’s now a nice step-by-step description in the Project section titled Build a Raspberry Pi “Like” Tracker Kiosk.

It was a good challenge, as I ended up starting from scratch multiple times, as I wanted to make sure I didn’t miss any steps. Typically, when I build something like this, it’s a bit unstructured, where you install things, configure things, and finally get it working, and then realize your notes are sorely lacking. I also wanted to make things as simple as possibly, and with Perl, that’s not always easy!

Anyway, I hope you enjoy the Project, and hopefully I can contribute more in the future.

Categories
Uncategorized

MMPIS (Part IV)

MMPIS

See Also: MMPIS (Part I), MMPIS (Part II), and MMPIS (Part III).

During December’s “Space Improvement Workshop” at Milwaukee Makerspace I somehow convinced Chris to run a network drop for the permanent home for the MMPIS. This was after he convinced me to move the MMPIS to the permanent location. We both somehow convinced Tom to make a wall mount for the MMPIS. So yeah, the MMPIS is now permanently mounted in a location where you’ll see it when coming into the space. It’s right below the (small) LED sign, which is right below the big “TARDIS” letters.

It’s all pretty awesome. Check out the photo above! And yeah, we should probably drill a hole in the wall for those cables.

I also added one more screen. It’s a Mad Libs style thing which says “Hey, we should totally build a ________-powered ________ for the space!” with the blanks filled in with weird things from two different lists. Also, the challenge accepted guy is there to accept the challenge.

Here’s a few examples:

We should build...

We should build...

We should totally...

Let's build a...

Totally build we should...

There’s also a wiki page for the MMPIS.