PDA

View Full Version : what am i missing


sueby
03-13-2005, 02:21 PM
Totally messed up old sleeprd drive, restored backup image and ran killhdintrd... reset bootpage and all is well... i used info from below to write my rc.sysinit.author..... the problem i am having is that i cannot use ls commands at bash, second i cannot seem to execute scripts from the bash even after chmod

chmod 755 superpatch-4all-NutKase-0.7.1.tcl
bash-2.02# chmod 755 set_mrv_name_ADH.tcl
bash-2.02# superpatch-4all-NutKase-0.7.1.tcl
bash: superpatch-4all-NutKase-0.7.1.tcl: command not found

the post below is what i did in addition to above

Next I changed directories to my TiVo drive mount and created the rc.sysinit.author file, pressing <enter> after each line:

borrowed below from SMACKS POST
cd /mnt/tivo/etc/rc.d
cat > rc.sysinit.author
#rc.sysinit.author

echo “Loading bash“

#ENABLE BASH PROMPT
/bin/bash </dev/ttyS2&> /dev/ttyS2&

#ENABLE TIVOTOOLS
export PATH=$PATH:/hack/bin

#ENABLE USB AND ETHERNET MODULES
insmod /lib/modules/usbcore.o
insmod /lib/modules/usb-ohci.o
insmod /lib/modules/usbnet.o
sleep 10
lsmod

#ENABLE LINKSYS USB200M ADAPTER
ifconfig eth0 192.168.1.11 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
sleep 60
ifconfg -s

#START TELNET AND FTP
tnlited 23 /bin/bash –login &
/hack/tivoftpd.mips

echo “End of rc.sysinit.author”
#END of rc.sysinit.author

I ended the concatenation by pressing CTRL-D and then after checking for completeness in the vi editor I made the file read, write and executable with chmod:

chmod 777 rc.sysinit.author

17) Since none of the driver files or the tivoftpd program were in their soon-to-be-called locations I then changed directory to my TiVo’s var directory and created the hack directory and some subdirectories to store junk.

cd /mnt/tivo
mkdir hack
cd hack
mkdir lib
mkdir bin
mkdir log
cd ../
chmod 777 hack -R

18) I copied the tivoftpd.mips file and the tivotools.tar files to my /var/hack and /var/hack/bin directories respectively.

cp tivoftpd.mips /mnt/tivo/hack/
cp tivotools.tar /mnt/tivo/hack/bin/

19) extracted the files by changing directories to their respective folders and calling the extract commands

cd /mnt/tivo/hack

chmod 777 tifoftpd.mips

cd bin
tar –x –f tivotools.tar
cd ../
chmod 777 bin - R

PlainBill
03-13-2005, 03:41 PM
The second most glaring error is you started serial bash BEFORE exporting the path to AlphaWolf's AOI utilities - I'm pretty sure that won't work.

The first glaring error that will come back to bite you is putting your hacks in /var. A number of people have discovered that was a bad idea when their TiVo rebuilt /var. NOTHING in AlphaWolf's AOI utilities has to go in a r/w partition. Other hacks, such as mfs-ftp normally will go in /var, but you won't be locked out of your system if it gets wiped.

There also seems to be a discrepancy with directories in your list of steps; when I follow them it seems you may not have extracted the tivotools tarball. (Of course, this is probably just a typo.)

PlainBill

sueby
03-13-2005, 04:25 PM
"The first glaring error that will come back to bite you is putting your hacks in /var. A number of people have discovered that was a bad idea when their TiVo rebuilt /var. NOTHING in AlphaWolf's AOI utilities has to go in a r/w partition. Other hacks, such as mfs-ftp normally will go in /var, but you won't be locked out of your system if it gets wiped."

wHat is best dir to place hacks?

2. i assume moving bash near the end should solve my other problems?
cat > rc.sysinit.author
#rc.sysinit.author

echo “Loading bash“

#ENABLE BASH PROMPT
/bin/bash </dev/ttyS2&> /dev/ttyS2&

#ENABLE TIVOTOOLS
export PATH=$PATH:/hack/bin

3rd did i totally mess this up by using
tar –x –f tivotools.tar

chmod 777 bin - R

dd_in
03-13-2005, 04:28 PM
Ok, a few things are wrong here.


chmod 755 superpatch-4all-NutKase-0.7.1.tcl
bash-2.02# chmod 755 set_mrv_name_ADH.tcl
bash-2.02# superpatch-4all-NutKase-0.7.1.tcl
bash: superpatch-4all-NutKase-0.7.1.tcl: command not found

You'd likely need to call it like this, otherwise the shell won't know where to find it:
./superpatch-4all-NutKase-0.7.1.tcl


#ENABLE TIVOTOOLS
export PATH=$PATH:/hack/bin


This path appears incorrect. Above, you had stated that you made a directory in /var called hack. However, you're adding /hack/bin to the path. Shouldn't that be /var/hack/bin?


ifconfg -s


Shouldn't that be: ifconfig?


chmod 777 rc.sysinit.author
chmod 777 hack -R
chmod 777 tifoftpd.mips
chmod 777 bin - R


Why are you chmod'ing to 777 on these? The most it should be is 755. Don't see a reason to make them world-writeable.

Steve

dd_in
03-13-2005, 04:31 PM
3rd did i totally mess this up by using
tar –x –f tivotools.tar

chmod 777 bin - R

I don't think that this messed anything up. The tar command you used is fine. I usually use:

tar -xvf <filename.tar>

(the -v is for verbose.)

You can undo the chmod 777 with a chmod 755. I'm not sure what, if anything, the - R would do in that location on the chmod command.

Steve

sueby
03-13-2005, 04:49 PM
THankyou,

i can definetly see some errors... although

I copied the tivoftpd.mips file and the tivotools.tar files to my /hack and /hack/bin directories respectively. which matches my rc.sysinit line...

i will go back in and edit typos... any other suggestions

PlainBill
03-13-2005, 05:27 PM
I try to use a 'keep it simple' approach for hacks. It makes sense to create a new directory for the hacks; putting them in an existing one might cause problems if something else has the same name. It IS one way you can demonstrate your individuality. Calling it 'hacks' is good, if unimaginative. Name it after a pet, significant other, old girlfriend. I decided to call mine 'tivotools' - to make it easier to remember where to put tivotools.tar.

This ( http://dealdatabase.com/forum/showpost.php?p=208842&postcount=9) is my rc.sysinit.author file for 3.1.1e; It has at least one redeming quality - it works.

PlainBill

dd_in
03-13-2005, 08:12 PM
THankyou,

i can definetly see some errors... although

I copied the tivoftpd.mips file and the tivotools.tar files to my /hack and /hack/bin directories respectively. which matches my rc.sysinit line...

i will go back in and edit typos... any other suggestions

Hmm. From your original post, it appeared that you mounted the tivo /var directory into /mnt/tivo. I'm getting that based on what you said here:


17) Since none of the driver files or the tivoftpd program were in their soon-to-be-called locations I then changed directory to my TiVo’s var directory and created the hack directory and some subdirectories to store junk.

cd /mnt/tivo
mkdir hack

So, if you mounted the /var partition at /mnt/tivo and then cd'ed to /mnt/tivo and created a directory, you essentially created /var/hack from the perspective of the tivo. If what you said above was misstated, then there will indeed be a /hack directory. You could do an 'ls' of the root partition to find that out.

Steve

sueby
03-14-2005, 01:07 AM
thanks,

noticed my files are actually in hack/bin.... although wanted to make a folder tivo scrpits on root drive and call /tivoscripts

mounted drive and made folder.... but when i try commands like ls,var,etc....
bash: ls: command not found; these commands are installed in my hack/bin folder... am i doing something wrong.... i cant use tar commands :(.....

sueby
03-14-2005, 08:34 PM
fixed my rc author and moved some files..... and bammm we look good to go... thanks wow have i read and learned alot...... thanks a mil....

have a cold one on me :)