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. philwojo

    philwojo Member

    149
    0
    May 16, 2004
    Sw burbs of...
    So anyone else have any ideas why I can't run the dos2unix command?

    Phil
     
  2. rbautch

    rbautch User

    3,629
    0
    Feb 5, 2004
    Chicago, IL
    Confirm that you have the dos2unix binary in /busybox or wherever, then make sure that directory is in your PATH statement.
     
  3. rescue25

    rescue25 EntilZha Valen

    6
    0
    May 3, 2005
    Nothern KY
    I find this forum useful and but I just don't have the time to research all of the threads to find out the answer to my question. Well here we go. Why would I not want the phone line connected as I was under the impression that it was needed to get updates and to confirm service with the TIVO servers. Forgive my newbieness. But I thought I was pretty system savvy with Computers but as I have no experience with Linux I am a little spooked. I have purchased a maxtor 200gig drive to add to my tivo But I felt that I would feel more comfortable to wait until my warranty before I attempted to upgrade my unit. But then again I have a hard drive full of shows that I have recorded and have yet to be able to find the time to dump them to disk. I also have a toshiba PVR that I use to copy to and then edit out the commercials then burn to DVD. Where can I find a full primmer on Unix so I can get over my shyness. I have been building systems since the mid eightys but never had the time to learn other Operating Systems. Having to work in the real world of running my business and not much free time to have fun hacking. Would it be just easier and buy an extra hard drive from one of the vendors due to the lack of time??? As this is my most limited commodity. I love being to able to get into things and reworking them but I have to be realistic and say to myself time is money. My tivo works ok but in the end there is still not enough room on a single 80GIG.
     
  4. philwojo

    philwojo Member

    149
    0
    May 16, 2004
    Sw burbs of...
    rbautch, I looked and it seems that the dos2unix on the TIVO box as part of tivotools is tied in to the "busybox" file some how. I am somewhat new to unix, so I am not sure how to use this.

    I did find a Windows version of dos2unix, and tried that last night on my WIn XP machine, ran the dos2unix and then uploaded the new file to the tivo box, but still can't get it to work.

    Can anyone provide help on how to run the dos2unix command on the TIVO box that is tied to the busybox file.

    thanks,
    Phil
     
  5. Luv2DrvFst

    Luv2DrvFst New Member

    186
    0
    Nov 7, 2005
    rbautch, I discovered some "read only" versus "read/write" issues that you might want to fix in the crontab file. There are three command lines that require read/write access to properly execute:

    - the tar command that creates the LOG_ARCHIVE tarball each Sunday
    - the rm command that deletes the LOG_ARCHIVE tarballs every month
    - the rm command that deletes the seasonpass backups

    The simple way to fix it is to append "rw" at the beginning and "ro" at the end of each line. Or you could change the file location to be in /var (which I'm pretty sure is always mounted rw, right?). But then these files would get wiped if /var gets wiped. I just appended rw and ro.

    Another related issue. When backup_run.sh executes, it leaves the system mounted read/write. Not a big deal, but just to be safe, I added the line "mount -o remount,ro / " to the end of the file.
     
  6. tortio

    tortio New Member

    70
    0
    Jan 31, 2002
    Atlanta, GA
    Ah! good to know. I symlinked /var/spool/cronlogs to /var/log/cronlogs to work around this very thing. I like your fix better. Didn't even think of that!

    Thanks!
     
  7. rbautch

    rbautch User

    3,629
    0
    Feb 5, 2004
    Chicago, IL
    If you have a DirecTivo, all the guide information comes over the satellite, so there's no reason to have a phone line connected other than to get software updates (there wont be any) or PPV ordering. Google "Linux turorial" to get all the basic skills you need. If you don't have time or are unsure of yourself, you can also buy a pre-hacked drive from PTVupgrade. There's a link in the Zipper instructions.
     
  8. rbautch

    rbautch User

    3,629
    0
    Feb 5, 2004
    Chicago, IL
    Navigate to busybox and type ./dos2unix If nothing comes up, then maybe it's corrupted. Try FTPing a new copy of tivotools to your tivo. On my PC, I use an editor called Ultraedit, which has a dos-to-unix function built right in.
     
  9. philwojo

    philwojo Member

    149
    0
    May 16, 2004
    Sw burbs of...
    I don't think "busybox" is a directory, it is a file, with all of the other files, like dos2unix and other things, complied as part of it, or at least that is the best I can figure it.

    Maybe I will try and find your editor and use that to help me out.

    Phil
     
  10. rbautch

    rbautch User

    3,629
    0
    Feb 5, 2004
    Chicago, IL
    Good comments. I'll work these into the next release.
     
  11. pendragn

    pendragn Active Member

    12,090
    7
    Jan 21, 2001
    Ames Iowa
    It's both. Busybox is a directory on the root of the TiVo as well as a binary inside of that directory. The other commands in that directory are symlinks to the busybox binary. dos2unix is one of these commands. If you run busybox with no parameters it will tell you which functions it can do.

    tk
     
  12. philwojo

    philwojo Member

    149
    0
    May 16, 2004
    Sw burbs of...
    I've tried just typeing busybox in from the /tivo-bin directory and it tells me can't execute not a binary "or something close ot that".

    I have tried removing and recopying the tivotools.tar file over and running the cpio command on it several times now. I get that file from the DD web site, and I have been following the instructions on there.

    I thought I had a handle on what I was doing, and you seem to confirm that I do, just that something else appears to be wrong.

    I download that file as a xxx.tar.rar and then use winrar to uncompress it. Then I use filezilla to connect to my Tivo box and FTP it over to the /tivo-bin directory. I have even just put the tivotools.tar in the root then used the mv command to put it in /tivo-bin and when I run the cpio it appears to work. I then do an ll in the /tivo-bin directory and see a ton of files all linked to busybox, but I can not execute any of them.

    Again, sorry for my lack of knowledge on here, and I appreciate all of the help, any further help would be much appreciated as well.

    Phil
     
  13. pendragn

    pendragn Active Member

    12,090
    7
    Jan 21, 2001
    Ames Iowa
    I know my busybox binary and links are in /busybox, not /tivo-bin. If the links are hard coded to /busybox/busybox instead of ./busybox that might explain why they don't work.

    tk
     
  14. philwojo

    philwojo Member

    149
    0
    May 16, 2004
    Sw burbs of...
    So should I move everything to /busybox then (Creat that directory).

    Or should I do the cpio on tivotools.tar in the root? I am not sure that I follow how to get it in to a busybox directory.

    Phil
     
  15. pendragn

    pendragn Active Member

    12,090
    7
    Jan 21, 2001
    Ames Iowa
    If you do a ./busybox in /tivo-bin do you get the usage? If so it's probably ok and you could move it to /busybox and try to get it to work. I've not done the cpio route in years, but if you could use that to redo everything in /busybox instead of /tivo-bin that might work too.

    tk
     
  16. rbautch

    rbautch User

    3,629
    0
    Feb 5, 2004
    Chicago, IL
    I should work anywhere you put it. Can't execute binary file usually means that the tool was compiled for the wrong platform, e.g. you have a ppc binary (Series 1 Tivos) instead of mips (Series 2 Tivos). Another possibility is that you failed to use the "binary" mode of your FTP client.
     
  17. philwojo

    philwojo Member

    149
    0
    May 16, 2004
    Sw burbs of...
    I tried the ./busybox in the /tivo-bin dir and it still tells me cannot exec binary file.

    I erased the DIR and resent via filezilla, in forced binary mode now instead of auto, and then di the cpio command again

    cpio -i -H tar < tivotools.tar

    It completes and appears to uncompress all of the files if I do the ll i get a huge list of things here is a partial example:

    TIVO: {/tivo-bin} % cpio -i -H tar < tivotools.tar
    11908 blocks
    TIVO: {/tivo-bin} %
    TIVO: {/tivo-bin} % ll
    total 11937
    drwxr-xr-x 2 0 0 3072 Mar 15 01:59 .
    drwxr-xr-x 20 0 0 1024 Mar 11 17:25 ..
    -rwxr-xr-x 1 0 0 993 Mar 15 01:59 51killer.tcl
    -rwxr-xr-x 1 0 0 5660 Mar 15 01:59 SetTivoConfig
    lrwxrwxrwx 1 0 0 7 Mar 15 01:59 [ -> busybox
    lrwxrwxrwx 1 0 0 7 Mar 15 01:59 adjtimex -> busybox
    -rwxr-xr-x 1 0 0 595412 Mar 15 01:59 arp
    lrwxrwxrwx 1 0 0 7 Mar 15 01:59 arping -> busybox
    lrwxrwxrwx 1 0 0 7 Mar 15 01:59 awk -> busybox
    lrwxrwxrwx 1 0 0 7 Mar 15 01:59 basename -> busybox
    lrwxrwxrwx 1 0 0 7 Mar 15 01:59 bunzip2 -> busybox
    -rwxrwxrwx 1 0 0 503720 Mar 15 01:59 busybox
    lrwxrwxrwx 1 0 0 7 Mar 15 01:59 bzcat -> busybox
    -rwxr-xr-x 1 0 0 181692 Mar 15 01:59 ccxstream
    lrwxrwxrwx 1 0 0 7 Mar 15 01:59 chown -> busybox
    lrwxrwxrwx 1 0 0 7 Mar 15 01:59 chroot -> busybox
    -rwxr-xr-x 1 0 0 107592 Mar 15 01:59 ciphercheck
    -rwxr-xr-x 1 0 0 9844 Mar 15 01:59 cksum
    lrwxrwxrwx 1 0 0 7 Mar 15 01:59 clear -> busybox
    -rwxr-xr-x 1 0 0 9944 Mar 15 01:59 comm
    lrwxrwxrwx 1 0 0 7 Mar 15 01:59 crond -> busybox
    -rwxr-xr-x 1 0 0 31404 Mar 15 01:59 csplit

    I think it might be what rbautch is talking about. I have a series 1 Tivo but maybe this is for a series 2, so maybe it is not going to work on my platform.

    If that is the case where can I get a copy of the dos2unix file to put on my series 1 tivo so I can use it for other hacks that require it, like autospace.tcl

    Thanks again guys,
    Phil
     
  18. Justin

    Justin tivo geek

    13
    0
    Jan 25, 2002
    Twin Cities MN
    Interesting problem, that (at least my search) did not find.

    History: Three tivo's zippered. (some longer than the others) Unlike most here, my wife likes showcases and yellow stars. Showed up fine on all three tivos for quite some time, but has now stopped on the First tivo I zippered. upon entering the Showcase menu, it states the "this is unavailable at this time"

    What I have tried: Reran SC62add, waited overnight, nada. did a Tweakuninstall, reinstall (It downloaded the newest version), waited overnight, nada. (In a effort to tick me off, the other two tivos got a new showcase :) )

    I looked around at the 'other' place and found nothing either. (I consider that forum 'read only', so did not post)

    Any ideas? This is not critical, but would help with the 'wife factor'.

    Does being low on space (overall show storage), forgetting to delete logs files, to many temps files of some sort, faceplate pointed due south, or some other stupid mistake I made? (based on the fact that this has been running the longest?)

    The only other factor that I can think of that is different from a 'Stock zippered drive' is bufferhack. I have that installed on all three, so can't imagine it is a factor.

    Any help/suggestions would be greatly appreciated.

    Justin
     
  19. frickn

    frickn New Member

    6
    0
    Mar 3, 2006
    I have installed the script with no problems. Everything worked great except now I can no longer get tserver to start from tytools. The only thing that is different now network wise is that I have a static IP address on the box rather than dhcp. My other box that has not been patched still connects fine. I have read & read until my eyes hurt and I don't see where someone is experiencing tytools not connecting after applying the script. Also I have uninstalled and reinstalled just to be sure that everything was ok.

    Thanks

    Frickn
     
  20. cgee

    cgee TiVo Fumbler

    25
    0
    Jul 3, 2002

    I am having the same problem after installation of the script. I did not find any reference to a solution through a forum search. Is this a TWP1.2.2 problem? I previously used TWP1.0 with my HDTivo running 3.1.1f, and the Screen function worked fine.

    Now that I think of it, I wonder if this is related to the Hackman error on TWP startup. From the log:

    hackman
    --hackman Version 4.0.2--
    -No problem running mips find -- mips version of find selected.
    -/dev/router_client: No such file or directory running mips sendkey -- ppc SendKey selected.
    POSIX EROFS {read-only file system} error renaming "./modules/hackman.cfg.draft" to "./modules/hackman.cfg": read-only file system
    while executing
    "file rename $config\.draft $config"
    (file "./modules/hackman.itcl" line 2858)
    invoked from within
    "source $module "

    - since SendKey is also being referenced here. Any thoughts would be welcome.

    BTW, thanks for the great script!
     

Share This Page