SqueakJS-invoked Squeak installers

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

SqueakJS-invoked Squeak installers

Craig Latta


Hi--

     I've written some Squeak installers that are invoked by SqueakJS.
When you visit [1], SqueakJS installs native Squeak on localhost and
makes a remote-messaging connection to it. Please check it out and let
me know how it goes. So far I've tested on
macOS/{Chrome,Safari,Firefox}, Windows/{Edge,Chrome,Firefox}, and
Linux/{Firefox,Chrome}.


     thanks!

-C

[1] http://blackpagedigital.com/squeak

--
Craig Latta
Black Page Digital
Amsterdam | San Francisco
[hidden email]
+31   6 2757 7177 (SMS ok)
+ 1 415  287 3547 (no SMS)




Reply | Threaded
Open this post in threaded view
|

Re: SqueakJS-invoked Squeak installers

Chris Muller-3
Hi Craig, I'm interested in this.  I tried it in a Ubuntu 14.04.4 LTS
Desktop running on a Oracle VirtualBox.  In the SqueakJS image, it put
up an alert box saying "Please run the file I just downloaded".  I
wasn't sure where it downloaded it so clicked on the "Linux" link to
download "squeak.sh" to my home directory.  I then ran in a terminal
window.

At the bottom, it seemed to run into an issue, (possibly because of
the uname of the VirtualBox?), here's the end of the terminal log:

 - Chris

============
./squeak.sh
  ....
  inflating: Context-7.0-All-in-One/squeak.bat
  inflating: Context-7.0-All-in-One/squeak.sh
Starting Squeak...
cmm@vbox-ubuntu-desktop:~$ Error. Could not determine platform's libc
path for VM.
Try forcing $PLATFORMLIBDIR in
/home/cmm/Context-7.0-All-in-One/Context-7.0-xxxxx-32bit-All-in-One.app/Contents/Linux-i686/bin/squeak,
based on LIBC_SO.
Please report what works to squeak [vm-dev] mail list.
  LIBC_SO=
  DISTRIB_ID=Ubuntu
  DISTRIB_RELEASE=14.04
  DISTRIB_CODENAME=trusty
  DISTRIB_DESCRIPTION="Ubuntu 14.04.4 LTS"
  NAME="Ubuntu"
  VERSION="14.04.4 LTS, Trusty Tahr"
  ID=ubuntu
  ID_LIKE=debian
  PRETTY_NAME="Ubuntu 14.04.4 LTS"
  VERSION_ID="14.04"
  UNAME=Linux vbox-ubuntu-desktop 4.2.0-27-generic #32~14.04.1-Ubuntu
SMP Fri Jan 22 15:32:26 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
/home/cmm/Context-7.0-All-in-One/Context-7.0-xxxxx-32bit-All-in-One.app/Contents/Linux-i686/bin/squeak:
36: /home/cmm/Context-7.0-All-in-One/Context-7.0-xxxxx-32bit-All-in-One.app/Contents/Linux-i686/bin/squeak:
[[: not found


On Thu, Oct 27, 2016 at 1:55 AM, Craig Latta <[hidden email]> wrote:

>
>
> Hi--
>
>      I've written some Squeak installers that are invoked by SqueakJS.
> When you visit [1], SqueakJS installs native Squeak on localhost and
> makes a remote-messaging connection to it. Please check it out and let
> me know how it goes. So far I've tested on
> macOS/{Chrome,Safari,Firefox}, Windows/{Edge,Chrome,Firefox}, and
> Linux/{Firefox,Chrome}.
>
>
>      thanks!
>
> -C
>
> [1] http://blackpagedigital.com/squeak
>
> --
> Craig Latta
> Black Page Digital
> Amsterdam | San Francisco
> [hidden email]
> +31 6 2757 7177 (SMS ok)
> + 1 415 287 3547 (no SMS)
>
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: SqueakJS-invoked Squeak installers

Bert Freudenberg
On Sunday, 30 October 2016, Chris Muller <[hidden email]> wrote:

At the bottom, it seemed to run into an issue, (possibly because of
the uname of the VirtualBox?), here's the end of the terminal log:

 - Chris


36: /home/cmm/Context-7.0-All-in-One/Context-7.0-xxxxx-32bit-All-in-One.app/Contents/Linux-i686/bin/squeak:
[[: not found

Maybe a sh vs bash problem?

- Bert - 


Reply | Threaded
Open this post in threaded view
|

re: SqueakJS-invoked Squeak installers

Craig Latta
In reply to this post by Chris Muller-3

Hi Chris--

     Well, not finding libc is a problem. Have you run Squeak
successfully on that setup before? I don't think the uname matters, and
I don't know what it means by "[[: not found". As for sh vs. bash, it
should be running sh since the "#!/bin/sh" magic cookie is that
beginning of the script.

     Thanks for trying it out!


-C

--
Craig Latta
Black Page Digital
Amsterdam | San Francisco
[hidden email]
+31   6 2757 7177 (SMS ok)
+ 1 415  287 3547 (no SMS)


Reply | Threaded
Open this post in threaded view
|

re: SqueakJS-invoked Squeak installers

David T. Lewis
Most newer Linux distributions will have /bin/sh linked to something other
than bash (motivated mainly by a recent security hole found in bash). A
script that depends on bash features needs to explicitly invoke bash in
the shebang line.

Dave

>
> Hi Chris--
>
>      Well, not finding libc is a problem. Have you run Squeak
> successfully on that setup before? I don't think the uname matters, and
> I don't know what it means by "[[: not found". As for sh vs. bash, it
> should be running sh since the "#!/bin/sh" magic cookie is that
> beginning of the script.
>
>      Thanks for trying it out!
>
>
> -C
>
> --
> Craig Latta
> Black Page Digital
> Amsterdam | San Francisco
> [hidden email]
> +31   6 2757 7177 (SMS ok)
> + 1 415  287 3547 (no SMS)
>
>



Reply | Threaded
Open this post in threaded view
|

re: SqueakJS-invoked Squeak installers

Craig Latta

Hi Dave--

> A script that depends on bash features needs to explicitly invoke
> bash in the shebang line.

     Mm, mine doesn't.


-C

--
Craig Latta
Black Page Digital
Amsterdam | San Francisco
[hidden email]
+31   6 2757 7177 (SMS ok)
+ 1 415  287 3547 (no SMS)


Reply | Threaded
Open this post in threaded view
|

re: SqueakJS-invoked Squeak installers

Bert Freudenberg
It's the general Cog VM's starting script. Fabio and I just fixed it:


- Bert -

On Tue, Nov 1, 2016 at 11:07 AM, Craig Latta <[hidden email]> wrote:

Hi Dave--

> A script that depends on bash features needs to explicitly invoke
> bash in the shebang line.

     Mm, mine doesn't.


-C

--
Craig Latta
Black Page Digital
Amsterdam | San Francisco
[hidden email]
<a href="tel:%2B31%20%20%206%202757%207177" value="+31627577177">+31 6 2757 7177 (SMS ok)
<a href="tel:%2B%201%20415%20%20287%203547" value="+14152873547">+ 1 415 287 3547 (no SMS)





Reply | Threaded
Open this post in threaded view
|

DBusPlugin?

Hans-Martin Mosner
In reply to this post by Chris Muller-3
Hi,
I'm currently trying to port a really old application that I wrote in 2008 and that's in regular use since then to
current Squeak 5.1 (I want to add some features, and maintaining it in 3.9 indefinitely is not what I want). It looks
promising, but I'm using the DBus plugin which does not seem to be available in 5.1.
Does anyone know where it might have fallen off the wagon?

Cheers,
Hans-Martin


Reply | Threaded
Open this post in threaded view
|

Re: DBusPlugin?

David T. Lewis
On Tue, Nov 01, 2016 at 09:31:15PM +0100, Hans-Martin Mosner wrote:
> Hi,
> I'm currently trying to port a really old application that I wrote in 2008 and that's in regular use since then to
> current Squeak 5.1 (I want to add some features, and maintaining it in 3.9 indefinitely is not what I want). It looks
> promising, but I'm using the DBus plugin which does not seem to be available in 5.1.
> Does anyone know where it might have fallen off the wagon?
>

The DBus plugin has traditionally been included in the interpreter VMs, but I do not
see it in the Cog/Spur VMs. I cannot confirm, but I expect that it will work with 32-bit
Spur, although it will require some code maintenance to get it to work on 64-bit VMs.

I am CCing the vm-dev list in case someone can verify the DBusPlugin build for 32-bit Spur.
The plugin requires installing libdbus-1-dev on Linux.

Dave