WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Recent Posts

Pages: 1 2 [3] 4 5 ... 10
21
Micro Core / Re: Crontab
« Last post by gerald_clark on July 30, 2014, 04:50:58 AM »
I meant 'crontab --help' but either way it gives you a usage page.

Cron runs unattached to any terminal, so  your example can't display anything.
you would need
* * * * * date > /tmp/date


Did you start crond ?
22
I modified "/usr/bin/search.sh" and "/usr/bin/provides.sh" in TinyCore Linux 3.x to make its tcz package search function working. I integrated them into my Open Source Project MobileMate( http://www.learndiary.com/mobilemate/ ), which is customized based on TinyCore Linux 3.7.1.

The modified files below:

"/usr/bin/search.sh"
Code: (bash) [Select]
#!/bin/sh
# $1 is the search word(s)
[ -f "info.lst" ] && rm "info.lst"
touch "info.lst"
[ -z "$1" ] && exit 1
keyword=$1
[ "${keyword}" != "${keyword#/}" ] && keyword="^${keyword#/}"
[ "${keyword}" != "${keyword%/}" ] && keyword="${keyword%/}$"

read TCEDIR < /opt/.tce_dir
[ -z "${TCEDIR}" ] && TCEDIR="/tmp/tce"
if [ ! -d "${TCEDIR}" ]; then
  sudo mkdir "${TCEDIR}"
  sudo chown root:staff "${TCEDIR}"
fi
TCZSLST_GZ="${TCEDIR}/3.x_tczs.lst.gz"

if [ ! -f "${TCZSLST_GZ}" ]; then
  TCZSLST_S1="http://sourceforge.net/projects/mobilemate/files/0.1/3.x_tczs.lst.gz/download"
  TCZSLST_S2="http://www.learndiary.com/mobilemate/releases/0.1/3.x_tczs.lst.gz"
  echo "Downloading tcz packages list file..."
  wget -cq "${TCZSLST_S1}" -O "${TCZSLST_GZ}"
  if [ "$?" -ne "0" ]; then
    echo "Trying the next server..."
    wget -cq "${TCZSLST_S2}" -O "${TCZSLST_GZ}"
    if [ "$?" -ne "0" ]; then
      echo "Download tcz packages list file failed. Exit."
      exit 1
    fi
  fi
  echo "Downloaded tcz packages list file \"${TCZSLST_GZ}\" ok."
fi

zcat "${TCZSLST_GZ}" | grep -i "${keyword}" > info.lst
sed -i "s/\ *$/.tcz/g" info.lst

"/usr/bin/provides.sh"
Code: (bash) [Select]
#!/bin/sh
# $1 is the filename
[ -f "info.lst" ] && rm "info.lst"
touch "info.lst"
[ -z "$1" ] && exit 1
keyword=$1
read TCEDIR < /opt/.tce_dir
[ -z "${TCEDIR}" ] && TCEDIR="/tmp/tce"
if [ ! -d "${TCEDIR}" ]; then
  sudo mkdir "${TCEDIR}"
  sudo chown root:staff "${TCEDIR}"
fi
TCZSPLST_GZ="${TCEDIR}/3.x_tczs_provides.lst.gz"

if [ ! -f "${TCZSPLST_GZ}" ]; then
  TCZSPLST_S1="http://sourceforge.net/projects/mobilemate/files/0.1/3.x_tczs_provides.lst.gz/download"
  TCZSPLST_S2="http://www.learndiary.com/mobilemate/releases/0.1/3.x_tczs_provides.lst.gz"
  echo "Downloading tcz packages' files list file..."
  wget -cq "${TCZSPLST_S1}" -O "${TCZSPLST_GZ}"
  if [ "$?" -ne "0" ]; then
    echo "Trying the next server..."
    wget -cq "${TCZSPLST_S2}" -O "${TCZSPLST_GZ}"
    if [ "$?" -ne "0" ]; then
      echo "Download tcz packages' files list file failed. Exit."
      exit 1
    fi
  fi
  echo "Downloaded tcz packages' files list file \"${TCZSPLST_GZ}\" ok."
fi

zcat "${TCZSPLST_GZ}" | grep -i "$1" | while read line; do
  tcz=${line%%/*}
  files="/${line#*/}"
  [ -n "$(echo  "${files}" | grep -i "$1")" ] && echo "${tcz}" >> info.lst
done
sed -i "s/\ *$/.tcz/g" info.lst

A tip:
You can add "/" at the begin or the end of the search keyword to restrict the search scope.
23
MobileMate-0.1b1 release notes:

This is the second public release of MobileMate video and audio converting tool. Based on MobileMate-0.1a42.1, the main changes of MobileMate as below:

1, Code, comment and format optimization:

Rewrote the “MobileMate” main program(/opt/mobilemate) Follow the “Google Shell Style Guide Revision 1.25” (http://google-styleguide.googlecode.com/svn/trunk/shell.xml?p=100).

2, Rewrote logging system:

Added “ERROR”, “INFO”, “DEBUG”, “TRIVAL” logging level. “ERROR” and “INFO” is always available, “DEBUG” and “TRIVAL” can be set in “conf/common.conf”, changed use a single log file to use the separate log file for every task.

3, Updated “libmp3lame.so.0.0.0” from version 3.98.2 to 3.99.5:

Old version will cause MobileMate always report encode failed message in spite of encode mp3 success or fail. Updated to new version fix this bug.

4, Enhanced output file naming:

Align digit in output file name, keep the original input source suffix in the output file name.

5, Added several options in “conf/common.conf”:

Can choose if backup task files(TASKBACKUP) and specify task backup directory (TASKBAKBASE), can specify log directory(LOGBASE).

6, Fixed some MobileMate main program bugs:

    Fixed the bug of convert the video include subtitile stream to “mkv” file fail by disabled subtitle conversion temporarily;
    Fixed “negative pad value” bug when choose Libav decoder sometimes;
    Fixed wrong Display Aspect Ratio(DAR) bug when choose Mencoder decoder sometimes;
    Fixed the bug when the specified section end before the splitting segment then converting will beyond the specified end time.

7, Fixed some MobileMate OS bugs:

    Fixed the repository tcz package search function invalid problem (Caused by TinyCore Linux repository server side for old TinyCore) by modify ”/usr/bin/search.sh” and ”/usr/bin/provides.sh”;
    Fixed the bug of “appbrowser” interface internationalization bug, and this bug also cause tcz package search function bug;
    Added “src/fltk_projects_unicode-3.7.1.modi.20140723.tar.gz”, it based on “src/fltk_projects_unicode-3.7.1.modi.20130618.tar.gz”, fixed package search bug, enhanced “mkpatch.sh”, added script of compile and install “fltk-1.3” in “Makefile” and “Common.Mk” for fix the bug of install “fltk-1.3-dev.tcz” from repository will cause “fltk_projects_unicode” build fail;
    Added “src/flwm_topside_unicode-3.7.1.modi.20140723.tar.gz”, it based on “src/flwm_topside_unicode-3.7.1.modi.20130618.tar.gz”,added script of compile and install “fltk-1.3” in “Makefile” for fix the bug of install “fltk-1.3-dev.tcz” from repository will cause “flwm_topside_unicode” build fail.

8, Integrated “mirrors.tcz”, changed default mirror from “http://mirrors.163.com/tinycorelinux/” to “ftp://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/”.

Link:
http://www.learndiary.com/mobilemate/
24
Micro Core / Re: Crontab
« Last post by Kj4bnh on July 29, 2014, 09:41:16 PM »
This gives me a invalid option.
25
TCB Q&A Forum / Re: PCMCIA network card help (Netvin NV501).
« Last post by bat on July 29, 2014, 01:33:14 PM »
Hello again, the delay didn't help, so a 2nd hand Xircom is on its way to me for 99p+postage ;-
26
International Talk / Re: tiny core en español
« Last post by addhex on July 29, 2014, 10:15:21 AM »
Hola, me gustaría participar aportando en lo que este a mi alcance y por supuesto llego como muchos primero preguntando. Vivo en Monterrey, México. Creo que soy un usuario de Linux Principiante-Intermedio. Uso regularmente Ubuntu, Windows y MacOS.

El caso en concreto:
TinyCore instalado en modo pesistente en una memoria USB de 16GB con partición vFat, el idioma ya esta en español.
Requiero mover archivos entre particiones NTFS de dos discos conectados por USB.
He instalado la extensión NTSF-3G.

Al mover una carpeta ya sea en forma gráfica con PCManFM o bien desde Terminal con "cp"... error al copiar: "Invalid or incomplete multibyte or wide character" y la copia se detiene. Sucede cuando encuentra un nombre de archivo que contiene un caracter que no pertenece al ASCII básico. por elemplo: /usuario/Downloads/aplicación.

Si navego hasta la ubicación en el disco origen usando el exploraror de archivos PCManFM se ve la carpeta con su nombre correcto y entra a ella, pero si navego por terminal, al llegas a Downloads...

tc@box:/mnt/sdb1$ ls -1
aplicaci?n/

En resuemen el proeblema es la interpretación de los caractteres a la salida, y creo que el problema se extiende a la operación de la extensión NTFS-3G.

¿Alguna pista?
27
Micro Core / Re: Crontab
« Last post by gerald_clark on July 29, 2014, 10:14:58 AM »
run "crontab -help"
28
Micro Core / Crontab
« Last post by Kj4bnh on July 29, 2014, 09:39:40 AM »
Hi all, just downloaded Microcore for use.  Could someone point me in the correct directions to the proper useage of Crontab?  In my way of thinking I should have been able to just edit and save and it should run, but not so.  * * * * * date, in my way of thinking should have displayed this every minute.
29
TCE Corepure64 / Re: How to package qemu/kvm
« Last post by Juanito on July 29, 2014, 09:32:03 AM »
Did you take a look at the extension making section of the wiki?
30
TCE Corepure64 / How to package qemu/kvm
« Last post by kingofkya on July 29, 2014, 09:28:15 AM »
So i noticed the 64bit version of tinycore is missing qemu yet the 32bit version is not, anyways is there a guide anywhere about how to make tiny core tce packages.

I have compiled patches and thing in on gentoo and arch but it been a while, and i assume its likely different for tinycore.

So any advice/tips?
Pages: 1 2 [3] 4 5 ... 10