WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Add custom app on /usr/bin - possible?  (Read 5059 times)

Offline Zendrael

  • Sr. Member
  • ****
  • Posts: 355
    • Zendrael's home of projects
Add custom app on /usr/bin - possible?
« 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!

Offline Rich

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 6956
Re: Add custom app on /usr/bin - possible?
« Reply #1 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.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 11102
Re: Add custom app on /usr/bin - possible?
« Reply #2 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

Offline Rich

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 6956
Re: Add custom app on /usr/bin - possible?
« Reply #3 on: May 13, 2011, 08:27:10 AM »
Sorry, I missed this part

Quote
without letting the application on my home folder?

Offline MikeLockmoore

  • Hero Member
  • *****
  • Posts: 503
  • Good software needn't be big!
Re: Add custom app on /usr/bin - possible?
« Reply #4 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.

Offline Zendrael

  • Sr. Member
  • ****
  • Posts: 355
    • Zendrael's home of projects
Re: Add custom app on /usr/bin - possible?
« Reply #5 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!

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Add custom app on /usr/bin - possible?
« Reply #6 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
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline MikeLockmoore

  • Hero Member
  • *****
  • Posts: 503
  • Good software needn't be big!
Re: Add custom app on /usr/bin - possible?
« Reply #7 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.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Add custom app on /usr/bin - possible?
« Reply #8 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.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10064
Re: Add custom app on /usr/bin - possible?
« Reply #9 on: May 16, 2011, 11:43:52 PM »
Oh right, FHS agrees with us on /usr/local ;)
The only barriers that can stop you are the ones you create yourself.

Offline llondel

  • WikiUser
  • *
  • Posts: 22
Re: Add custom app on /usr/bin - possible?
« Reply #10 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.

Offline Guy

  • Hero Member
  • *****
  • Posts: 1089
Many people see what is. Some people see what can be, and make a difference.