Tiny Core Linux

Tiny Core Base => Micro Core => Topic started by: bkwb on August 02, 2010, 10:19:39 AM

Title: delete/reinstall mocp & auto run it on startup
Post by: bkwb 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? 
Title: Re: delete/reinstall mocp & auto run it on startup
Post by: gerald_clark on August 02, 2010, 10:40:05 AM
If it is already installed, you need only add it to tce/onboot.lst.
Title: Re: delete/reinstall mocp & auto run it on startup
Post by: bkwb 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
Title: Re: delete/reinstall mocp & auto run it on startup
Post by: bkwb 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?
Title: Re: delete/reinstall mocp & auto run it on startup
Post by: tinypoodle 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 ?
Title: Re: delete/reinstall mocp & auto run it on startup
Post by: bmarkus 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.
Title: Re: delete/reinstall mocp & auto run it on startup
Post by: tinypoodle on August 03, 2010, 09:15:57 AM
True. In my case was always when loading an extension after backup was already restored.
Title: Re: delete/reinstall mocp & auto run it on startup
Post by: bkwb 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..
Title: Re: delete/reinstall mocp & auto run it on startup
Post by: bkwb on August 07, 2010, 01:54:58 PM
any ideas?