WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [SOLVED] multiple questions tcz submission  (Read 2114 times)

aus9

  • Guest
[SOLVED] multiple questions tcz submission
« on: September 25, 2012, 09:56:39 PM »
hi

I have read the wiki, its links to the forum and one link in wiki is currently a fail for me
http://wiki.tinycorelinux.net/wiki:tiki-view_faq.php?faqId=3#q5
--> its empty

AFAIK when we build a tcz we should include a pathway to be squashed called
/usr/local/tc.installed/newtczname

But when I look into that folder, most are "touch"ed files or empty files as they don't need to do anything
Those with contents appear to match the wiki section on Adding Custom Startup Scripts
fair enough

But in that folder for  tce.installed .....there are also sym link files eg
Code: [Select]
ls -al /usr/local/tce.installed/depmod
lrwxrwxrwx    1 root     staff           49 Sep 26 01:16 /usr/local/tce.installed/depmod -> /tmp/tcloop/depmod/usr/local/tce.installed/depmod

Question
So what is the preferred option please?

I don't mind changing the wiki if you like to reflect what ever is the answer.

2) Now I am thinking, some time in the future, that I will need a script to do some things, in quasi-code terms they are

(Please don't offer the code, I need the fun to build it please)

search for a package running, if there, continue with next search......its a seach for dependencies
---probably done as a loop  ...you can tell I am not an expert ;)
else, search for a packaged already downloaded and load it
elif, download and run the missing package
elif
exit 0
fi

Now, http://wiki.tinycorelinux.net/wiki:package_management_cheat_sheet

so I have for already downloaded package.........tce-load -i packagename
And for package not downloaded......................tce-load -wi packagename

but there is also mention in second wiki link
Quote
search    (tinycore command) ab pattern

but I don't find that command and search in app browser for "tag or provides" gives me too long a list so
Question
what package provides ab

and how does it differ from say......
Code: [Select]
find / -name stringname or  cat /pathway2file/filename | grep patternkeyword
« Last Edit: October 13, 2012, 07:59:35 PM by aus9 »

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: [LOW PRIORITY] multiple questions tcz submission
« Reply #1 on: September 25, 2012, 10:33:40 PM »
1. Re: http://wiki.tinycorelinux.net/wiki:creating_extensions
You only need to create the custom startup script "if you would like to do something when the package is 1st installed or again mounted on boot."
 
2. You have given no reason for needing this script.

Ab has been renamed tce-ab and is part of core.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11675
Re: [LOW PRIORITY] multiple questions tcz submission
« Reply #2 on: September 25, 2012, 11:13:36 PM »
Hi aus9
Quote
But in that folder for  tce.installed .....there are also sym link files eg
When an extension gets loaded, those symlinks are created automatically. If your extension has a /usr/bin
directory in it, when loaded, it will get mounted to /tmp/tcloop, and symlinks will get created between /usr/bin
and /tmp/tcloop/yourextension/usr/bin.

aus9

  • Guest
Re: [LOW PRIORITY] multiple questions tcz submission
« Reply #3 on: September 26, 2012, 05:19:47 AM »
gerald_clark

tce-ab  ahhhh I get it, terminal command for Apps Browser.

tce-ab ......Keywords........I assume this is using a search for Tags from the info file?

Rich

I will keep it simple then and not try to create a structure to be squashed called

/tmp/tcloop/packagename/usr/local/tce.installed/packagename
with a sym link to /usr/local/tce.installed/packagename.

which is what I was trying to report eh?

2) I will edit the wiki to update ab to tce-ab

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11675
Re: [LOW PRIORITY] multiple questions tcz submission
« Reply #4 on: September 26, 2012, 09:36:35 AM »
Hi aus9
Ixbrian made some outstanding diagrams that show how Tinycore works, go to:
http://forum.tinycorelinux.net/index.php/topic,13041.msg71803.html#msg71803
and spend some time looking at the link under  TCZ Mount mode architecture:.