WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: ab not working in either Microcore 3.5.1 or 3.6  (Read 3123 times)

Offline phoneboy

  • Newbie
  • *
  • Posts: 2
ab not working in either Microcore 3.5.1 or 3.6
« 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?

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: ab not working in either Microcore 3.5.1 or 3.6
« Reply #1 on: April 01, 2011, 02:35:33 PM »
It is obviously the result of the move. I am working to resolve it.
10+ Years Contributing to Linux Open Source Projects.

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: ab not working in either Microcore 3.5.1 or 3.6
« Reply #2 on: April 01, 2011, 03:49:32 PM »
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.
10+ Years Contributing to Linux Open Source Projects.

Offline phoneboy

  • Newbie
  • *
  • Posts: 2
Re: ab not working in either Microcore 3.5.1 or 3.6
« Reply #3 on: April 02, 2011, 05:55:46 PM »
That works for me, thanks!

Offline shimondoodkin

  • Newbie
  • *
  • Posts: 9
Re: ab not working in either Microcore 3.5.1 or 3.6
« Reply #4 on: March 30, 2013, 05:29:59 PM »
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
Code: [Select]
## 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


« Last Edit: March 30, 2013, 05:44:54 PM by shimondoodkin »