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

Enhance Your Hacked Tivo With This Script

Discussion in 'TiVo Underground' started by rbautch, Jul 21, 2005.

  1. Aug 29, 2005 #241 of 2880
    Fofer

    Fofer XenForo Rocks! TCF Club

    82,881
    515
    Oct 29, 2000
    I'm learning so much more about the intricacies and fun of TiVo hacking, thanks to rbautch's script. I've read so much and tinkered away, his script has been a real help and has removed lots of the anxiety. Thanks again, rbautch! (and Gunnyman too :) )

    This may have been covered before but I couldn't find it... I am curious to know the rationale behind launching TWP via the TWPrun.sh script (which in turn runs the "/var/hack/tivowebplus/tivoweb console &" command.) Why not just run it directly? I'm sure there's a smart reason behind it. No difference to me, really, as everything works great for the most part, but I did notice that HackMan seems to think TWP isn't launching as a result of my startup lines in rc.sysinit.author, when in fact it is. It just doesn't recognize TWPrun.sh as a valid way of launching it.

    So any background on this will be enlightening.
     
  2. Aug 29, 2005 #242 of 2880
    Fofer

    Fofer XenForo Rocks! TCF Club

    82,881
    515
    Oct 29, 2000
    After we run the script (or uninstall and upgrade) and everything's running well, can we remove the tweak.sh, tweak-uninstall.sh, and rbautch-files.tgz files? Or are we supposed to leave them?
     
  3. Aug 29, 2005 #243 of 2880
    marklyn

    marklyn Member

    457
    0
    Jan 21, 2002
    Austin
    OK, got that, I'll delete all of those lines and install your script...
    couple of more questions...
    when I delete the folders and go to install your script, do I answer yes/no to the 'do you have tivo web plus installed?'

    I also assume that I say 'yes' to wanting to install it since that question means to install your script, correct?

    Finally, do I need to restart once the script installs to start your TWP script?

    thanks
     
  4. Aug 29, 2005 #244 of 2880
    rbautch

    rbautch User

    3,629
    0
    Feb 5, 2004
    Chicago, IL
    Answer no you don't have it, and yes you want to install it. Reboot when done. If you started the script and prematurely exited, you need to run the uninstall script before you try again.
     
  5. Aug 29, 2005 #245 of 2880
    marklyn

    marklyn Member

    457
    0
    Jan 21, 2002
    Austin
    I just noticed in the script that it looks for the flag: FLAG_SWAP TIVONET ON & FLAG_SWAP TIVONET-PRE2 ON

    I'm guessing that I don't need to remove those flags from the ptv_flags folder, probably doesn't matter since they're not being referenced by me deleting that part of the script, right?
     
  6. Aug 29, 2005 #246 of 2880
    rbautch

    rbautch User

    3,629
    0
    Feb 5, 2004
    Chicago, IL
    Tivonet is an ethernet interface for Series 1 Tivos. I'm not sure what the script (in the author file?) is doing, but likely you don't need the flags. If you're deleting the corresponding lines in the author file, then you're right it doesn't matter.
     
  7. Aug 29, 2005 #247 of 2880
    marklyn

    marklyn Member

    457
    0
    Jan 21, 2002
    Austin
    I followed the instructions as best as I can see to the letter and the install appears to have gone well. I then issued the restart command and now my tivo is stuck at a 'dell' screen... I can still telnet to the HDVR2 but can't ftp or browse to it...

    Any ideas?
     
  8. Aug 29, 2005 #248 of 2880
    rbautch

    rbautch User

    3,629
    0
    Feb 5, 2004
    Chicago, IL
    What's the dell screen? Without a serial cable it's tough to troubleshoot a boot problem. Try rebooting again.
     
  9. Aug 29, 2005 #249 of 2880
    marklyn

    marklyn Member

    457
    0
    Jan 21, 2002
    Austin
    Now I'm nervous. There is a 'intel inside' logo combined with Dell splash screen, almost like an ad... No idea where it came from...


    I will restart from bash again, if that doesn't work, should I unplug and plug back in?
     
  10. Aug 29, 2005 #250 of 2880
    Gunnyman

    Gunnyman Just a boring dude

    30,798
    12
    Jul 10, 2003
    !Texas
    was your tivo HD hacked with a DELL PC? and was the Tivo drive the onbly drive hooked up in the machine when you hacked it?
     
  11. Aug 29, 2005 #251 of 2880
    rbautch

    rbautch User

    3,629
    0
    Feb 5, 2004
    Chicago, IL
    Never heard of getting a Dell splash screen. The fact that you can Telnet is equally wierd. Please post the contents of your author file. You might try to put back some of the stuff you deleted. If worst comes to worst, you'll have to pull the drive and hack it from an image.
     
  12. Aug 29, 2005 #252 of 2880
    marklyn

    marklyn Member

    457
    0
    Jan 21, 2002
    Austin
    No, this was a brand new tivo drive which had a new 6.2 image put on it from PTVupgrade.com and then I added the PTVnet cd which gave me the networking options...

    I followed the instructions posted a page earlier in this thread to upgrade to Tivowebplus 1.2.1 and followed them to the letter.

    The last thing I did at a bash prompt was issue a restart and when I walked to the next room to look at the tv screen there was a "intel inside" logo up with a dell web address and some other stuff. Can't explain it. I issued another restart with no change.

    Then I finally unplugged it. Now my tivo is back up and I can watch tv but I can't ftp, telnet or browse to it anymore.

    I'm screwed, ain't I...
     
  13. Aug 29, 2005 #253 of 2880
    Fofer

    Fofer XenForo Rocks! TCF Club

    82,881
    515
    Oct 29, 2000
    An "intel inside" logo? That can't be from the TiVo software, unless someone hacked in a replacement splash image?

    I'm thinking your TiVo crashed and was just frozen on a Dell commercial. Maybe?
     
  14. Aug 29, 2005 #254 of 2880
    marklyn

    marklyn Member

    457
    0
    Jan 21, 2002
    Austin
    that sounds reasonable actually.
     
  15. Aug 30, 2005 #255 of 2880
    rbautch

    rbautch User

    3,629
    0
    Feb 5, 2004
    Chicago, IL
    This happened to me a few times when I was trying to come up with replacement splash screens. Tivo is very picky about the exact pixel density and size of replacement images. All the more reason you should hack it from scratch, and then run the script.
     
  16. Aug 30, 2005 #256 of 2880
    mgmrick

    mgmrick Haven't broke yet

    399
    0
    Aug 28, 2002
    Port Byron...
    Rbautch,

    Just uninstalled your previous script and installed your newest one. Four tivos not one problem, thanks

    Rick
     
  17. Aug 30, 2005 #257 of 2880
    salvatore

    salvatore New Member

    72
    0
    Jun 7, 2004
    Tallahassee,...
    First, many many thanks for this great piece of work. Nicely done, to be sure.

    Bullet time:
    * Philips DirecTivo DSR704
    * Hacked with 6.2
    * Western Digital 160gb HDD
    * Ver 2.2 of tweak.zip from http://www.mastersav.com/tivo_tweak.html

    It appears as though the only issues I have is with the crontab file executing on schedule. I had crond previously installed in /tivo-bin, as well as had an existing root crontab in /var/spool/cron/crontab/. Your start.sh script has
    Code:
    if [ -d /var/spool/cron ]; then
    		echo "Existing cron installation detected in /var/spool/cron, skipping cron install..."
    		sleep 3
    , so the new crontab file was skipped altogether. Ive copied it to /var/spool/cron/crontab/root and verified crond is running, but the every five minute-write to /var/spool/cron/cronlogs/cron.test.out file isnt being updated as expected.

    Here's the root crontab file in its entirety:
    Code:
    ###############################################################################
    # crontab by rbautch for enhanced logging, better overall performance,        #
    # and elimination of TWP problems in 6.2 with "recording history", season     #
    # pass editing and other random problems that are fixed by restarting TWP     # 
    #              version 2.5 August 26, 2005                                    #
    ###############################################################################
    
    # Sample below creates a test file and updates it with current time and date
    # every 5 minutes -- use this for troubleshooting.
    # m h dom mon dow	command
    */5 * * * *	date >> /var/spool/cron/cronlogs/cron.test.out
    
    # stop Tivowebplus every night at 3:14am cst
    14 9 * * * wget -O /dev/null "http://127.0.0.1/quit"; echo "`date` TWP stopped" >> /var/spool/cron/cronlogs/CRONLOG-MAIN
    
    # Start Tivowebplus every night at 3:15am cst
    # TWPrun.sh created on the fly by enhancement script
    15 9 * * * /enhancements/TWPrun.sh; echo "`date` TWP started">> /var/spool/cron/cronlogs/CRONLOG-MAIN
    
    # Tarball the logs before deleting them, every Sunday night at 3:16am cst
    16 9 * * 1 tar -czvf /LOG_ARCHIVE.$(date +\%m\%d_\%H:\%M).tgz /var/log/*
    
    # Delete the LOG_ARCHIVE files every three months
    18 9 * 1-12/3 * rm /LOG_ARCHIVE*; echo "`date` LOG_ARCHIVE deleted">> /var/spool/cron/cronlogs/CRONLOG-MAIN
    
    # Wipe the logs every Sunday night at 3:18am cst
    18 9 * * 1 wipelogs; echo "`date` logs wiped" >> /var/spool/cron/cronlogs/CRONLOG-MAIN
    
    # Run fakecall every night at 3:20am cst
    20 9 * * * tivosh fakecall.tcl; echo "`date` fakecall made" >> /var/spool/cron/cronlogs/CRONLOG-MAIN
    
    # Delete the crond log files every 6 months
    22 9 * 1-12/6 * rm /var/spool/cron/cronlogs/*; echo "`date` cron logs wiped">> /var/spool/cron/cronlogs/CRONLOG-MAIN
    
    # Delete cron.test.out every night at 3:24am cst
    22 9 * * * rm /var/spool/cron/cronlogs/cron.test.out; echo "`date` cron.test.out deleted" >> /var/spool/cron/cronlogs/CRONLOG-MAIN
    
    # Reboot every Sunday night at 3:25am cst
    # Cleans things out for better performance if you have several hacks running
    # Also restarts logs, and allows fakecall to reset the last successful call indicator,
    # so your Tivo won't call home (fakecall doesn't update mfs entries without a reboot).
    # This allows you to keep your phone line connected for PPV ordering.  
    25 9 * * 1 reboot; echo "`date` SCHEDULED REBOOT" >> /var/spool/cron/cronlogs/CRONLOG-MAIN
    Notice the first executed line has */5 in the minute column instead of just five. I altered that line in my file to read
    Code:
    5 * * * *	date >> /var/spool/cron/cronlogs/cron.test.out
    but still get nothing in the cron.test.out file.

    Thoughts?
    My apologies if this has been discussed before; my searching didnt yield anything material.
     
  18. Aug 30, 2005 #258 of 2880
    rbautch

    rbautch User

    3,629
    0
    Feb 5, 2004
    Chicago, IL
    */5 is correct. I believe just "5" will run a task at 6:05, 7:05, 8:05, etc. In addition to copying crond and crontab, the script sets up some user definitions that allow cron to run properly. You have two options at this point: First option is to delete all your crontabs and crond binaries, run the uninstall script, and then re-rerun the script again. Second option is to manually create user definitions. Search for instructions by Alphawolf on DDB to do this. I also wrote a standalone script to do this automatically, and posted here on TCF somewhere. The crontab that I used with the script is old, so backup and restore your new one if you go this route.
     
  19. Aug 30, 2005 #259 of 2880
    rbautch

    rbautch User

    3,629
    0
    Feb 5, 2004
    Chicago, IL
    Awesome! Please note that when you run the uninstall script, it copies the rbautch-files.tgz archive back to the root directory, so you can install/uninstall the script over and over. If you copy the new script and archive to your root directory before uninstalling, the new file archive will get overwritten by the old one during the uninstall....not good. So, the moral of the story is: uninstall first, then copy the new script over. I'll fix this next time around.
     
  20. Aug 30, 2005 #260 of 2880
    salvatore

    salvatore New Member

    72
    0
    Jun 7, 2004
    Tallahassee,...
    Thanks for the good detail; I'll attempt an uninstall/reinstall this evening and report my results.
     

Share This Page