PDA

View Full Version : Telnet not working - new install


DanInSD
06-03-2007, 06:31 AM
I've got Jeff Keegan's book, "Hacking Tivo," and have installed everything according to the instructions. I can telnet into my Tivo and get a "bash02.02#" shell. When I type "ls" I get, "bash: ls: command not found."

Any idea why? I've tried to search everywhere but can't find an answer. Everybody has different ways of loading the software and I can't find anything for Jeff Keegan.

I'm thinking my rc.sysinit is not calling my /var/hack/etc/hacks_callfromrc.sysinit file to run all the hacks that were installed. But I don't know how to tell if the rc.sysinit is working correctly. Specifically, I tried to have TivoWeb running and nothing works when I point my browser to my IP address of the Tivo.

Thanks in advance!!!

BTUx9
06-03-2007, 08:55 AM
"ls" is an external command, and requires that busybox or other native binaries be in the path.

DanInSD
06-03-2007, 09:39 AM
As I'm looking into this more, it seems as thought my Tivo doesn't know about /var/hack/etc/hacks_callfromrc.sysinit which has all my custom code. Any idea how to get it to recognize it?

Also, do you know where the logs are from rc.sysinit so I can look at them?

Thanks!

DanInSD
06-03-2007, 09:50 AM
I was thinking the same thing, that the binaries aren't in the path. In the book it mounts /dev/hdc9 as /mnt/tivovar. Then, all the binaries are in /mnt/tivovar/hack/bin. Can I do something similar in the startup script?

BTUx9
06-03-2007, 01:27 PM
rc.sysinit doesn't have a distinct log file... you can find some of the messages in /var/log/kernel

tivo automatically mounts hda9 to /var, so putting /var/hack/bin in the path should be sufficient

to test this out, you can always type "/var/hack/bin/ls" at a bash prompt... that should give you a directory listing.