Entries Tagged as 'Linux'

FileZilla – The free FTP solution

If you have a need to transfer files via FTP, SFTP, SCP, etc and you prefer to user a graphical user interface on a Windows, Mac, or Linux machine — then the Open Source FileZilla is a very good solution to consider.

Just download the client, install it, and within a few moments you’ll have a connection to a server (that you can save the information for quick reuse if you like).  The interface is clean and easy to understand, and supports drag-and-drop as well as transfers from the multi-pane manager.

And, you can’t beat the price – FREE.

http://filezilla-project.org/

Originally posted 2011-09-13 02:00:47.

File System Fragmentation

All file systems suffer from fragmentation.

Let me rephrase that more clearly in case you didn’t quite get it the first time.

ALL FILE SYSTEMS SUFFER FROM FRAGMENTATION <PERIOD>.

It doesn’t matter what file system you use one your computer, if you delete and write files it will become fragmented over time.  Some older file systems (like say FAT and FAT32) had major performance issues as the file system began to fragment, more modern file systems do not suffer as much performance lose from fragmentation, but still suffer.

If you want to argue that your writable file system doesn’t fragment, you haven’t a clue what you’re talking about, so read up on how your file system really works and how block devices work to understand why you just can’t have a file system that doesn’t fragment files or free space or both.

What can you do about fragmentation?

Well, you might not really need to do anything, modern disk drives are fast; and on a computer that’s doing many things at once the fragmentation may not have much of any impact on your performance, but after awhile you’re probably going to want to defragment your files.

The act of copying a file will generally defragment it; most modern file systems will attempt to allocate contiguous space for a file if it can (files that grow over time cannot be allocated contiguous, but they can be defragmented at their current size).

On many operating systems you can actually get programs that are designed to defragment your file system.

How often should you defragment your file system?

Well, I generally recommend you do it right after installing and updating your computer; and then any time you make major changes (large software installation, large update, etc).  But that you not do it automatically or an a routine schedule — there’s not enough benefit to that.

You can also analyze your disk (again using software) to determine how fragmented it is… and then defragment when it reaches some point that you believe represents a performance decrease.

Also, try and keep your disk clean, delete your browser cache, temporary files, duplicate files, and clutter — the less “junk” you have on your disk, the less need there will be for defragmenting.

Originally posted 2009-01-05 12:00:03.

Ubuntu – Desktop Search

Microsoft has really shown the power of desktop search in Vista and Windows 7; their newest Desktop Search Engine works, and works well… so in my quest to migrate over to Linux I wanted to have the ability to have both a server style as well as a desktop style search.

So the quest begun… and it was as short a quest as marching on the top of a butte.

I started by reviewing what I could find on the major contenders (just do an Internet search, and you’ll only find about half a dozen reasonable articles comparing the various desktop search solutions for Linux)… which were few enough it didn’t take very long (alphabetical):

My metrics to evaluate a desktop search solutions would focus on the following point:

  • ease of installation, configuration, maintenance
  • search speed
  • search accuracy
  • ease of access to search (applet, web, participation in Windows search)
  • resource utilization (cpu and memory on indexing and searching)

I immediately passed on Google Desktop Search; I have no desire for Google to have more access to information about me; and I’ve tried it before in virtual machines and didn’t think very much of it.

Begal

I first tried Beagle; it sounded like the most promising of all the search engines, and Novel was one of the developers behind it so I figured it would be a stable baseline.

It was easy to install and configure (the package manager did most of the work); and I could use the the search application or the web search, I had to enable it using beagle-config:

beagle-config Networking WebInterface true

And then I could just goto port 4000 (either locally or remotely).

I immediately did a test search; nothing came back.  Wow, how disappointing — several hundred documents in my home folder should have matched.  I waited and tried again — still nothing.

While I liked what I saw, a search engine that couldn’t return reasonable results to a simple query (at all) was just not going to work for me… and since Begal isn’t actively developed any longer, I’m not going to hold out for them to fix a “minor” issue like this.

Tracker

My next choice to experiment with was Tracker; you couldn’t ask for an easier desktop search to experiment with on Ubuntu — it seems to be the “default”.

One thing that’s important to mention — you’ll have to enable the indexer (per-user), it’s disabled by default.  Just use the configuration tool (you might need to install an additional package):

tracker-preferences

Same test, but instantly I got about a dozen documents returned, and additional documents started to appear every few seconds.  I could live with this; after all I figured it would take a little while to totally index my home directory (I had rsync’d a copy of all my documents, emails, pictures, etc from my Windows 2008 server to test with, so there was a great deal of information for the indexer to handle).

The big problem with Tracker was there was no web interface that I could find (yes, I’m sure I could write my own web interface; but then again, I could just write my own search engine).

Strigi

On to Strigi — straight forward to install, and easy to use… but it didn’t seem to give me the results I’d gotten quickly with Tracker (though better than Beagle), and it seemed to be limited to only ten results (WTF?).

I honestly didn’t even look for a web interface for Strigi — it was way too much a disappointment (in fact, I think I’d rather have put more time into Beagle to figure out why I wasn’t getting search results that work with Strigi).

Recoll

My last test was with Recoll; and while it looked promising from all that I read, but everyone seemed to indicate it was difficult to install and that you needed to build it from source.

Well, there’s an Ubuntu package for Recoll — so it’s just as easy to install; it just was a waste of effort to install.

I launched the recoll application, and typed a query in — no results came back, but numerous errors were printed in my terminal window.  I checked the preferences, and made a couple minor changes — ran the search query again — got a segmentation fault, and called it a done deal.

It looked to me from the size of the database files that Recoll had indexed quite a bit of my folder; why it wouldn’t give me any search results (and seg faulted) was beyond me — but it certainly was something I’d seen before with Linux based desktop search.

Conclusions

My biggest conclusion was that Desktop Search on Linux just isn’t really something that’s ready for prime time.  It’s a joke — a horrible joke.

Of the search engines I tried, only Tracker worked reasonably well, and it has no web interface, nor does it participate in a Windows search query (SMB2 feature which directs the server to perform the search when querying against a remote file share).

I’ve been vocal in my past that Linux fails as a Desktop because of the lack of a cohesive experience; but it appears that Desktop Search (or search in general) is a failing of Linux as both a Desktop and a Server — and clearly a reason why choosing Windows Server 2008 is the only reasonable choice for businesses.

The only upside to this evaluation was that it took less time to do than to read about or write up!

Originally posted 2010-07-06 02:00:58.

Dynamic IP Filtering (Black Lists)

There are a number of reasons why you might want to use a dynamic black list of IP addresses to prevent your computer from connecting to or being connect to by users on the Internet who might not have your best interests at heart…

Below are three different dynamic IP filtering solutions for various operating systems; each of them are open source, have easy to use GUIs, and use the same filter list formats (and will download those lists from a URL or load them from a file).

You can read a great deal more about each program and the concepts of IP blocking on the web pages associated with each.

Originally posted 2010-08-17 02:00:55.

Compression

There are two distinct features that Windows Server 2008 outshines Linux on; and both are centric on compression.

For a very long time Microsoft has supported transparent compression as a part of NTFS; you can designate on a file-by-file or directory level what parts of the file system are compressed by the operating system (applications need do nothing to use compressed files).  This feature was probably originally intended to save the disk foot print of seldom used files; however, with the explosive growth in computing power what’s happened is that compressed files can often be read and decompressed much faster from a disk than a uncompressed file can.  Of course, if you’re modifying say a byte or two in the middle of a compressed file over and over, it might not be a good idea to mark it as compressed — but if you’re basically reading the file sequentially then compression may dramatically increase the overall performance of the system.

The reason for this increase is easy to understand; many files can be compressed ten to one (or better), that means each disk read is reading effectively ten times the information, and for a modern, multi-core, single-instruction/multiple-data capable processor to decompress this stream of data put no appreciable burden on the processing unit(s).

Recently, with SMBv2, Microsoft has expanded the file sharing protocol to be able to transport a compressed data stream, or even a differential data stream (Remote Differential Compression – RDC) rather than necessarily having to send every byte of the file.  This also has the effect of often greatly enhancing the effect data rate, since once again a modern, multi-core, single-instruction/multiple-data capable processor can compress (and decompress) a data stream at a much higher rate than most any network fabric can transmit the data (the exception would be 10G).  In cases of highly constrained networks, or networks with extremely high error rates the increase in effect through put could be staggering.

Unfortunately, Linux lags behind in both areas.

Ext4 does not include transparent compression; and currently no implementation of SMBv2 is available for Linux servers (or clients).

While there’s no question, what-so-ever, that the initial cost of a high performance server is less if Linux is chosen as the operating system, the “hidden” costs of lacking compression may make the total cost of ownership harder to determine.

Supporting transparent compression in a file system is merely a design criteria for a new file system (say Ext5 or Ext4.1); however, supporting SMBv2 will be much more difficult since (unlike SMBv1) it is a closed/proprietary file sharing protocol.

Originally posted 2010-07-11 02:00:49.

Upgrading Drive Firmware

First, if you’re not having problems with your drive (unless it’s brand new, has no data on it, and you don’t have an issue returning it to the place of purchase or manufacturer) DO NOT DO IT.

Second, make sure you give yourself plenty of time, don’t try and do it quickly, or in between other commitments.  Do it when it’s quiet.  Make sure you have a UPS on your computer and that the weather is clear (so that there’s no likelihood of power outages).

Third, run the drive diagnostics from the manufacturer first.  If the drive shows it’s having problems — return it to the manufacturer for replacement (most manufacturers will do advance replacement at no charge with a credit card; that gives you a drive to migrate your data onto, and a shipping container to return the failing drive in).

Fourth, many manufacturers support upgrading firmware directly from Windows (a few from other operating systems).  I high recommend you choose the bootable CD approach — that way there’s no question whether or not you have something installed on your computer that might interfere.  And if you’re using SATA I recommend you set your computer to SATA IDE/Legacy mode to insure that the upgrade (and diagnostics) don’t have any issues with your SATA controller (IDE/Legacy as opposed to SATA/Native, SATA/RAID, SATA/AHCI — different BIOS manufacturers will call it by a different term, but it’s the lowest setting for the controller, likely it’s what the default was).

Fifth, make sure you obtain the firmware update only from the manufacturer’s web site; and make sure that it is for your drive; and that it’s recommended as a general installation or specifically addresses an issue you’re having.

Sixth, make sure you read and follow the manufacturer’s procedure for updating firmware.

Seventh, power off your drive before you attempt to use it after updating the firmware.  Most drives will not use the newer firmware until they are power-cycled; some drives just flat out won’t work until they’ve been “hard reset”.

Hopefully all goes well, but many drives become a brick if your firmware upgrade fails; a few can revert to the previous firmware and keep on running.  If you have problems, contact the manufacturer, most drives under warranty can be replaced — but data recovery is not included.

NOTE:

Upgrading drive firmware may also change the first several sectors of the drive; I highly recommend that you backup the drive before upgrading the firmware.

Originally posted 2010-02-09 01:00:56.

USB Hard Drive Adapters

 Everyone’s making them and they come in really handy…

 Basically they’re devices you can use to access a bare hard drive.  Most of them supports PATA and SATA 2.5″ and 3.5″ drives (though some vendors require a bunch of adapters to do it).  The APRICORN DriveWire unit is clean and simple and priced around $30 (use a price search engine) or less.

I was so happy to find these units that I purchased two of them and gave away my previous ones made by another vendor.

If you’re going to routinely swap drives on and off a computer, and don’t want to spring for an external case you might be better off with a hard drive dock also available for about $30, but they don’t support PATA (PATA is not hot swapable).

If you’re going to use these units to upgrade a computer’s hard drive, remember Acronis TrueImage is a great tool (you can find shareware and OpenSource tools as well — but TrueImage is well worth the price and has many additional features that you’ll likely find useful).


APRICORN: DriveWire – Universal Hard Drive Adapter

Originally posted 2008-12-29 12:00:32.

Linux BitTorrent Clients – Follow-Up

I’ve been using several Linux bit torrent clients fairly heavily for the past week or so, and I have a few new comments about each of the “contenders” — below I’ve ordered them as I would recommend using them.

KTorrent · KTorrent might be a little “fat”, but it works, and it works very well — particularly when dealing with a large number of torrents simultaneously.  This is my pick.

TorrentFlux · TorrentFlux is probably the best solution you’ll find for a torrent server.  Simply said, it works fine (though I don’t know that I’ll continue to use it, simply because it doesn’t seem to be being improved, and it’s far from perfection).

Transmission · Transmission is simple, and that simplicity seems to pay off — it works, it works well.

qBittorrent · qBittorrent works fairly well for a small number of simultaneous torrents; but if you want to download large numbers of torrents or seed large numbers of torrents stay away from this one — it actually crashes, and unless your goal is just to watch the integrity of your torrents be checked and over and over you can do much better.

Deluge · Deluge was what I really wanted to like; and it seemed to work, but it has two major problems — it doesn’t handle large numbers of torrents well, and it doesn’t properly handle port forwarding (either through UPnP / NAT-PMP or when you try and set the port forwarding manually).  We’ll just leave it at it has issues (that apparently are fairly well known) and the progress on it is glacial in it’s pace.

Moving torrents from one client to another isn’t all that hard to do, a little time consuming maybe… but once you figure out how to do it, and let your data files re-check, you’ll be on your way.

My experience over the past week reminds me that you can do your diligence by researching every fact and figure about a program all you like; but until you put it through the paces you just won’t know.

NOTES: My test included about 550 torrents totaling just under half a terabyte in total size.  I required that ports be forwarded through a firewall properly (either via UPnP, NAT-PMP, or by hand), and that I be able to control the total number of active torrents (preferably with control over uploads and downloads as well), and be able to restrict the bandwidth (a scheduler was a nice touch, but not a requirement).

Originally posted 2010-08-25 02:00:30.

Cloning a VirtualBox Hard Disk

Sure it’s easy to install an operating system from scratch in VirtualBox, but it’s much easier (and quicker) to keep a base library of OS images and simply clone the disk and add the specific software you need (want).

You cannot just simply copy a disk file, all disks in VirtualBox contain a unique identifier (a UUID) and two disks with the same UUID cannot be in the media catalog at the same time.

VirtualBox, however, provides the ability to change the UUID (from the command line) using vboxmanage; the syntax is simply vboxmanage internalcommands setvdiuuid <disk file name>.

You can easily create a script for cloning a VirtualBox disk by doing something like this in windows (I put it in a file called clonevdi.bat)

@echo off
REM clonevdi <source> <destination>
set v=%ProgramFiles%\sun\virtualbox
copy %1 %2
“%v%\vboxmanage.exe” internalcommands setvdiuuid %2
set v=

or this in ‘nix (I put it in a file called clonedvi and it needs to be set to have execute [x] mode)

#!/bin/bash
# clonevdi <source> <destination>
cp -p $1 $2
vboxmanage internalcommands setvdiuuid $2

Then you just call it with the disk file you want to clone, and the new name for the clone.

Remember, if you’re cloning a Windows OS disk, you should download a tool like NewSID (from Sys Internals, now Microsoft) and run that after you boot your cloned disk to change the security identifier (SID).

NOTE:  Pay attention to the licensing requirements from Microsoft on duplicating Windows OS disks (even virtual ones) and as of Nov 2009 the only “official” way Microsoft supports changing SIDs is through the use of SysPrep (Microsoft System Preparation Utility for Microsoft Windows operating system deployment).

Originally posted 2010-04-08 02:00:30.

conglomeration

con·glom·er·a·tion (kn-glm-rshn)
n.

    1. The act or process of conglomerating.
    2. The state of being conglomerated.
  1. An accumulation of miscellaneous things.

The American Heritage® Dictionary of the English Language, Fourth Edition copyright ©2000 by Houghton Mifflin Company. Updated in 2009. Published by Houghton Mifflin Company. All rights reserved.


conglomeration [kənˌglɒməˈreɪʃən]
n

  1. a conglomerate mass
  2. a mass of miscellaneous things
  3. the act of conglomerating or the state of being conglomerated

Collins English Dictionary – Complete and Unabridged © HarperCollins Publishers 1991, 1994, 1998, 2000, 2003


conglomeration a cluster; things joined into a compact body, coil, or ball.

Examples: conglomeration of buildings, 1858; of chances; of Christian names, 1842; of men, 1866; of sounds, 1626; of threads of silk worms, 1659; of vessels, 1697; of words.

Dictionary of Collective Nouns and Group Terms. Copyright 2008 The Gale Group, Inc. All rights reserved.


The SCO infringement lawsuit over the Unix trademark is over… the Supreme Court has ruled that Novell owns the Unix trademark and copyright, and SCO has no grounds for it’s litigation against.  Just as Microsoft owned and retained the Xenix copyright while SCO distributed that operating system, so Novell retained the Unix copyright while SCO distributed that operating system.

While means, Novell now has a prime asset — and could be ripe for harvesting (that’s a poetic way to say merger, take-over, buy-out).

Which will likely be bad for Linux.

WHAT?

Yep, take a look at what happened when Oracle purchased Sun (one of the largest companies supporting Open Source innovation in Linux, virtualization, etc) there’s definitely movement in Oracle to retract from the Open Source and free (free – like free beer) software efforts that Sun was firmly behind.

Consider what happens if a company acquires Novell and uses the SystemV license from Novell to market a closed source operating system, and discontinues work on Suse; or at minimum decides it doesn’t distributed Suse for free (free – like free beer).

“Live free or die” might become a fading memory.

Originally posted 2010-06-05 02:00:18.