« December 2008 | Main | February 2009 »

January 29, 2009

Hidden Linux : Yakuake


Now and then you come across a utility you that makes you wonder how you ever lived without it. Yakuake is a prime example.

Based on the command consoles in computer games like Quake, Yakuake simply slides down a console window whenever you hit a hotkey -- F12 by default. It's slick, simple, fully configurable and wonderfully convenient if you're a regular console user. (It also works flawlessly with Compiz.)



Install it in the usual fashion, start it from the menu or, if you want it start automatically each time you boot, add a link to your /home/yourname/.kde/Autostart folder.


<--Previous Hidden Linux      Next Hidden Linux -->




January 25, 2009

Seagate drive woes fixed?

If you own a Seagate Barracuda 7200.11, ES.2 SATA or DiamondMax 22 hard drive, you might like to check out Seagate's latest firmware update.

Ars Technica have detailed the ongoing problems with these drives since their release last year: "Although most worked without issue, a significant minority of buyers reported that the drives would randomly pause for 15-30 seconds while under load or when configured in a RAID array." The firmware upgrade to fix that had a glitch in it that either "either A) didn't work or B) bricked a drive that had formerly been in perfect working order."

Seagate reckon they've cracked it now. Here's details of the affected drives...

Barracuda 7200.11
Barracuda ES.2 SATA
DiamondMax 22

January 23, 2009

Hidden Linux : More secure deletion tools


Last time I introduced a couple of open source tools to securely delete files, folders or whole hard drives. Naturally Linux has more!

The Secure-Delete toolkit provides a set of tools to securely wipe files, free disk space, swap space and computer memory. All work in a similar fashion, writing and rewriting random data, then a set of special cryptographic values, followed by more random data. In addition, the file tool also randomly renames and truncates the file.

Here's what you get ...

srm (secure remove) wipes files or directories currently on your hard disk. The algorithm used is based on this paper by local boy Peter Gutmann.

  To wipe a file:  srm filename.txt
  To wipe a directory: srm -r folder_name



sfill (secure free space wiper) wipes the free space areas on your disk. If you haven't used secure deletion tools before, chances are there's still a lot of recoverable data in regions where files have been unsecurely deleted. sfill will clean this up!

  Clean up your home folder: sfill /home/yourname



smem (secure memory wipe) deletes data stored in your computer’s memory. Why? Because data held in SDRAM doesn't "fade away" and can be easily recovered!

  To wipe memory: smem

Note: a full smem run can take some time! Try smem -l or smem -ll for a quicker (though less secure) run.



sswap
(secure swap space wipe) does a secure wipe of your swap partition.

  Find your swap partition: cat /proc/swaps
  Disable swap: sudo swapoff /dev/swap_partition
  Securely wipe it: sudo sswap /dev/swap_partition
  Renable swap: sudo swapon /dev/swap_partition



To install the entire Secure Deletion suite, Ubuntu users simply need to type...

sudo apt-get install secure-delete



<--Previous Hidden Linux      Next Hidden Linux -->


January 16, 2009

Hidden Linux : Don't smash that drive!

In my last blog I covered a dubious report that suggested the only way to prevent secondhand purchasers from recovering deleted data from hard disks was to physically smash them to pieces. That of course is bunkum. So what are the open source alternatives?

The simplest whole-disk solution is DBAN -- Darik's Boot and Nuke -- "a self-contained boot disk that securely wipes the hard disks of most computers." Download and run it from CD, DVD, floppy disk or USB stick and DBAN will nuke the contents of any hard disk it can detect.

DBAN is partially funded by GEEP International who claim to be "the most efficient, and the most environmentally conscientious consumer electronics recycling company in North America." There's even an enterprise version called EBAN -- Enterprise Boot an Nuke -- that comes with technical training, certification and support.


Linux Level Tools

shred is a simple command-line tool that comes ready installed on most distributions. It overwrites the specified file(s) with random junk -- 25 times by default. It does however come with a couple of caveats. (The man shred command will give you the full details.) Essentially it assumes that the file system overwrites data in place. That's the usual way of doing things, but Linux has a wide variety of possible file systems and they don't all work the same way! But shred works just fine with the default ext3 file system used on most distributions.

Here's how to use it:

shred secrets.txt
Will shred the contents of secrets.txt but it leaves the file in place! While this is a good way of checking what shred does, you probably really want to ...


shred -u secrets.txt
... remove the file after you've shredded it. For extra security you can ...


shred -u -n 100 secrets.txt
... tell it to overwrite the file 100 times instead of the default 25, and even ...


shred -u -n 100 -z secrets.txt
... overwrite the file with zeros on its last pass. This disguises the fact that there was ever any file there at all!

Linux also has a suite of more sophisticated tools, but I'll look at those next time.


<--Previous Hidden Linux      Next Hidden Linux -->


January 12, 2009

Don't hammer your hard drive!

The BBC are reporting that British consumer magazine Which? Computing recommends taking a hammer to your old hard disk drive to prevent secondhand purchasers recovering data from it. They purchased eight computers on e-Bay and reportedly recovered 22,000 "deleted" files.

But is a hammer really necessary?

There's a popular misconception that Delete actually deletes files. It doesn't. It simply removes them from the disk's index. (Ever wondered why it's just as quick to delete a 2GB file as it is a 2-byte one...?) The same applies to the Format command. It doesn't delete files either, it simply prepares the disk drive for new data by completely wiping the index. Recovering "deleted" and "formatted" files is just a matter of using the right software to rebuild the index. 

Instead of a hammer, I suggest you use a good file shredder instead. These overwrite the target file(s) with garbage -- again and again and again.

While it's theoretically possible to recover at least some overwritten data, it's highly unlikely that the person picking up your old drive will have access to a scanning transmission electron microscope and the other bits and pieces necessary!

There are plenty of file shredders around. Even a free one for Windows users. Leave the hammer in the toolshed and shred instead!

January 8, 2009

Hidden Linux : Bootchart



Bootchart is a clever little tool that runs in the background as Linux boots. It collects details of all processes started along with disk usage and CPU statistics, and saves them to a log file. But that's not all. It then runs a small Java application that turns the log file into a highly readable performance chart ...



Click for the full chart!

Based on the results, you can then look at optimising the boot process.

Installation
Bootchart comes ready-packaged for most of the major distributions or you'll find it available for download here. (Ubuntu users simply need to type sudo apt-get install bootchart in a console window.)

After installation, reboot the system and check out the charts in the /var/log/bootchart folder. Each time you boot a new chart is created, tagged with the date and a separate boot number so you can follow the effectiveness of your optimisations.

Optimisation Ideas
This is a b-i-g subject. Here's a few links to get you started ...


<--Previous Hidden Linux      Next Hidden Linux -->


January 4, 2009

Microsoft news: layoffs, tax and pay, pay, pay

Rumours have been circulating since mid-December that Microsoft plan to layoff 10-17% of its 91,000-strong global workforce next week. The date of January 15th has been cited as it falls neatly between the launch of the public beta of Windows 7 and the company's next quarterly earnings call.

There are lots of "no comments" at the moment, but the axe is expected to fall hardest on the Entertainment & Devices and the Online Business divisions along with MSN and the European, Middle Eastern and African sales groups. No rumours about local jobs -- yet.

* * *

Things are tough for the old monopolist. After all, they did pay a whopping 0.038% tax in 2007. According to Irish public service broadcaster RTE;

Accounts for Microsoft Ireland Research, an Irish subsidiary of the global software giant, show that the company paid just €460,000 in tax, on profits of more than €1.2 billion last year, by using provisions in Irish tax law to take its corporation tax bill down from €158m. Much of Microsoft's international profits are channelled through Ireland, but because the main company for Microsoft's activities has unlimited liability, it does not have to file detailed accounts.

To put that in perspective, imagine earning $100,000 and giving the IRD $38.

* * *

On Christmas day Micrsoft received a US patent for pay-as-you-go computing. The idea is that you buy a cheap PC and only pay for software you use, each time you use it -- a bit like the way you pay for electricity or the phone.

While it might appeal to some, it strikes me as a foot in the door for an unprecedented level of user surveillance. Not only will Microsoft know what you're doing, when and for how long, but they'll have a name, address and credit card number to go with it. Imagine the possibilites of tying that sort of data to search engines or advertising agency browser spies.

It also begs a lot of questions. What if your machine gets hijacked and Outlook fires off a million spam messages at a cent a pop? Ooops. That'll be $10,000 please.

According to one source, internet browsing will cost US$0.80 per hour. But surely that's what Microsoft will pay users for putting up with Internet Explorer...

Still, there is an alternative. It's called free-as-you-go. All the software you could ever want, for nothing. It's known as Linux!

Subscribe
Newsletter & SubscriptionsPC World is New Zealand’s top selling computing and technology magazine.

It provides up-to-the-minute editorial, insight and buying advice for personal computing, cell phones, game consoles, digital entertainment and broadband.
SIGN UP
PCWorldUpdate
PC World's weekly round-up of tech news, gear and game reviews, software selections, and handy How Tos.

PC World Blogs