Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 37

Thread: HOWTO: post to usenet with Ubuntu

  1. #21
    Join Date
    Feb 2007
    Beans
    12

    Re: HOWTO: post to usenet with Ubuntu

    This looks good.

    Is there also a sort of webui for this ?

    So that you click on a folder & then select : Upload
    And then you can select all options ?


    Or otherwise another script you can place on a server, so people can upload without SSH Access

    tx

  2. #22
    Join Date
    Jan 2009
    Location
    ::1
    Beans
    2,485

    Re: HOWTO: post to usenet with Ubuntu

    There's no newspost package for Lucid. Here's how to compile yourself from source:

    So get the source from http://newspost.unixcab.org/index.html#Download, and unpack it.
    Go into the unpack directory
    Try to make it (you will get an error):

    Code:
    sander@quirinius:/tmp/newspost-2.1.1$ make
    make main CFLAGS="-O2 -Wall" LIBS=""
    make[1]: Entering directory `/tmp/newspost-2.1.1'
    cd base ; make CC="gcc" CFLAGS="-O2 -Wall"
    make[2]: Entering directory `/tmp/newspost-2.1.1/base'
    gcc -O2 -Wall -o test test.c
    In file included from newspost.h:40,
                     from test.c:20:
    utils.h:29: error: conflicting types for ‘getline’
    /usr/include/stdio.h:651: note: previous declaration of ‘getline’ was here
    make[2]: *** [test] Error 1
    make[2]: Leaving directory `/tmp/newspost-2.1.1/base'
    make[1]: *** [main] Error 2
    make[1]: Leaving directory `/tmp/newspost-2.1.1'
    make: *** [opt] Error 2
    sander@quirinius:/tmp/newspost-2.1.1$
    The solution is easy:

    Code:
    find . -type f -exec grep -l "getline" {} \; | xargs sed -i "s/\<getline\>/getline_/g"
    Then make again, which will go OK.

  3. #23
    Join Date
    Dec 2007
    Beans
    17

    Re: HOWTO: post to usenet with Ubuntu

    If anyone is interested, I posted the code here, http://github.com/joehillen/newspost

    I'll create a debian package and GUI as soon as I feel like it.

  4. #24
    Join Date
    Jan 2009
    Location
    ::1
    Beans
    2,485

    Re: HOWTO: post to usenet with Ubuntu

    Quote Originally Posted by AintJoe View Post
    If anyone is interested, I posted the code here, http://github.com/joehillen/newspost

    I'll create a debian package and GUI as soon as I feel like it.
    ... and include in the the package the script that takes care of the rar, par and posting?

  5. #25
    Join Date
    Dec 2007
    Beans
    17

    Re: HOWTO: post to usenet with Ubuntu

    ...or at least add it to the gui.

  6. #26
    Join Date
    Jan 2009
    Location
    ::1
    Beans
    2,485

    Re: HOWTO: post to usenet with Ubuntu

    The script seems to work for me, but my test posts do not appear in the newsgroup alt.binaries.test nor binsearch.info.


    EDIT: the post did appear after 10 minutes on the newsserver, and after 20 minutes on binsearch.info.

    SO: all OK!



    Code:
    ...
    Posted 10 files (13.5 MB encoded) in 2 minutes 21 seconds.     98 KB/second 
    Done. The assembled post is still in work dir /tmp/tousenet/f64bee3c
    Last edited by sanderj; September 11th, 2010 at 06:46 PM.

  7. #27
    Join Date
    Oct 2010
    Beans
    2

    Re: HOWTO: post to usenet with Ubuntu

    I have a question about making par2 files, like number 4 in the opening post.
    Quote Originally Posted by Martje_001 View Post
    Hi,


    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
    I did this, and got:
    Code:
    ~$ par2create -r10 filename.par2 filename.part*.rar
    You must specify a list of files when creating.
    Then I did this and got:
    Code:
    ~$ par2create -r10 filename*.par2 filename.part*.rar
    You must specify a Recovery file.
    What am I doing wrong? I'm a beginner but I don't want to use the graphical version, I want to learn this.

  8. #28
    Join Date
    Dec 2008
    Location
    Toronto, ON, Canada
    Beans
    29
    Distro
    Xubuntu

    Re: HOWTO: post to usenet with Ubuntu

    Quote Originally Posted by hikaricore View Post
    Thanks for the link. Exactly what I as lookin for.
    YES. Tested nd it works. THANK YOU!

  9. #29
    Join Date
    Jan 2009
    Location
    ::1
    Beans
    2,485

    Re: HOWTO: post to usenet with Ubuntu

    Quote Originally Posted by rabside View Post
    Hi guys,
    this is a little script to automate the upload:

    <snip>

    I hope this help
    Great, very helpful script. Some remarks:

    - I believe the script puts the full path in the upload which cause the full path (like /home/sander/...) to be in the download. I've changed that myself by cd-ing to the working directory and changing the newspost parameter at the end
    - I've modified the script to include the PID ($$) in the working directory and in the subject, so that you can recognize the post and run multiple instances at the same time.
    - the script can't handle spaces in a directory (and maybe file) name. See below. That's strange, because 'basename' itself can handle it. I don't know the solution; I'm not a bash guru (maybe just some extra quotes or parentheses?)


    Code:
    sander@athlon64:~/newspost2$ ./postenmaar.sh /home/sander/spaties\ in\ deze\ directory\ naam/
    basename: extra operand `deze'
    Try `basename --help' for more information.
    
    RAR 3.90 beta 2   Copyright (c) 1993-2009 Alexander Roshal   3 Jun 2009
    Shareware version         Type RAR -? for help
    
    Evaluation copy. Please register.
    
    Cannot open /home/sander/spaties
    No such file or directory
    Cannot open in
    No such file or directory
    Cannot open deze
    No such file or directory
    Cannot open directory
    No such file or directory
    Creating archive /home/sander/postenmaar-temp/.rar
    
    WARNING: No files
    sander@athlon64:~/newspost2$

    [/CODE]

  10. #30
    Join Date
    Aug 2010
    Beans
    1

    Re: HOWTO: post to usenet with Ubuntu

    Unfortunately newspost doesn't have NZB support.

    After asked around I found out about newsmangler. It supports multiple connections and nzb creation.

    https://github.com/madcowfred/newsmangler

Page 3 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
  •