Tiny Core Linux
Tiny Core Extensions => TCE Bugs => Topic started by: phoneboy on April 01, 2011, 01:56:12 PM
-
The problem seems to be that http://www.tinycorelinux.com/cgi-bin/tcz3x.cgi (which is used by search.sh) is redirecting to http://distro.ibiblio.org/tinycorelinux/cgi-bin/tcz3x.cgi, but the web server isn't executing the CGI script. Can someone fix this, please?
-
It is obviously the result of the move. I am working to resolve it.
-
OK. Both Search and Provides now working on new site for both ab and appsbrowser.
Here is a simple fix to add to your /opt/bootlocal.sh
$ cat /opt/bootlocal.sh
#!/bin/sh
# put other system startup commands here
sed -i 's/.com/.net/' /usr/bin/search.sh
sed -i 's/.com/.net/' /usr/bin/provides.sh
As /opt/bootlocal.sh is part of your backup, A reboot and you should be good.
The new site will be obviously referenced in the next cut of microcore and tinycore.
-
That works for me, thanks!
-
after the cgi files there are no more, my solution is:
to download the provides.db file and modify the files to this:
also i copied the /usr/bin/search.sh and /usr/bin/provides.sh to /mnt/hda1/tce/
requires the pcre extention
## fix url where to download from:
tc@box:~$ cat /opt/tcemirror
http://distro.ibiblio.org/tinycorelinux/
## install some how pcre
tce-load -wi pcre
## download from repozitory and install
wget http://distro.ibiblio.org/tinycorelinux/3.x/tcz/pcre.tcz
tce-load -i pcre.tcz
tc@box:~$ cat /usr/bin/search.sh
#!/bin/sh
# $1 is the search word(s)
[ -z "$1" ] && exit 1
ARG="\\n\\n(.*$1.*)\\n"
pcregrep -o1 -M $ARG /mnt/hda1/tce/provides.db > info.lst
tc@box:~$ cat /usr/bin/provides.sh
#!/bin/sh
# $1 is the filename
[ -z "$1" ] && exit 1
ARG="\\n\\n([^\\n]+)[\\n^\\n]$1"
pcregrep -o1 -M $ARG /mnt/hda1/tce/provides.db > info.lst