Page 2 of 40 FirstFirst 123412 ... LastLast
Results 11 to 20 of 399

Thread: HOWTO: NZB, PAR and UNRAR all-in-one

  1. #11
    Join Date
    Jun 2006
    Beans
    Hidden!

    Re: HOWTO: NZB, PAR and UNRAR all-in-one

    Thatnks, this is brilliant.

    However, does anyone know how I can set it up so that hellanzb.py loads up automatically at start up without a terminal window?

  2. #12
    Join Date
    Jun 2006
    Beans
    Hidden!

    Re: HOWTO: NZB, PAR and UNRAR all-in-one

    I created a little script that I put in /etc/init.d/hellanzb that uses the amazing screen.

    Code:
    #! /bin/bash
    #
    # hellanzb       Start the hellanzb.
    #
    
    
    NAME=hellanzb
    
    trap "" 1
    export LANG=C
    
    case "$1" in
      start)
        echo -ne "Starting $NAME"
        /usr/bin/screen -S $NAME -d -m /usr/bin/python /usr/bin/hellanzb.py > /dev/null 2> /dev/null
        echo "."
        ;;
    
      stop)
        killall hellanzb.py
        echo "."
        ;;
    
      reload)
        echo "."
        ;;
    
      reload-modules)
        echo "."
        ;;
    
      restart)
    #    $0 reload-modules
        $0 stop
        $0 start
        ;;
    
      force-reload)
        $0 reload-modules
        ;;
    
      *)
        echo "Usage: /etc/init.d/$NAME start|stop|reload|reload-modules|force-reload|restart}"
        exit 1
        ;;
    esac
    
    exit 0
    Then start it in runlevel 2-5.
    Code:
    ln -s /etc/init.d/hellanzb /etc/rc2.d/S20hellanzb
    ln -s /etc/init.d/hellanzb /etc/rc3.d/S20hellanzb
    ln -s /etc/init.d/hellanzb /etc/rc4.d/S20hellanzb
    ln -s /etc/init.d/hellanzb /etc/rc5.d/S20hellanzb
    So after Ubuntu start, go to this screen with
    Code:
    screen -R hellanzb
    leave it with
    Code:
    ctrl-a d
    Last edited by bugsbunny2002; June 7th, 2006 at 08:31 PM.

  3. #13
    Join Date
    Jun 2006
    Beans
    Hidden!

    Re: HOWTO: NZB, PAR and UNRAR all-in-one

    I type:

    screen -R hellanzb

    but all I get is a command prompt. Is it supposed to show the current progress when I do this?

  4. #14
    Join Date
    Jun 2006
    Location
    CT
    Beans
    26
    Distro
    Ubuntu 6.06

    Re: HOWTO: NZB, PAR and UNRAR all-in-one

    This is just awesome!! Thanks man
    Last edited by rbgCODE; June 9th, 2006 at 11:56 PM.

  5. #15
    Join Date
    Mar 2005
    Beans
    20

    Re: HOWTO: NZB, PAR and UNRAR all-in-one

    It's probably pretty obvious to most, but I got caught out blindly copying and pasting lol

    Step 8 should be:

    Code:
    sudo gedit /usr/etc/hellanzb.conf
    not

    Code:
    sudo gedit /usr/etc/hellanzb.conf.sample
    Anyway thanks for a great howto, just what I was looking for.

  6. #16
    Join Date
    Jun 2006
    Location
    CT
    Beans
    26
    Distro
    Ubuntu 6.06

    Re: HOWTO: NZB, PAR and UNRAR all-in-one

    n/m I found someone local to come over.
    Last edited by rbgCODE; June 9th, 2006 at 08:10 PM.

  7. #17
    Join Date
    Jun 2005
    Beans
    37
    Distro
    Dapper Drake Testing/

    Re: HOWTO: NZB, PAR and UNRAR all-in-one

    thanks

  8. #18
    Join Date
    Feb 2005
    Location
    Leeds UK
    Beans
    127
    Distro
    Kubuntu 6.10 Edgy

    Re: HOWTO: NZB, PAR and UNRAR all-in-one

    code 8 part 2 should read

    Code:

    /home/your-user-name/


    not


    Code:

    /home/your-user-name

    this is v good im well impressed

  9. #19
    Join Date
    Feb 2006
    Beans
    20
    Distro
    Ubuntu Breezy 5.10

    Re: HOWTO: NZB, PAR and UNRAR all-in-one

    python setup.py install

    just though id add that runnin the above command gave errors, so i had to run it as:

    sudo python setup.py install


  10. #20
    Join Date
    Feb 2006
    Beans
    20
    Distro
    Ubuntu Breezy 5.10

    Re: HOWTO: NZB, PAR and UNRAR all-in-one

    Also that screen doesnt work for me ? Just says new screen then ends? Back to the screen prompt
    Last edited by TomH; June 9th, 2006 at 11:57 PM.

Page 2 of 40 FirstFirst 123412 ... LastLast

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
  •