1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Hackman -- A Hack Manager module for TivoWeb

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

  1. Apr 11, 2004 #1 of 1645
    PortlandPaw

    PortlandPaw Woodstock-era Hacker

    1,057
    0
    Jan 11, 2004
    Chebeague...
    Hack Manager is a plug-in module for TivoWeb and TivoWebPlus that allows the user to start and stop TiVo hacks, such as telnet, tivoftp, TiVo Control Station, TyStudio, tytools, cron, YAC, autospace, EndPadPlus, elseed, elseedyac, ccxstream, etc.

    Hackman also has the ability to edit startup scripts, including rc.sysinit, rc.sysinit.author and config files for other programs. NOTE: Please read the warnings about these features!

    Hackman includes support for xPlusz commands and backdoor codes as well as incorporating JJBliss's bufferhack, KeepUpTo and TCTimout utilities, and many other features.

    Hackman features
    • Starts and stops hacks in real time
    • Creates rc.sysinit.author files to simplify setting hacks to start when TiVo boots. One click and a hack is either added or removed from the startup sequence.
    • Can manage other start-up files such as hacks_callfromrcsysinit
    • Provides information about multiple start-ups and command conflicts
    • Executes backdoor commands such as setting 30-second skip
    • Sends backdoor commands to the TiVo at boottime
    • Provides a TivoWeb interface to execute xPlusz commands
    • Can switch between TivoWeb 1.9.4 and TivoWebPlus on the fly
    • Provides means to set root directory read-only or read-write
    • Sets startup parameters for EndPad, EndPadPlus, YAC and elseed
    • Support provided for TiVoVBI (closed-caption display)
    • Provides protection against reboot cycling caused by corrupted guide data
    • Remote reboot capabilities
    • Remotely executes bash command lines
    • Auto-configures itself -- no .cfg file to mess with!
    • A preference screen provides flexibility -- for example, password protection is optional, as is display of backdoor commands, bufferhacks, and the display of boot load items.
    • Set internal TiVo time and date -- helpful for an unsubbed Series 1 being used as a VCR
    • Copy active partitions to inactive partitions and flip, if needed
    • Customize the banner to say "Living Room" or "Bedroom" instead of "TivoWebPlus"
    • Adjust the time zone setting to allow for new DST start and end dates
    • On-line help
    • In development since 2004
    • Successfully tested on all TiVo models.
    CAUTION: Adding or removing hacks from the startup sequence will overwrite any previous rc.sysinit.author file. A backup copy will be made, but please look at the README and plan accordingly.

    Installation
    NEW! Simplified installation uses the TivoWebPlus Update module. Check the readme file in the hackman.tgz file or online (link in sig). Please do read the README!

    Support
    Click the "About Hackman" button and look for the other pop-up links for the various menu items. Upgrades and debugging information will be found on this and other informative TiVo forums.

    Acknowledgements
    My appreciation goes to sanderton, cojonesdetoro, JohnSorTivo, JJBliss, EvilJack, n4zmz, BTUx9, Stan Simmons and many others who have been particularly helpful in inspiring the hackman idea and providing assistance when I spun out on the learning curve. And thanks to everyone else who has contributed to TiVo programming and together have led the way.

    Here's a screen shot. If you like the theme I'm using, look here. I added the TiVo man and some local artwork.

    Downloading
    NOTE: Due to upload size limitations and a desire to consolidate postings, the latest version will be found here.
     
  2. Apr 12, 2004 #2 of 1645
    threadkiller

    threadkiller Dark side Nrth Devon

    523
    0
    Dec 12, 2002
    the hack looks useful, but when I try to run it I get this error

    hackman
    POSIX ENOENT {no such file or directory} couldn't execute "find": no such file o
    r directory
    while executing
    "exec find / -name ps -type f"
    (file "/var/hack/tivoweb-tcl/modules/hackman.itcl" line 27)
    invoked from within
    "source $module "
    index

    any Ideas?
     
  3. Apr 12, 2004 #3 of 1645
    PortlandPaw

    PortlandPaw Woodstock-era Hacker

    1,057
    0
    Jan 11, 2004
    Chebeague...
    Yep. I'm discovering what is and what isn't included on all TiVos. The "find" command is one of those things that is not. I'm going to pull that part out of the code. It is not necessary to run hackman.

    Sorry for the problem. Look for a fix later tonight.

    Update: Should be OK now. Please let me know if it works for you.
     
  4. Apr 13, 2004 #4 of 1645
    Fozzie

    Fozzie New Member

    837
    0
    Sep 3, 2001
    Alton,...
    Great idea :)

    Just tried the reboot option but got:

    INTERNAL SERVER ERROR
    --cut here--
    action_startstop '' 'set "ID" "868686P";set "pid" "868686P";'
    bad index "868686P": must be integer or "end"
    while executing
    "lindex $appnamelist $ID"
    (procedure "::action_startstop" line 71)
    invoked from within
    "::action_$action $chan $part $env"
    ("eval" body line 1)
    invoked from within
    "eval {::action_$action $chan $part $env}"
    --cut here--
     
  5. Apr 13, 2004 #5 of 1645
    PortlandPaw

    PortlandPaw Woodstock-era Hacker

    1,057
    0
    Jan 11, 2004
    Chebeague...
    Thanks, Fozzie, look for a fix tonight.
     
  6. Apr 13, 2004 #6 of 1645
    threadkiller

    threadkiller Dark side Nrth Devon

    523
    0
    Dec 12, 2002
  7. Apr 13, 2004 #7 of 1645
    David Platt

    David Platt !Texas TCF Club

    10,463
    5
    Dec 13, 2001
    Portland, OR
    This is a cool little add-on. It sure makes stopping and starting the processes a lot more convenient.

    After installing it last night, I woke up this morning to find my TiVowebplus (series 2 DirecTiVo) not responding. Not sure if it's related or not, but I've never had this problem before.

    There's also a problem with the reboot command on Series 2 machines (DirecTiVos, anyway)-- 'reboot' doesn't work on those boxes; you have to use 'restart.'
     
  8. Apr 13, 2004 #8 of 1645
    mike0151

    mike0151 A Friend of Dot

    752
    0
    Dec 13, 2001
    Liverpool,...
    Might I suggest adding a version number to the zip file name so that it is immediately obvious when there is a new version?

    Cheers

    Mike
     
  9. Apr 13, 2004 #9 of 1645
    PortlandPaw

    PortlandPaw Woodstock-era Hacker

    1,057
    0
    Jan 11, 2004
    Chebeague...
    Is the path to the reboot command /tvbin/restart? If not, what would it be?

    I don't think hackman could mess up tivowebplus. I've had it running for weeks on both tivoweb 1.9.4 and tivowebplus with no such problem. It lies pretty dormant until it's asked to do something.
     
  10. Apr 13, 2004 #10 of 1645
    David Platt

    David Platt !Texas TCF Club

    10,463
    5
    Dec 13, 2001
    Portland, OR
    It's /sbin/restart.
     
  11. Apr 13, 2004 #11 of 1645
    PortlandPaw

    PortlandPaw Woodstock-era Hacker

    1,057
    0
    Jan 11, 2004
    Chebeague...
    Thank you! There is an update posted now, with its own version number.
    Dave
     
  12. Apr 13, 2004 #12 of 1645
    The Soapbox Kid

    The Soapbox Kid New Member

    5
    0
    Feb 28, 2004
    This is a really cool module! Thanks!!

    One suggestion for future versions would be to create global directory variables (myTyTool is installed in /var/hack ... not /var/hack/tytool) and I had to make changes in three places. I certainly don't mind for something as cool as this ... but just a note.

    Thanks!
     
  13. Apr 14, 2004 #13 of 1645
    PortlandPaw

    PortlandPaw Woodstock-era Hacker

    1,057
    0
    Jan 11, 2004
    Chebeague...
    Thank you for the suggestion, Soapbox. That's a feature I tried to incorporate into hackman, but ran into difficulties. I agree it would be an improvement and will continue to try to make it work.

    UPDATE: Consolidated the paths into a single section in the latest version. And, Fozzie, thanks for the status report.
     
  14. Apr 14, 2004 #14 of 1645
    Fozzie

    Fozzie New Member

    837
    0
    Sep 3, 2001
    Alton,...
    Reboot working OK now on Series 1.
     
  15. Apr 14, 2004 #15 of 1645
    The Soapbox Kid

    The Soapbox Kid New Member

    5
    0
    Feb 28, 2004
    Awesome Portland!! Thanks ... much easier to install newer beta!!
     
  16. Apr 16, 2004 #16 of 1645
    PortlandPaw

    PortlandPaw Woodstock-era Hacker

    1,057
    0
    Jan 11, 2004
    Chebeague...
    The latest beta version (in the first post) has more information in the ReadMe, a more informative variables section in hackman.itcl, and alt tags for the buttons in case they aren't installed or graphics are suppressed. No other substantive changes.
     
  17. Apr 16, 2004 #17 of 1645
    Fozzie

    Fozzie New Member

    837
    0
    Sep 3, 2001
    Alton,...
    Stopping or Stop/Start Tivoweb doesn't work for me. I get the OK button but Tivoweb is still running. ps ax shows a new thread:

    /tvbin/http_get -U http://127.0.0.1:80/quit -D /tmp -T 0 -C
     
  18. Apr 16, 2004 #18 of 1645
    Fozzie

    Fozzie New Member

    837
    0
    Sep 3, 2001
    Alton,...
    Also got some problems running some shell commands. ls gives:

    INTERNAL SERVER ERROR
    --cut here--
    action_shell '&cmd&title' 'set "cmd" "ls";'
    /bin/bash: ls: command not found
    while executing
    "exec /bin/bash -c "ls && > /dev/null 2>&1 &" "
    ("uplevel" body line 1)
    invoked from within
    "uplevel "$cmds [string range $cmd [string length $cmd0] end] $args""
    (procedure "unknown" line 4)
    invoked from within
    "$command"
    (procedure "::action_shell" line 58)
    invoked from within
    "::action_$action $chan $part $env"
    ("eval" body line 1)
    invoked from within
    "eval {::action_$action $chan $part $env}"
    --cut here--

    Presumeably because ls is not in /bin/bash (it's actually in /var/hack/bin)
     
  19. Apr 16, 2004 #19 of 1645
    PortlandPaw

    PortlandPaw Woodstock-era Hacker

    1,057
    0
    Jan 11, 2004
    Chebeague...
    Fozzie, you're right about the shell calls. They are "false" calls in that none of the shell environment elements are set, such as aliases or paths. So if it's not a bash call or if the command lives elsewhere, you're going to have to specify the full path to make it work. I consider this to be kind of a long distance way to look at a quick shell call. If I have a lot of stuff to do, I'm better off just doing a telnet session.

    As for TivoWeb not shutting down, I don't know what the reason would be. That's been the accepted shutdown method that works without rebooting the TiVo. (Can't remember who to credit with figuring this out). It's worked every time for me on my Series 1 SA.

    If anybody has any ideas on how to implement this on other models, please let me know. Fozzie, I assume you're running something other than 1-SA. If you're on a 1-SA, I'm really stumped!

    P.S.
    I just did an ls from the shell command line with no problem. And mine is also in /var/hack/bin. I think the difference is that my path statement in the TiVo boot sequence includes /var/hack/bin. That's included in the /var/hack/etc/hacks_callfromrc.sysinit which is Jeff Keegan's methods for starting stuff without messing up rc.sysinit too much.
     
  20. Apr 16, 2004 #20 of 1645
    Fozzie

    Fozzie New Member

    837
    0
    Sep 3, 2001
    Alton,...
    Hopefully someone will have an idea what to try ;)

    Mine is a Series 1 SA (UK model running 2.5.5 software).

    Just checked and I've also got /var/hack/bin in the path (albeit in using a slightly different way - using a .profile file - but it's definitely in the path.)

    Post typing note - having just checked my path I thought I'd just try ls again and it works now! The only thing I've done since it not working is reboot Tivo so gremlins must have been at work! CD doesn't change directorys though - cd or cd .. gives an OK but then pwd shows I haven't changed directorys ?!

    It would be nice to solve the shutting down/restarting Tivoweb problem though because I've just put TWP on and would like to switch between them.
     

Share This Page