PDA

View Full Version : Losing Bash and FTP


webby1571
05-20-2004, 12:42 PM
I'm a complete Newb, but trying hard. I have run Sleeper's ISO and upgraded successfully the hack portion on a SA S2 running 4.0.1b. Bash and FTP work fine.

Now, (please correct me if I'm wrong), but since it's a SA the installed kmem hack causes the recorded video to fail. I am trying to fix the process by 1). disabling the khem hack and 2). installing tivoapp. (I have no recordings that I care about keeping).

I lose the bash and ftp when I either delete or comment out the section in the rc.sysinit.author file, (althought the recorded video begins working). I think I am corrupting it and it's reverting back or something. It's my understading that you can comment something out by just adding a # in front of what you don't want executed.

I haven't even gotten to installing the tivoapp yet. I feel more comfortable editing on the pc, so I ftp the rc.sysinit.author file (I use flashfxp and have changed the transfer settings to binary from ASC11), and edit the file with textpad. Now looks the file looks like:

#!/bin/bash
date>>/var/hack/log/hackinit.log

#Enviroment Variables
export PATH=/sbin:/bin:/tivobin:/busybox:/tvbin:.
export TIVO_ROOT=
export MFS_DEVICE=/dev/hda10
export IGNOREEOF=1000
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/lib/modules
export TERM=xterm
export PS1='\h:\w$ '

#Start BASH
/bin/bash</dev/ttyS2&>/dev/ttyS2&

#Setup HOSTNAME
/bin/hostname tivo

#Set the IP address
ifconfig eth0 192.168.1.100 broadcast 192.168.1.255 netmask 255.255.255.0
route add default gw 192.168.1.1 netmask 0.0.0.0 metric 1

#Load telnet daemon and ftp dameon
tnlited 23 /bin/bash -login &
tivoftpd
cd /usr/mfs_ftp
/usr/mfs_ftp/mfs_ftp.tcl &
cd /

#Load tivoweb
/usr/tivoweb-tcl/tivoweb

#Load kmem to prevent scrambling
#kmem 800bf958 00001021 <-Just added #

sleep 300
/usr/scripts/callfixsub.sh /usr/scripts &
/usr/scripts/sps30
/usr/scripts/sort

Using telnet, go to /etc/rc.d and type:

mount -o remount, rw /

FTP new file over the old

Then, chmod 755 /etc/rc.d/rc.syinit.author

mount -o remount, ro /

Lastly reboot.

I know this is incredibly basic and I'm doing something stupid, but I would like someone to shine the light on me. Thanks.

UberDuper
05-20-2004, 02:37 PM
I highly recommend using vi on the tivo to edit the files. Windows text editors can do ugly things to your files.
If you have your tivo (in the tivo setup) setup to use DHCP or another IP, it will eventually change the IP from what you have defined in rc.sysinit.author.

UD.

webby1571
05-20-2004, 03:39 PM
I will try to use vi, but I'd like to make sure I'm on the right path. Is it correct that I can just comment out the line in the rc.sysinit.author file to kill the khem hack? Do I need to delete any files as well?

As far as adding tivoapp, I'm struggling. Every file I extract and place in the Tivo, I am unable to execute. I get permissions denied. I telnet in and at the bash type:

mount -o remount,rw /

Then navigate to the directory and type the file name to execute the installer. What am I missing?

Lowcarb
05-20-2004, 04:03 PM
Then navigate to the directory and type the file name to execute the installer. What am I missing?

I'm not following you. What INSTALLER are you trying to execute?
You install a tivoapp patch by using a Hex Editor to change (patch) values within tivoapp (it is located in /tvbin). Be sure to make a copy of your original tivoapp first.

For me, made a copy of tivoapp ( cp tivoapp tivoapp.original)
Then I FTP's tivoapp to my pc.
I used a hex editor (XVI32 because its free) to make the changes.
Then I FTP'd tivoapp back to the tivo
then CHMOD 755 tivoapp
then reboot (restart)
Then I loaded and ran csoscout.tcl to clean up the cso keys of programs I had recorded previously with the kmem hack.

captain_video
05-20-2004, 04:18 PM
I'm not following you. What INSTALLER are you trying to execute?

My guess would be the noscramble tpm file that Sleeper put together. It automatically patches the tivoapp for you without having to use a hex editor.

webby1571
05-20-2004, 04:31 PM
Lowcarb,

I'm trying to get the recorded video play after Sleeper's upgrade. I tried to comment out the khem instruction, (and have tried to delete it as well), but lose bash and ftp upon reboot.

Then I tried Sleeper's TPM-1.0.all.tpm. I downloaded to pc, unzipped and ftp'd to var/local/packages
then telnet:
mount -o remount,rw /

cd var/local/packages

tpm-1.0-9.all.tpm

I get permissions denied.

Sorry if I am getting confused.

fixn278
05-20-2004, 04:37 PM
Lowcarb,

I'm trying to get the recorded video play after Sleeper's upgrade. I tried to comment out the khem instruction, (and have tried to delete it as well), but lose bash and ftp upon reboot.

Then I tried Sleeper's TPM-1.0.all.tpm. I downloaded to pc, unzipped and ftp'd to var/local/packages
then telnet:
mount -o remount,rw /

cd var/local/packages

tpm-1.0-9.all.tpm

I get permissions denied.

Sorry if I am getting confused.

The file has to be permissioned for execution.

try 'chmod 755 tpm-1.0-9.all.tpm'

webby1571
05-20-2004, 05:03 PM
fixn278,

Thanks, I'll give it a try. I knew I was missing something. Can someone clear up my confusion though? Do I need to do anything besides running sleeper's TPM-1.0.all.tpm to get the recorded video working? Understand I don't need to disable the khem hack if I do this?

Thanks for everyone's patience.

PlainBill
05-20-2004, 05:34 PM
fixn278,

Thanks, I'll give it a try. I knew I was missing something. Can someone clear up my confusion though? Do I need to do anything besides running sleeper's TPM-1.0.all.tpm to get the recorded video working? Understand I don't need to disable the khem hack if I do this?

Thanks for everyone's patience.

You must disable the kmem hack if you install Sleeper's TPM package that includes the noscramble hack. I suggest editing rc.sysinit.author using vi. A simple vi tutorial can be found here: http://www.comptechdoc.org/os/linux/usersguide/linux_ugvi.html

1. Make root r/w: 'mount -o remount,rw /'
2. Edit the file: 'vi /etc/rc.d/rc.sysinit.author'
3. Make root r-o: 'mount -o remount,ro /'

PlainBill

Lowcarb
05-20-2004, 05:49 PM
Lowcarb,

I'm trying to get the recorded video play after Sleeper's upgrade. I tried to comment out the khem instruction, (and have tried to delete it as well), but lose bash and ftp upon reboot.



OH, so you are using a TPM to install the hack. I see now.
Above comments about chmod are pertinent.

No your problem with losing ftp and bash. Chances are that your rc.sysinit.author isn't getting executed. How are you editing it? On the tivo or on your PC.

If you are editing it on your PC and then FTP'ing it back you have to make sure you.
1) used a unix compatable hex editor (like textpad) instead of a windows editor like MS WORD
2) chmod 755 rc.sysinit.author after you ftp it back.

As for commenting out kmem. I'd suggest checking any documentation for the TPM. Perhaps it does that for you, perhaps you have to do it yourself, either way though it has to get done so you could check your rc.sysinit.author after running the tpm package.

5 minutes after rebooting do you see/hear the execution of the scripts for 30sec skip and sort? (you know , when it looks like a ghost has taken control of your remote control for a few seconds five minutes after a reboot). If you don't that is another sign that your rc.sysinit.author isn't executing.

webby1571
05-20-2004, 06:03 PM
LowCarb and Plain Bill,

Thanks a ton for the help. I'm sure the rc.sysinit.author file wasn't getting executed. I was originally editing it on the pc with textpad and ftping back. I didn't "chmod 755 rc.sysinit.author" when I put it back. I just edited the file with vi (took khem out). Works like a champ. Now I just need to install Sleeper's TPM. Should be able to handle it now. Thanks again for the quick responses.

UberDuper
05-20-2004, 07:19 PM
Just remember to install and run csoscout TPM so you can watch everything you've already recorded!

UD.