Preparing and uploading binaries to Usenet (CLI)

Share your own howto's etc. Not for support questions!

Preparing and uploading binaries to Usenet (CLI)

Postby Hallvor » 2019-11-02 17:41

Uploading to Usenet

In this howto, we'll use CLI tools to prepare and upload binaries to Usenet. Not all providers has upload rights enabled by default, so you may have to enable them on the site of your Usenet host before you proceed. It also requires the installation of non-free software, so this repository must be enabled. (RMS won't be proud...)

You must also install (open source) software from an external source. Proceed at own risk.


First install the needed packages (as root):

Code: Select all
# apt install par2 rar

We will now split the binary in parts of 50 megabytes (because the application we will use for uploads later on prefers small file sizes).

Open a command line interface in the directory with the file you want to upload. Make sure the binary you want to upload is the only file you have in that directory. As an example, I will use the Debian 10 ARM64 version. Replace with your content and file name, of course.

As regular user:

Code: Select all
$ rar a debian-10.1.0-arm64-netinst.rar -v50m -m0 *

And then delete the ISO.

Rar will here make a file called debian-10.1.0-arm64-netinst.rar and split it into parts of 50 megabytes. -m0 means zero compression and is ideal for fast storage. * means that all files in the directory will be appended into the rar. If you are uploading a folder of files, you may want to rar the entire folder to avoid a mess of individual files when extracting them.

Par2 is a file verification and repair tool. It is highly recommended to use it to enable file repair for missing parts. The following command will use your already created rar files to create par2 files with 25% retention, which will be fine in almost all cases.

Code: Select all
$ par2create -r25 *.rar


The files are now ready for upload. Sadly, there are not that many options for GNU/Linux, but I have found one that works very well here: . This particular version can use several connections to speed up the upload.

Once there, clock the "Clone or Download" button.

Open a terminal in the downloaded directory and type (as user)

Code: Select all
$ make

Then (as root)
Code: Select all
# make install

Once the installation is completed, we can upload our rar and par2 files. Open the terminal in your upload directory:

As regular user:

Code: Select all
$ newspost -i YOURUSENETSERVER.COM -u YOURUSERNAME -p YOURPASSWORD -N 4 -f YOUR@EMAIL.COM -n alt.binaries.boneless -s "debian-10.1.0-arm64-netinst.ISO" *

You will of course have to edit this command. Replace YOURUSENETSERVER.COM with your Usenet host's server. Replace YOURUSERNAME, YOURPASSWORD and YOUREMAIL@EMAIL.COM with your Usenet username/login, password and e-mail. -N 4 means the files will upload with four connections.The e-mail address does not have to be real. alt.binaries.boneless means your binaries will be posted to the alt.binaries.boneless group. This is one of few groups you can post anything to.

If you are unsure of where to post your binaries, this may be a good help: ... t.binaries

From there, we can see that the group alt.binaries.linux.iso may be a better choice, but alt.binaries.boneless will work as well.

Finally "debian-10.1.0-arm64-netinst.ISO" displays the subject of your post, and * tells newspost to upload everything, so again, make sure you are in the right directory...

All done. Your binaries should be available for download in a few hours.
Last edited by Hallvor on 2019-11-03 13:06, edited 2 times in total.
Lenovo ThinkPad T440S, Intel Core i7-4600U CPU @ 2.10GHz, 8 GB RAM, 256 GB SSD, Debian Buster (KDE)
Lenovo ThinkPad X240, Intel Core i5-4300U CPU @ 2.90GHz, 8 GB RAM, 120 GB SSD, Debian Buster (KDE)
User avatar
Posts: 1088
Joined: 2009-04-16 18:35
Location: Norway

Re: Preparing and uploading binaries to Usenet (CLI)

Postby stevepusser » 2019-11-02 22:04

I have to wonder what a use case for this would be in the modern age.
MX Linux packager and developer
User avatar
Posts: 12190
Joined: 2009-10-06 05:53

Return to Docs, Howtos, Tips & Tricks

Who is online

Users browsing this forum: No registered users and 6 guests