Results 1 to 10 of 37

Thread: HOWTO: post to usenet with Ubuntu

Hybrid View

  1. #1
    Join Date
    Feb 2007
    Location
    Nowhere important
    Beans
    1,198
    Distro
    Ubuntu 12.04 Precise Pangolin

    HOWTO: post to usenet with Ubuntu

    Hi,
    Because it's a bit hard to post (binary files) to Usenet with Linux, I decided to make this tutorial.

    Note: All commands, which you have to run in a terminal, are in code tags.

    1. First install a few programs
    Code:
    sudo apt-get install par2 newspost rar
    2. Place the files you want to upload in a folder.

    3. Most files on Usenet are in rar-files. You can create these rar-files with this command:
    Code:
    rar a "name of rar file" -v10m -m0 "/home/example/upload/"*
    Let me explain the command:
    name of rar file: This is the name of the rar-file. ".rar" will automatic be added.
    -v10m: Split the file(s) to a new rar-archive after 10 MB
    -m0: Set compression level (0-store...3-default...5-best).
    "/home/example/upload/"*: This means; rar everything in the folder '/home/example/upload'

    4. Now we can create par files.
    Code:
    par2create -r10 -n7 "name of par file" /home/example/upload/*.rar*
    -r10: Percent par-files you want to create
    -n7: Number of par-files you want to create
    "name of par file": I don't want to explain this
    /home/example/upload/*.rar*: means; Create par-files of everything in the folder /home/eample/upload, which ends with .rar

    5. Upload your files
    Code:
    newspost -i upload.eweka.nl -u USERNAME -p PASSWORD -f noadress@gmail.com -n alt.binaries.boneless -y -s "SUBJECT" "/home/example/upload/*.part*" "/home/example/upload/*.par*"

    Extra notes:
    This is it. You can run commands after each one is done (with &&). Then it will be something like:
    Code:
    rar a "name of rar file" -v10m -m0 "/home/example/upload/"* && par2create -r10 -n7 "name of par file" /home/example/upload/*.rar* && newspost -i upload.eweka.nl -u USERNAME -p PASSWORD -f noadress@gmail.com -n alt.binaries.boneless -y -s "SUBJECT" "/home/example/upload/*.part*" "/home/example/upload/*.par*"
    Last edited by Martje_001; February 11th, 2008 at 04:42 PM. Reason: Made type errors
    ➙ Synchronize all your files across Windows, Linux and Mac OS with Dropbox (2GB free storage!). By signing up via this link I'll get some extra space also, thanks!

    Multiseat on Ubuntu 10.04

  2. #2
    Join Date
    May 2008
    Beans
    10

    Re: HOWTO: post to usenet with Ubuntu

    I would very much like to use this, but newspost is not in the repositories of Hardy. Can I still use this program?

  3. #3
    Join Date
    Feb 2007
    Location
    Nowhere important
    Beans
    1,198
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: HOWTO: post to usenet with Ubuntu

    Of course

    i386:
    Code:
    wget http://nl.archive.ubuntu.com/ubuntu/pool/universe/n/newspost/newspost_2.1.1-4_i386.deb
    sudo dpkg -i newspost_2.1.1-4_i386.deb
    amd64:
    Code:
    wget http://nl.archive.ubuntu.com/ubuntu/pool/universe/n/newspost/newspost_2.1.1-4_amd64.deb
    sudo dpkg -i newspost_2.1.1-4_amd64.deb
    ➙ Synchronize all your files across Windows, Linux and Mac OS with Dropbox (2GB free storage!). By signing up via this link I'll get some extra space also, thanks!

    Multiseat on Ubuntu 10.04

  4. #4
    Join Date
    Apr 2006
    Beans
    28

    Re: HOWTO: post to usenet with Ubuntu

    greate guide!
    Only a question: why do you split file in rar of 10MB? isn't usefull bigger blocks? maybe 40MB?
    Last edited by rabside; May 23rd, 2008 at 06:51 PM.

  5. #5
    Join Date
    Feb 2007
    Location
    Nowhere important
    Beans
    1,198
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: HOWTO: post to usenet with Ubuntu

    Thank you! And, yes, it is, but this is only an example.
    ➙ Synchronize all your files across Windows, Linux and Mac OS with Dropbox (2GB free storage!). By signing up via this link I'll get some extra space also, thanks!

    Multiseat on Ubuntu 10.04

  6. #6
    Join Date
    Apr 2006
    Beans
    28

    Re: HOWTO: post to usenet with Ubuntu

    Hi guys,
    this is a little script to automate the upload:

    Code:
    #!/bin/bash
    
    #---------- config start----------
    username="username"
    password="password"
    server="newsserver"
    temppath="path of temp dir used to post material es: /media/dati/"
    newsgroup="newsgroup, es: alt.binaries.multimedia.divx.italian"
    poster="poster name, es: poster"
    email="email address, es: poster@gmail.com" 
    #---------- config end----------
    
    
    error="false"
    filename="$(basename $1)"
    subject="${filename%.*}"
    
    
    
    function checkLastCommand {
    	if [ "$1" != "0" ]; then
    		error="true"
    	fi
    }
    
    #rar split of file
    rar a "$temppath$filename" -v40m -m0 $1
    
    #checkresult
    checkLastCommand "$?"
    
    #create par
    if [ "$error" != "true" ]; then
    	par2create -r10 -n7 "$temppath$filename" "$temppath"*.rar*
    fi
    
    #checkresult
    checkLastCommand "$?"
    
    #post
    if [ "$error" != "true" ]; then
    	newspost -i "$server" -u "$username" -p "$password" -f "$email" -n "$newsgroup" -y -s "$subject" "$temppath"*
    fi
    
    #checkresult
    checkLastCommand "$?"
    
    #delete tmpfile
    if [ "$error" != "true" ]; then
    	rm "$temppath"*
    fi
    I hope this help

  7. #7
    Join Date
    May 2007
    Location
    San Francisco, California
    Beans
    5,851
    Distro
    Ubuntu

    Re: HOWTO: post to usenet with Ubuntu

    Nice tutorial, very nicely typed and very smooth.

  8. #8
    Join Date
    Nov 2011
    Beans
    17

    Re: HOWTO: post to usenet with Ubuntu

    Quote Originally Posted by Martje_001 View Post
    Hi,
    Because it's a bit hard to post (binary files) to Usenet with Linux, I decided to make this tutorial.

    Note: All commands, which you have to run in a terminal, are in code tags.

    1. First install a few programs
    Code:
    sudo apt-get install par2 newspost rar
    2. Place the files you want to upload in a folder.

    3. Most files on Usenet are in rar-files. You can create these rar-files with this command:
    Code:
    rar a "name of rar file" -v10m -m0 "/home/example/upload/"*
    Let me explain the command:
    name of rar file: This is the name of the rar-file. ".rar" will automatic be added.
    -v10m: Split the file(s) to a new rar-archive after 10 MB
    -m0: Set compression level (0-store...3-default...5-best).
    "/home/example/upload/"*: This means; rar everything in the folder '/home/example/upload'

    4. Now we can create par files.
    Code:
    par2create -r10 -n7 "name of par file" /home/example/upload/*.rar*
    -r10: Percent par-files you want to create
    -n7: Number of par-files you want to create
    "name of par file": I don't want to explain this
    /home/example/upload/*.rar*: means; Create par-files of everything in the folder /home/eample/upload, which ends with .rar

    5. Upload your files
    Code:
    newspost -i upload.eweka.nl -u USERNAME -p PASSWORD -f noadress@gmail.com -n alt.binaries.boneless -y -s "SUBJECT" "/home/example/upload/*.part*" "/home/example/upload/*.par*"
    Extra notes:
    This is it. You can run commands after each one is done (with &&). Then it will be something like:
    Code:
    rar a "name of rar file" -v10m -m0 "/home/example/upload/"* && par2create -r10 -n7 "name of par file" /home/example/upload/*.rar* && newspost -i upload.eweka.nl -u USERNAME -p PASSWORD -f noadress@gmail.com -n alt.binaries.boneless -y -s "SUBJECT" "/home/example/upload/*.part*" "/home/example/upload/*.par*"
    Good God!! they need a GUI for this. I have waisted 4 nights sluthing the forums and google and DuckDuckGo searches and seams as though Linux is a total failure with usenet posting/reading file split Yenc management . As much as I HATE windows I miss NewsBin pro, it's hard to believe their is no Ubuntu counterpart not even close, Pan=fail/ knode=FAIL/ major missing features. especially uploading to the usenet. Files need to be split and yEnc coded automatically and nzb's created with nfo files all integrated in the upload process.
    I can't believe the fantastic intelligent support for Linux now and they are so out of the loop with the Usenet. and Oh Ya support for SSL port 563 connections a must now with newsreader/writer/posters. Most of us [especially mine] have all these programs in our systems as Xterminal command line programs and craplications, The GUI developement is a disgrace for these.
    I hate the fact that I have 1 windows box [laptop] on hand for when I want to sleuth the newsgroups. Linux can't touch Newbin pro. Reads writes manages corupt files [PAR] a nd auto eYenc upload and download, preview even tells me if the files are Password protected apon commanding a download as not to waist my time.
    Auto handles nzb's [Usenet shortcut to files]. and creates them too. I'd pay a hundred dollars for a Linux version of NewsBin pro right now. NO it doesn't fly in Wine, as is most of the case.

  9. #9
    Join Date
    Feb 2012
    Beans
    1

    Re: HOWTO: post to usenet with Ubuntu

    For those interested I found the package newspost_2.1.1-4_amd64.deb on the website debian-archive at this location :

    http://archive.debian.net/etch/amd64/newspost/download
    http://ftp.nl.debian.org/debian-arch....1-4_amd64.deb

    It is working perfectly on Ubuntu Precise 12.04 amd64 ... Thanks all for the tutorials and all the good stuff.
    Last edited by Antonio19; April 13th, 2013 at 07:33 PM.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •