Command-Line Posting to Binary Newsgroups

| | Comments (0) | TrackBacks (0)
Categories:
Assume you a set of files that you wish to post on the binary newsgroups; for example, a CD or a DVD with hundreds of Mbytes or maybe several Gbytes of data. There are a variety of applications that can do that for you, but sometimes it's convenient to use command line tools. (You'll need Linux for this.)

  1. Install RAR. Just download the Linux distribution and unpack it. It contains an executable named "rar."
  2. Install par2cmdline. I wasn't able to get the binary files to run on my system, and the source code wouldn't compile until I wrote this patch. Apply it to reedsolomon.cpp in the source code directory with "patch < par2cmdline.patch," and it will probably work.
  3. Install cksfv.
  4. Install newspost.
Some of these tools can be installed via apt-get.

You'll get three kinds of files to post: RAR archive files, PAR2 parity files, and an SFV checksum file. You should probably decide on a similar file name for each kind of file such as "mypost.rar", "mypost.par2", and "mypost.sfv".

The first thing you do is to compress the files and limit their size. You're about to spend a whole lot of bandwidth soon, so compress them tightly. In the following example, rarfilename is the name of the RAR output file (without the ".rar" extension), and the following files are the ones to be added to the archive. The example produces an archive that is split for every 50 Mbytes, includes recovery records, and applies maximum compression:

rar a -rr -m5 -v50000 rarfilename file1 file2 file3 ... filen

Next, expect errors on the news servers. Create so-called PAR2 recovery files containing at least 10% redundant information as follows. Again, omit the ".par2" extension from the PAR2 file name.

par2create -r10 -s262144 parfilename *.rar

As an optional step, you may want to create an SFV file with CRC-32 checksums for the posted files.

cksfv *.rar *.par2 > sfvfilename.sfv

You now have the compressed and split archive, recovery blocks for when the news servers around the world don't replicate the posts correctly, and a checksum file. Now it's time to post. yourusername and yourpassword may be required by your news server, but otherwise you may omit those switches. You can specify that the files are to be cross-posted to several newsgroups by separating the newsgroups with a comma; e.g., "-n alt.binaries.dvd,alt.binaries.dvdr". Everything else is hopefully self-explanatory:

newspost -i news.yournewsserver.com -u yourusername -p yourpassword \
-f your@email.address -F "Your Name" -n alt.binaries.test \
-s "Subject of the post" -q -y *rar *par2 *sfv

Now go get a cup of coffee. Or go to bed if your archive is several Gigabytes large, because your files are now posted to the news server.

The first time around, try the above with just a few small files, and use alt.binaries.test to verify that your files are posted. Oh, and limit the amount of cross-posting so you don't post your home videos to all of the erotica binary newsgroups.

If you know of similar tools that can be used to achieve the same effects, please let me know. I'm mostly interested in alternatives to par2cmdline and newspost.
  • Currently 3.5/5
  • 1
  • 2
  • 3
  • 4
  • 5
Rating: 3.5/5 (4 votes cast)

If you liked this post, share it with others:
  • Digg it!
  • Add to Del.Icio.Us
  • Add to Technorati
  • Stumble It!
  • NewsVine
  • Slashdot
  • Google Bookmarks
  • YahooMyWeb
  • Live
  • Facebook
  • Facebook
  • Add this post to Ma.gnolia
  • Add this post to Reddit
  • Thoof it

Categories

0 TrackBacks

Listed below are links to blogs that reference this entry: Command-Line Posting to Binary Newsgroups.

TrackBack URL for this entry: http://blog.blazingangles.net/MT/mt-tb.cgi/78

Leave a comment

Sign In

About This Entry

This page contains a single entry by Ole Wolf published on October 11, 2007 7:48 AM.

Previous entry: Beyond Atheism.

Next entry: The Power of Symbols.

Find recent content on the main index or look in the archives to find all content.

Subscribe to Comments

Recent Comments

Creative Commons License
This weblog is licensed under a Creative Commons License.