Tiny Core Linux

Tiny Core Base => TCB Talk => Topic started by: hitsware on July 14, 2012, 05:19:36 PM

Title: launching applications (newbie)
Post by: hitsware on July 14, 2012, 05:19:36 PM
I've managed to download and save smallbasic.cli.tcz into tce (I think)
How do I launch it ? I'd like an icon with the others.
When I tried Crome (.smp?) browser it placed its own icon and ran fine.
Title: Re: launching applications (newbie)
Post by: Rich on July 14, 2012, 09:22:22 PM
Hi hitsware
Not all applications come with an icon. Open a terminal and type  sbasic. There is a GUI version of smallbasic and
it looks like it does have an icon.
Title: Re: launching applications (newbie)
Post by: hitsware on July 15, 2012, 12:24:53 AM
Thanks
I'll try that
There are 3 entries of smallbasic
on the appbrowser
with 3 different suffixes
.cli , .gui , and ?
I wondered if I need 1, or all 3 ?
Title: Re: launching applications (newbie)
Post by: Juanito on July 15, 2012, 01:04:54 AM
If one extension relies on another, it should be loaded automatically by "apps" using the *dep file.

In this case, the dep file for smallbasic-gui does not mention smallbasic-cli, so it should not need it. The third extension, smallbasic-doc, sounds like it contains the documentation for smallbasic...
Title: Re: launching applications (newbie)
Post by: hitsware on July 15, 2012, 10:20:53 AM
I'm missing something (my first sojourn into linux)
I've downloaded a few apps and they appear in the
tce/optional file.
Firefox added it's own icon and clicking that works
(same with Chromium)
BUT ........
When I try to use the app launcher it doesn't work
(even on Firefox which I know runs)
Can someone give me a step by step on launching
an application.
Do I need to do something @ boot ? or ???
I've ruled out .scm vs .tcz by downloading
timidity.scm and it also won't do anything
TIA
Title: Re: launching applications (newbie)
Post by: Juanito on July 15, 2012, 02:11:58 PM
I think by "app launcher" you're referring to the apps gui tool - this downloads and optionally loads extensions, but doesn't run them.

To run an app you need to use the icon/menu item or launch it from a termial window - which apps are you having a problem with?
Title: Re: launching applications (newbie)
Post by: hitsware on July 15, 2012, 02:57:04 PM
I think by "app launcher" you're referring to the apps gui tool - this downloads and optionally loads extensions, but doesn't run them.

To run an app you need to use the icon/menu item or launch it from a termial window - which apps are you having a problem with?
Not the gui tool .....
If I click the empty screen I get a small menu
there I click 'system tools' for another menu
there I click 'run program'
this lets me give address of application
(say)   /mnt/sdb1/tce/optional/firefox.scm
then I click run
it does nothing

On the first menu :
applications
system tools
new desktop
exit

If I click applications I get:
firefox
smallbasic

firefox works from there but not small basic

How do I launch from terminal ?
Title: Re: launching applications (newbie)
Post by: tinypoodle on July 15, 2012, 03:22:16 PM
You can't execute an extension, but the executable of an installed extension which should be in path.
Please read again all what has been stated in posts in this thread how to execute applications.

Now if there is really a menu entry which doesn't do anything, that might possibly require looking into..
Title: Re: launching applications (newbie)
Post by: hitsware on July 15, 2012, 03:36:39 PM
> You can't execute an extension, but the executable
> of an installed extension which should be in path.

Then .scm or .tcz are not executables ?
Sorry for the ignorance ....

> Please read again all what has been stated in posts
> in this thread how to execute applications.

Which thread ? This one is new started by me.

> Now if there is really a menu entry which doesn't do anything,
> that might possibly require looking into..

Smallbasic is on the application menu and seems to do nothing,
but I may have the wrong version or ?
Title: Re: launching applications (newbie)
Post by: Rich on July 15, 2012, 04:44:27 PM
Hi hitsware
Smallbasic is a  command line  based program. You need a terminal to run it. As I said earlier, open a terminal
and enter  smallbasic. That should give you whatever smallbasic uses for a command prompt.
Quote
Then .scm or .tcz are not executables ?
No, they are packages which contain whatever files are required by that extension.
Title: Re: launching applications (newbie)
Post by: hitsware on July 15, 2012, 05:04:54 PM
I get :

sh:  smallbasic:  not found

Do I maybe need all 3 entries from the app browser ?
I was thinking they were differant versions from the
descriptions ?
EDIT: I now have all 3 entries and same result
Title: Re: launching applications (newbie)
Post by: Rich on July 15, 2012, 07:58:16 PM
Hi hitsware
I'm sorry, meant to say type  sbasic.
Title: Re: launching applications (newbie)
Post by: hitsware on July 15, 2012, 08:20:03 PM
sbasic returns nothing ..........
On the apps menu it is ' SmallBASIC '
Title: Re: launching applications (newbie)
Post by: Rich on July 15, 2012, 09:33:44 PM
Hi hitsware
Apparently sbasic is on the shy side. sbasic returns nothing. sbasic --help  returns nothing. However, sbasic -h
does put up a help message.
Title: Re: launching applications (newbie)
Post by: hitsware on July 15, 2012, 09:45:06 PM
:)
Where's abelmora when we need him ?
Title: Re: launching applications (newbie)
Post by: Rich on July 15, 2012, 09:59:59 PM
Hi hitsware
Quote
Where's abelmora when we need him ?
I don't get the reference, but I take it that means this solved your problem.
Title: Re: launching applications (newbie)
Post by: hitsware on July 16, 2012, 12:12:39 AM
scroll down to smallbasic

http://distro.ibiblio.org/tinycorelinux/tcz_2x.html
Title: Re: launching applications (newbie)
Post by: tinypoodle on July 16, 2012, 03:27:07 AM
Those are extensions for 2.x - is that what you are running?
Title: Re: launching applications (newbie)
Post by: hitsware on July 16, 2012, 10:41:10 AM
No ......... I have 'current'
Are some of the apps in the appbrowser maybe bunk ?
Would an earlier version work with them ?
I like this one though .
Title: Re: launching applications (newbie)
Post by: Juanito on July 16, 2012, 10:57:20 AM
if you load smallbasic-gui and type "sbasici" at the command prompt things will work
Title: Re: launching applications (newbie)
Post by: hitsware on July 16, 2012, 11:55:58 AM
Hola Juanito

I get:

sbasici: error while loading shared libraries:
libfontconfig.so.1: cannot open a shared object file:
no such file or directory
Title: Re: launching applications (newbie)
Post by: Rich on July 16, 2012, 12:03:37 PM
Hi hitsware
Try installing  fontconfig.tcz.
Title: Re: launching applications (newbie)
Post by: Juanito on July 16, 2012, 12:05:22 PM
Code: [Select]
$ ldd `which sbasici` | grep local
        libfontconfig.so.1 => /usr/local/lib/libfontconfig.so.1 (0xf73e3000)
        libexpat.so.1 => /usr/local/lib/libexpat.so.1 (0xf73b0000)

Yep, it needs fontconfig as a dep (I dimly recall that might have been in the base back in the days of tc-2.x)

dep file adjusted
Title: Re: launching applications (newbie)
Post by: hitsware on July 16, 2012, 12:47:26 PM
> dep file adjusted

Juanito y todos !Que Bueno! !Gracias!
Works from the app menu.
Would you know what I need to get the (smallbasic)
SOUND command to work ?
BEEP works, but not SOUND for some reason.
Otra vez Gracias :)
I've been trying a long time to get some kind of
Basic going in Linux.........
Title: Re: launching applications (newbie)
Post by: tinypoodle on July 16, 2012, 12:57:57 PM
Install and configure a sound system?
i.e. alsa or OSS at your choice.
Title: Re: launching applications (newbie)
Post by: hitsware on July 16, 2012, 01:04:06 PM
Install and configure a sound system?
i.e. alsa or OSS at your choice.
That makes sense. I wonder how the BEEP gets through ?
Thanks !
Title: Re: launching applications (newbie)
Post by: tinypoodle on July 16, 2012, 01:10:26 PM
pc speaker is unrelated to soundcard ;)
Title: Re: launching applications (newbie)
Post by: Rich on July 16, 2012, 01:37:41 PM
Hi hitsware
The  smallbasic-doc.tcz  extension may also be of some use to you. It has many sample files included under:
/usr/local/share/smallbasic/distro-examples/
Title: Re: launching applications (newbie)
Post by: hitsware on July 16, 2012, 01:43:36 PM
Hi hitsware
The  smallbasic-doc.tcz  extension may also be of some use to you. It has many sample files included under:
/usr/local/share/smallbasic/distro-examples/
Thanks ....... :)
Title: Re: launching applications (newbie)
Post by: hitsware on July 16, 2012, 03:42:25 PM
I downloaded alsa.tcz
results in tce/optional:

alsa.tcz
alsa.tcz.dep
alsa.tcz.md
alsa-conf.tcz
alsa-conf
and 3 ea. alsa-module

in     /opt/bootlocal.sh    (which for some reason doesn't show in Windows?)
I added    /usr/local/etc/init.d/alsasound  start

terminal:   sudo alsaconf
gives:
'command not found'



Title: Re: launching applications (newbie)
Post by: tinypoodle on July 16, 2012, 04:08:30 PM
You appear to miss a lot of dependencies.
Use appsaudit to fix.
Title: Re: launching applications (newbie)
Post by: Rich on July 16, 2012, 04:24:08 PM
Hi hitsware
The  alsaconf  command is in  alsaconf.tcz  , not in  alsa-config.tcz.
Title: Re: launching applications (newbie)
Post by: hitsware on July 16, 2012, 04:49:02 PM
You appear to miss a lot of dependencies.
Use appsaudit to fix.
Shouldn't alsa.tcz bring along what it needs ?
Title: Re: launching applications (newbie)
Post by: hitsware on July 16, 2012, 04:49:48 PM
Hi hitsware
The  alsaconf  command is in  alsaconf.tcz  , not in  alsa-config.tcz.
I have that in tce

Bump:
I didn't and now I do and that got me alsaconf
After I got alsamixer I wonder if I need alsaconf ?

Thanks :)
Title: Re: launching applications (newbie)
Post by: tinypoodle on July 16, 2012, 05:19:38 PM
You appear to miss a lot of dependencies.
Use appsaudit to fix.
Shouldn't alsa.tcz bring along what it needs ?

See "Size" tab of appsbrowser.
Title: Re: launching applications (newbie)
Post by: hitsware on July 16, 2012, 10:36:12 PM
Hi hitsware
The  alsaconf  command is in  alsaconf.tcz  , not in  alsa-config.tcz.
I have that in tce

Bump:
I didn't and now I do and that got me alsaconf
After I got alsamixer I wonder if I need alsaconf ?

Thanks :)
Title: Re: launching applications (newbie)
Post by: Juanito on July 16, 2012, 11:16:38 PM
To set up alsa you'll need to do either:

"sudo alsaconf"
or
"sudo /usr/local/etc/init.d/alsasound start"
Title: Re: launching applications (newbie)
Post by: hitsware on July 17, 2012, 12:04:38 AM
I have it working :)
Title: Re: launching applications (newbie)
Post by: hitsware on July 21, 2012, 04:57:39 PM
I have it working :)
BUT............
When I do :
Code: [Select]
aconnect -oI get :
"ALSA lib seq_hw.c:457:(snd_seq_hw_open) open /dev/snd/seq failed:"
"No such file or directory                                                                           " 

This is sorta like when SmallBasic wouldn't work.
Does anyone have Alsa up and running ?
Title: Re: launching applications (newbie)
Post by: coreplayer2 on July 21, 2012, 09:21:43 PM
Yes but never used "aconnect -o"  where does that come from.?   to get AlSA running I just follow the info file. then backup the required files
Title: Re: launching applications (newbie)
Post by: Rich on July 21, 2012, 09:24:30 PM
@hitsware: Please don't double post.

@coreplayer2: This question is under a new thread:
http://forum.tinycorelinux.net/index.php/topic,13691.0/topicseen.html