WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: delete/reinstall mocp & auto run it on startup  (Read 5892 times)

Offline bkwb

  • Newbie
  • *
  • Posts: 16
delete/reinstall mocp & auto run it on startup
« on: August 02, 2010, 10:19:39 AM »
hi,

I'm new to microcore and just installed it on a virtual machine on my laptop. Now I tried mocp on tinycore and I loved it. Now I just want to try it in microcore but he keeps saying he can't find it. When I look at the appbrowser-cli he says it is allready installed.

My guess is that something went wrong during download. So my question is how do you delete an extension on microcore? it's not like you can go to appsaudit or something..

Other question i have is: how do you let mocp open on startup? I'm planning to put microcore on an old computer and place it inside an old radio. since we can't receive many stations I'm going to use internet radio.

any ideas? 

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: delete/reinstall mocp & auto run it on startup
« Reply #1 on: August 02, 2010, 10:40:05 AM »
If it is already installed, you need only add it to tce/onboot.lst.

Offline bkwb

  • Newbie
  • *
  • Posts: 16
Re: delete/reinstall mocp & auto run it on startup
« Reply #2 on: August 03, 2010, 04:58:36 AM »
it doesn't work, but I'm going to reinstall it. it's only a couple off minutes work.. Normally I would keep searching until I found the problem but in this case I don't want to keep messing with it :p

Offline bkwb

  • Newbie
  • *
  • Posts: 16
Re: delete/reinstall mocp & auto run it on startup
« Reply #3 on: August 03, 2010, 05:58:18 AM »
so it's working now, I just need to get it running when microcore boots up.

I made a startup script that is located here:
usr/local/tce.installed/moc

this is the script:

Code: [Select]
#/bin/sh
/usr/local/bin/mocp

since mocp is located in /usr/local/bin/

1st problem is that I don't know if this code would work in the first place.
2nd problem is that for some reason this isn't backed up when I reboot even when use filetool.sh backup
so I guess I'm doing something wrong.

ideas anyone?

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: delete/reinstall mocp & auto run it on startup
« Reply #4 on: August 03, 2010, 08:13:20 AM »
I have observed that some custom scripts or config files saved in backup could be overwritten by loading an extension.
Why not add this line to /opt/bootlocal.sh ?
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: delete/reinstall mocp & auto run it on startup
« Reply #5 on: August 03, 2010, 08:25:21 AM »
Backup is restored after extensions are loaded, so an extension do not overwrite backup just by loading.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: delete/reinstall mocp & auto run it on startup
« Reply #6 on: August 03, 2010, 09:15:57 AM »
True. In my case was always when loading an extension after backup was already restored.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline bkwb

  • Newbie
  • *
  • Posts: 16
Re: delete/reinstall mocp & auto run it on startup
« Reply #7 on: August 06, 2010, 08:50:02 AM »
good and bad news :p

goodnews: it works

badnews: after it starts it says this:
FATAL_ERROR: wgetch() failed

so I guess goodnews doesn't count anymore..

Offline bkwb

  • Newbie
  • *
  • Posts: 16
Re: delete/reinstall mocp & auto run it on startup
« Reply #8 on: August 07, 2010, 01:54:58 PM »
any ideas?