I understand unix quite well. All the ./pharo does is redirect to the vm
with the --nodisplay flag.

When I try it without the "eval "ZnClient new get: 'https://google.com'""
part, I get the following in the terminal:

Usage: [--no-preferences|--preference-file=<FILE>][<subcommand>] [--help]
[--copyright] [--version] [--list] [ --no-quit ]
    --help       print this help message
    --copyright  print the copyrights
    --version    print the version for the image and the vm
    --list       list a description of all active command line handlers
    --no-quit    keep the image running without activating any other
command line handler
    <subcommand> a valid subcommand in --list

    Preference File Modification:
    --preference-file   load the preferences from the given <FILE>
    --no-default-preferences    do not load any preferences from the
default locations

Documentation:
A PharoCommandLineHandler handles default command line arguments and
options.
The PharoCommandLineHandler is activated before all other handlers.
It first checks if another handler is available. If so it will activate the
found handler.

Then pharo exits. It seems like it is just doing the command and then dies.
That's definitely different behaviour than a usual headless pharo.

Cheers,

Jeff



On Sun, Feb 15, 2015 at 5:39 PM, Sven Van Caekenberghe <[email protected]> wrote:

> Sorry, Jeff, it most certainly works ;-)
>
> ./pharo is the headless version
> ./pharo-ui is the version for running a GUI
>
> these are both bash scripts that use the binary inside pharo-vm
> you can look at what's in them to understand what is going on
>
> I don't want to be rude, but either you understand command line unix or
> you don't. To make things easier, there are the 2 top level scripts. I have
> no time to explain this from first principles, sorry.
>
> > On 15 Feb 2015, at 23:10, J.F. Rick <[email protected]> wrote:
> >
> > This somewhat works. At minimum, the command for downloading the google
> home page works. On the other hand, the pharo-ui line caused an error:
> "pharo: could not find any display driver"
> >
> > That's not a huge deal as this is on a remote server and I can run
> headless. However, when I try to do that (i.e., ./pharo-vm/pharo headless
> ./Pharo.image &), I get the same message about not finding a display driver.
> >
> > I do get both vm-display-X11 and vm-display-null showing up as available
> drivers.
> >
> > Cheers,
> >
> > Jeff
> >
> > On Sat, Feb 14, 2015 at 2:15 PM, Sven Van Caekenberghe <[email protected]>
> wrote:
> > Hi,
> >
> > It seems some people are having trouble getting Pharo to work on Ubuntu
> 14.04.1 LTS 64-bit.
> >
> > Here is one way to make things work.
> >
> > Pharo (the VM) is a 32-bit executable dynamically linked to a number of
> libraries, each of which has to be present in its 32-bit variant in order
> to run Pharo and/or to use all features.
> >
> > On a clean, stock, fully updated Ubuntu 14.04.1 LTS 64-bit, do the
> following (the X11, GL and asound libraries are not needed when you run
> headless on a server):
> >
> > $ sudo apt-get install curl libc6:i386 libssl1.0.0:i386 libX11.6:i386
> libGL.1:i386 libasound2:i386
> >
> > $ curl get.pharo.org/40+vm | bash
> >
> > $ ./pharo Pharo.image eval "ZnClient new get: 'https://google.com'"
> >
> > $ ./pharo-ui Pharo.image
> >
> > HTH,
> >
> > Sven
> >
> > PS: <Pro tip> You can use ldd to check if all dependencies of the VM and
> its plugins in the pharo-vm directory are satisfied
> >
> > --
> > Sven Van Caekenberghe
> > Proudly supporting Pharo
> > http://pharo.org
> > http://association.pharo.org
> > http://consortium.pharo.org
> >
> >
> >
> >
> >
> > --
> > Jochen "Jeff" Rick, Ph.D.
> > http://www.je77.com/
> > Skype ID: jochenrick
>
>
>


-- 
Jochen "Jeff" Rick, Ph.D.
http://www.je77.com/
Skype ID: jochenrick

Reply via email to