Categories
Iperf iperf examples Linux SourceForge

Measure Network Throughput (Bandwidth) with Iperf

Iperf is a tool for measuring maximum TCP and UDP bandwidth performance. Iperf reports bandwidth, delay jitter, datagram loss.

Iperf allows the user to set various parameters that can be used for testing a network, or alternately for optimizing or tuning a network. Iperf has a client and server functionality, and can measure the throughput between the two ends, either unidirectonally or bi-directionally. It is open source software and runs on various platforms including Linux, Unix and Windows. It is supported by the National Laboratory for Applied Network Research.

When used for testing UDP capacity, Iperf allows the user to specify the datagram size and provides results for the datagram throughput and the packet loss.

When used for testing TCP capacity, Iperf measures the throughput of the payload. One thing to note is that Iperf uses 1024*1024 for megabytes and 1000*1000 for megabits. There is a Graphical user interface (GUI) front end available called jperf.

Typical Iperf output contains a timestamped report of the amount of data transferred and the throughput measured.

Iperf is significant as it is a standardized tool that can be run over any network and output standardized performance measurements. Thus it can be used for comparison of wired and wireless networking equipment and technologies in an unbiased way. As it is open source, the measurement methodology can be scrutinized by users.

See also Use Iperf to Measure Network Throughput (Bandwidth) for examples and details on using Iperf.

Download Iperf and get more information from SourceForge.

Categories
FREE Freeware Notepad Replacement Notepad++ notepad++ examples Open Source SourceForge

5 Great Notepad++ Features

Notepad++ is probably the best text editor for Windows – and it’s FREE. It has a huge range of features for working with text files, scripts, HTML files, etc.  Here are some pointers on just a few of those features.

1. Set Language to match your code
One very nice feature of Notepad++ is the ability to color pieces of code. This is very useful when writing C, SQL, HTML or other types of files, allowing you to easily visually distinguish between functions, reserved words, comments, text, and other types of symbols and expressions in your code.

Notepad++ will automatically detect your code based upon the language selected. You can specify the language yourself or Notepad++ will set it based on the file extension.

HTML as text before specifying language.

HTML code after specifying language.

2. Bulk find & replace
If you want to replace a certain entry in your file(s), Notepad++ is the ticket. Not only can it instantly search through all entries in a file, it can search all open files or even all files in a directory (including sub-directories), including, matching only certain file types.

3. Search and replace using regular expressions
When it comes to finding what you want, Notepad++ is not limited to mere words. You can also use powerful regular expression to match dynamic entries. For example, the below search will find (and replace) all tags in the source of HTML files, regardless of the actual image size specified:

Of course, some knowledge of regular expressions is required to use this feature. Not surprisingly, these regular expressions will also serve you well if you dabble in the Linux command line with sed or awk commands.

4. Tidy HTML code

If you’re writing web articles, there’s a fair chance your code will include a bit of unnecessary breaks, misaligned tags and so forth. Notepad++ can Tidy your HTML code.
For example, here is some unformatted text:

Which we want to format with HTML:

5. Save all open files
While this may not sound too exciting, imagine you have several open files – Notepad++ behaves like Firefox in this regard and opens documents in tabs – each one changed after you ran a bulk find & replace earlier. Saving them one by one can be tedious. Notepad++ saves you the hassle. You can save all open files at once.

Similarly, you can close them all at once.

Conclusion

Notepad++ is an extremely powerful and useful tool. We only scratched the surface on its features. With Notepad++ you can use macros or function completion, compare documents, export files to other formats, and a whole lot more.

Notepad++ also has many useful plugins and it comes in a portable version.

More on Notepad++

Categories
Notepad++ notepad++ examples SourceForge

The Power of Regular Expression: use in notepad++

Check out this SlideShare Presentation:

The Power of Regular Expression: use in notepad++

Categories
Encryption Linux Passwords rdesktop RDP SourceForge TSClient WGET Windows

Using Remote Desktop for Linux with rdesktop

rdesktop client can be used to connect to Windows Terminal Services for Remote Desktop Protocol (RDP) from Linux machines. The rdesktop client supports all version of Microsoft Windows including the latest, Windows Server 2008 and Windows 7 Operating Systems, and it runs on most unix based platforms as well as other ports.

Visit http://sourceforge.net/projects/rdesktop/ for more information or to download rdesktop.

Download and Install:

  1. wget http://garr.dl.sourceforge.net/sourceforge/rdesktop/rdesktop-1.6.0.tar.gz
  2. tar -zxf rdesktop-1.6.0.tar.gz
  3. cd rdesktop-1.6.0
  4. ./configure
  5. make
  6. make install

Basic Usage:

rdesktop -k en-us -a 16 -f -u <username> -p <password> <server>

Command Options Used:

-f switch for full screen mode
-k for keyboard layout on server
-a for color depth
-u for username
-p for password

Note: To exit full screen mode press: CTRL + ALT + Enter

Full Usage Options

Usage: rdesktop [options] server[:port]
-u: user name
-d: domain
-s: shell
-c: working directory
-p: password (- to prompt)
-n: client hostname
-k: keyboard layout on server (en-us, de, sv, etc.)
-g: desktop geometry (WxH)
-f: full-screen mode
-b: force bitmap updates
-L: local codepage
-A: enable SeamlessRDP mode
-B: use BackingStore of X-server (if available)
-e: disable encryption (French TS)
-E: disable encryption from client to server
-m: do not send motion events
-C: use private colour map
-D: hide window manager decorations
-K: keep window manager key bindings
-S: caption button size (single application mode)
-T: window title
-N: enable numlock syncronization
-X: embed into another window with a given id.
-a: connection colour depth
-z: enable rdp compression
-x: RDP5 experience (m[odem 28.8], b[roadband], l[an] or hex nr.)
-P: use persistent bitmap caching
-0: attach to console
-4: use RDP version 4
-5: use RDP version 5 (default)

There is also a graphical user interface (GUI) that you can use named Terminal Server Client [tsclient]
Visit: http://sourceforge.net/projects/tsclient for more information and to download tsclient.

Categories
Encryption FREE Linux Open Source Passwords SourceForge TrueCrypt Utility Windows

TrueCrypt – Free Open Source Industrial Strength Encryption

TrueCrypt provides a solution for encrypting sensitive data – everything from portable, mountable volumes to entire hard disks.  Encrypting your data renders that access useless, even if your computer or your thumbdrive falls into the wrong hands.

And TrueCrypt makes it not only easy, but nearly un-crackable.  TrueCrypt is both open source and FREE.

There are two approaches to using TrueCrypt:

  • Whole Drive Encryption – you can use TrueCrypt to encrypt your entire hard disk, including your boot partition. In order to boot the machine, you must first supply your pass phrase to enable decryption. Once booted, data is automatically and transparently encrypted and decrypted as it travels to and from the disk. Once your machine is turned off, the data is unrecoverable without knowing the pass phrase.
  • Container Encryption – with this approach you create a single file on your computer’s hard drive that is encrypted. You then “mount” that file using TrueCrypt, supplying the correct pass phrase to decrypt it after which the contents of that file appear as another drive on your system. Reading from and writing to that “drive” automatically and transparently decrypts and encrypts the data. Once the drive is unmounted, the data is once again unrecoverable without knowing the pass phrase.

TrueCrypt is both simple and elegant.

Most users prefer container based encryption for its portability, and for the fact that you need only mount the encrypted drive when you need access. You could keep personal information in a TrueCrypt container that could be regularly copied between machines, onto a thumbdrive, and even backed up to the Internet. When you need to access the encrypted data, simply mount it, specify your pass phrase to unlock it, and use the files that are stored within it.

TrueCrypt is not tied to any one platform, your user account or anything else; just the pass phrase. In fact, you can copy your encrypted file to another machine entirely and mount it with TrueCrypt. Even using other operating systems such as Mac or Linux.

Here are a couple of important caveats:

  • Encryption does not make a bad pass phrase any more secure. If you choose an obvious pass phrase, an attack can certainly be mounted that could unlock your encrypted volume. This is why we talk about pass phrase instead of password. Use a multi-word phrase that you can remember to be the key to your encrypted data, and it’ll be much, much more difficult to break.
  • An encrypted volume does you no good if the files you care about are also elsewhere on your machine.
  • Make sure you have secure backups, updated regularly. Preferably keep them UNencrypted, but secure in some other way, in case you lose your encrypted volume or forget your pass phrase. If you’ve chosen a good passphrase, without it the data is not recoverable.

TrueCrypt is FREE open-source disk encryption software for Windows 7/Vista/XP, Mac OS X, and Linux

TrueCrypt Features:

Data encryption is an important part of an overall security strategy. TrueCrypt can be a key part of that strategy.

Download TrueCrypt.

Categories
Clipboard FREE Linux Mac SourceForge Utility Windows

Can the Mac OS X clipboard hold more than one item?

What if you want to copy several items, and then paste those items later? You can’t do it with the standard clipboard, but thanks to some free programs, you can bring the Mac’s copy-and-paste functionality into the 21st century.

While there are many clipboard enhancement tools available for Mac, I like to use one of two free ones. The first keeps things simple, but adds that extra dimension that makes your clipboard so much more useful. It is called Jumpcut and can be found at Sourceforge.net.

Basically, what Jumpcut does is to give you a clipboard that is several items deep. With it you can access the menu at the top of the screen and choose to paste in previously clipped items. In fact, it keeps a running record of your most recent copies, and you can choose any one.

You can also use a keyboard shortcut, usually Ctrl+Option+V to cycle through your clipboard items and pick the one you want.

The options for Jumpcut are kept simple. You can have it remember more items if you wish, and display more choices if you wish.  One limiting factor of Jumpcut is that it only works with text. If you want to use images, you’ll need something more advanced like ClipMenu, which can be found at clipmenu.com.

In addition to accepting text and images, ClipMenu also has a more complex menu, including breaking the items into groups of 10 or less and Snippets, which are items permanently available through ClipMenu for pasting.

Plus, when you use ClipMenu’s keyboard shortcut, usually Ctrl+Command+V, you get the entire ClipMenu menu right at the point of your cursor.

You’ll also find ClipMenu’s options more detailed than Jumpcut, with fine-tuning like font sizes in the menu, labels to indicate the type of item, and even the ability to integrate with simple scripts to do things like change the case of clipboard text.

The best thing about Jumpcut and ClipMenu is that they can be used together. Simply install both. They will both remember what you copy. For the simplest of needs I use Jumpcut, and then for things like images or the Snippets feature, I use ClipMenu. And since they are both free and stable, there’s really no reason not to try them out. Except that once you have a clipboard with depth, you’ll never be able to go back to the single-item 1980’s style clipboard again.

Categories
CLI Command Line FTP GNU HTTP HTTPS Linux Open Source Passwords SourceForge WGET wget examples Windows

GNU WGet for Windows (Windows 7, Vista, XP, etc.)

Whether you need a quick-and-dirty way to download a file via HTTP, HTTPS or FTP; or test a web page or recursively download a whole site, WGET is a great tool for the task.

GNU Wget is a free software package for retrieving files using HTTP, HTTPS and FTP, the most widely-used Internet protocols. It is a non-interactive commandline tool, so it may easily be called from scripts, cron jobs, terminals without X-Windows support, etc., on both Windows- or *nix-based systems.

GNU Wget has many features to make retrieving large files or mirroring entire web or FTP sites easy, including:

  • Resume aborted downloads, using REST and RANGE
  • Use filename wild cards and recursively mirror directories
  • NLS-based message files for many different languages
  • Optionally converts absolute links in downloaded documents to relative, so that downloaded documents may link to each other locally
  • Runs on most UNIX-like operating systems as well as Microsoft Windows
  • Supports HTTP proxies
  • Supports HTTP cookies
  • Supports persistent HTTP connections
  • Unattended / background operation
  • Uses local file timestamps to determine whether documents need to be re-downloaded when mirroring
  • GNU Wget is distributed under the GNU General Public License.

Wget has an extensive set of options, the full list of which can be viewed from the command line with “wget –help.”  Here are a few useful examples

Example 1 – Download the default page for given site to your current directory:

wget powercram.com

Example 2 – Recursively download the default page plus an additional level based on links from the default page:

wget -r -l 2 powercram.com

Example 3 – This will do as in example 2, additionally specifying username and password if required by site:

wget -r -l 2 --random-wait --http-user=powercram --http-password=powercram powercram.com

Example 4 – WGET can be used to recursively mirror your site, including download all the images, css and javascript, etc., and localize all of the URLS (so the site works on your local machine).  You can even save all the pages as .html files.

– To mirror your site:

wget -r http://www.powercram.com

– To mirror the site and localize all of the URLs:

wget --convert-links -r http://www.powercram.com

– To mirror the site and save the files as .html:

wget --html-extension -r http://www.powercram.com

Download WGet for Windows, install it, play with it and have some fun.

GNU wget runs on any version of Windows, including 2000, 2003, XP, Vista, Windows 7.

More

Categories
CLI Command Line Linux Mac OSX SourceForge Windows

Synergy – desktop sharing for Windows, Linux and Mac OS

Synergy lets you easily share a single mouse and keyboard between multiple computers with different operating systems without special hardware. It’s intended for users with multiple computers on their desk since each system uses its own display.

sourceforge.net/projects/synergy2/

Categories
FART FART examples Grep Linux SourceForge Windows

Windows Command Line Find and replace – Made easy with FART.exe

Here is a great little application that does a find and replace on a particular file, file type or file contents, then replaces it with a string of your choice. It can look in sub directories as well.
The small app is called FART, yes that’s right FART – Find And Replace Text!

Usage: FART [options] [–] [,…] [find_string] [replace_string]
Options

  • -h, –help Show this help message (ignores other options)
  • -q, –quiet Suppress output to stdio / stderr
  • -V, –verbose Show more information
  • -r, –recursive Process sub-folders recursively
  • -c, –count Only show filenames, match counts and totals
  • -i, –ignore-case Case insensitive text comparison
  • -v, –invert Print lines NOT containing the find string
  • -n, –line-number Print line number before each line (1-based)
  • -w, –word Match whole word (uses C syntax, like grep)
  • -f, –filename Find (and replace) filename instead of contents
  • -B, –binary Also search (and replace) in binary files (CAUTION)
  • -C, –c-style Allow C-style extended characters (xFFtnr\ etc.)
  • –cvs Skip cvs dirs; execute “cvs edit” before changing files
  • –svn Skip svn dirs
  • –remove Remove all occurences of the find_string
  • -a, –adapt Adapt the case of replace_string to found string
  • -b, –backup Make a backup of each changed file
  • -p, –preview Do not change the files but print the changes

Example 1 (replace text, preview only)

fart -c -r -i -p *.txt original_text new_text

This will look for all .txt files in a sub directory, locate the original_text string within the .txt file and change it to new_text. The -p switch means it won’t actually change anything because this is a preview, showing you how many strings it found within each .txt file.

Example 2 (replace text)

fart -c -r -i *.txt original_text new_text

Same as above except it will do the actual replacement.

Example 3 (remove text)

fart -r -i --remove *.txt "remove this text"

Rather than replacing one term for another this will remove the specified term.

NOTE: Use quotes around text if it contains spaces, tabs, etc.

Download FART from SourceForge.

Keywords:

windows fart.exe
fart find and replace
notepad find/replace text command line
fart “command line” download
fart.exe find and replace
find and replace fart
replace file command line windows
“find and replace” fart examples
detailed manual fart find replace
find and replace command line executable

Categories
FREE Linux SourceForge Utility

Free, Encrypted Password Storage

Password Safe allows you to safely and easily create a secured and encrypted user name/password list. With Password Safe all you have to do is create and remember a single “Master Password” of your choice in order to unlock and access your entire user name/password list.