WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Can't install 3rd party binary permanent  (Read 3271 times)

Offline marshalleq

  • Newbie
  • *
  • Posts: 3
    • Tech-KnowHow.com
Can't install 3rd party binary permanent
« on: December 29, 2016, 05:59:19 PM »
Hi all, apologies if this is mentioned elsewhere, but I've searched and haven't found anything.  (This is the first time I've tried tinycore, which is a brilliant concept I must say).

I'm trying to figure out which method / how to install a 3rd party application, which includes multiple binaries and keep it all after a reboot.  It installs OK and runs, however obviously after each reboot I have to go through the install process again.

The application from what I can see, is a simple extract to the home folder with a configurable location to some config directories. 

Extensions sound like the easiest method, though this might be unadvisable if there is a startup script required?

I've read the manual, but I'm still struggling a bit.

My experience is all with installations and such and also a bit of compiling.  Images as far as booting and scripting is less.

Thanks!

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14817
Re: Can't install 3rd party binary permanent
« Reply #1 on: December 29, 2016, 10:35:37 PM »

Offline marshalleq

  • Newbie
  • *
  • Posts: 3
    • Tech-KnowHow.com
Re: Can't install 3rd party binary permanent
« Reply #2 on: December 31, 2016, 11:43:32 PM »
Thanks, reading it now. :)

Offline marshalleq

  • Newbie
  • *
  • Posts: 3
    • Tech-KnowHow.com
Re: Can't install 3rd party binary permanent
« Reply #3 on: December 31, 2016, 11:51:57 PM »
OK, clearly this won't work as it seems to require source code, which I don't have.  This is a binary installation method as per my original post.  What installation method do I use for binaries that need to start automatically?  Backup?

Thanks.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14817
Re: Can't install 3rd party binary permanent
« Reply #4 on: January 01, 2017, 12:43:17 AM »
You can use the backup function, but for large files that do not change it is more efficient to create a personal extension.

You can do this by creating the required file/folder structure somewhere convenient, copying your binaries to the appropriate place in the structure and then making an extension of it.

For example:
Code: [Select]
$ mkdir -p /tmp/pkg/usr/local/bin
$ sudo chown -R root:root /tmp/pkg/usr
$ sudo cp mybinary /tmp/pkg/usr/local/bin
$ cd /tmp
$ sudo mksquashfs pkg/ mybinary.tcz
$ sudo chown tc:staff mybinary.tcz

You can then copy your extension to your /tce folder and start using it.