Tiny Core Linux

General TC => General TC Talk => Topic started by: Zendrael on May 13, 2011, 07:40:56 AM

Title: Add custom app on /usr/bin - possible?
Post by: Zendrael on May 13, 2011, 07:40:56 AM
Hi everyone!

TC is so great! I can not think in other GNU/Linux distro for me right now!

But... I am with a problem... I did a program (it's gtk-based) that i want to put within /usr/bin and, as you know, it disapear everytime I reboot the system... even using the FLTK shutdown screen...

The question is: There is some way to maintain an application installed on the system without creating an extension and without letting the application on my home folder?

Thanks again by the great community and system!
Title: Re: Add custom app on /usr/bin - possible?
Post by: Rich on May 13, 2011, 07:55:05 AM
Hi Zendrael
In your home directory under  .local  create a bin directory and put it in there.
Title: Re: Add custom app on /usr/bin - possible?
Post by: Juanito on May 13, 2011, 07:56:34 AM
you could make a tarball out of your application and untar it each time you start or you could add every file in your application to /opt/filetool.lst

..but it would be far better to make an extension out of it
Title: Re: Add custom app on /usr/bin - possible?
Post by: Rich on May 13, 2011, 08:27:10 AM
Sorry, I missed this part

Quote
without letting the application on my home folder?
Title: Re: Add custom app on /usr/bin - possible?
Post by: MikeLockmoore on May 13, 2011, 09:39:15 AM
After you copy the app over to /usr/bin, you can add:

Code: [Select]
usr/bin/{appname}
to the /opt/.filetool.lst file (where {appname} is your new executable's filename.  Then do the normal backup stuff.  This is assuming the executable is not too big that you mind a copy of it going into your personal backup (mydata.tgz) file.

Or if it does not need to be in /usr/bin, maybe /usr/local/bin would be more appropriate.
Title: Re: Add custom app on /usr/bin - possible?
Post by: Zendrael on May 13, 2011, 10:00:30 AM
Thanks everyone!

But @MikeLockmoore, what is the difference of putting the app on /usr/bin and /usr/local/bin?

Thanks again to all!
Title: Re: Add custom app on /usr/bin - possible?
Post by: tinypoodle on May 13, 2011, 10:48:56 AM
what is the difference of putting the app on /usr/bin and /usr/local/bin?

http://www.pathname.com/fhs/pub/fhs-2.3.html
Title: Re: Add custom app on /usr/bin - possible?
Post by: MikeLockmoore on May 16, 2011, 10:01:08 AM
Practically speaking, /usr/bin is often used in Tiny Core for the executable programs that come in the Tiny Core Base system (the "built-in" stuff), while applications added by the user via Tiny Core Extensions (TCEs) are put under /user/local/bin.  I think there are several exceptions to this, but it's generally that way.
Title: Re: Add custom app on /usr/bin - possible?
Post by: tinypoodle on May 16, 2011, 04:08:46 PM
/usr/bin is often used in Tiny Core for the executable programs that come in the Tiny Core Base system (the "built-in" stuff), while applications added by the user via Tiny Core Extensions (TCEs) are put under /user/local/bin.

Notable that TC is in that aspect much closer adhering to standards than many other distros.
Title: Re: Add custom app on /usr/bin - possible?
Post by: curaga on May 16, 2011, 11:43:52 PM
Oh right, FHS agrees with us on /usr/local ;)
Title: Re: Add custom app on /usr/bin - possible?
Post by: llondel on June 02, 2011, 02:18:11 AM
Provided you're prepared to do a bit more work, just extract the initrd, copy your application into /usr/bin or /usr/local/bin and package it back up. It does mean that every time you upgrade your Tinycore installation you have to repeat the process, but if you're using it in an embedded application, you probably won't be doing it that often.

It's what I did when developing stuff, although I might yet go back and turn my application into an extension when I've got a bit of spare time. After the effort of compiling a newer kernel for a 486sx and re-packaging everything, one extra copy command was trivial.
Title: Re: Add custom app on /usr/bin - possible?
Post by: Guy on June 02, 2011, 02:51:03 AM
You might get some ideas from these.

http://wiki.tinycorelinux.net/wiki:backup_date

http://wiki.tinycorelinux.net/wiki:random_background