[squeak-dev] Can you launch a squeak image on an etoys vm in Ubuntu?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

[squeak-dev] Can you launch a squeak image on an etoys vm in Ubuntu?

Jerome Peace



Hi all and especially Bert,

I am thinking about a work around to get sound going on my development images.

So far on Ubuntu I've found I can make launchers with commands

like

squeak -image MySqueak

and it will launch something other than the installed 3.9 image.

for etoys the installed launcher has
'/usr/bin/etoys'  

as a command which runs the etoys shell script.

The shell script seems to recognize a -r alt.image option

but I have not been able to get it to work for me.

I've tried it both inside and outside the single quotes above.

What am I missing?

Yours in curiosity and service, --Jerome Peace




     

Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Can you launch a squeak image on an etoys vm in Ubuntu?

Mariano Martinez Peck


On Sun, Apr 12, 2009 at 7:14 PM, Jerome Peace <[hidden email]> wrote:



Hi all and especially Bert,

I am thinking about a work around to get sound going on my development images.

So far on Ubuntu I've found I can make launchers with commands

like

squeak -image MySqueak

I don't know Etoys, but in Squeak I do something like this in ubuntu:

 /usr/local/bin/squeak /home/mariano/squeak/imagenes/sq3.10.2-7179web09.02.3.image

And that works perfect.

You can also so something like:

#!/bin/sh
APP=`dirname $0`
EXE="$APP/Contents/Linux686"
RES="$APP/Contents/Resources"

exec "$EXE/squeak" -plugins "$EXE" \
    -encoding latin1 \
    -vm-display-X11 -swapbtn  \
    "$RES/pier.2.image"

 

I don't know If I understood ok your question.

Cheers,

Mariano



and it will launch something other than the installed 3.9 image.

for etoys the installed launcher has
'/usr/bin/etoys'

as a command which runs the etoys shell script.

The shell script seems to recognize a -r alt.image option

but I have not been able to get it to work for me.

I've tried it both inside and outside the single quotes above.

What am I missing?

Yours in curiosity and service, --Jerome Peace









Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Can you launch a squeak image on an etoys vm in Ubuntu?

Bert Freudenberg
In reply to this post by Jerome Peace
On 13.04.2009, at 00:14, Jerome Peace wrote:

> Hi all and especially Bert,
>
> I am thinking about a work around to get sound going on my  
> development images.
>
> So far on Ubuntu I've found I can make launchers with commands
>
> like
>
> squeak -image MySqueak
>
> and it will launch something other than the installed 3.9 image.

If you add the -vm-sound-OSS option to this command line, doesn't it  
work?

> for etoys the installed launcher has
> '/usr/bin/etoys'
>
> as a command which runs the etoys shell script.
>
> The shell script seems to recognize a -r alt.image option
>
> but I have not been able to get it to work for me.
>
> I've tried it both inside and outside the single quotes above.
>
> What am I missing?


Please attach your "etoys" script version. My version of the script  
accepts a "--image" argument:

http://etoys.laptop.org/src/etoys.in

In any case you should be able to just use the VM that is included in  
the etoys app structure.

- Bert -



Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Can you launch a squeak image on an etoys vm in Ubuntu?

Jerome Peace
Hi Bert

Making a launcher with the command
squeak -vm-sound-OSS
then clicking on the launcher does not open any image at all.


--- On Mon, 4/13/09, Bert Freudenberg <[hidden email]> wrote:

> From: Bert Freudenberg <[hidden email]>
> Subject: Re: [squeak-dev] Can you launch a squeak image on an etoys vm in Ubuntu?
> To: [hidden email], "The general-purpose Squeak developers list" <[hidden email]>
> Date: Monday, April 13, 2009, 4:18 AM
> On 13.04.2009, at 00:14, Jerome Peace wrote:
>
> > Hi all and especially Bert,
> >
> > I am thinking about a work around to get sound going
> on my  
> > development images.
> >
> > So far on Ubuntu I've found I can make launchers
> with commands
> >
> > like
> >
> > squeak -image MySqueak
> >
> > and it will launch something other than the installed
> 3.9 image.
>
> If you add the -vm-sound-OSS option to this command line,
> doesn't it  
> work?
>
> > for etoys the installed launcher has
> > '/usr/bin/etoys'
> >
> > as a command which runs the etoys shell script.
> >
> > The shell script seems to recognize a -r alt.image
> option
> >
> > but I have not been able to get it to work for me.
> >
> > I've tried it both inside and outside the single
> quotes above.
> >
> > What am I missing?
>
>
> Please attach your "etoys" script version. My
> version of the script  
> accepts a "--image" argument:
>
I am attaching the etoys.sh script from etoys.app
its different than yours.

I tried adding -image myImage.image to the etoys command.
I am getting a can't move to directory/file not present error.

Remember I am still in the "removing ignorance gently mode" of Ubuntu learning. Apparently I am not describing the file path correctly.
I've tried several variations but haven't hit on the right one yet.

> http://etoys.laptop.org/src/etoys.in
>
> In any case you should be able to just use the VM that is
> included in  
> the etoys app structure.
>
> - Bert -


     


etoys.sh (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

[squeak-dev] Re: Can you launch a squeak image on an etoys vm in Ubuntu?

Chris Kassopulo-2
On Mon, 13 Apr 2009 17:31:17 -0700, Jerome Peace wrote:

> Hi Bert
>
> Making a launcher with the command
> squeak -vm-sound-OSS
> then clicking on the launcher does not open any image at all.
>
>
> --- On Mon, 4/13/09, Bert Freudenberg <[hidden email]> wrote:
>
>> From: Bert Freudenberg <[hidden email]> Subject: Re: [squeak-dev]
>> Can you launch a squeak image on an etoys vm in Ubuntu? To:
>> [hidden email], "The general-purpose Squeak developers
>> list" <[hidden email]> Date: Monday, April 13,
>> 2009, 4:18 AM On 13.04.2009, at 00:14, Jerome Peace wrote:
>>
>> > Hi all and especially Bert,
>> >
>> > I am thinking about a work around to get sound going
>> on my
>> > development images.
>> >
>> > So far on Ubuntu I've found I can make launchers
>> with commands
>> >
>> > like
>> >
>> > squeak -image MySqueak
>> >
>> > and it will launch something other than the installed
>> 3.9 image.
>>
>> If you add the -vm-sound-OSS option to this command line, doesn't it
>> work?
>>
>> > for etoys the installed launcher has
>> > '/usr/bin/etoys'
>> >
>> > as a command which runs the etoys shell script.
>> >
>> > The shell script seems to recognize a -r alt.image
>> option
>> >
>> > but I have not been able to get it to work for me.
>> >
>> > I've tried it both inside and outside the single
>> quotes above.
>> >
>> > What am I missing?
>>
>>
>> Please attach your "etoys" script version. My version of the script
>> accepts a "--image" argument:
>>
> I am attaching the etoys.sh script from etoys.app its different than
> yours.
>
> I tried adding -image myImage.image to the etoys command. I am getting a
> can't move to directory/file not present error.
>
> Remember I am still in the "removing ignorance gently mode" of Ubuntu
> learning. Apparently I am not describing the file path correctly. I've
> tried several variations but haven't hit on the right one yet.
>
>> http://etoys.laptop.org/src/etoys.in
>>
>> In any case you should be able to just use the VM that is included in
>> the etoys app structure.
>>
>> - Bert -


I was told via bug report that Ubuntu doesn't support OSS at all.

It is the opposite of what you are trying to do but on my Ubuntu box,
I removed the Ubuntu squeak related packages and installed the DEB
squeak-vm package.  I can open squeak and etoys images with the
command: squeak /path_to_image/image_name.image and sound works.

Note to Jerome - you can type commands from a "terminal".  Edit
previous commands by using uparrow.  You get more feedback in a
terminal.  Applications>>Accessories>>Terminal

The only problem encountered is that squeak does not respond to
closing of its host window.  Etoys puts up a confirmation message box.
I remember seeing something in the archives about fixes to the vm in
how that is handled, but it also requires changes to the image.  Are
those changes available?

Chris


Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Can you launch a squeak image on an etoys vm in Ubuntu?

Bert Freudenberg
In reply to this post by Jerome Peace
On 14.04.2009, at 02:31, Jerome Peace wrote:

> Hi Bert
>
> Making a launcher with the command
> squeak -vm-sound-OSS
> then clicking on the launcher does not open any image at all.

Well what image are you giving? We seem to be talking past each other.
>
> <etoys.sh>


Ah, I see. The section with  -r "$ALTIMG" in that script is a remnant  
of an older script that someone failed to delete.

The simplest you could do is copy your "etoys.sh" to "myimage.sh" and  
replace the line

IMAGE="$DIR/Contents/Resources/etoys.image"

with

IMAGE="/path/to/my.image"

- Bert -



Reply | Threaded
Open this post in threaded view
|

[squeak-dev] Closing window on Linux (was Re: Can you launch a squeak image on an etoys vm in Ubuntu?)

Bert Freudenberg
In reply to this post by Chris Kassopulo-2
On 14.04.2009, at 04:00, Chris Kassopulo wrote:
>
> The only problem encountered is that squeak does not respond to
> closing of its host window.  Etoys puts up a confirmation message box.
> I remember seeing something in the archives about fixes to the vm in
> how that is handled, but it also requires changes to the image.  Are
> those changes available?


Of course.

August 2007:

http://lists.squeakfoundation.org/pipermail/squeak-dev/2007-August/119996.html

May 2008:

http://lists.squeakfoundation.org/pipermail/squeak-dev/2008-May/129008.html

March 2009:

http://lists.squeakfoundation.org/pipermail/beginners/2009-March/006014.html

I'm not sure if by now this has been fixed in a squeak.org release.

- Bert -