HOW-TOs

Bash Sub Shells

November 11th, 2008 by Mitch Frazier in

When writing bash scripts you sometimes need to run commands in the background. This is easily accomplished by appending the command line to be run in the background with an ampersand "&". But what do you do if you need to run multiple commands in the background? You could put them all into a separate script file and then execute that script followed by an ampersand, or you can keep the commands in your main script and run them as a sub-shell.

If you don't care much about whitespace bash is great: it normally turns multiple whitespace characters into one and it breaks things into words based on white space. If on the other hand you'd like to preserve whitespace bash can be a bit difficult at times. A trick which often helps is using a combination of bash's eval and set commands.

List Open Files

November 4th, 2008 by Jagadish Kavuturu in

If you try to unmount a partition and get a message like this:

# umount /media/usbdisk/
umount: /media/usbdisk: device is busy

use the lsof command to find out what programs are using what files:

One of the comments to my last post about adjusting the fan speed on your NVidia graphics card was that what was needed was a script to adjust the speed based on the temperature. The script presented here does just that.

Product Review

The OpenMoko project recently released a much-needed update to the official software stack of the Neo FreeRunner. I've had a FreeRunner for a few months and during that time I have used it to run everything from Debian to Qtopia (now known as QT Extended), so when OpenMoko announced the OM2008.9 update I eagerly upgraded to see what it had to offer.

More From LinuxJournal.com

The article discusses E-Stewards, a new certification program for e-waste recyclers that aims to prevent dumping in landfills and developing countries.


1:05 minutes (1015.14 KB)

Here in the Linux Journal offices, we sometimes get phone calls that give us a laugh. People call us because they either want to "talk to the Linux company" or buy some stock in "Linux," or have some criticism of "the Linux programmers." We thought this time we'd share one with you. Hope it gives you a chuckle to brighten your day. :)

Kuklomenos has to be one of the weirdest games I've ever come across. I'm not doing a full review here, because I simply can't figure it out! If you want to compile it, go right ahead; it's easy with the usual ./configure, make, make install routine. But, once you get into the game, be prepared to be puzzled.

The Dell IdeaStorm Index

November 10th, 2008 by Doc Searls in

The Dell IdeaStorm site was an inspired move by the company, providing a way for the market to tell a major supplier what to do, rather than the reverse, which has been the default for the whole Industrial Age.

Linux Journal's Flickr pool regularly brings in fun photos from readers around the world.

With the gadget-focused December issue of Linux Journal hitting newsstands any day now, I thought it might be fun to know what YOU think are the coolest gadgets out there. There are many devices mentioned throughout the December issue (check it out to see what's under the hood and how to hack some of them).

Blogs and Opinion

Linux on the Label!

November 18th, 2008 by Shawn Powers

Anyone that uses Linux regularly is familiar with the "Google to see if it works under Linux" procedure before buying any hardware. I was thrilled when I saw the ad for a USB Atari 2600 joystick clone that had a label on the box claiming its Linux compatibility.

“They order, said I, this matter better in France.” So wrote Laurence Sterne in his 1768 book A Sentimental Journey Through France and Italy. Alas, things have changed much since then, at least as far as the Internet is concerned. In the light of recent events, now he would we have to say: they order this matter worse in France. Even more unfortunately, France's bad habits are spreading, and could have serious consequences for free software.

Getting Past Telco 1.0

November 3rd, 2008 by Doc Searls

It's time to start fixing telecom, even as we're moving past it. If ideas are weather systems, that's the squall I'll bring to the Telco 2.0 Executive Brainstorm in London tomorrow and Wednesday. This is my first time at one (it's the fifth in their series), and I'm looking forward to it.

I have decided to let the geeks out there solve a problem for me. The problem is writing a quick and dirty solution to a temporary problem. I have an idea but I am interested to see what others have to say.

This week on Linux Journal Live!, Kyle Rankin and I are talking about all the horrifying mistakes we've made as sysadmins. It may be a two part show. :)

Anyway, we were thinking about what sort of contest we should have, and figured maybe we could solicit your horrible stories from the field. So here's the deal:

Time's running out to get your hands on this cute little green dude that runs gOS Linux.

Remember when I reviewed Crossover Games (cxgames) back in April? If you have been pining for your very own license ever since -- today is your lucky day.

Join editor Shawn Powers and Linux Journal author (and long time KDE contributor) Jes Hall this Thursday evening, Oct 23 at 7:30pm Central, when they discuss mini notebooks and which one you should buy. Remember to bring your questions and ask them in the chat room on the side of the video -- Shawn and Jes will interact with the audience throughout the show. See you there!

A while ago (a year?) I wrote about my attempts to get an IPv6 address block and start using IPv6. My carrier, Verizon, did not seem to know what I was talking about.

“What's in a name?” some bloke in the sixteenth century once asked. As Microsoft knows, quite a lot. What you call something can have a major influence on how you think about it. So how Microsoft talks about free software is important – not least for the clues that it gives about its latest tactical move to defang the open source threat.


Featured Videos

The November 13, 2008 edition of Linux Journal Live! Shawn Powers and special guest, Linux Journal Author Daniel Bartholomew, talk e-book readers and Daniel's Kindle, DRM, and other goodness.

From the Magazine

December 2008, #176

The Oxford English Dictionary says the word "gadget" is a placeholder name for a technical item whose precise name one can't remember. Like that book-reader thingy from Amazon...what's it called? Spindle, Gindle...Kindle, that's it. Check it out in this month's gadget issue.

Other gadgets covered include the Nokia tablets, the BlackBerry, the Neo FreeRunner, the Dash Express, the Roku Netflix Player, the Kangaroo TV, The TomTom GO 930 and the MooBella Ice Cream System. On the larger hardware front, read the reviews of the Acer Aspire One and the YDL PowerStation. On the software front, check out the articles and columns on memcached, Samba security, Mutt, desktop gadgets, bash and Puppet. To wrap it all up, read Doc's thoughts on Google and the browser platform.

Read this issue

Sign up for our Email Newsletter