TiVo Community Forum banner

Enhance Your Hacked Tivo With This Script

646575 Views 2879 Replies 420 Participants Last post by  darrin75
Attached is an automated script that tweaks and enhances your already-hacked Tivo. This script is included with The Zipper, so you don't need to run it if you've already completed a full Zipper install. If you hacked your Tivo with PTVnet, this script can be installed right over it.

Usage: unzip the attached script, FTP it to your Tivo, and run it. It’s interactive, so you can pick and choose exactly what it installs, and it comes with an uninstall script so you can remove everything easily. It works will all Series 2/2.5 Tivos, including the HR10-250 (3.1.5f and 6.3x). Here’s what it does:

1. Installs channel logos on the guide banner and Now Playing list.

2. Replaces the “Almost There” splash screen with this more interesting one. If you don’t like it, you can download any one of these splash screens, and FTP it to replace the one stored in /tvbin/AlmostThere.png. Be sure to change the name of the replacement screen to “AlmostThere.png” to match the existing one before you FTP it to your Tivo.

3. Installs a profile with “aliases” that provide shortcuts to commonly used commands. For example, to mount your root drive as read-write, instead of typing out the full “mount –o remount,rw /”, you simply type “rw”. See the readme for the full list of aliases installed.

4. Installs a Customized Version of Tivowebplus. Now based on Tivowebplus version 2.0.
  • Tivowebplus main menu is modified to show the name of your Tivo at the top of each menu – helpful if you have multiple Tivos. Here’s what it looks like:


5. Installs a fully functional cron setup for improved performance and logging. Creates all required directories and files, and installs a crondtab to do the following:

  • Create a tarball (archive) of your logs once/week, and save it in your root directory for easy FTP’ing. Helpful to have if something ever goes wrong with your Tivo, or you just want to explore your logs for well-defined time periods.

  • Wipe your logs once/week (after archiving them) to keep them from getting to big and hindering performance. Also wipes the tarball archive above.

  • Run fakecall every night at 3am.

  • Reboot your Tivo twice/week at 3am. This 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 or CallerID.

6. Searches for and removes MRV/HMO expiration certificates from MFS. If you are using multi-room viewing on a DirecTivo, it's possible you'll receive expiration certificates, which will stop MRV/HMO from working 180 days after your latest Tivo software download occurred.

7. Makes a Backup of Your Season Passes and Wishlists. This is extremely useful if your drive ever fails, or you have to rehack your Tivo, upgrade to a new software version, or buy a new Tivo. Many thanks to agw who wrote the core tcl script that makes this feature possible.

8. Appends Your Crontab to Make a Weekly Backup of Your Season Passes and Wishlists. I always forget to make manual backups in TWP, and when I clobber one of my Tivos, I’m always restoring an outdated backup. This feature uses cron to make weekly backups and store them in /seasonpass-backups/<date>backup. Be sure to frequently FTP the backups to your PC for safe keeping.

9. Adds or Removes Showcases and Yellow Stars. If your Tivo is hacked, you most likely don’t get Showcases and Yellow Stars anymore.

10. Updates the Profile to Easily Edit the Crontab. I added an alias to the .profile called “root” that opens up the crondtab (var/spool/cron/crontabs/root) in vi. Just type “root” from bash to edit this file.

11. Installs NCID CallerID Application. Both the client and server are installed on your Tivo. Also, you can manually configure it to run the server on one Tivo and have it communicate with multiple Tivo clients. Other options can be tweaked to your taste. See the NCID website for details. The on-screen display program used by NCID does not work for Series 2.5 Tivos, so this feature gets skipped.

12. Installs Jamie's USB 2.0 Drivers. Also modifies your usb.map to support backported drivers. There's always a chance that replacing drivers will kill your connection, so be prepared to break out the serial cable or pull the drive.

13. Confirms network settings are appropriate for MRV. Checks to see if your IP parameters are permanently set in MFS, and if not, will set them for you if you choose. This is required for MRV to work properly.

14. Installs "netperf" to measure network performance between multiple Tivos. Actually, it just configures netperf paramters in a series of aliases that let you easily test MRV speeds by typing a single word a the bash prompt.

15. Installs EndPad (Plus).
Many thanks to Sanderton and Falcontx for their permission to use this fantastic tool. If you like EndPad (or even if you don’t), please consider making a donation to Cancer Research though this link, posted by Stuart Anderton, the author of EndPad.

16. Installs the joe Text Editor. For all who have cursed vi at one time or another, this is for you. It’s a bit more human friendly than vi.

17. Customizes Your Bash Prompt. This adds a descriptor to your bash prompt, which can be especially useful if you have multiple Tivos. There’s also an option to add the “TiVo colors” to the bash prompt. Here's what it looks like:

18. Keeps Your Hacks Out of /var.
The /var partition is the equivalent of a Windows recycle bin, and occasionally your Tivo will decide to wipe everything in there. The problem is that many hacks are hardcoded to use /var, and will not work if stored anywhere else. All such hacks installed by the enhancements script are stored in /enhancements/varhacks. The script creates symlinks in /var that point to the corresponding hacks in /enhancments/varhacks. It also appends the author file with commands to recreate the symlinks if /var ever gets wiped. If you want to move other hacks out of var, copy them to /enhancements/varhacks, and then run the script called var-symlinks.sh.

19. Adds an option to customize Tivo menus using TivoWare’s TuikHelper and Superpatch67Standby scripts. Options include adding/removing Standby and Music & Photos menu items.

20. Includes the following miscellaneous tools:
  • folders.tcl – folder manipulation tool.
  • deleteshows.tcl – delete orphan shows, searches by show name.
  • deleteepisodes – delete orphan shows, searches by episode name.
  • clock.sh – continuously displays the time in upper right corner of screen.
  • key_backup.tcl - backs your DiskConfiguration key to a file called /enhancements/diskconfig.bak
  • key_restore.tcl - restores the DiskConfiguration key from the backup script above
  • delmanual.tcl - converts all manual recordings to regular recordings, removing the word "Manual" from the list.
  • net-status.tcl - prints your current network settings
  • net-launch.tcl - sets/changes your network settings, and allows you to toggle safely between dhcp and static IP.

Attachments

See less See more
4
1 - 20 of 2880 Posts
Looks interesting, rbautch... I'll be checking it out.
Rbautch you keep prooving that you are indeed, the man.
Mind if I link this on my guide thingy?
hmm Executing teh script gives me not found errors
bash-2.02# tweak.sh
: command not found
: command not found
in /etc/fstab or /var/mtab
': File existsmake directory `/enhancements
': No such file or directoryes.tgz' to `/enhancements/
Running rbautch Hacked Tivo Enhancements...
tar: /enhancements/rbautch-files.tgz: No such file or directory
'leep: invalid time interval `4
: No such file or directory
: No such file or directorystart.sh
: command not found
: command not found
: command not found
I noticed my tivo now has an enhancements^M^M
directory
did you use (gasp) a windows txt editor to make this file? ;)
See less See more
Looks like my experience echos Gunny's:

Tivo2: {/var/hack} % sh tweak.sh
: command not found
: command not found
in /etc/fstab or /var/mtab
': File existsmake directory `/enhancements
': No such file or directoryes.tgz' to `/enhancements/
Running rbautch Hacked Tivo Enhancements...
tar: /enhancements/rbautch-files.tgz: No such file or directory
'leep: invalid time interval `4
: No such file or directory
: No such file or directoryrt.sh
: command not found
: command not found
: command not found

Edit: Running two hacked HDVR2's, both with 6.2. The script attempted on one only.
See less See more
Everything worked for me, I skipped a few things :)
Rebooted and had TWP with crond mods.

Do you have Tivowebplus already installed? [yes/no]: no
Do you want to install Tivowebplus? [yes/no]: yes
installing Tivowebplus (modified for 6.2/7.1) plus several awesome modules,
including Hackman, Channelprefs, Batch Play, Backup, and Manual Record
/var/hack exists, installing TWP there. Patience, please...
Appending your rc.sysinit.author file to run TWP on startup
TRUST ME :)

Installing cron for improved performance and easy logging...
busybox detected...
Existing crond binary detected, backing up and replacing...
Creating user definitions...
Creating required cron directories...
copying the crondtab where crond expects it
appending your rc.sysinit.author file to run crond on startup

Installation Complete! Please reboot now...

It would be nice if crond was a yes/no so we aren't forced to install it. If you run script multiple times(say you change your mind later on something) make sure you have "If" statements so you're not appending and appending and appending text to files. I didn't run multiple times to test :)

The Hackman module is listed in twp/modules but does not show up when you are viewing through a browser.
See less See more
Gunnyman said:
Rbautch you keep prooving that you are indeed, the man.
Mind if I link this on my guide thingy?
Sure!

did you use (gasp) a windows txt editor to make this file?
Please... :) I used Ultraedit.

hmm Executing teh script gives me not found errors
bash-2.02# tweak.sh
: command not found
Smells like DOS line endings. Please help me troubleshoot this. A few things to try:
- Try running it from a different location (root, var, etc.)
- Try running dos2unix on the tweak.sh, just in case.
- Try opening up tweak.sh on your Tivo with vi to see if you have the dreaded ^M ^M carriage returns.
- Open the newly created /enhancements directory. Did it move rbautch-files.tgz there? Did it untar any of the files?
- The tweak.sh script serves only to copy files and launch the real script, which is /enhancements/start.sh.
- Delete the enhancements directory in it's entirety before you run the script again to save space. Or try the uninstall script.

I'll try to duplicate the problems your having this morning. The script runs flawlessly for me on by HDVR2 with 6.2. I've been testing it for 2 days.

edit: - Did you FTP rbautch-files.tgz and tweak.sh to the same directory?
- Try using the attached debug version of the tweak script.

Attachments

See less See more
dos2unix on tweak.sh got the job done. I wish I had thought of that.
:)
Dos2unix did the trick for me as well.

Well done!
Great. Gunny and acii, somewhere, those dos line endings were added. Could it have been your FTP client not set up for binary transfer? Keep in mind, the uninstall script probably also got those line endings during the transfer, so run dos2unix on that too. I downloaded the script again and verified the dos line endings are not in the original files.
weird, I used filezilla in bin mode. I wonder if WINRAR added them
Leddy said:
It would be nice if crond was a yes/no so we aren't forced to install it.
Good suggestion. The only thing it's doing now is checking for an existing cron installation, and skips the install if one is found. I'll make it a yes/no later this morning.

If you run script multiple times(say you change your mind later on something) make sure you have "If" statements so you're not appending and appending and appending text to files. I didn't run multiple times to test :)
Good observation. I set it up so you can't run the script multiple times without running the uninstall script first. When you run tweak.sh, it MOVES the rbautch-files.tgz archive to /enhancements/, and doesn't move it back until you run the uninstall script. It would be nearly impossible to control it otherwise. One thing that comes to mind is that there's no way skip the step that appends your rc.sysinit.author file with a command to start crond or TWP, especially if you chose different options your next time through the script. Much cleaner to wipe things clean first. (only wipes things installed by this script, e.g. would not erase an existing TWP installation).

The Hackman module is listed in twp/modules but does not show up when you are viewing through a browser.
I know what this is. I'll fix it shortly after hitting myself in the head with a large fish.
See less See more
Gunnyman said:
weird, I used filezilla in bin mode. I wonder if WINRAR added them
I may have to add dos2unix to the instructions. I'd stick it in the script if I could.

Try this. Change the extension of the file in the attachment to .sh, (don't try to unzip it) FTP to your Tivo, and check for dos line endings. This will let us know it's Winrar.

Attachments

rbautch said:
I know what this is. I'll fix it shortly after hitting myself in the head with a large fish.
Anything I can do in the meantime? Do I need to edit some file or such?
Leddy said:
Anything I can do in the meantime? Do I need to edit some file or such?
You can go to your modules folder and delete the hackman.ini and hackman.cfg files. Then restart TWP. Hackman will recreate those files to suit your installation.
rbautch said:
I know what this is. I'll fix it shortly after hitting myself in the head with a large fish.
Hey, be nice to the fish!!! :D
Rbautch thanks for the script, it worked well on both of my 6.2 hdvrs. I already had used your previous script for restarting TWP, but I wanted the cool splash screen, the aliases and the log maintenance. Thanks again!!
rbautch said:
You can go to your modules folder and delete the hackman.ini and hackman.cfg files. Then restart TWP. Hackman will recreate those files to suit your installation.
Ahh it was looking in /tivowebplus for some reason, I deleted instead of editing. and Wallah it works! Great job... Maybe I will actually have to make a cool screen... :)
I ran into the same problem that Gunny did originally. I use cuteftp to upload my files. I went and used the windows command ftp and changed it to binary and that seemed to work. I downloaded the test file you put up, changed the extension and ran vi on it and it had the ^M on it, and that was not from winzip or winrar. I didn't run it through Dos2Unix either, I downloaded a new copy and ftped it straight up and it worked fine.

Also, it keeps skipping the install of the channel logos??
1 - 20 of 2880 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