Cooking with Linux - It's About Time!
Time, François...it's all about time. Yes, I'll explain in a bit, but for now, time is running out and our guests will be here shortly. Just make sure the main server is updated against the reference time server. Forget that, mon ami. I'm sure it's accurate, and besides our guests have arrived! To the cellar, immédiatement! Head to the South wing and bring back the 2001 Châteauneuf du Pape, the Guigal we were sampling earlier this evening. I will show our guests to their tables.
Welcome, mes amis to Restaurant Chez Marcel, home of great wine, exquisite Linux and open-source fare and, of course, world-class guests. Please, sit down and make yourselves comfortable. I've sent François to the cellar to bring back tonight's wine selection, and he should be back shortly. You may notice an overabundance of timepieces on your respective desktops, so I'll start with a little movie history, by way of explanation.
I'm going to pretend that some of you are old enough to remember the 1960 George Pal movie version of H.G. Wells' The Time Machine. In the movie, George, the H.G. character, has a room filled with ticking clocks of every kind: cuckoo clocks, grandfather clocks—you name it—no digital clocks though. If you don't remember that, perhaps you remember Robert Zemeckis' 1985's Back to the Future, starring Michael J. Fox. Doc Brown, played by Christopher Lloyd, has his own lab full of ticking clocks. Guess which one takes its inspiration from the other? Take a look at Figure 1, mes amis, and you'll see a Linux desktop version of George's Victorian home or Doc Brown's lab—depending on your video memory.
Some of you may be asking yourself why people would possibly want another clock on their system. After all, both KDE and GNOME have a clock embedded in their panels. Click on the clock, and a nice little calendar pops up, as in my desktop screenshot (Figure 1). Clocks are cool though, and some are more cool than others. On today's menu, I have several clocks for your enjoyment. From the super-stylish to the decidedly strange, you are bound to find something you like. Here is something you will definitely like and perhaps even love. My faithful waiter has just returned with the wine. Please pour for our guests, François.
While François pours the wine, I want you to take one more look at the clock in the lower right-hand corner of my KDE kicker panel. That's not the default KDE clock, but Fred Schättgen's StyleClock, a themeable replacement that includes an alarm clock and a countdown timer (your chef has used it to take little naps at his chair).
From the menu, you can set an alarm or a countdown timer. Both modes come with some one-click presets, but both the alarm and timer allow for a custom setting. Of course, we also can select themes for that special visual touch. I happen to like the analog styles, but StyleClock comes with both analog and digital themes. There's also the mandatory, super-geeky, binary clock.
Speaking of binary clocks, if you've been reading this column for a long time, you know that although I tend to run a KDE desktop, I still have an enduring fondness for Window Maker and its trademark dock apps. It is for this reason that I now direct your attention to Thomas “Engerim” Kuiper and Sune Fjod's wmBinClock. This slick little Window Maker dock app can display the time vertically or horizontally (horizontal is the default). You read the time by doing binary translation of LEDs that are either on (1) or off (0). When reading the time horizontally, the seconds are the two vertical rows of LEDs on the right. The two middle LEDs are minutes and so on. This is a great little application, and no, you don't need Window Maker to run it. It works just as well under KDE or GNOME.
Maybe you aren't running a graphical display, or you have a fondness for running things in a terminal window, but you would still like a binary clock. Nico Golde's BinClock displays the time in a terminal window. By default, the time is displayed similarly to wmBinClock (Figure 3), but this is a one-time display. To run the clock continuously, you must use the -l option to loop:
Use the -h option to see a number of command-line options that let you run the clock in a single-line or traditional mode or change the color of the ones and zeros. Of course, if you want to do straight text, you simply could type the date command in your terminal window. If you want a calendar for the current month, type cal. I do, however, want to focus on the desktop.
|Designing Electronics with Linux||May 22, 2013|
|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|
- Designing Electronics with Linux
- New Products
- Making Linux and Android Get Along (It's Not as Hard as It Sounds)
- Dynamic DNS—an Object Lesson in Problem Solving
- Using Salt Stack and Vagrant for Drupal Development
- Validate an E-Mail Address with PHP, the Right Way
- Tech Tip: Really Simple HTTP Server with Python
- Build a Skype Server for Your Home Phone System
- Why Python?
- Drupal Is a Framework: Why Everyone Needs to Understand This
- Reply to comment | Linux Journal
14 min 3 sec ago
- Reply to comment | Linux Journal
1 hour 4 min ago
- Not free anymore
5 hours 6 min ago
8 hours 53 min ago
- Reply to comment | Linux Journal
9 hours 1 min ago
- Understanding the Linux Kernel
11 hours 16 min ago
13 hours 45 min ago
- Kernel Problem
23 hours 48 min ago
- BASH script to log IPs on public web server
1 day 4 hours ago
1 day 7 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?