显示标签为“Linux”的博文。显示所有博文
显示标签为“Linux”的博文。显示所有博文

2011年4月8日星期五

Two Years in the Making: Foresight Linux 2.5.0

While most of us were taking it easy this weekend, the Foresight Linux folks were pushing out the 2.5.0 release with a whole host of goodies — including updated KDE, Xfce, and GNOME.


The latest Foresight release comes nearly two years after 2.1.1 — which was released on May 15, 2009.


This release brings GNOME 2.32.1, KDE 4.6.1, and Xfce 4.8, as well as the 2.6.35.11 Linux kernel. In short, all the goodies most Linux users want. Firefox 4.0 is available as an update.


Speaking of updates, that's what makes Foresight a bit different. While many distributions use RPM or Debian packages, the Foresight folks do things a wee bit differently. Specifically, Foresight is one of the distros that use the Conary package/system management toolkit and follows a "rolling release" scheme.


What's a rolling release? Most Linux distros offer a snapshot of software as it is when the distribution is published, followed by modest updates as necessary for security problems and major bugfixes. For example, if you install Fedora 14, you'll get Bash 4.1. When you run updates to Fedora 14 during its lifecycle, you'll get updates as necessary to Bash 4.1 — but not Bash 4.2. Same for stuff like GNOME, Compiz, OpenOffice.org, Emacs, Vim, etc.


A rolling release will track the major releases. Some rolling release distributions may track development branches — so you might get unstable releases and ride the bleeding edge. Others, like Foresight, track the stable releases.


One benefit to the rolling release scheme is that you get major updates more quickly, and you simply upgrade in place. You can also upgrade in place with openSUSE, Ubuntu, Fedora, etc. — but then you get all the new stuff in one big update (assuming you're following the stable releases).


If you're interested in riding the leading edge of GNOME, Foresight should be a really good choice. When GNOME 3.0 is available, it should be available in Foresight fairly quickly. Note that the Foresight folks tend to ship GNOME and other packages configured very closely to the upstream release.


If Foresight sounds interesting, check out the 2.5.0 release grab the image that's best for you and give it a spin. They have separate images for GNOME, KDE, Xfce, and for developers. The releases are available for 32-bit x86 or AMD64. Enjoy!


View the original article here

Weekend Project: Create a Paperless Linux Office

The paperless office: whether to combat clutter or save the forests, it has been the dream of many a computer user ever since the first electronic record of, well, probably anything. But it remains elusive, in no small part because whatever your personal intentions, you just cannot control the actions of other people, and many businesses today still insist on sending you printed bills and receipts. You can at least dispense with the filing cabinets, however, by scanning in the documents you need as searchable, full-text PDFs. Fire up the scanner and the weekend.


Scanning with gscan2pdfClearly, you could just scan everything and save your documents as TIFF or JPEG files. Linux has solid support for USB desktop scanners (even all-in-one printer/fax/scan devices and those with sheet-feeders or other attachments) thanks to the SANE project. There is also no shortage of quality scan applications, like Kooka, XSane, or Simple Scan. But with images alone you lose the ability to search the text content of your documents — and remember, you can not only search within a particular document, but use GNU utilities to search your entire document collection.


That's where optical character recognition (OCR) comes in. OCR recognizes letterforms in the scanned document image and outputs actual text, which is precisely what we're after. But rather than run a command-line OCR program on every scanned image and produce a .txt file, it's better to combine the two into a single document, and hopefully a single step. That's the purpose of gscan2pdf, a lightweight GUI application that has a built-in SANE scanner interface, an OCR engine, and the ability to write PDF documents that embed the OCRed text and use the scanned image as a background for improved legibility.


You can grab the latest gscan2pdf build from the project's web site, including tar archives and RPM packages. If you use a Debian-based distro (including Ubuntu), it is already available through the package manager (and it is probably worth checking for in other desktop distributions as well). If you do install from source, you will need the SANE libraries, Perl, ImageMagick, and a few other common packages. The only dependencies you might not already have installed are the OCR engines: GOCR, Tesseract, CuneiForm, the support package Unpaper, and the DjVu image format library. Unpaper is a post-processor that cleans up scans for better OCR performance, and DjVu is an alternative image output format that, like PDF, preserves both text and images.


When you launch gscan2pdf, most of the main window is taken up by a preview panel with two tabs: "Image" and "OCR Output." Down the left is a thumbnail pane that will allow you to browse between individual pages as you scan them. The basic workflow is simple: Click on the "scan" icon in the toolbar, which opens up the floating scanner window. If you happen to have multiple scanners attached, choose the right one from the Device drop-down selector. There are seven tabs of controls and options you can configure, but at any point you can simply punch the "Scan" button at the bottom, and gscan2pdf will scan in the current page, run OCR on it, and slide it into the list of pages in the thumbnail browser.


The scan window stays open, so once you get your settings right, you can scan page after page without the interface disappearing or otherwise getting in your way. By contrast, if you have a lot of pages to scan in an app like XSane, you have to pause and save each one in order to continue.


Most of the mental energy you'll expend during this process is in getting the scanner settings right. The "Scan Mode" tab exposes every scanner feature your hardware supports, but in my experience it doesn't pick particularly useful defaults right out of the starting block. The scan resolution, for example, should probably be set to 200 or higher, and you will almost certainly want either color or grayscale image mode. Whether brightness, sharpness, and the various color-correction options improve your results is a toss-up; you can certainly get nicer looking images by fiddling with the settings, but unless the document you're scanning needs to be pristine and archival-quality for some legal reason, the real goal is getting better OCR results (and in the legal case, you should probably save the paper original anyway...).


I had trouble getting the "Preview" tab to work, and the "Optional equipment" tab gives you access to film and transparency scanner features, which is not the use case we're describing here, but it also lets you select an external document feeder if you have one. Primarily, however, good results are going to come from getting a quality scan, and choosing the right OCR engine.Using OCR with gscan2pdf


You select the OCR engine from the "Post-processing" section of the "Page Options" tab. Among the recommended engines, I found Tesseract to give the best results, but it is worth running several samples to be sure: I'm certain that different types of document are likely to fare better under different OCR algorithms. The "Clean up images" option lets you set Unpaper features, such as filtering out solid blocks of color, ignoring borders, and automatically de-skewing the image. Deskewing can have a dramatic effect, but in my tests Unpaper could only correct a certain amount of skew, beyond which it got confused, and it did not cope well with pages using a lot of on indentations. Best advice: try to have a steady hand when you close the scanner lid.


OCR is never perfect, and you can open a built-in editor for the text in any page's "OCR Output" tab. When you're happy with the content, hit "Save" from the toolbar or the File menu. This brings up an intermediary file-format dialog rather than the normal GNOME "Save File" window, which can be confusing at first. Although you can save your scan as a flat image file (TIFF, PNG, etc.), the only output formats that preserve the OCR text and the scanned image are PDF and DjVu. You can also save your work as a "gscan2pdf session" for later resumption.


DjVu, for those unfamiliar, is an open format dedicated to scanned documents. It maintains separate text and background image layers, and can achieve a high compression level at good quality thanks to some clever encoding techniques. PDF is a more widely-supported format among applications, though, so it is the preferred choice. Oddly enough, gscan2pdf will export a scanned image to PostScript file format, but in doing so it embeds the image as a TIFF file yet does not appear to include the OCR text. I still haven't figured out what's going on there.


Arguably the best feature of gscan2pdf's document-saving process is that you can use it to create multi-page PDFs. When scanning pages, the "Page Options" tab has a feature that numbers each successive scan as the next page in a compound document. In the same tab you can mark pages as double-sided. These features together allow gscan2pdf to write multi-page PDFs that a modern PDF reader like Evince can display, search, and page-step through just like the output of a high-end DTP application.


Gscan2pdf does have its quirks. A friend of mine lamented recently that he could not get the application to produce quality scan images, noting that every page was visually skewed, like a parallelogram. Unfortunately, that sort of error is most likely to be a SANE problem, and since SANE uses different back-ends for different scanner families, it could be hard to track down.


You also need to go into the process fully aware of what OCR can and cannot produce. It is an imperfect science, and you will have to read through every page of text to correct character-recognition errors. Gscan2pdf does not have a built-in spellchecker, which is a toss-up on its helpfulness. Yes, it might be nice to have a spell-checking option (such as to catch your own typos when making corrections), but the truth is that OCR produces a completely different set of character-substitution mistakes than humans make when typing, so an automatic spellchecker based on ispell, aspell or other open source engines would be more aggravation than assistant. It would flag dozens and dozens of errors, but would be no help making suggestions, because the mistakes stem from the visual similarity of characters, not keyboarding or spelling trouble.


You have other options for converting paper documents to OCR'ed digital files, too. Kooka, for instance, lets you perform OCR in addition to scanning, but it lacks the automated output and PDF-generation features that make gscan2pdf so simple to use. Scan on.

Comments (0)Add Comment
You must be logged in to post a comment. Please register if you do not have an account yet.
busy

View the original article here

Work Smarter, Not Harder: Tips for Linux Administration Done Right

Interrupt driven. That's how a lot of sysadmins define their jobs, and it's absolutely true. We spend a good portion of every day running from problem to problem. Whether it be a user who can't get their email, to a jammed printer, to a server that's got a failed disk, we friendly neighborhood system administrators have plenty to do on a daily basis. However, we're also some of the most resourceful people in any given organization. It's time we used that resourcefulness to make our lives easier. I'm going to run through some techniques and ways of thinking that will help you better manage your workload and increase the overall quality of the services you provide to your organization.


Here are a few values that my techniques are built on. They may seem basic, but it's amazing how you can lose sight of the larger picture and your value to the organization when you're playing fireman. It's difficult to think strategically if you are acting tactically all the time.

You want to do as little of this as you can get away with. The job is difficult enough, so figure out ways to make your life easier.

Good Tools? are like gold.

Build them, download them, or buy them — they are worth it!

If you have to work, its better to do prep work up front than panic work.

Panic work will take years off your life, tick off your loved ones, and make you grumpy. Avoid it. Be prepared, like a Boy Scout.

Reuse, Recycle, Reduce.

Leverage work done before you. Use other code, or pieces from projects. Don't reinvent the wheel. Document your work.

Think, think, think.

It wouldn't be called "Working Smarter" if you didn't think. So do that.

Hardware is the foundation of what we do as system administrators, so it behooves you to ensure your hardware is up to task. We've all got systems we've inherited, or systems that are old and dying that are under our care. If you don't like a particular system, or it's got issues, quit grumbling about it, get it off the back burner, and fix the darn thing. A system that needs constant hand-holding doesn't do your organization any favors. Here are a few other hardware-related tips that help out a bunch:

Goes by iLO if you're using an HP server, or DRAC if you're using a Dell, or LOM if you're on a Sun. This lets you connect remotely to your server and get a console on it, or power cycle it, or do remote diagnostics. It's invaluable. Insist that all your servers have this. HP servers include it by default.If you can't get a server with iLO, you can fake it. Remote console servers like a Cyclades unit will get you a serial text console on a given server, and a remote power strip like a BayTech or APC unit can get you the ability to power cycle a machine. Alternatively, you can build your own using an old computer and some X10 gear like I did at home — though I don't recommend this for your business!

RAID

Not the bug spray, but a Redundant Array of Inexpensive Disks. Your servers should all have RAID-1 (a pair of disks, mirrored) at a minimum, unless you're doing something like Hadoop. This protects against a disk failure, and will save you time by not having to rebuild a system if a disk fails.

Redundancy

From redundant power supplies, to redundant network interface cards using ethernet bonding — no one ever got fired for making something too redundant.

Virtualization and the Cloud

Don't be afraid of virtualization or the cloud. If your application can tolerate being migrated to a virtual machine or offloaded to a cloud provider, seriously consider it. You may wind up saving a lot of hardware-related headache.Virtualization and the cloud are not "one-size-fits-all" solutions, however. Use good judgement and be sure to run many pilot tests before deploying your application on these platforms.

By making the best use of hardware, you'll be able to focus more on the services you're providing rather than dealing with hardware failures — or having to drive to the data center at 2 a.m.




View the original article here

Five Best Linux Office Tools

The business office is where the Linux desktop should reign. Why? Linux is a reliable, stable, secure solution that would have any business user working day-in and day-out without fail. With an unheard of resistance to viruses, trojans, and worms, the office user enjoying the Linux desktop would have no concerns about down time as does the average Windows user. But what tools are there available for the usual office worker? Plenty!


With a nod toward what the usual business day looks like, I have assembled what I think to be the five must-have office tools for the Linux desktop. With this collection of tools, most office workers could get the overwhelming majority of their work done. The only tool I have left off of this list is the Web browser, as it is a tool everyone knows of and is included in every Linux distribution.


You will find that many of these tools are not included with the average Linux desktop. The good news is that they are all just a couple of clicks away, using the distribution's Add/Remove Software tool. So, with that piece of advice out of the way, let's get on with the software!


altI have to start with the most obvious tool first. LibreOffice is a fork of OpenOffice and is bound to become the King of the Linux desktop office tools. This piece of software offers everything anyone needs from an office suite: Word Processor, Spreadsheet, Presentations, Database, Drawing tool, and Math Formula tool. LibreOffice also is one of the most versatile office suites, when it comes to inter-operation with other office suites (LibreOffice is compatible with all major office suites.) LibreOffice also offers a feature you won't find in the likes of MS Office -- extensions. With extensions you can extend the capabilities of this FOSS office suite well beyond the norm. A sample list of extensions include: PDF import, Report Builder, Non-linear Solver, Wiki Publisher, and more. Check out the LibrePlanet wiki for more extensions. Figure 1 shows the main LibreOffice interface, where each of the applications can be launched.


If you are looking for a replacement for the costly, often buggy accounting package you've been using, look no further than GnuCash. This double-entry accounting tool is filled with outstanding features that can do everything from:

Produce highly detailed reportsHandle on-line bankingManage stocks and bonds portfoliosManage customers and vendorsHandle multiple currenciesQIF/OFX importStatement reconciliationPowerful search toolCheck printingAnd much, much more

And what's best about GnuCash is you won't find it randomly crashing on you, demanding you switch to single-user mode, bringing your desktop to a crawl, or losing precious data. And although GnuCash does not currently offer a client/server mode, it is a feature that is being considered for future releases.


One of the most powerful features you will find in GnuCash is its reporting capabilities. From within the Reports menu, the following reports can be created:

Advanced PortfolioAsset PiechartAverage BalanceBalance SheetGeneral JournalGeneral ledgerLiability PiechartNet Worth BarchartCustomer ReportEasy InvoiceEmployee ReportPayable AgingReceivable AgingVendor ReportBudget ReportCash FlowExpense BarchartIncome StatementTransaction ReportAnd much more

Figure 2 shows the Account creation wizard for creating a Business account in GnuCash.


Figure 2: GnuCash


As you can see, GnuCash creates most of the standard accounts required for Business use.


Scribus is one of those tools that is often overlooked and under-appreciated. Scribus is, at it's heart, an incredibly powerful desktop publishing tool capable of handling nearly any task usually handled by far costlier tools. Scribs brings to the Linux desktop powerful page layout similar to that of PageMaker and QuarkXPress. And Scribus isn't just for office fliers, party brochures, and resumes. Scribus can be used to create full-color, full length books, texts, and more! Scribus offers the power of:

Color separationsCMYKSpot Color SupportICC Color ManagementHigh-quality, versatile (RIP-ready) PDF creationLayer supportTransparency supportAnd much more

With Scribus anyone can create anything from brochures to full-length, print-quality books. And with a very user-friendly interface, the learning curve is not nearly as steep as that of either PageMaker or QuarkXPress. Figure 3 illustrates the simple user interface offered in Scribus.


Figure 3: Scribus


When Scribus is started it allows for the creation of various types of new files, or the opening of existing documents.


XSane, a graphical frontend for SANE. Although there are far easier scanning tools available (such as Simple Scan), you won't find many scanning tools with the power and flexibility of XSane. XSane offers the following features:

Color ManagementFiltersOCR ScanningSlide and film scanningFax supportEmail supportEnhancementHistogramBatch scanAnd more

The one issue many users might have with XSane is the interface, as XSane borrows from the The GIMP school of thought and offers a multi-windowed interface (see Figure 4.) Some users will have trouble getting used to this type of interface, but once accustomed to the interface, XSane is quite easy to use.


Figure 4: Xsane


The XSane interface can be used with only the two main interface windows.


I almost hesitate to include Evolution in this list, but until a better groupware client becomes available for the Linux desktop, Evolution will remain the de facto standard. Evolution is to Linux what Outlook is to Windows, only without much of the bothersome issues (such as the PST/OST problems that often occur, or the huge hit Outlook can take on your system resources). Evolution even has an interface that will be immediately familiar to plenty of users (see Figure 5). There is plenty to like about Evolution:

Full desktop integrationNo viruses or wormsAdvanced searchingUser-defined filtersMultiple calendar viewsBuilt-in junk filteringWeb calendar supportMultiple account supportCustomized remindersiCalendar supportLDAP supportBuilt-in security and encryption

altSome users will appreciate that Evolution also has (with the aid of an installable extension) the ability to connect to an Exchange server. Although this feature is still in heavy development, it does work and allows you near-Outlook functionality.


Without the groupware client, the Linux desktop would have a hard time working within an office setting. This is especially true when the business and/or office depends upon non-web-based shared calendaring. Fortunately, the Linux desktop does have Evolution, which is always improving.


The Evolution interface is even laid out similarly to that of Outlook (minus the pesky Ribbon Interface.)


There are many nay-sayers out there who believe that Linux is just not ready for the business desktop. But, as you can see, Linux has the basic functionality of the office desktop covered. And until you have seen Linux function in the office, you can not appreciate how efficient, reliable, and user-friendly Linux can be. If a business is looking to cut down on time spent cleaning their desktop PCs from viruses, trojans, worms, registry issues, or any other headaches associated with MS Windows, that business would be smart to give the Linux desktop a try. With the lack of down-time, users will be able to work more efficiently and IT expenses will plummet!

Comments (1)Add Comment
You must be logged in to post a comment. Please register if you do not have an account yet.
busy

View the original article here

Desktop Synchronization Shootout: Comparing the Best Linux Backup Tools

The Linux landscape is littered with backup tools for the desktop — but which is the best? Choosing a backup solution can be confusing, but don't sweat it — we've looked at the best Linux backup tools for the desktop to help you select the one that's right for you. We'll help you choose between Dropbox, SpiderOak, Déjà Dup, and the rest.


The good news is that you have a lot of options. This hasn't always been the case — five years ago, backing up your Linux desktop was a royal pain. But lately the solutions have gotten much easier to use and much more robust. Let's take a look and see which one is the best for you.


Let's start with what is likely the most popular backup service for Linux users — Dropbox. Dropbox was early in the market and early to give Linux users support. It's a cross-platform backup solution that runs on Linux, Mac OS X, and Windows.


As the name suggests, you have a "dropbox" for your files. When you set up Dropbox, you select a single folder to back up and it just magically syncs into the cloud. Well, maybe not "magically" but it does happen without any input on your part.


The nice thing about Dropbox is that you can use it not only to back up your files, but sync them between computers and (to a limited extent) share with others. You can use Dropbox, for example, to sync between several Linux machines or between Linux machines and Mac and Windows boxen. Dropbox also has a Public folder you can use to share files with anybody via the Web so long as they have the link.


Dropbox also has some lightweight collaboration features. You can share a sub-folder with others in Dropbox and sync between accounts as well as between computers. So if I have a friend I want to share a few pictures with, I can share a folder with those pictures that isn't accessible publicly. This, however, requires that they have a Dropbox account with enough space to sync the files.


Dropbox pricing is free for 2GB, $9.99 a month up to 50GB, and $19.99 a month for 100GB. That's it. More than 100GB? I guess you're out of luck. Aside from the fact that Dropbox is not free software, and I have to rely on someone else's servers, this is my biggest gripe with Dropbox. What if I only need 60GB or even just 20GB? Obviously, Dropbox is counting on users who need just a bit more than the free plan but not 50GB. The company uses Amazon S3, so that means that the storage you're not using is storage it's not having to pay for.


Aside from simplicity, Dropbox has one killer feature for me — LAN sync. If you're running Dropbox on several computers on the same network, with the same account, it will sync between the computers on your network as well as uploading to the cloud. This means that if I'm writing an article or working on a document on my laptop, it's being synced to my desktop very quickly. I can close Vim on my laptop, go to my desktop and it's already synced without any intervention on my part.


Files are encrypted with Dropbox, so they have no access to your files — just the metadata. It's unclear from the help whether Dropbox can access your account in any event, but they do assure users that their employees only see metadata when troubleshooting, etc.


Another nice thing about Dropbox? You have clients for Android and iOS, and Web-based access as well. No matter where you are, if you have a network and Web browser, you should be able to get to your files.


If you're really paranoid about security, you'll want to check out SpiderOak.


SpiderOak is a service similar to Dropbox, but with some important differences. Like Dropbox, SpiderOak provides remote backup that happens seamlessly in the background. How it does this is a bit different, though.


SpiderOak is not hosted on top of Amazon S3, and it encrypts user data so that even SpiderOak can't see what you've got stored. It "sees" the size of your files, for billing purposes, but it can't examine the files. This also means that you cannot recover your password if you happen to lose it. You can change your password from a computer that's running SpiderOak with your account, but the change takes some time.


Like Dropbox, SpiderOak does have revisions of your files, so you can recover prior versions of your files that have been changed.


The way that SpiderOak handles syncing is a bit different as well. Dropbox works on the idea of having a single folder and everything under that synced. If you add computers to the account, you can select which folders under the Dropbox folder are synced. SpiderOak allows you to add computers without any relationship between their synced folders, if thats what you want to do. For example — if you have a Linux machine and a Mac, you can choose to sync the iTunes folder on the Mac and a different directory (including your home directory) on the Linux box.


SpiderOak is going to appeal to users who want a lot of control over their backups on a per-computer basis. It also looks like a really good solution for a family account — share one account and back up on a per-computer and per-user basis. (If you're OK with the rest of your family seeing your files, of course.)


SpiderOak also has Web-based access and sharing features similar to Dropbox. I'd give SpiderOak a very slight ding here, simply because its offering is a bit less user-friendly than Dropbox. I do mean very slight, though. It could use a bit of work, but it's not exactly rocket science either.


The pricing for SpiderOak is pretty reasonable and it gives better options than Dropbox. It's free up to 2GB, like Dropbox. After that, you get 100GB for $10 per month, and can add additional 100GB buckets for another $10 a month or $100 per year. SpiderOak isn't open source, but they have contributed some pieces to the FOSS community.


SpiderOak has packages for most major Linux distros and (of course) Windows and Mac OS X.


Dropbox and SpiderOak are proprietary solutions that impose specific providers on the user, which might not be a good option if you care deeply about free and open source software. For that matter, it may not be a good option if you care deeply about privacy and control of your data.


While SpiderOak takes steps to protect the privacy of your data, you're still at the mercy of someone else's servers. Now, I've never noticed even a nanosecond of downtime with Dropbox — but that's no guarantee they'll be up tomorrow. I'm comfortable that they will be — but you might not be. So if you're a bit on the paranoid side, Déjà Dup lets you choose your provider. You can back up to a hard disk, over SSH, WebDAV, a Windows Share, an FTP server, or to Amazon S3.




View the original article here