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 30, 2005 #261 of 2880
    salvatore

    salvatore New Member

    72
    0
    Jun 7, 2004
    Tallahassee,...
    Potentially dumb question: should one reboot after running the uninstall script? Reading through it's syntax reveals a reboot isnt strictly necessary, save for the restore of the splash screen, but rater safe than pulling the drive. :)
     
  2. Aug 30, 2005 #262 of 2880
    rbautch

    rbautch User

    3,629
    0
    Feb 5, 2004
    Chicago, IL
    You are correct. Reboot is not necessary after uninstall, except it would bring back the old splash screen and .profile. Since you'll be putting those things back when you reinstall, a reboot is not necessary.
     
  3. Aug 30, 2005 #263 of 2880
    regicat

    regicat New Member

    55
    0
    Dec 19, 2002
    California
    marklyn, if you exactly followed my instructions on the previous page this would all work fine. You did not have to mess with the author file, although deleting the lines makes it "cleaner". It sound like the author file is messed up. It could be as simple as using the right editor or trying dos2unix. That would be the first place I look. But since you no longer have telnet you will need a serial cable or pull the drive and boot to ptvnet cd and run dos2unix.
     
  4. Aug 30, 2005 #264 of 2880
    salvatore

    salvatore New Member

    72
    0
    Jun 7, 2004
    Tallahassee,...
    Success!

    The first install didnt execute properly due to this issue. Im using Putty to telnet directly to the Tivo and it sends two carriage returns instead on one with each single press of the 'Enter' key. When I use Putty to SSH to my linux box and then telnet from there, there's only one CR sent each time.

    When I was telnetting to the Tivo itself the script would accept my first 'y' response and receive a CR for the second, chosing the else path on the if statement. Using SSH first and telnetting from one of my linux machines worked as expected.

    The only issue I ran into relates to the .profile entry for the 'root' command. It sets the alias to 'vi /etc/spool/cron/crontabs/root' instead of 'vi /var/spool/cron/crontabs/root. Manually edited the alias, logged out and back in, and all is well again.

    Thanks for your help; this script is an awesome piece of work.
     
  5. Aug 30, 2005 #265 of 2880
    rbautch

    rbautch User

    3,629
    0
    Feb 5, 2004
    Chicago, IL
    I wish I could fix that CR/LF issue, but it looks like it has to be handled on the user's side. Sorry about the profile. I'll fix that right up.
     
  6. Aug 30, 2005 #266 of 2880
    marklyn

    marklyn Member

    457
    0
    Jan 21, 2002
    Austin
    a BIG thanks to rbautch for providing me with extensive assistance during this process.
    My confusion was with a upgrade to an existing image with PTVnet installalled. The initial install script (rbatuch's) appeared to work ok but then I lost connectivity with my HDVR2... turns out that my rc.sysinit.author file had control M's throughout it and, even though I manually cleaned that file, I ended up putting a new 6.2 image on, installing PTVnet (without tivowebplus) and then installing rbautch's 1.2.1 script from there.

    All in all I finally got it working but it was never the install script, it was more my lack of experience and understanding in unix and the script files. I'm certainly no expert but I definitly know a ton more than I did 24 hours ago and hopefully I can pass the help on to someone else one day when help was given to me.
     
  7. Sep 2, 2005 #267 of 2880
    fredfillis

    fredfillis Linuxly Challenged

    108
    0
    Sep 25, 2002
    DC Area
    rbautch, thanks again for the awesome job you've done with this script. I have a question though.

    Why would you put tivowebplus into /var/hack ?

    I've only had my unit up for a month and have already tivo has reconstructed /var once. Backing up the entire /var via FTP is not a very practical solution I have found although I probably only really need /var/hack and /var/mfs_ftp. My FTP client chokes badly on some of the mfs_ftp files.

    Anyway, just interested if there is a reason for installing into var.
     
  8. Sep 2, 2005 #268 of 2880
    rbautch

    rbautch User

    3,629
    0
    Feb 5, 2004
    Chicago, IL
    I'm not an expert on where to store hacks. I believe the best way is to create a special partition for hacks, but I've never tried that, and it's well beyond the capabilities of the script. Barring that option, I'd appreciate some advice if anyone knows for sure where the best place to store hacks is. What I do know is that when /var gets full, /var gets wiped. When I type "df" at bash, it shows that I have much more room in /var than in root, so I put TWP in /var/hack. Even after I install TWP, I still have plenty of room in /var. I suppose I could delete the backup tivoapp that superpatch creates, then I'd free up more space in root.
     
  9. Sep 2, 2005 #269 of 2880
    BTUx9

    BTUx9 back?

    1,596
    0
    Nov 13, 2003
    Rockport, MA
    the issue is seldom space in root... because of how it's designed, the tivo will happily run even if you use up ALL the extra space there.

    Tivo designed the box to be an appliance... they didn't want any of the running software to be corrupted, so they left root readonly. They were using ext2, a non-journaled filesystem, so rather than trying to have linux FIX any errors in var, they just clobbered and rebuilt if var had any serious errors.

    So, if you keep important stuff in var, there's always a chance of it being wiped (unless you change the startup scripts... non-trivial)
    If you keep root read-write, then you run the risk of serious corruption (even though it's fairly unlikely because the things that are being changed aren't crucial to the tivo's functioning) or, more likely, space disappearing. Running e2fsck regularly on root is suggested, if it's rw.

    re: special partition for hacks... it works, and works well, but has 2 problems.
    1) carving out the space initially... especially difficult if you don't create a bunch of extra space for it in the swap partition when you mfsrestore
    2) won't be backed up with mfsbackup
     
  10. Sep 2, 2005 #270 of 2880
    rbautch

    rbautch User

    3,629
    0
    Feb 5, 2004
    Chicago, IL
    Very interesting, thanks. I have always found this a difficult subject to search on.
     
  11. Sep 2, 2005 #271 of 2880
    bnm81002

    bnm81002 New Member

    1,799
    0
    Oct 2, 2004
    that's great information guys but where should the "hacks" be stored at then, no one really answered this, thanks
     
  12. Sep 2, 2005 #272 of 2880
    BTUx9

    BTUx9 back?

    1,596
    0
    Nov 13, 2003
    Rockport, MA
    1) in /var -- could be wiped out, can't get too full
    2) in / -- might cause corruption, not as easy to xfer when upgrading
    3) in another partition -- very easy to xfer after upgrade but you need to steal space from somewhere to create the partition (usually a very large swap), won't be backed up with mfstools

    3 places, advantages and disadvantages to each... it's a decision you have to make for yourself
     
  13. Sep 2, 2005 #273 of 2880
    bnm81002

    bnm81002 New Member

    1,799
    0
    Oct 2, 2004

    hmmm, sounds to me that a new thread with a "poll" about this should be started
     
  14. Sep 3, 2005 #274 of 2880
    Human123

    Human123 DTivo TakeitOrLeavo

    165
    0
    Jun 9, 2003
    My opinion is this is a balancing act also. What might be a nice future add-on to Rbautchs script, would be a auto backup of the important parts of /var much as he does the log archive.
     
  15. Sep 3, 2005 #275 of 2880
    BTUx9

    BTUx9 back?

    1,596
    0
    Nov 13, 2003
    Rockport, MA
    problem is space... if you put it in var, you may trigger a cleanup on next boot
     
  16. Sep 3, 2005 #276 of 2880
    Human123

    Human123 DTivo TakeitOrLeavo

    165
    0
    Jun 9, 2003
    Aren't there hacks that need the R/W...Hackman for instance.
    Maybe hacks that need R/W on /var and the rest is folders on the root???
     
  17. Sep 3, 2005 #277 of 2880
    fredfillis

    fredfillis Linuxly Challenged

    108
    0
    Sep 25, 2002
    DC Area
    Based on my own experience and reading on the other forum I tried to tar the var and then transfer to the PC for safekeeping. Appeared to create a corrupt file. So then I did this number.

    Code:
    cd /var
    tar czf var_hack.tar.gz hack
    tar czf var_mfs_ftp.tar.gz mfs_ftp
    Then FTP'd both to my PC and then deleted them from /var

    AFAIK, there is nothing else in var that I need to be worried about (or is there???). tnlited is in /sbin and tivoftpd is in /busybox. So if I lose my /var I should still have ftp and telnet and I can just untar the two files and be good to go (fingers crossed).

    Code:
    cd /var
    tar zxvf var_hack.tar.gz
    tar zxvf var_mfs_ftp.tar.gz
     
  18. Sep 7, 2005 #278 of 2880
    mgmrick

    mgmrick Haven't broke yet

    399
    0
    Aug 28, 2002
    Port Byron...
    I keep losing Rbautch's script on 1 of 4 tivos. The 1 tivo is showing Tivowebplus project -v1.1-pre2 while my other tivos show Tivowebplus project -v1.2.1. . When I reboot the messed up tivo the new splash screen is there but the old version of tivowebplus. The tweak files (tweak.sh and the uninstall file) are no longer on the hard drive. This hard drive was built using instant cake and then call in to upgrade to 6.2. If that has any thing to do with it. I have looked all over that hard drive and can not find the tweak.sh file.

    Thanks
    Rick
     
  19. Sep 7, 2005 #279 of 2880
    BTUx9

    BTUx9 back?

    1,596
    0
    Nov 13, 2003
    Rockport, MA
    sounds like you have another version of TWP installed that's getting run before the version from rbautch's script.
    There's a good chance it's a tpm, so look in dir /etc/tpm for an uninstall script and run it if it's there.
     
  20. Sep 7, 2005 #280 of 2880
    mgmrick

    mgmrick Haven't broke yet

    399
    0
    Aug 28, 2002
    Port Byron...
    I can not find dir /etc/tpm. I did find dir /etc and dir /tpm and no uninstall in either dir. Tivo just rebooted and all is right again, for now.

    The right version of tivowebplus is running and the fake call is running right. I was also getting error on fake call (no dial tone).

    Any other places to look for another version?

    Thanks
    Rick
     

Share This Page