WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline mdr86

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

Offline Rich

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

Offline luiznetto

  • WikiUser
  • *
  • Posts: 6
Re: Installing extensions from the command line
« Reply #2 on: May 05, 2017, 05: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

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 5270
Re: Installing extensions from the command line
« Reply #3 on: May 05, 2017, 05: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

  • WikiUser
  • *
  • Posts: 6
Re: Installing extensions from the command line
« Reply #4 on: May 07, 2017, 07: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: 1448
Re: Installing extensions from the command line
« Reply #5 on: May 07, 2017, 08:38:18 AM »
Code: [Select]
tce-load -i extension-name
Download a copy and keep it handy: Core book ;)

Offline luiznetto

  • WikiUser
  • *
  • Posts: 6
Re: Installing extensions from the command line
« Reply #6 on: May 07, 2017, 10:59:15 AM »
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, 11:17:11 AM by luiznetto »

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 2377
Installing extensions from the command line
« Reply #7 on: May 07, 2017, 08:30:11 PM »
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 07, 2017, 08:36:26 PM by coreplayer2 »

Offline Misalf

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