WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Installing extensions from the command line  (Read 17836 times)

Offline mdr86

  • Newbie
  • *
  • Posts: 1
Installing extensions from the command line
« on: May 03, 2017, 01:20:28 PM »
How do you install extensions from the command line? The only instructions I could find were through the UI.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11588
Re: Installing extensions from the command line
« Reply #1 on: May 03, 2017, 01:27:51 PM »
Hi mdr86
You mean like it explains in the WIki?:
http://wiki.tinycorelinux.net/wiki:install_apps#install_applications2

Offline luiznetto

  • Newbie
  • *
  • Posts: 8
Re: Installing extensions from the command line
« Reply #2 on: May 05, 2017, 09:11:49 PM »
The wiki doesn't explain how to load all the applications at once that are stored, in my case, in a usb stick: /mnt/sdb1/tce/optional. I just copied them all there, after a regular session from the CD, when I had downloaded and was running all applications from the usual /tmp/tce/optional directory. I thought that, after reboot, all I had to do was use the set button in the appbrowser to set the directory to /mnt/sdb1/tce/optional and the applications would be loaded automatically, but it didn't happen. Does anyone know how I can do that, get all the applications (extensions) from my usb stick without having to download and install them all over again? 

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11588
Re: Installing extensions from the command line
« Reply #3 on: May 05, 2017, 09:36:55 PM »
Hi luiznetto
Extensions listed in  /mnt/sdb1/tce/onboot.lst  will load automatically when booting. Applications which are loaded  onboot
automatically get added to the  onboot.lst  file. If you are new to Tinycore this would be well worth your time reading:
http://tinycorelinux.net/corebook.pdf

Offline luiznetto

  • Newbie
  • *
  • Posts: 8
Re: Installing extensions from the command line
« Reply #4 on: May 07, 2017, 11:54:47 AM »
I am reading the manual, thank you. But in the meanwhile, is there a way for me to simply load the extensions that are already stored in the usb stick? Is there a single command that could do that?

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: Installing extensions from the command line
« Reply #5 on: May 07, 2017, 12:38:18 PM »
Code: [Select]
tce-load -i extension-name
Download a copy and keep it handy: Core book ;)

Offline luiznetto

  • Newbie
  • *
  • Posts: 8
Re: Installing extensions from the command line
« Reply #6 on: May 07, 2017, 02:59:15 PM »
Well, I used instead

Code: (bash) [Select]
$ tce-run package
and it did work. For example,

Code: (bash) [Select]
$ tce-run firefox-ESR
will make firefox immediately available to me, the Firefox button will show up at the bottom bar. But maybe if I create a Bash shell script like

Code: (bash) [Select]
$ tce-load -i package1 package2 etc...

and execute it after boot, it will load all the packages at once? I just found the man page here:

http://wiki.tinycorelinux.net/wiki:tce-load
« Last Edit: May 07, 2017, 03:17:11 PM by luiznetto »

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Installing extensions from the command line
« Reply #7 on: May 08, 2017, 12:30:11 AM »
Simply add any extensions required at boot to the onboot.lst   

You can add to onboot.lst manually or use the onboot maintenance option available in APPS


Sent from my iPhone using Tapatalk
« Last Edit: May 08, 2017, 12:36:26 AM by coreplayer2 »

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: Installing extensions from the command line
« Reply #8 on: May 08, 2017, 08:14:28 PM »
^^ what he said
/etc/sysconfig/tcedir/onboot.lst
Download a copy and keep it handy: Core book ;)