View Full Version : How to edit files on the Tivo

16-08-2004, 07:38 AM
In the emulator instructions, it says to edit tclient.conf, but doesn't say how. This was actually intentional, as there's more than one way to skin a cat. Rather than edit those instructions, I've created this tread to document different methods of doing this. Feel free to add your own methods below. Here's how I do it.

Firstly, you need the Tivo's IP address, and you need to telnet to that IP address. As this thread is about file editing, I will not document finding IPs, presumably this is documented elsewhere (links will be included here if someone points them out).

Once you are on the Tivo, at the command line, you will want to set the filesystem to read/write mode. This is done by typing "rw" without the quotes, and hitting return. Next, use the joe editor to modify the file. Type "joe /etc/tclient.conf" without the quotes, and hit return. The joe editor has help available by pressing control-H, this should give you the info you need to edit and save the file. Once done, and back at the command line, you will want to set the filesystem back to read-only by typing "ro", again without the quotes. Then reboot the Tivo and continue the emulator setup instructions.

Again, this post is intended to highlight the various methods of doing this, so if you have a different way or wish to comment further with tips, please do so...

16-08-2004, 11:48 AM
There's a bunch of editors installed with the Oztivo image; most people get familiar with one and then use that. Aside from joe, there's ed, elvis, nano, pico, vi/vim, and maybe others.

ed is probably only there for programs that need it. pico and nano are possibly best for new users, because they have possible commands listed, avoiding research to find out what arcane key combinations are needed to perform some simple action.

Emacs is missing. This is good ;-).

16-08-2004, 02:38 PM
tivo # rw
tivo # cp /etc/tclient.conf /etc/tclient.conf.bak
tivo # sed 's/131\.244\.9\.101/66\.238\.88\.163/' /etc/tclient.conf > /tmp/tclient.conf
tivo # cp /tmp/tclient.conf /etc/tclient.conf
tivo # ro

Where 'tivo #' represents the prompt you are presented with on the Tivo command line.

Thanks to Tuatara for supplying an IP address and corrections.

17-08-2004, 12:58 PM
Editing over serial using joe is painful, easier to send the file into pc do the edit and stick it back again, bonus is you get to keep a copy for that inevitable rebuild. Editpad lite on the pc to preserve linux formating

sz filename -sends,
move/rename/delete the original
rz filename -recieves back again.
rw & rw & chmod as necessary