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. Jul 28, 2005 #61 of 2880
    dmark1867

    dmark1867 Member

    31
    0
    Mar 22, 2005
    When this runs:

    wget -O /dev/null "http://127.0.0.1:80/quit"; echo "`date` TWP stopped" >> /var/spool/cron/cronlogs/CRONLOG-MAIN

    This happens:

    wget: server returned error 401: HTTP/1.0 401 Authorization Required

    This is because I have tivoweb password protected. How do I enter my credentials so this will run?

    Thanks!
     
  2. Jul 28, 2005 #62 of 2880
    rbautch

    rbautch User

    3,629
    0
    Feb 5, 2004
    Chicago, IL
    Try changing this:
    Code:
    wget -O /dev/null "http://127.0.0.1:80/quit"; echo "`date` TWP stopped" >> /var/spool/cron/cronlogs/CRONLOG-MAIN
    to this:
    Code:
    wget -O /dev/null -o /dev/null "http://tivo/restart/0"; echo "`date` TWP restarted" >> /var/spool/cron/cronlogs/CRONLOG-MAIN
    Then delete or comment out this line
    Code:
    15 9 * * * /enhancements/TWPrun.sh; echo "`date` TWP started">> /var/spool/cron/cronlogs/CRONLOG-MAIN
    This should reload Tivowebplus instead of stopping and starting it. I can't test this right now, so let me know if it works.
     
  3. Jul 29, 2005 #63 of 2880
    pdawg17

    pdawg17 Here's Julia!!

    362
    0
    Mar 1, 2003
    I still can't get twp to start on boot...can someone show me what the changes to the .author file are supposed to be? Mine looks the same as I left it...also, my last line says:

    "rc.sysinit.author" [Read only]

    Is that just b/c I didn't rw the mount for this session or is this my problem?

    If I cd to the twp directory and run tivoweb, it starts fine...

    Here is my author file:

    #!/bin/bash

    export TIVO_ROOT=""
    export MFS_DEVICE=/dev/hda10
    export PATH=./:.:/utils:/bin:/sbin:/tvbin:/tivobin:/busybox

    # start telnet
    tnlited 23 /bin/bash -login &

    # start ftp
    tivoftpd

    vserver


    # Call the Tivo Package Manager Startup Scripts
    # /etc/rc.d/rc.sysinit.tpm &

    # If TPM doesn't work comment out TPM startup above and start TWP directly
    /tivowebplus/tivoweb

    /usr/local/epp/endpadplus.tcl 2 2 -auto >> /dev/null &

    #Start Tytool

    /var/hack/tserver/tserver -s &


    I originally tried with tivowebplus installed in var/hack but that didn't work either...I also didn't have TPM startup scripts commented out but when that didn't work I tried to do it manually...
     
  4. Jul 29, 2005 #64 of 2880
    rbautch

    rbautch User

    3,629
    0
    Feb 5, 2004
    Chicago, IL
    The script adds the following lines to your author file to start TWP:
    Code:
    # starting Tivowebplus
    /enhancements/TWPrun.sh
    TWPrun.sh is a 2-line script that actually starts TWP. It gets created on the fly as the main script runs, and is customized to your installation. I did it this way to accommodate a TWP installation in any location. This script is also run when you type "twp" using the alias in the new profile, so you don't have to type out the full path everytime you want to run TWP manually. It looks like you have a line in your author file that already starts TWP in the root directory, so you should remove that. It might be cleanest just to delete your TWP installation, run the uninstall script, and then run the main script again. Or, you can verify that the TWPrun.sh script was created in /enhancements/, and is pointing to the correct location where you installed TWP, and then add the lines above to your author file to start TWP on boot.

    You can also delete the TPM lines in your author file. My script mounts your filesystem as read-write, then just before it ends, mounts as read-only. If you want to edit your author file manually, you have to mount read-write again. Here's a great chance to try out one of the enhancements in the new profile: type "rw" to mount read-write, then type "author" to open your author file in vi, and finally type "ro" to mount read-only once again.
     
  5. Jul 29, 2005 #65 of 2880
    Scott D

    Scott D New Member

    1,122
    0
    Jun 17, 2001
    Pasadena, Texas
    I installed the script successfully. I did notice what Gunny has encountered with all those errors found on page 1. I deleted the two files from the TiVo and forced a binary transfer back over to the TiVo and it installed correctly.

    Also, for the people who are using SP2 for Windows XP, use the Hyper Terminal program instead. It works great with that one.

    The only problem I had was a reboot problem. It got stuck a 10%. I did another reboot and it went through just fine.

    Earlier in this thread, there is a jpg picture of a screen that looks like TiVoweb. I don't have that one. It's called hack manager. How do I access that?
     
  6. Jul 29, 2005 #66 of 2880
    Lopey

    Lopey New Member

    1,173
    0
    Feb 12, 2004
    Ormond...
    Scott D: Try this!

     
  7. Jul 29, 2005 #67 of 2880
    Scott D

    Scott D New Member

    1,122
    0
    Jun 17, 2001
    Pasadena, Texas
    Interestlingly enough, that directory called modules is empty.

    Wrong directory called modules. I found it.

    Also, my tivoweb is ver 1.1 pre2.
     
  8. Jul 29, 2005 #68 of 2880
    Lopey

    Lopey New Member

    1,173
    0
    Feb 12, 2004
    Ormond...
    Did it fix the problem?
     
  9. Jul 29, 2005 #69 of 2880
    pdawg17

    pdawg17 Here's Julia!!

    362
    0
    Mar 1, 2003
    Very strange...I still can't get twp to run on boot...the author file is fine...if I type in "twp" at the bash prompt, it tells me it's finding everything and is running, but I can't connect...the only way to connect is to actually go to var/hack/tivowebplus and run tivoweb...
     
  10. Jul 29, 2005 #70 of 2880
    Scott D

    Scott D New Member

    1,122
    0
    Jun 17, 2001
    Pasadena, Texas
    No. I still get the basic screen rbautch had made a while back.

    What version are you running to get that type of screen to manipulate scripts? I am running tivowebplus. I don't think that is the correct program.


    Say, does anybody have two directories called "enhancements"? I can't seem to delete either one of them. Are they somehow protected?
     
  11. Jul 30, 2005 #71 of 2880
    rbautch

    rbautch User

    3,629
    0
    Feb 5, 2004
    Chicago, IL
    You have to mount as read-write by typing "rw". Then remove the directory with "rm -r /enhancements".
     
  12. Jul 30, 2005 #72 of 2880
    rbautch

    rbautch User

    3,629
    0
    Feb 5, 2004
    Chicago, IL
    It's called "Hackman" and was installed by the script with your Tivowebplus installation (assuming you used the script to install TWP). Go to TWP, and look for Hackman. Yours will look a bit different because you won't have as many hacks running as the guy who posted that picture.
     
  13. Jul 30, 2005 #73 of 2880
    rbautch

    rbautch User

    3,629
    0
    Feb 5, 2004
    Chicago, IL
    When you start it with "twp" is the last line of output "accepting connections"? Also type "ps" at the bash prompt to view the list currently running applications. TWP should be in there near the bottom. Can you view your TWPrun.sh script? Is it pointing to the correct directory /var/hack/? If all else fails, just put the line "/var/hack/tivowebplus/tivoweb" in your author file to start it directly, bypassing the TWPrun.sh script.
     
  14. Jul 30, 2005 #74 of 2880
    pdawg17

    pdawg17 Here's Julia!!

    362
    0
    Mar 1, 2003
    This is my TWPrun.sh script...

    #!/bin/sh
    /var/hack/tivowebplus/tivoweb console &

    TWP is installed to default ( in var/hack/)...I'll try manually changing the author file again but it didn't work before...is there a way of seeing if it somehow gets turned on and then somehow off? When I do "ps" it is not listed...also, it does NOT say "accepting connections" when I type "twp"...what could that be?
     
  15. Jul 30, 2005 #75 of 2880
    rbautch

    rbautch User

    3,629
    0
    Feb 5, 2004
    Chicago, IL
    Do you have ver 1.1 of the script? The original script had the twp alias pointing to a TWP installation in the root directory. You can confirm this by checking the twp alias in the profile. Just type "vi .profile" from the root directory. If that's not it, navigate to /var/hack/tivowebplus and start it manually. This should work as you said before. Then try ps to confirm that it is listed. Then stop TWP, and try starting it again by running the script (sh TWPrun.sh), then check if it shows up with ps. You can keep repeating the ps command to see if shows up, then gets killed for some reason.

    If that doesn't work, I'll stop by your house tomorrow to check it out. ;)
     
  16. Jul 30, 2005 #76 of 2880
    pdawg17

    pdawg17 Here's Julia!!

    362
    0
    Mar 1, 2003
    Nah...you don't need to do that :)...it's not a big deal - I just keep trying to fix it because it should work easily so it's bugging me...

    My profile points to the right place...if I run tivoweb from /var/hack/tivowebplus, it works from my browser but ps doesn't list it...if I run TWPrun.sh, it does not give an error but it isn't listed with ps either...hmmm...
     
  17. Jul 30, 2005 #77 of 2880
    rbautch

    rbautch User

    3,629
    0
    Feb 5, 2004
    Chicago, IL
    One last try.... the only difference between running it from the TWP directory and from the TWPrun.sh script is that the script runs it in the background by using an "&" after the command. Maybe try taking that out of the script to see if that works, or add an "&" to your manual command in /var/hack/tivowebplus to see if it doesn't. As far as the active processes go (ps command) you should be seeing a few lines that looks like this:
    Code:
    5335 root       7448 S   tivosh /var/hack/tivowebplus/httpd-tt.tcl
     5336 root       7448 S   tivosh /var/hack/tivowebplus/httpd-tt.tcl
     5337 root       7448 S   tivosh /var/hack/tivowebplus/httpd-tt.tcl
     
  18. Jul 30, 2005 #78 of 2880
    Scott D

    Scott D New Member

    1,122
    0
    Jun 17, 2001
    Pasadena, Texas
    Yeah, I found the hackman screen. I usually don't go in there though. :)

    rbautch....

    I do have a question for you. I don't know for certain when it does this but when I alter my channel prefs, (organize my favorite channels), the TiVo wants to reboot first. Then when I go back into the channel prefs screen and do some more organization of the channels,it doesn't reboot again. Instead it gives me a listing of all the channels it added or removed.

    Does it reboot on you too? Sometimes?
     
  19. Jul 30, 2005 #79 of 2880
    rbautch

    rbautch User

    3,629
    0
    Feb 5, 2004
    Chicago, IL
    Channelprefs has always behaved well for me. If you do a search here for Channelprefs, maybe the author of the module can help you. I think his name is SteveT.
     
  20. Jul 30, 2005 #80 of 2880
    pdawg17

    pdawg17 Here's Julia!!

    362
    0
    Mar 1, 2003
    Well, I made it work by "enabling" twp thru Hackman...the addition it makes to the author file made it work...thanks...
     

Share This Page