View Full Version : Basic commands not working!
Heinrich
09-18-2004, 12:40 PM
I finally got back into my Tivo Series 1 after the update from a few months back. Not so easy to work with when you do it once a year, but TCS and TivoWeb are running and I can hit it across the wireless network so I did quite a lot by myself.
However, when I log in I get
bash-2.02#
I thought it previously said Tivo:root
worse none of the basic commands such as ls or dir are working, making it very hard to struggle with maneuvering around....what can I do to get my basic stuff back? :confused:
Heinrich
09-18-2004, 03:52 PM
Well I'm still trying to figure this out for myself with 0 luck. I've found the instructions on the Steve Jackson website for creating a .profile (which I don't seem to have) for pathing.
/var/hack/joe .profile [ENTER]
Once joe opens and tells you you're creating a new file, type in the following:
export PATH=$PATH:/var/hack:/var/hack/bin
my "joe" is in /var/hack/bin/joe but regardless I get "can't load termcap entry" using Ansii default, can't open joerc
So I typed in the above path command at the BASH prompt expecting it to work, and it does, based on echo $path
however Joe still does not load and I still can't get a directory via dir or ls :mad:
Lost Dog
09-18-2004, 04:14 PM
Well I'm still trying to figure this out for myself with 0 luck. I've found the instructions on the Steve Jackson website for creating a .profile (which I don't seem to have) for pathing.
/var/hack/joe .profile [ENTER]
Once joe opens and tells you you're creating a new file, type in the following:
export PATH=$PATH:/var/hack:/var/hack/bin
my "joe" is in /var/hack/bin/joe but regardless I get "can't load termcap entry" using Ansii default, can't open joerc
So I typed in the above path command at the BASH prompt expecting it to work, and it does, based on echo $path
however Joe still does not load and I still can't get a directory via dir or ls :mad:
Ok, here's a dumb question, but did you install the "missing" binaries to the /bin or /sbin (or another directory you put in your path)?
Look in /bin and /sbin to see if the commands you are looking for are in there.
Heinrich
09-18-2004, 05:07 PM
That little push helped but I'm still not there yet. So far this worked:
bash-2.02# gzip -d tivobin.tgz
bash-2.02# cpio -idu -H tar < tivobin.tar
5244 blocks
bash-2.02# mv tivo-bin /var/hack/bin
bash-2.02# cd /var/hack/bin
bash-2.02# pwd
/var/hack/bin
bash-2.02# ls
bash: ls: command not found
bash-2.02# chmod 755 *
bash-2.02# ls
bash: ls: command not found
bash-2.02# ./ls
*I got a directory*
132 edittitle.tcl mls status
80 egrep modprobe strace
EditTitle3.tcl elseed mplex strings
ExtractStream elseed_forever.sh nc su
PlayStream expand ncid sum
SendKey fgrep ncidd tac
arp find netstat tail
audioctl findobj newtext2osd tar
autoscramble.tcl fmt nice tee
awk fold nicepri tivo-bin
bold gdbserver nl tivo_messenger
cctoggle.tcl getpri normal tivocid
chattr head objdump tivoftpd
chgrp hostname od tivovbi
chown httpd.tcl out2osd top
chroot id paste touch
cidalias inverse pathchk tpopd.conf
cidlog joe ping tpopd.conf~
cidlogupd join playitsam tpopd.tcl
cksum jpegwriter pr tr
comm jpegwriter10b ps traceroute
cron kerneld rarp tty
csplit less reindex tyserver
custpppd20 logname remote uname
cut ls rf unexpand
dbget ls-lR rmdir uniq
dbload lsattr rsync uptime
dbset lsof schema.tcl videostatus
dd madplay screensave vim
depmod mawk sed wc
diff mc setpri which
dir md5sum smartctl wmcube
displayctl merge.tcl smbmount yac
eclient mfs_export sort
ed mkfifo split
bash-2.02# echo $path
bash-2.02# echo $PATH
/bin:/sbin:/tvbin:/devbin
the path is there
So I assume the next step would be to write the .profile but then I get stuck again, trying to follow Steve's directions:
bash-2.02# /var/hack/joe .profile
bash: /var/hack/joe: No such file or directory
bash-2.02# /var/hack/bin/joe
Couldn't load termcap entry. Using ansi default
Couldn't open '/var/hack/joerc'
What am I doing wrong
sanderton
09-18-2004, 06:12 PM
Clue's in the question. :)
Couldn't open '/var/hack/joerc'
Is joerc in /var/hack ?
If not, put it there. It should have come with your joe binary.
Heinrich
09-18-2004, 07:34 PM
there is no joerc but I put ls and joe in /var/hack anyway and still get command not found there is something else going on here
lenroc
09-18-2004, 08:26 PM
you have /bin in your path but not /var/hack/bin
Heinrich
09-18-2004, 08:54 PM
ok success with ls but JOE is giving me diarrhea :( :eek:
bash-2.02# PATH=$PATH:/var/hack:var/hack/bin
bash-2.02# echo $PATH
/bin:/sbin:/tvbin:/devbin:/var/hack:var/hack/bin
bash-2.02# joe
Couldn't load termcap entry. Using ansi default
Couldn't open '/var/hack/joerc'
bash-2.02# joe hacks_callfromrc.sysinit
Couldn't load termcap entry. Using ansi default
Couldn't open '/var/hack/joerc'
I'm really feeling stupid, no luck. Why is it when I type joe it echoes back with this joerc crap
bash-2.02# cd /
bash-2.02# /var/hack/bin/joe .profile
Couldn't load termcap entry. Using ansi default
Couldn't open '/var/hack/joerc'
I copied this stuff over in Binary mode, correct??
PlainBill
09-18-2004, 09:09 PM
ok success with ls but JOE is giving me diarrhea :( :eek:
bash-2.02# PATH=$PATH:/var/hack:var/hack/bin
bash-2.02# echo $PATH
/bin:/sbin:/tvbin:/devbin:/var/hack:var/hack/bin
bash-2.02# joe
Couldn't load termcap entry. Using ansi default
Couldn't open '/var/hack/joerc'
bash-2.02# joe hacks_callfromrc.sysinit
Couldn't load termcap entry. Using ansi default
Couldn't open '/var/hack/joerc'
I'm really feeling stupid, no luck. Why is it when I type joe it echoes back with this joerc crap
bash-2.02# cd /
bash-2.02# /var/hack/bin/joe .profile
Couldn't load termcap entry. Using ansi default
Couldn't open '/var/hack/joerc'
I copied this stuff over in Binary mode, correct??
A common mips (Series 2 TiVo) distro of joe is broken. Try vi (an alternate editor) instead. The commands are different, so better find a reference before you start.
PlainBill
lenroc
09-18-2004, 10:35 PM
@Plainbill:
This is Series 1, so I don't think that applies. (Besides that, isn't it just Sleeper's install of Joe that is borked?)
@Heinrich:
Sanderton already pointed out that you need the file "joerc". Your copy of Joe is looking for it at /var/hack. You already said it wasn't there, but what did you do about it? If you can't find it, you'll need to download & install Joe again, because you need that file ;)
malfunct
09-18-2004, 11:37 PM
@Plainbill:
This is Series 1, so I don't think that applies. (Besides that, isn't it just Sleeper's install of Joe that is borked?)
Sleeper's install of Joe is borked because it was compiled to look for joerc in /var/hack. The workaround (as would be the work around for the person in this thread) is to place joerc in /var/hack. BTW, I run joe on my series two and the only "fix" I made was to move the joe resource files (might be one along with joerc) to /var/hack.
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.