Hackman -- A Hack Manager module for TivoWeb

Discussion in 'TiVo Underground' started by PortlandPaw, Apr 11, 2004.

  1. Dec 6, 2004 #381 of 1645
    m1fly

    m1fly New Member

    7
    0
    Nov 24, 2004
    Caldicot UK

    Advertisements

    Don’t quote me (I haven't got it running either) but I think your directory structure is incorrect.
    See my previous post titled “install errors” and the readme.

    “TivoWeb 1.9.4 users will have to create these directories (/bin_mips and /bin_ppc) under the TivoWeb directory on the same level with /modules and /images.”

    I always start tivoweb with this command
    tivoweb console
    Errors and messages are sent to the console.

    Hope this helps.?
     
  2. Dec 6, 2004 #382 of 1645
    bobbob20

    bobbob20 New Member

    45
    0
    Feb 11, 2003
    To reiterate the tree structure you're trying to use, it should look like this:
    /var/hack/tivoweb-tcl/bin_mips/
    /var/hack/tivoweb-tcl/bin_ppc/
    /var/hack/tivoweb-tcl/images/
    /var/hack/tivoweb-tcl/modules/
     
  3. Dec 6, 2004 #383 of 1645
    PortlandPaw

    PortlandPaw Woodstock-era Hacker

    1,057
    0
    Jan 11, 2004
    Chebeague...
    Shut down TivoWeb and start in manually as you've done before, but instead of using tivoweb &, do tivoweb console. Watch for error messages as it tries to load hackman and report them back here.

    OR, look at the last batch of entries under tivoweb.log in the logs module. The same errors should be reported there from the last load(s).
     
  4. Dec 6, 2004 #384 of 1645
    PortlandPaw

    PortlandPaw Woodstock-era Hacker

    1,057
    0
    Jan 11, 2004
    Chebeague...
    None of this makes any sense, whatsoever. I suggest removing ALL of the hackman stuff, the .ini, the .cfg, the .itcl and reinstalling it. I think it's the old .ini file, but wipe out everything, just to be sure.
     
  5. Dec 6, 2004 #385 of 1645
    PortlandPaw

    PortlandPaw Woodstock-era Hacker

    1,057
    0
    Jan 11, 2004
    Chebeague...

    Advertisements

    I don't mind...looks kinda cool. Strange, though, to see this thing I've been working on for nine months take on a totally different look!

    Thanks for the contribution.
     
  6. Dec 6, 2004 #386 of 1645
    hobiecat

    hobiecat New Member

    4
    0
    Dec 6, 2004
    - - - - - - - - - - - - - - - - - - - - - - -
    Directories are OK (the tabs in my last post 'got eaten' and messed the formatting up)
    Executed 'tivoweb console' as instructed: Here's the messages. It's exactly the same as the m1fly error message in this thread. (misery does love company)
    ==============
    hackman
    couldn't open "/etc/rc.d/rc.sysinit.author": no such file or directory
    can't read "data": no such variable
    NONE can't read "UseCfg": no such variable
    while executing
    "if {!$UseCfg} {
    if {$series1} {set find $source_dir/bin_ppc/find} else {set find $source_dir/bin_mips/find}
    for {set i -1} {$i < 33} {incr i} {
    ..."
    (file "./modules/hackman.itcl" line 259)
    invoked from within
    "source $module "
    ==============
    The rest of the modules load as expected, followed by 'Accepting Connections'.

    I do not currently have an /etc/rc.d/rc.sysinit.author file.
    Should I create one? What to put in it?
    My rc.sysinit file points to /var/hack/etc/hacks_callfromrc.sysinit
    This from the original Keegan install script

    Thanks for any input
     
  7. Dec 7, 2004 #387 of 1645
    hobiecat

    hobiecat New Member

    4
    0
    Dec 6, 2004
    Took a look once again at the error message and hackman.ictl

    I guessed that hackman.ictl is expecting the hacks stuff to reside in rc.sysinit.author

    However, my hacks are in /var/hack/etc/hacks_callfromrc.sysinit (thanks to the Keegan 'Hacking Tivo' book/CD).

    So in hackman.ictl, I replaced all occurrences of 'rc.sysinit.author' with
    '/var/hack/etc/hacks_callfromrc.sysinit'

    Did a "restart/quit" in tivoweb

    NOW IT WORKS!!!

    note to user m1fly: You had the same error message. Same solution too?

    Thanks to PortlandPaw for getting me on the right track.

    Awsome!!
     
  8. Dec 7, 2004 #388 of 1645
    hobiecat

    hobiecat New Member

    4
    0
    Dec 6, 2004
    let me correct a type in my last post:

    I posted:
    So in hackman.ictl, I replaced all occurrences of 'rc.sysinit.author' with
    '/var/hack/etc/hacks_callfromrc.sysinit'

    I should have posted:
    So in hackman.ictl, I replaced all occurrences of '/etc/rc.d/rc.sysinit.author' with
    '/var/hack/etc/hacks_callfromrc.sysinit'

    Guess sleep would be a good idea right now
     
  9. Dec 7, 2004 #389 of 1645
    m1fly

    m1fly New Member

    7
    0
    Nov 24, 2004
    Caldicot UK
    I am confused.

    Currently I have few hacks installed, Only tnlited is started from my rc.sysinit
    I do not have a rc.sysinit.author file.
    Should I create this file?
    What should be in it?

    Correct me if I am wrong but I though hackman will create this file if you want the hack to start at boot.

    Message to PortlandPaw

    Thanks for you previous post, Just to let you know I deleted all hackman related files (Except images ) before installing 3.1.4 so it is not an old .ini .cfg file.

    I have noticed that my /var/hack/tivoweb-tcl directory has user and group set
    drwxrwsr-x 6 1000 1000 1024 Dec 2 22:03 tivoweb-tcl

    I thought tivo ignores this, once I have worked out how to change it I will try again.
    Chown and chgrp give me invalid option.

    PS How sould I force hackman to use the hackman.cfg file?

    Regards Richard.
     
  10. Dec 7, 2004 #390 of 1645
    PortlandPaw

    PortlandPaw Woodstock-era Hacker

    1,057
    0
    Jan 11, 2004
    Chebeague...
    Congratulations! You have now successfully edited hackman to edit hacks_callfromrc.sysinit instead of rc.sysinit.author. But, judging from the error message, what really got you going was starting hackman with the old hackman.ini file deleted, allowing hackman to create a fresh and correct .ini file. This appears to be the major problem with upgrading.
     
  11. Dec 7, 2004 #391 of 1645
    beejaycee

    beejaycee New Member

    146
    0
    Dec 9, 2003
    N'Awlins
    Can anyone give me an idea on this error? I am running a killhdinitrd version of 4.0.1b. TivoWebPlus is running but I'm having problems with Hackman. I went to tivoweb.log and see this segment:
    I have chmod 755'ed "find," so I'm lost. TIA
     
  12. Dec 7, 2004 #392 of 1645
    PortlandPaw

    PortlandPaw Woodstock-era Hacker

    1,057
    0
    Jan 11, 2004
    Chebeague...
    Now's as good as time as any to try this to see if it helps. Please unzip the file and install in place of the find in your bin_mips directory. Then report back. Thanks!

    NOTE: This mips version of find was obtained from Mark Abramowitz and is much smaller than the current version bundled w/hackman and (if we're lucky) less buggy.
     

    Attached Files:

  13. Dec 7, 2004 #393 of 1645
    beejaycee

    beejaycee New Member

    146
    0
    Dec 9, 2003
    N'Awlins
    Thanks for the quick response. Okay, unzipped, reinstalled in the bin_mips directory, "chmod 755 find", did a full reload, and still no hackman. Next did a "quit" and restarted via telnet ("cd /var/local/tivoweb-tcl" and "tivoweb"). I still don't have hackman in TivowebPlus so I checked the tivoweb.log and in the loading modules section, I got:
    With WS_FTP, I can't find /etc/init.d or /etc/tpm. However, when I telnet to /etc, I see both.
     
  14. Dec 7, 2004 #394 of 1645
    PortlandPaw

    PortlandPaw Woodstock-era Hacker

    1,057
    0
    Jan 11, 2004
    Chebeague...
    Well, at least the errors are consistent. I have no idea why this is showing up on some boxes but not on others (certainly not on mine). I don't have an S2 to experiment with, so could you try this:

    Find the lines with code such as you see in the error message (should be around line 267) in hackman.itcl. To each of them, add in "-path ./etc -prune -o" in a logical middle position. Then save hackman.itcl (make sure you're in UNIX not DOS format) and copy it to the TiVo. No need to chmod. Then reload.

    See if that gets you started. If so, I'll modify the rest of hackman to deal with that exclusion as well as the other paths that aren't being searched.
     
  15. Dec 7, 2004 #395 of 1645
    directivo165

    directivo165 New Member

    60
    0
    Jul 22, 2004
    i just wanted to chime in, and tell you what a nice program you have written. im sure it took a lot of time and effort and i wanted to thankyou.
     
  16. Dec 7, 2004 #396 of 1645
    m1fly

    m1fly New Member

    7
    0
    Nov 24, 2004
    Caldicot UK
    RE: Install Errors.

    Thanks for the support.

    I set the user and group back to 0:0 on the tivoweb-tcl directory, didn't make an differance.

    Its working now.

    I created a rc.sysinit.author file with the line #!/bin/bash and set the file to be executable.

    I haven't rebooted TiVo yet so not sure if will boot correctly since the mod.

    Looks like a handy tool, Thanks Portlandpaw!

    The way I interpreted the readme was that the rc.sysinit.author would be created by hackman.

    Regards Richard.
     
  17. Dec 7, 2004 #397 of 1645
    PortlandPaw

    PortlandPaw Woodstock-era Hacker

    1,057
    0
    Jan 11, 2004
    Chebeague...
    Thanks m1fly and directivo165. I'll see if I can't make the readme a little more clear.

    As for the resources, this is to assist in using the Resources module, which allows you to change various labels and menu items. Do a google on "TiVo Resources" for more information.
     
  18. Dec 7, 2004 #398 of 1645
    beejaycee

    beejaycee New Member

    146
    0
    Dec 9, 2003
    N'Awlins
    Thank you for spending this much time on this for me. I opened hackman.itcl with lemmy and starting at line 266:
    I guess I don't understand what I'm doing but that code is already within the code block. I'm going to uninstall it all and examine what I did when I installed it to see if I did something dumb.
     
  19. Dec 7, 2004 #399 of 1645
    PortlandPaw

    PortlandPaw Woodstock-era Hacker

    1,057
    0
    Jan 11, 2004
    Chebeague...
    So it is...now I'm more confused than every, since that command theoretically prevents the search from going down the .etc path...and yet, that's where the error lies. Have you tried that standard fix-all, the re-boot?
     
  20. Dec 7, 2004 #400 of 1645
    beejaycee

    beejaycee New Member

    146
    0
    Dec 9, 2003
    N'Awlins
    I've rebooted with the same results. Strangely enough, I have two DTivos, both Hughes HDVR2s, both bought at the same time, both hacked with the same 4.0.1b image, both killhdinitrd'ed, both have the same hacks applied EXCEPT one has a 160 gig drive (using 137 gigs) and one has a 80 gig drive. The 80 gig is running Hackman perfectly.:confused:

    The only obvious difference I can see between my 2 DTivos, other than the hard drive sizes, are a couple of differences in rc.sysinit.author. On the DTivo that won't run Hackman, TivoWebPlus is called before the "sleep 300" and is also before the Tivo Package Manager scripts are called. Next I'll copy the rc.sysinit.author from the working Tivo to the problem child and see what happens. Still, I'm restarting TivoWebPlus well after everything is up and running so that shouldn't be a problem.
     

Share This Page

spam firewall

Advertisements