HOWTOs

Listen to Your Music, and Your Friends' Music, Wherever You Are

uDig GIS: A First Look

October 10th, 2008 by James Gray in

Part of an ongoing series of on open-source geographic information system (GIS) programs, this article offers an introduction to uDig GIS. uDig is for GIS users of all levels, from beginners to advanced.

Wildcards in bash are referred to as pathname expansion. Pathname expansion is also sometimes referred to as globbing. Pathname expansion "expands" the "*", "?", and "[...]" syntaxes when you type them as part of a command, for example:

  $ ls *.jpg         # List all JPEG files
  $ ls ?.jpg         # List J    
  

If you use bash you already know what Parameter Expansion is, although you may have used it without knowing its name. Anytime you use a dollar sign followed by a variable name you're doing what bash calls Parameter expansion, eg echo $a or a=$b. But parameter expansion has numerous other forms which allow you to expand a parameter and modify the value or substitute other values in the expansion process.

If you use ALSA for sound on your system the functions contained in the script presented here can be used to get and set the volume on your system. You might use this if you had a monitoring script running and wanted to raise the volume when you signal an alarm and then lower it again to the previous volume.

If you have a process ID but aren't sure whether it's valid, you can use the most unlikely of candidates
to test it: the kill command. If you don't see any reference to this on the kill(1) man page, check the info
pages. The man/info page states that signal 0 is special and that the exit code from kill tells whether a
signal could be sent to the specified process (or processes).

Grep: RRTFM

September 16th, 2008 by Mitch Frazier in

If you've been a Linix/UNIX user for a long time you surely know what RTFM means (Read The *bleep* Manual). I'd like to offer up a new, related acronym, RRTFM, for Re-Read The *bleep* Manual.

You can check your computer's temperature using only standard tools, with the command:

A while back, I wrote an article for Linux Journal's web edition entitled “Howto be a good (and lazy) System Administrator.” A couple astute readers, after reading the article, asked if I was familiar with the Nagios monitoring system, and I am. I've been using Nagios for a few years now.

If you have multiple computers on your desktop there are a number of scenarios for using them:

With Labour Day past, we back in the season of slide shows -- million of them daily in both academia and business. For over a decade now, slide shows have become an accepted prop for public speaking, regardless of whether they are useful or well-designed, and the trend shows no sign of slowing. You can, of course, just acquiesce and accept that as soon as you click to the first slide, most of your audience will sigh deeply and sit back low in their chairs. But, if you really want to make slide shows work for you, you'll think before opening up the Impress wizard.

If you ever need to download an entire Web site, perhaps for off-line viewing, wget can do the
job—for example:

In my last article for Linux Journal's web edition, I discussed a web-based program that queried an SQL database and output a native Excel file. That article was based on a program I wrote for a customer some time ago.

Micro-blogging sites are everywhere these days. There's Jaiku, FriendFeed, Pownce, Tumblr, and Identi.ca, to name a few. For many, though, the original micro-blogging site is the best: Twitter.

If you search the web you can find a number of references to programs/scripts that convert diff output to HTML. This is a bash version.

The Master view in Impress is the equivalent of page styles in Writer. It's the view where you can set elements of design that appear throughout your presentation, such as the slide background and foreground colors, any reoccurring elements, and the fonts. By creating the master slides you need before you add content, you can automate your work and free yourself to focus on content.

Rebooting the Magic Way

August 21st, 2008 by Cory Wright in

If you have ever had a hard drive fail on a remote server you may remember the feeling you had after trying to issue the following commands:

If you use Nagios to monitor your system and run openSUSE on a remote server the bash script presented here will check for online updates and is designed to be run by Nagios so that the result will appear on the Nagios service-detail page.

If you have a process ID but aren't sure whether it's valid, you can use the most unlikely of candidates to test it: the kill command. If you don't see any reference to this on the kill(1) man page, check the info pages. The man/info page states that signal 0 is special and that the exit code from kill tells whether a signal could be sent to the specified process (or processes).

Ok, more specifically, troff using the mm macros to HTML. This is another from my "rusty scripts" collection which was written for a specific task long ago. In this case, we were converting some internal documentation from troff using the mm macros into HTML.

Syndicate content

Featured Videos

The October 9, 2008 edition of Linux Journal Live! Associate Editor, Shawn Powers, and Kyle Rankin, "Hack and /" columnist and author of Knoppix Hacks, Linux Multimedia Hacks, Knoppix Pocket Reference and others, discuss Linux distributions.

The October 2, 2008 edition of Linux Journal Live! Associate Editor, Shawn Powers, and Steven Evatt, Online Development manager for The Houston Chronicle discuss surviving disaster with Linux.

From the Magazine

November 2008, #175

There aren't many numbers that put the US national debt to shame, but here's one: 1,100,000,000,000,000. What's that? That's how many floating-point operations per second the Roadrunner supercomputer at Las Alamos can perform. That's about 100 FLOPS per dollar of US debt (unfortunately, the debt is winning the second derivative race). Read the article about Roadrunner in this month's High Performance Computing issue of LJ.

Along with that, find out how to program the Cell processor and how to use CUDA with your NVIDIA GPU. Also in this issue: Mr HandS (aka Kyle Rankin) gives us a few tips on using Compiz, Chef Marcel shows you how to get blogging off your plate quicker, Mick Bauer talks about Samba security, Dan Sawyer interviews Cory Doctrow and Doc talks about how information technology can affect democracy and fix the national debt (just kidding about that last part). That and more for your reading pleasure in this month's Linux Journal.

Read this issue