Cooking with Linux - Really Useful Gadgets...Sort of
What on Earth is that, François? Something to make your job easier? Come on, mon ami, let's be honest. I don't work you that hard. So what does that thing do? Quoi? It's a combination corkscrew, pen, pocket knife, compass, notepad, wine thermometer, music player and crumber? That's the silliest thing I've ever heard of. You know I love gadgets as much as you do, but I think you outdo me with your choices. Our guests are arriving, François. Pay attention, and I will show you some really useful gadgets.
Good evening, everyone. It is wonderful to see you, mes amis. Welcome to Chez Marcel. François has prepared your usual tables and was just about to get tonight's wine. And, what a wine, mes amis. This 2006 wine from Tuscany is produced by Ornellaia and goes by the name of Le Volte (Figure 1). It's a rich, full-bodied, almost chewy red with lots of dark fruit on the palate. Your mouth will thank you. François, you'll find our shipment in the east wing of the cellar, near the secret passageway. Vite!
These days, software gadgets are designed to exploit the eye-candy capabilities of modern systems, and we'll look at some of those in a moment. But, what if your system isn't a modern computer? What if you have only limited memory and no high-end graphics system? Have no fear; I've found a couple gadgets guaranteed to be resource-friendly while still providing little productive value. The first is necessary for people using a Linux system who feel they may be missing out on that most important of Windows tools. Yes, I'm talking about the Blue Screen of Death, lovingly crafted for Linux by Folkert van Heusden.
Get the source from www.vanheusden.com/bsod, extract it and then simply type make (or make install) to build it. To run it, type bsod. Your console, or terminal window, displays the Blue Screen of Death. There are no options or flags, so it's very easy to use.
Of course, the Blue Screen of Death doesn't do much. And, it's nowhere near as interesting as, say, watching fish in an aquarium. We've got that taken care of as well with our next gadget. In keeping with our low-tech, low-end gadget needs, this aquarium doesn't require a graphics card. It's Kirk Baucom's ASCIIQuarium (Figure 3). The program displays a variety of fish, the occasional sea monster or man-eating shark, all in glorious ASCII.
Believe it or not, ASCIIQuarium is included in the repositories for various distributions, so you probably don't need to build it. However, source is available should you choose to go that route. There is no building to be done because ASCIIQuarium is a single Perl script. It requires only that you have the Curses and Term::Animation Perl modules installed. While the aquarium displays its two-dimensional life, you can press R to force a redraw, P to pause the display or Q to quit.
If ASCII seems just too, ahem, quaint for a desktop gadget, you'll be happy to know that you can get a different kind of aquarium with some nicer graphics. Most modern software gadgets tend to be small programs that run on your desktop background or wallpaper. Sometimes they become the background. One such program is xfishtank (Figure 4), written by Eric Bina. Once again, this is an easy program to find in your distribution's repositories.
Running xfishtank on most systems is as simple as typing the program name. You also can fire up your program launcher (Alt-F2), and type xfishtank to populate your aquarium. Whether you see something right away depends somewhat on the desktop environment you are running. Most environments, GNOME included, don't require any additional steps, but KDE does need to check with you before allowing programs to run on the desktop background. Right-click on your desktop, and select Configure Desktop from the pop-up menu. When the dialog box appears, click the Behavior icon in the left-hand sidebar. A three-tabbed window appears on the right-hand side. Look near the top on the General tab, and you'll see a check box with the words Allow programs in desktop window. Click that check box, and then click OK.
I mention this now because you may need it again with some of our other gadgets. A lot of the newer background gadgets are small programs that take up a small portion of your screen, quietly displaying useful information, such as system load, memory usage or network traffic. But, wouldn't you rather see Tux running around on your screen, walking across your windows, skateboarding or parachuting down to your taskbar? Me too. You can thank Robin Hogan for writing xpenguins to help us out of that productivity conundrum. When you run xpenguins, Tux, in all the forms I mentioned, suddenly takes over your screen (Figure 5).
Should you decide your screen isn't busy enough, you can increase the default number of penguins by using the -n flag. That default is defined in the current theme. Theme? Did I say theme? If those wonderful little penguins vying for your attention aren't enough, you are running the right program, mes amis. One of the really fun things about xpenguins is that it comes with multiple themes. To discover those themes, type xpenguins -l at the command line:
$ xpenguins -l Big Penguins Bill Classic Penguins Penguins Turtles
To select a particular theme, do the following:
xpenguins -t Bill
Figure 6 shows the result. Bill, the famous hacker from Red Mond, wanders across your screen taking away Linux systems and replacing them with his own brand of OS. Yes, this is a takeoff of the (in)famous xbill game.
Even more themes are available. Visit the xpenguins Web site, and check out the user-contributed themes at xpenguins.seul.org/contrib. Before we move on, I want to mention one last flag available with xpenguins—the -s flag. That one makes it possible for you to squish the characters with your mouse cursor. If you find yourself a little squeamish at the result, the -b option means no blood.
I could pass the next one by, but I really need to mention it. It's a little less tasteful, but it's lots of fun if you want to turn off your coworkers. xcockroach, written by Nicolas Adenis-Lamarre, generates a variety of cockroaches that scurry across your screen and hide under your active windows. Move the window and the critters run off in all directions. It's pretty disgusting, but certainly entertaining. Unlike xpenguins, there is no squash function. You can, however, change themes and behaviors for your roaches. For a full list of options, type xcockroach -h.
Let's get off the nostalgia bus now and take a look at the modern state of desktop gadgets. KDE 4.1's impressive desktop features a new desktop shell called Plasma. Plasma is, in a way, the ultimate gadget—it's a gadget that runs gadgets. Inside Plasma, you run programs (or widgets or gadgets) that appear on the desktop. Each of these programs is commonly referred to as a plasmoid. Plasmoids are more than programs, however. Each is a containment that can contain other plasmoids, all of which are, technically, able to communicate with one another. Plasma, the desktop shell, is just one big containment that contains other plasmoids. The panel at the bottom of the screen with its system-tray icons, taskbar, clock and program launcher is yet another containment. Shakespearean fans can think of it as a play within a play.
Plasmoids use scalable vector graphics (SVG). These graphics can be zoomed and rotated smoothly, meaning that plasmoids can live pretty much anywhere on your desktop, in any size and any orientation. The result is super-sweet eye candy of the gadget variety.
|Dynamic DNS—an Object Lesson in Problem Solving||May 21, 2013|
|Using Salt Stack and Vagrant for Drupal Development||May 20, 2013|
|Making Linux and Android Get Along (It's Not as Hard as It Sounds)||May 16, 2013|
|Drupal Is a Framework: Why Everyone Needs to Understand This||May 15, 2013|
|Home, My Backup Data Center||May 13, 2013|
|Non-Linux FOSS: Seashore||May 10, 2013|
- RSS Feeds
- Making Linux and Android Get Along (It's Not as Hard as It Sounds)
- Using Salt Stack and Vagrant for Drupal Development
- Dynamic DNS—an Object Lesson in Problem Solving
- New Products
- Validate an E-Mail Address with PHP, the Right Way
- Drupal Is a Framework: Why Everyone Needs to Understand This
- A Topic for Discussion - Open Source Feature-Richness?
- Download the Free Red Hat White Paper "Using an Open Source Framework to Catch the Bad Guy"
- Tech Tip: Really Simple HTTP Server with Python
- Roll your own dynamic dns
3 hours 39 min ago
- Please correct the URL for Salt Stack's web site
6 hours 51 min ago
- Android is Linux -- why no better inter-operation
9 hours 6 min ago
- Connecting Android device to desktop Linux via USB
9 hours 35 min ago
- Find new cell phone and tablet pc
10 hours 33 min ago
12 hours 2 min ago
- Automatically updating Guest Additions
13 hours 10 min ago
- I like your topic on android
13 hours 57 min ago
- This is the easiest tutorial
20 hours 32 min ago
- Ahh, the Koolaid.
1 day 2 hours ago
Enter to Win an Adafruit Pi Cobbler Breakout Kit for Raspberry Pi
It's Raspberry Pi month at Linux Journal. Each week in May, Adafruit will be giving away a Pi-related prize to a lucky, randomly drawn LJ reader. Winners will be announced weekly.
Fill out the fields below to enter to win this week's prize-- a Pi Cobbler Breakout Kit for Raspberry Pi.
Congratulations to our winners so far:
- 5-8-13, Pi Starter Pack: Jack Davis
- 5-15-13, Pi Model B 512MB RAM: Patrick Dunn
- 5-21-13, Prototyping Pi Plate Kit: Philip Kirby
- Next winner announced on 5-27-13!
Free Webinar: Hadoop
How to Build an Optimal Hadoop Cluster to Store and Maintain Unlimited Amounts of Data Using Microservers
Realizing the promise of Apache® Hadoop® requires the effective deployment of compute, memory, storage and networking to achieve optimal results. With its flexibility and multitude of options, it is easy to over or under provision the server infrastructure, resulting in poor performance and high TCO. Join us for an in depth, technical discussion with industry experts from leading Hadoop and server companies who will provide insights into the key considerations for designing and deploying an optimal Hadoop cluster.
Some of key questions to be discussed are:
- What is the “typical” Hadoop cluster and what should be installed on the different machine types?
- Why should you consider the typical workload patterns when making your hardware decisions?
- Are all microservers created equal for Hadoop deployments?
- How do I plan for expansion if I require more compute, memory, storage or networking?