October 2007


MacGyver knew his stuff when it came to building a flame thrower out of popsicle sticks, chewing gum, dental floss and a styrofoam cup — plus he always had that cool Swiss Army knife. But I bet even he wouldn’t have been able to use eight PlayStation 3’s, Linux and some technical hacker-know-how to do some scientific supercomputing. But someone’s done it!

This interesting blog article from ZDnet talks about how a researcher from University of Massachusetts built a very low cost “supercomputer” capable of about 200 GFlops all running on PS3’s. While the Linux distro used wasn’t SUSE Linux Enterprise (it was Yellow Dog Linux)… and while there are several other considerations which keep the PS3 from being the scientific computing platform of choice, it’s definitely another fine example of how flexible Linux can be compared to other OS’s.

So, if you’re looking for an excuse to get approval for a purchase order of equipment for your gaming– er, “supercomputing lab”… look no further.

From the article:

The emergence of global standards for measuring the energy efficiency of datacentres moved a step closer yesterday with the launch of a raft of new research papers from green IT industry consortium The Green Grid.

The consortium has released an updated version of its Datacentre Energy Efficiency Metrics whitepaper that incorporates infrastructure efficiency into the original metrics.

It also said that it expects its Power Usage Effectiveness (PUE) and Datacentre efficiency metric for assessing the proportion of power going into a datacentre that is used to power the IT kit to be adopted by the industry and used by all datacentres to report their efficiency.

More here.

Interesting:

Virtual Machine Additions for Linux are designed to improve the usability and interoperability of running qualified Linux operating systems as guests or virtual machines of Virtual Server 2005 R2 SP1.

Now with support for SuSE Linux Enterprise Server 10
Microsoft is committed to testing and supporting many third-party operating systems for use as guest operating systems on Virtual Server 2005 R2 SP1 virtual machines. To help make sure that you have a favorable experience when you run third-party guest operating systems in Virtual Server 2005, Microsoft Product Support Services (PSS) has created a product support model for these third-party guest operating systems. This support model is consistent with the support model that is used for Virtual Server 2005 R2 SP1. Product support for the Virtual Machine Additions will be provided through the normal support channels available for Virtual Server 2005 R2 SP1.

More here.

From the article:

CHICAGO — At the Data Center Decisions conference in Chicago on Monday, Oct. 22, controversial comments from Jon Toigo, CEO and managing principal of Dunedin, Fla.-based Toigo Partners International LLC, had attendees shaking their heads in bewilderment.

For one, Toigo advised attendees against using VMware in favor of mainframe systems, calling the virtualization software “shoddy” in comparison. But nearly all conference attendees were assembled to learn about implementing virtualization in their data center.

Toigo is knowledgeable about disaster recovery (DR) planning, which was the topic of his keynote session, but he warned users against ever feeling completely secure with their disaster recovery plans.

More here.

From the article:

Exchanging business cards is a rudimentary form of networking (the people, not the server kind). However, to get the most out of the exchange, you need a card that attracts attention and reflects the image or values you want to project.

Unfortunately, OpenOffice.org Writer’s tool for producing business cards does such a poor job of realizing both these goals that it is better avoided. However, if you know where to look, Writer also includes other tools that make designing business cards as easy as possible.

More here.

RossB

We had a great event at the Casa Larga Vineyard out in the east of Rochester NY, large crowd, lots of great questions, plenty of good food and comments about how helpful this was in helping people understand our offerings.

Our Linux Day events have been very successful in doing several things:

  • Getting the news about new and updated products out to the public
  • Showing the flag for Novell and in particular our Linux products
  • Getting good conversation and feedback on how people are using the products
  • Bringing in new customers and rekindling customer relationships anew

This was our last event for the Novell fiscal year, we on the team have really enjoyed doing our traveling events around the East region this year, many thanks to all who attended them, we’ll see at next year’s events for the latest and greatest!

RossB

Ok, so my title is a little misleading, there’s not any rivalry between the different areas of Novell and SUSE, other than the usual desire to see your business unit succeed just a little more “betterly” than the other units do. It’s all about friendly competition.

What’s Red vs. Green?

What I’m referring to (with Red vs. Green) is the necessary dividing line between the traditional Novell business units like Workgroup (Netware, Open Enterprise Server, Groupwise etc.) which I think of as “Red”, and the newer and Open Source-centric business unit called Open Platform Solutions (SLES, SLED, SLERT, SLEPOS etc.), which I think of as “Green”. (Get it? SUSE Green, like the Gecko?)

I have come up with the analogy and strategy of Red vs. Green as a way of helping partners, customers and the casual passerby understand that depending on which Novell/SUSE products they have, they will likely benefit most from a particular set of products and growth options.

“I See Red”

My experience has been that if a customer is “Red”, they’re almost always firmly ensconced in and using the Novell services throughout the enterprise, with some confusion as to how and why they might make use of Linux. The first order of business is to determine how much they know about Linux in general, and in particular Novell’s use of SUSE Linux Enterprise in it’s product lines. After hundreds of these discussions, we can get everyone on the same page with a little discussion, some Q&A and a handy whiteboard in short order.

How Does This Work?

For example, in a conversation with faux customer Air America, I find they have a long-standing Netware infrastructure for File and Print, do a little clustering for Groupwise and use iPrint for printing with all account management taking place through an Identity management setup and eDirectory. They have Windows workstations that make full use of the Netware Client and it’s services. I’d already lean toward “Red” strategy with them, but they might be toying with the idea of going “over to Linux”, so I go a little further.

The questions I ask them are very simple and straightforward:

  • Do you have any data on NSS volumes?
  • Do you use any of the advanced features of NSS?
  • Do you have Novell Clustering Services or Business Continuity Clustering set up?
  • Do you have a very large number of printers?
  • Do your people have Novell Client software on their computers for access to the network?

A “yes” answer to any of these questions points to the Open Enterprise Server (with Version 2, OES = Linux base, Novell’s standard services converted to run great on Linux layered on top). Novell has spent a lot of time and effort to make it as effortless as possible to have this type of organization migrate up to OES, there is a very complete and clear path for this customer to begin to use Linux-based Novell services with the least disruption possible and often at a considerable cost-savings.

I will try if possible to help them see where “Green” might fit in, either for hosting Groupwise or other services, such as Mono (Dot Net compatible server), Virtualization (Xen) or any of a host of other possibilities. Usually this type of customer will stay “Red” and for good reason.

“It’s Easy Being Green”

On the other side of this equation, I will find customers who don’t have a lick of “Red” in their environment, and these are usually standard UNIX shops on the server side, usually either a Solaris or AIX flavor, some HP-UX, but they’ll be using mostly Windows on the client side. Usually if they say “No” to my “Got any Novell products or Netware around?”, they will go “Green” easily.

The discussion with this client is much easier, they’re a classic “Green” customer, all the services and tools they are used to using have an analog (equivalent) in the SUSE Linux Enterprise Server/Desktop product line. Once I determine they have no Netware products in the organization, we don’t even talk about “Red vs. Green”, it’s not relevant, they can even run eDirectory and Zenworks Linux Management on SLES, no “Red” needed.

I additionally will probe to see if they have any Terminal Server or Citrix/Ericom deployed for application security and updateability, if they do, it makes the Linux Desktop play much more likely, especially if they make use of TS/Citrix as a desktop solution. How compelling is $50 or less a seat for the presentation OS on the desktop versus $239 or so for the oddly-shaped box o’ Vista?

Got any changes or suggestions to this whole Red vs. Green thing? I’m constantly getting feedback and changing it, let me know and I’ll credit you and update it.

Enjoy,

RossB

Save a screenshotThere are plenty of instances when it would be handy to take a quick screenshot… maybe you’re working on some technical documentation, or maybe you’re trying to troubleshoot a problem, or maybe you just want to prove to your buddies you got the “high score”…  Whatever the reason, here are some quick tips on how to create a screenshot in Linux — well, SUSE Linux Enterprise Desktop with GNOME desktop at least…

(1) Entire Screen – Press the [Print Screen] button to take a snapshot of the entire screen. You can also add to your desktop panel this little icon  (Screenshot icon) for “Take a screenshot of your desktop”, or you can find it in the Applications menu under System (in GNOME), or maybe right-click the icon in your Apps menu to add it to your Favorites.  Either way, one click of the icon and it’ll take a screenshot… go figure.

Example screenshot:  Screenshot - full screen

(2) Current Window - Press [ALT] + [Print Screen] to take a snapshot of the currently chosen window.

Example screenshot:  Screenshot - window only

(3) Random Area Selection – Press the [Windows key] (aka, the “super” key) + click-and-drag yourself an area using the left mouse button.   I didn’t know this method even existed until this afternoon when I ran across it by chance.  How cool is that?!?

Example screenshot:  Screenshow - random area

Sick of hearing about “Green” yet? Better learn to deal with it, “Green”’s drumbeat is really just beginning and it’s not just a fad, it’s something that fits a condition we have in IT, and it’s a way to get more money and headcount for managers, so listen up.

What is “Green” computing? Here’s as good a definition as I could find, click through for more from Techtarget.

Green computing is the environmentally responsible use of computers and related resources. Such practices include the implementation of energy-efficient central processing units (CPUs), servers and peripherals as well as reduced resource consumption and proper disposal of electronic waste (e-waste).

One of the earliest initiatives toward green computing in the United States was the voluntary labeling program known as Energy Star. It was conceived by the Environmental Protection Agency (EPA) in 1992 to promote energy efficiency in hardware of all kinds. The Energy Star label became a common sight, especially in notebook computers and displays. Similar programs have been adopted in Europe and Asia.

How “Green” is your office environment? Take the Greening the Cube Farm quiz and see!

Last but not least, is buying “Green” storage for business continuity, disaster recovery and archival enough? Not nearly enough, according to the marketing director of Overland Storage.

RossB

From the “About” page for VirtualBox:

innotek VirtualBox is a general-purpose full virtualizer for x86 hardware. Targeted at server, desktop and embedded use, it is now the only professional-quality virtualization solution that is also Open Source Software.

Some of the features of VirtualBox are:

  • Modularity. VirtualBox has an extremely modular design with well-defined internal programming interfaces and a client/server design. This makes it easy to control it from several interfaces at once: for example, you can start a virtual machine in a typical virtual machine GUI and then control that machine from the command line, or possibly remotely. VirtualBox also comes with a full Software Development Kit: even though it is Open Source Software, you don’t have to hack the source to write a new interface for VirtualBox.
  • Virtual machine descriptions in XML. The configuration settings of virtual machines are stored entirely in XML and are independent of the local machines. Virtual machine definitions can therefore easily be ported to other computers.
  • Guest Additions for Windows and Linux. VirtualBox has special software that can be installed inside Windows and Linux virtual machines to improve performance and make integration much more seamless. Among the features provided by these Guest Additions are mouse pointer integration and arbitrary screen solutions (e.g. by resizing the guest window).
  • Shared folders. Like many other virtualization solutions, for easy data exchange between hosts and guests, VirtualBox allows for declaring certain host directories as “shared folders”, which can then be accessed from within virtual machines.

VirtualBox is now included as a virtualization option in the openSUSE 10.3 release, available here. If you’re on another version of Linux, you can get more information about VirtualBox here, and download the binary and source versions here.

Enjoy,

RossB

Yeah, I know this is a blog about Linux in the US, and specifically in the East — but if you check us out regularly or have us in your RSS reader, you should know that we also occasionally visit other parts of the world to see how they’re doing.

Here’s a little article from ZDnet Asia/Bangkok Post whose reporter sat down with Novell’s Executive VP of Worldwide Sales, Tom Francese, to see how things were coming along…

“We’re an information infrastructure company. We are different from RedHat in that we deliver up the stack–security, systems management, virtualization–and we are more than just open source,” Francese explained.

…and…

In Thailand, some of Novell’s reference customers are Thai Airways and Assumption University. The Ministry of Interior is also of note, as it progressed from being a heritage customer using Netware through to security and today’s OS stack.

The government sector is one where Novell is particularly strong. The Indian state of Tamil Nadu recently rolled out 2,000 servers and 40,000 desktops all based on Suse. Novell is also looking to the government sectors in China and Japan, as well as here in Thailand.

Will Virtualization Doom Server Sales?

From the article:

The promise behind virtualization has long been that one well-equipped server could do the work of several. So what happens once customers begin following that idea — and buying fewer servers?

That scenario is cause for concern, according to industry analyst Infiniti Research. This week, the firm published a study indicating that server sales will trail off in coming years, and even decline, as virtualization reduces the need for physical hardware.

The company’s TechNavio online research unit released the findings to coincide with the upcoming Storage Expo conference in London next week.

The study suggests that sales will slow to two percent in 2008 — representing a marked decline from the 5.9 percent annual growth rates that fellow market researcher IDC saw in 2006, and the 8.9 percent from a recent Gartner study.

Read the rest of the article.

What is DOS? I don’t know; I’ve never used it before… until today!

Recently I’ve been working on getting SUSE Linux Enterprise Desktop working on a really really old piece of hardware. As one of the troubleshooting steps I had to update the BIOS to the latest version. In order to do this the vendor told me that I had to boot into DOS and run an executable that would update the BIOS.

As I said, I’ve never used DOS before, so I had to reach out to Peter Bowen for help. Here are the steps he walked me through to create a Virtual FreeDOS Floppy disk image on your hard drive that you can boot from.

Make sure the following are installed: dosbootdisk, syslinux. Dosbootdisk is a program that lets you create a FreeDOS boot disk. Syslinux is a boot loader for Linux which operates off an MS-DOS or Windows FAT file system.

Follow these steps to boot into a DOS partition:

  • zcat /usr/share/dosbootdisk/floppy.gz /boot/floppy.img
  • mount -o loop /boot/floppy.img /mnt
  • Copy the appropriate files needed for updating the BIOS into /mnt(remember this is DOS so make sure that the file names are no larger than 8 characters and the file extension is no more than 3 characters
  • I had to remove the the following line from my config.sys file in order for the system to boot DOS=UMB,HIGH
  • umount /mnt (remember that you can’t unmount if have have if it is your current working directory ie. if you have cd’ed into it)
  • cp /usr/share/syslinux/memdisk /boot
  • Next we need to setup Grub so that you can boot into your virtual floppy disk.
  • Edit /boot/grub/menu.lst so that it looks something like this:
  • ###DOS Floppy###
    title DOS
    root (hd0,0) #you may need to change this depending on what partition /boot is installed on. Because this system is so old it requires that /boot have it's own partition that is the first partition.

    kernel /memdisk
    initrd /floppy.img

    At this point you should be able to reboot your machine, choose the DOS option and flash your BIOS.

Want to investigate moving to OpenOffice.org? Have a massive load of Word and other documents that are holding you back?

Take heart, there are various options that you can pursue, not the least of which is setting your OpenOffice.org defaults to read and write the appropriate format of Microsoft file types.

While in OpenOffice.org, just click on the Tools menu -> Options, click on the + sign next to Load/Save and choose the General item. On the General dialogue, the lower third is where you find the Default file format configuration selections. Here you can choose the default type of document to open (slideshow, spreadsheet, etc.) and all importantly the Always save as option, where you can choose from various formats, including:

  • Microsoft Word 2003 XML
  • Microsoft Word 6.0
  • Microsoft Word 95
  • Microsoft 97/2000/XP

By choosing a mutually compatible load/save file format that reflects the majority of your documents, you can save a lot of time and energy and not have to convert all of your documents just to try out or move over to OpenOffice.org.

I also recommend reading a posting by Serdar Yegulalp over at SearchEnterpriseLinux.com about mass-migrating Word documents, some good advice and linkage in it.

Enjoy,

RossB

According to a Silicon.com article… Speaking to an audience at the Gartner Symposium/IT Expo last week, Dell’s CEO Michael Dell said that Linux server sales are increasing faster than Windows server sales. You can view the webcast of the keynote here. I think that helps to validate what many of us have intuitively known for years… that Linux is the fastest growing operating system in the IT market. It’s also worth pointing out that Dell is validating the observation we’ve had for some time that more and more organizations are “trusting” Linux A LOT more and deciding to put more “critical applications” on Linux than in the past.

He said: “On the server side Linux continues to grow nicely, a bit faster than Windows. We’re seeing a move to Linux in critical applications, and Linux migration has not slowed down.”

However, for those customers who might be concerned about whether Microsoft’s claims of patent violation could result in legal action, Dell added that there were “certainly mechanisms if customers are concerned about patents”.

One of those mechanisms he’s referring to is Novell’s own Novell Technology Assurance Program (NTAP). Whether or not you believe MS’s position on IP, there are surely CxO’s within your organization who prefer to minimize all risks for the organization. NTAP can certainly help give those CxO’s the piece-of-mind necessary, and help remove roadblocks for you to dramatically increase the amount of Linux in your shop — (assuming you like secure, reliable, and low cost operating systems… like SLE) :-)

Find the Silicon.com article here and checkout Michael Dell’s keynote here (Linux comments ~29:30).

Yes!  NetWare can be virtualized using Xen on SUSE Linux Enterprise Server 10 SP1.  It’s part of the feature set of Open Enterprise Server 2 — more info:  product home page, audio podcast, Novell CTO blog, press release, workgroup blog

A couple of related news articles

One great thing about the way that OES 2 was designed is that it is simply an add-on to SLES 10.  That means, all the hardware that is officially certified for SLES 10, is now officially certified to run virtualized NetWare (OES 2).  Get a list of the certified hardware on the Novell site here, and don’t forget to check your favorite hardware vendor’s own website for the latest info.

  • Linux Event
  • October 23, 2007 @ Casa Larga Vinyard
  • This seminar will provide a comprehensive overview of Novell’s latest Linux advances in desktop, server, deployment, virtualization and security. The session will provide you and your fellow business decision makers with a strategy update pertaining to key pain points within organizations. In addition to learning about time, energy and cost saving changes you can make within your organization, you’ll also have the opportunity to network with your peers.
  • Register Now

Click for more events and training in the East…

Many small businesses and the IT consultants who support them have deployed Linux in some way — hey, it can save a ton of cash! But typically Linux is doing a specific task — maybe a file/print server, web server, firewall, database, etc. The solutions have been done fairly piece-wise, and that can lead to a lack of integration – making things a bit more difficult to manage over time. Alternatively, one might have chosen the Microsoft Small Business product – but we all know where that can lead (security problems, constant patching, IT headaches, excessive software costs, etc.). There really hasn’t been a nicely integrated workgroup suite for small business based combining the best of open source and proprietary enterprise software… until now.

Novell Open Workgroup Suite Small Business Edition has arrived. It works with either Windows or Linux desktops and includes “less expensive” (and arguably EASIER-to-LEARN) alternatives to Windows Vista and MS Office 2007. In addition to a nicely integrated installation, it has a ton of value for a very small price. It includes:

  • File/Print sharing and security – Open Enterprise Server for Linux
  • Laptop backup/file collaboration – iFolder
  • Email/Calendaring – GroupWise
  • End-user general purpose desktop – SUSE Linux Enterprise Desktop
  • MS Office-compatible office suite – OpenOffice.org, Novell Edition
  • Backup software – Amanda
  • Network faxing – HylaFAX
  • Anti-spam – MailScanner
  • Anti-virus for email – ClamAV
  • Firewall – iptables
  • VPN – OpenVPN
  • Remote control – TightVNC

… and all this stuff runs on Linux!  Yeah, but how does it compare to the Microsoft Small Business Suite? Look here.

All this for a retail cost of $350 for every 5-users!! Want more info? Check these out… product home page, audio podcast, press release, workgroup team blog

Starting off our new series called Vendor Spotlight is a company that I think is doing some very cool things, ThinFusion Inc. The interview was conducted by phone and included Brandon and Rick Vancleeve

What is ThinFusion?

ThinFusion is the combination of a Linux OS platform running in a thin client environment, while providing access to the majority of Windows-based applications. ThinFusion uses either a thin client OS local, paired to a session on a ThinFusion server, or alternatively allows the use of cross-platform client software to provide secure and very speedy access to the ThinFusion Server session literally from anywhere.

ThinFusion provides a single access point to all the Linux and Windows applications that a user needs. The administrative interface allows for simple drag and drop granting and revoking, in realtime, of access to applications on a group or individual level.

What applications can I run on ThinFusion?

This part is easy…
Since it accesses a Windows Terminal Server for Windows apps you can go to Microsoft’s site and find every supported program out there. You don’t have to go through a giant bug list of “quirks” when running Windows apps in a Linux shell. If it runs in a Terminal Server environment, it runs on ThinFusion.

On the Linux side, since you are in essence just accessing a Linux Desktop you can run all your Linux applications.

Who is ThinFusion Inc?

ThinFusion Inc, is a small company in the Mountains of Montana that have developed ThinFusion to meet the needs of K-12 Schools, Higher Ed, and Small to Medium Businesses. ThinFusion mission statement: Access your classroom from anyplace anytime.

What is a typical customer for ThinFusion?

The typical customer would be a school or business that has a need to control access to applications, reduce administrative and technical support costs and increase the quality of service for its users while maintaining the necessary security and controls.

What is a sample use case of ThinFusion?

A school district with a Laptop lab is an excellent use case for ThinFusion. Typically in this environment the Laptops would be running Windows with most applications installed locally. Often the students are issued the laptops and are responsible for physical security and transport, often including off school property and for all purposes becoming the students main machine for home and school. Such an environment has multiple risks and costs associated with it, including re-imaging regularly due to misconfigurations, virus and spy-ware issues and either malicious or inadvertent deletions and changes to the software.

Particularly if the laptops are issued and kept by the students does the risk of virus infection or inadvertent misconfiguration crop up, the possibility of infection and transport of the viruses and spyware becomes a virtual certainty, with some school environments literally being taken down for periods of time from such infections.

ThinFusion in this environment would remove most or all of the issues discussed. Two choices are possible:

1. Install a very slim Desktop Linux with NX Client software on the student laptop, all application access requires dialup or better Internet access to the ThinFusion Server, thus all applications are run in a very secure and less virus-prone environment.
2. Install Windows or keep the current Desktop OS, adding lockdown software and the NX Client software, requiring dialup or better Internet acccess to the ThinFusion Server etc.

Both of the above examples allow students and staff to securely access their school network just as if they were sitting at a desk in class, from anywhere/anytime. It extends the learning environment beyond the walls of the school, and it allows for collaboration beyond the bus bell. This is the mode that we see businesses transitioning to at record pace, as we see more and more workers using home offices and accessing data through secure remote scenarios.

This environment is effective for students and teachers, with teachers mostly falling into the category of # 2, they having the most need to run 3rd party applications that are typically Windows-based.

What are the support options?

A ThinFusion subscription comes with a full support, training and installation package. Higher levels of support packages are available.

What should you not use ThinFusion for?

ThinFusion is not a great solution for high end multimedia, neither for creation nor viewing. A class of 50 users running a very graphically oriented courseware would be fairly choppy.

How do I learn more about ThinFusion?
Please visit their website (www.thinfusion.com), to experience demonstrations, tutorials, case studies and more. You can also reach them by phone at 1-800-432-0346.

==========

If you can think of an example of a vendor that is going something you can really appreciate and is good for the community, put a comment in or email me: rbrunson[at]novell.com

Enjoy,

RossB

Why Worry About It?

Backups are essential, and so is the reducing the time needed to perform those backups. Many’s the time I have sat waiting for a backup to complete only to remember that I had a link to a large set of files, or a bunch of ISO files in the ./download directory, and had to migrate those over to somewhere else and restart the backup.

If you are like me, data = “files that contain data of original or irreplaceable content”. I don’t want to backup ISO files, large sets of files that can be gotten from an install DVD or things that are easy to download from a site somewhere.

I use a simple (yeah, it really is), script before every backup to find all the files over a particular size, which I then can so anything I want with. If I find anything that’s too large and expendable, I either use an -exclude statement (usually in the case of all ISO’s) or even move the files elsewhere quickly by re-running the script and tacking on a -exec statement.

The Script

Here is the script I use, it’s from a bunch of different sources, and uses a couple of useful tools to do it’s work:

#!/bin/bash

echo "Enter the fully-qualified start path"
read start_path
echo "Enter the lower size limit in Megabytes"
read lower_size
find $start_path \( -size +"$lower_size"M -fprintf ~/Desktop/bigfiles.txt '%kk %p\n' \)

Fables of the Deconstruction

#!/bin/bash

The first line is where you declare what shell you want to run this script with. This string is known as the “shebang”, not absolutely necessary since it defaults to the bash shell anyway, but it’s certainly good form.

echo "Enter the fully-qualified start path"
read start_path

Lines 3 and 4 work together, prompting you to enter the fully-qualified start path and then storing what you enter in the newly-created variable named start_path. This is expanded in Line 7 by referring to it’s name $start_path.

echo "Enter the lower size limit in Megabytes"
read lower_size

The same arrangement occurs with lines 5 and 6, you’re prompted to enter the smallest size in Megabytes you want to report on, which stores that in the newly-created variable named lower_size. This too is expanded in Line 7 with the name $lower_size.

All Together Now

Line 7 is where all the fun stuff happens. First you are using the find command, not the easiest thing for newcomers, but well worth, ahem, “finding” out more about. Find requires several things, shown below:

find (path) (-option) (expression)

We’re using the start_path variable as the (path), then we include a function (sort of a macro) that looks for files of a size that is at least the value of the lower_size variable we set and populated earlier. Then when it finds each file over that size, it will print out the file size in 1K blocks, followed by the LETTER k, so it’s obvious, and then the full path and name of the file that has been found. This will all then be output to a file named bigfiles.txt in the current user’s Desktop folder.

Note: The use of the tilde (technical name: squiggle 8-> ) character in a command means to expand the current user’s $HOME variable from the executing shell, so the full path of the bigfiles.txt file if rossb is running the script is:

/home/rossb/Desktop/bigfiles.txt

Running the Script

Executing scripts that aren’t in your path (the variable, not the physical directory) is different on Linux/Unix, either you’ll use this script as a parameter to the bash shell:

# /bin/bash findbigfiles.sh

Or you’ll use the following command to set the script to be executable:

# chmod +x findbigfiles.sh

Then when it’s set to executable, you’ll either need to put it in your path, (try /usr/local/bin) or execute it by preceding it with the characters “./”, which is necessary to execute something in the local directory if it’s not in the path:

# ./findbigfiles.sh

Summary

There are so many other things you can do with find, such as tack on a -exec statement and execute a command on each and every file found, or find and act on files that meet a particular permission set, the possibilities are nearly endless.

Of particular help in my work over the years with the find command has been the find man page, with it’s useful examples and Chapter 14 “Finding Files with Find” of the Unix Power Tools 2nd Edition from O’Reilly and Associates. (I know the 2nd Edition is out of print, but I don’t care much for the 3rd Edition’s updates).

Let us know in the comments what cool find scripts you have come up with, the randomly drawn winner will get a very cool Novell-Candy-Apple-Red 9 LED flashlight. (Sorry, Continental U.S. only).

Enjoy,

RossB

Next Page »