Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 37

Thread: HOWTO: post to usenet with Ubuntu

  1. #11
    Join Date
    May 2007
    Location
    San Francisco, California
    Beans
    5,844
    Distro
    Ubuntu

    Re: HOWTO: post to usenet with Ubuntu

    Nice tutorial, very nicely typed and very smooth.
    Google Ventures / Prowl

  2. #12
    Join Date
    Oct 2008
    Beans
    29

    Re: HOWTO: post to usenet with Ubuntu

    I can't upload all the rar-files in a directory. When I type "~/Desktop/up/*.rar" I get an error: "WARNING: No such file or directory". What can I do to solve this?

    Thanks.

  3. #13
    Join Date
    Jan 2008
    Location
    R.O.K.
    Beans
    6
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: HOWTO: post to usenet with Ubuntu

    Quote Originally Posted by Stan* View Post
    I can't upload all the rar-files in a directory. When I type "~/Desktop/up/*.rar" I get an error: "WARNING: No such file or directory". What can I do to solve this?

    Thanks.
    Hi Stan,
    Have u checked what directory your terminal is working from? To the left of your cursor and inside square brackets eg. [userisme@localhost Download] in this case, i am inside /home/userisme/Download/. If i passed a location like rar a example /Download/*.avi , i would get the same error message u did (unless there is a location like /home/userisme/Download/Download .

    In the end, the best is to operate from inside the actual data directory, so your command starts with the command, rather than a location.
    Last edited by hq197; October 8th, 2008 at 06:47 AM.

  4. #14
    Join Date
    Oct 2008
    Beans
    29

    Re: HOWTO: post to usenet with Ubuntu

    Thanks for your reply. I found it out already, I had to remove the quotes. Thanks anyway

  5. #15
    Join Date
    Nov 2008
    Beans
    2

    Re: HOWTO: post to usenet with Ubuntu

    Hi,

    Thanks for this, but there is just one problem, is there anyway to open more than 1 thread (aka upload more than 1 file at a time) as i cant max my server out with just a single thread which means it takes it longer to upload...

  6. #16
    Join Date
    Sep 2009
    Beans
    7

    tousenet script

    I bet you can figure out how to install: ksh, rar, par2, newspost.

    Code:
    #!/usr/bin/ksh
    
    # tousenet
    
    #---------- begin config ----------
    SERVER=my.news.server.com
    PORT=119
    USERNAME=colemar
    PASSWORD=password
    NEWSGROUP=alt.binaries.test
    EMAIL=colemarc@gmail.moc
    NICKNAME=colemar
    WORKBASE=/tmp/tousenet
    RARVOLSIZE=50m
    PARPERCENT=5
    NFOMASK=*.nfo
    SAMPLEMASK=*.sample.*
    LISTFILESUFFIX=list.nfo
    #---------- end config ----------
    
    function errorexit {
      print -u2 "ERROR: $1"
      exit 1
    }
    
    function usage {
      print "
      tousenet <what> [<where>] [<subject>]
    
      <what>    a directory containing the binary files you want posted to usenet.
      <where>   an optional comma separated list of newsgroup names (maximum 5).
                Default is alt.binaries.test.
      <subject> an optional string to be used to build the articles subject.
                Default is directory name of <what>.
    
      Files contained in <what> (and subdirs) are assembled in a set of rar/par
      files located in a work dir under the configured temp directory.
      The common <prefix> for rar/par filenames is the directory name of <what>.
    
      This program attempts to recognize whether a given <what> has already been
      assembled for posting. To detect this situation, the work dir is named after
      a fingerprint made from the first 8 characters of the md5 digest of <what>
      contents and a helper listfile is created in the work directory.
      "[fingerprint]" is also inserted at the beginning of articles subject; it
      can be used later to search and track the post via binsearch.info or
      other services.
    
      If *.nfo and/or *.sample.* files exist in <what> directory, they will be
      posted as such (besides in rar archive).
      To let binsearch.info report these files together with rar/par files, you
      should name them with the common prefix: <prefix>.nfo <prefix>.sample.mkv
      The first *.nfo file is automatically renamed to <prefix>.nfo in the
      work dir and posted as file number 0.
    
      Example: tousenet ~/media/W.La.Foca alt.binaries.movies.divx 'W la foca! (1982) IMDB:tt0084880 avi divx 720x576 italiano-mp3'
    "
      exit
    }
    
    WHAT=$1
    [[ $WHAT = "" ]] && usage
    WHERE=${2:-$NEWSGROUP}
    
    [[ $WHAT = /* ]] || WHAT=$PWD/$WHAT
    [[ -d $WHAT ]] || errorexit "$WHAT should be a directory"
    [[ -r $WHAT ]] || errorexit "$WHAT is not readable"
    print "Source is $WHAT"
    
    PREFIX=$(basename $WHAT)
    [[ $PREFIX = *\ * ]] && errorexit "I don't like blanks in common prefix [$PREFIX]"
    LISTFILE=$PREFIX.$LISTFILESUFFIX
    
    SUBJECT="${3:-$PREFIX}"
    
    cd $WHAT
    what=$(find . -type f -printf '%P %s %T+\n')
    typeset -L8 FINGERPRINT
    print -- "$what" | md5sum | read FINGERPRINT junk
    print "Fingerprint is $FINGERPRINT"
    
    WORKDIR=$WORKBASE/$FINGERPRINT
    print "Work dir is $WORKDIR"
    mkdir -p $WORKDIR
    cd $WORKDIR
    
    if [[ $(print *) = "*" ]]; then
      rar a $PREFIX -r -v$RARVOLSIZE -m0 $WHAT || errorexit "RAR archiver failed"
      eval cp $WHAT/$NFOMASK $WHAT/$SAMPLEMASK .
      par2 c -r$PARPERCENT $PREFIX * || errorexit "PAR file creation failed"
      print -- "$what" > $LISTFILE
    else
      print "Work dir is not empty"
      if [[ -f $LISTFILE ]]; then
        print "Post already assembled in the work dir"
        read answer?"Do you want to repost it? [Y/n] "
        [[ $answer = @(n|N) ]] && errorexit "Aborted"
      else
        errorexit "The work dir contains something unexpected"
      fi
    fi
    
    NFO=""
    ls *.nfo | fgrep -v $LISTFILE | read infofile
    if [[ $infofile > "" ]]; then
      [[ -f $PREFIX.nfo ]] || mv $infofile $PREFIX.nfo
      NFO="-e $PREFIX.nfo"
    fi
    
    newspost -T 3 -y -i $SERVER -z $PORT -u $USERNAME -p $PASSWORD -f $EMAIL -F $NICKNAME -n $WHERE -s "[$FINGERPRINT] $SUBJECT" $NFO *
    
    print "Done. The assembled post is still in work dir $WORKDIR"

  7. #17
    Join Date
    Nov 2008
    Beans
    74

    Re: HOWTO: post to usenet with Ubuntu

    Quote Originally Posted by DCJuggler View Post
    Hi,

    Thanks for this, but there is just one problem, is there anyway to open more than 1 thread (aka upload more than 1 file at a time) as i cant max my server out with just a single thread which means it takes it longer to upload...

    Finally a solution for people who use Linux.

    http://jbinup.com/en/

  8. #18
    Join Date
    Aug 2006
    Location
    tuesday
    Beans
    6,502
    Distro
    Kubuntu Development Release

    Re: HOWTO: post to usenet with Ubuntu

    Quote Originally Posted by Hated On Mostly View Post
    Finally a solution for people who use Linux.

    http://jbinup.com/en/
    Thanks for the link. Exactly what I as lookin for.

  9. #19
    Join Date
    Dec 2007
    Beans
    17

    Re: HOWTO: post to usenet with Ubuntu

    I can't seem to find any ubuntu/debian package for newspost
    Last edited by AintJoe; July 11th, 2010 at 11:24 AM.

  10. #20
    Join Date
    Sep 2009
    Beans
    7

    Re: HOWTO: post to usenet with Ubuntu

    Quote Originally Posted by AintJoe View Post
    I can't seem to find any ubuntu/debian package for newspost
    I had to compile it from the source tarball found at:
    http://newspost.unixcab.org

    I'm afraid there is probably no ready made package around.

Page 2 of 4 FirstFirst 1234 LastLast

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
  •