TiVo Community Forum banner
1 - 20 of 1645 Posts

·
Woodstock-era Hacker
Joined
·
1,057 Posts
Discussion Starter · #1 ·
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.
 

·
Dark side Nrth Devon
Joined
·
523 Posts
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?
 

·
Woodstock-era Hacker
Joined
·
1,057 Posts
Discussion Starter · #3 ·
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.
 

·
Registered
Joined
·
837 Posts
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--
 

·
Mouse Master
Joined
·
11,430 Posts
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.'
 

·
A Friend of Dot
Joined
·
752 Posts
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
 

·
Woodstock-era Hacker
Joined
·
1,057 Posts
Discussion Starter · #9 ·
Originally posted by David Platt
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.'
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.
 

·
Registered
Joined
·
5 Posts
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!
 

·
Woodstock-era Hacker
Joined
·
1,057 Posts
Discussion Starter · #13 ·
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.
 

·
Woodstock-era Hacker
Joined
·
1,057 Posts
Discussion Starter · #16 ·
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.
 

·
Registered
Joined
·
837 Posts
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)
 

·
Woodstock-era Hacker
Joined
·
1,057 Posts
Discussion Starter · #19 ·
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.
 

·
Registered
Joined
·
837 Posts
Originally posted by PortlandPaw
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.
Hopefully someone will have an idea what to try ;)

Fozzie, I assume you're running something other than 1-SA. If you're on a 1-SA, I'm really stumped!
Mine is a Series 1 SA (UK model running 2.5.5 software).

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.
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.
 
1 - 20 of 1645 Posts
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top