From: Christoph Lhotka on
Hello!

I have set up a remote Kernel on a Unix machine, the front end is on a windows
machine using the following options in the Kernel configurations menu:

plink lhotka(a)remoteip /usr/local/bin/math -mathlink -LinkMode Connect
-LinkProtocol TCPIP -LinkName "`linkname`" -LinkHost `hostip`

I have tried various different commandline options (from The FAQ, PCT, Network
Programming with Mathematica, etc...)

This version starts a kernel on the remote machine (without a password prompt)
- I see it starting up on the remote machine using top -u lhotka, but it does
nothing.

The situation is as follows: I In the frontend (on the host) I enter some
input, the frontend starts a Kernel on the remote machine, nothing comes back.
Any time I enter some input another Kernel is started, but nothing returns.

Can somebody please explain me - as detailed as possible - what I should do, I
have no idea to find out. For sure there is no easy way to establish a
conection between a Frontend and a Kernel over the network, promised by
Wolfram Research.

Thanks in advance,

Christoph

From: Arturas Acus on
Dear Christop,

My configuration, which I used a year ago for linux to linux box was

In advanced options

Arguments to MLOpen

-LinkMode Listen -LinkProtocol TCP -LinkOptions MLDontInteract -LinkName
"3500" -LinkHost 193.219.x.x(remote host IP)

string to launch kernel :

ssh user(a)193.219.x.x "math" -mathlink -LinkMode Connect -LinkProtocol
TCP -LinkName "3500" -LinkHost 193.219.y.y (local host IP)


You should configure that ssh client should connect without entering
password . (generate private public keys )

However instead of connecting remote kernel I would suggest You to make
computations on remote machine using vnc server. That is simply run on
remote machine xvnc server (I use tightvnc, but there are a lot of
other) then on local host run vnc client to connect vnc server.

This way is better, because You can completely turn off your local
computer not affecting remote computations.



> Hello!
>
> I have set up a remote Kernel on a Unix machine, the front end is on a windows
> machine using the following options in the Kernel configurations menu:
>
> plink lhotka(a)remoteip /usr/local/bin/math -mathlink -LinkMode Connect
> -LinkProtocol TCPIP -LinkName "`linkname`" -LinkHost `hostip`
>
> I have tried various different commandline options (from The FAQ, PCT, Network
> Programming with Mathematica, etc...)
>
> This version starts a kernel on the remote machine (without a password prompt)
> - I see it starting up on the remote machine using top -u lhotka, but it does
> nothing.
>
> The situation is as follows: I In the frontend (on the host) I enter some
> input, the frontend starts a Kernel on the remote machine, nothing comes back.
> Any time I enter some input another Kernel is started, but nothing returns.
>
> Can somebody please explain me - as detailed as possible - what I should do, I
> have no idea to find out. For sure there is no easy way to establish a
> conection between a Frontend and a Kernel over the network, promised by
> Wolfram Research.
>
> Thanks in advance,
>
> Christoph
--
Arturas Acus <acus(a)itpa.lt>

From: T.Sariyski on
I still get an obscure "Low-level MathLink error: The linkname was missing or not in the proper form." error when try to connect to a remote kernel (client is WinXP/i386, server is SuSe10.1/x86_64, same LAN, no firewalls, no passwords).

Arguments to MLOpen

-LinkMode Listen -LinkProtocol TCPIP -LinkOptions MLDontInteract
-LinkName "3500" -LinkHost 192.168.187.99

string to launch kernel :

ssh tsariysk(a)192.168.187.99 '"math" -mathlink -LinkMode Connect
-LinkProtocol TCP -LinkName "3500" -LinkHost 192.168.187.99'

ERR:

Mathematica could not establish a connection to the kernel.
Kernel: craft99.
Low-level MathLink error: The linkname was missing or not in the proper
form.

I tried \"3500\", 3500, \\"3500\\" - the same error. I don't know if
3500 is a port number or just a tag, I wasn't able to find any
documentation about what is LinkName and what are the proper values for
it. Could somebody post it's current working configuration for remote
kernel, please?
Thanks, Ted

P.S. Executed from a shell:

ssh tsariysk(a)192.168.187.99 '"math" -mathlink -LinkMode Connect
-LinkProtocol TCP -LinkName "3500" -LinkHost 192.168.187.99'

starts a Kernel on the remote machine.


Arturas Acus wrote:
> Dear Christop,
>
> My configuration, which I used a year ago for linux to linux box was
>
> In advanced options
>
> Arguments to MLOpen
>
> -LinkMode Listen -LinkProtocol TCP -LinkOptions MLDontInteract -LinkName
> "3500" -LinkHost 193.219.x.x(remote host IP)
>
> string to launch kernel :
>
> ssh user(a)193.219.x.x "math" -mathlink -LinkMode Connect -LinkProtocol
> TCP -LinkName "3500" -LinkHost 193.219.y.y (local host IP)
>
>
> You should configure that ssh client should connect without entering
> password . (generate private public keys )
>
> However instead of connecting remote kernel I would suggest You to make
> computations on remote machine using vnc server. That is simply run on
> remote machine xvnc server (I use tightvnc, but there are a lot of
> other) then on local host run vnc client to connect vnc server.
>
> This way is better, because You can completely turn off your local
> computer not affecting remote computations.
>
>
>
>
>> Hello!
>>
>> I have set up a remote Kernel on a Unix machine, the front end is on a windows
>> machine using the following options in the Kernel configurations menu:
>>
>> plink lhotka(a)remoteip /usr/local/bin/math -mathlink -LinkMode Connect
>> -LinkProtocol TCPIP -LinkName "`linkname`" -LinkHost `hostip`
>>
>> I have tried various different commandline options (from The FAQ, PCT, Network
>> Programming with Mathematica, etc...)
>>
>> This version starts a kernel on the remote machine (without a password prompt)
>> - I see it starting up on the remote machine using top -u lhotka, but it does
>> nothing.
>>
>> The situation is as follows: I In the frontend (on the host) I enter some
>> input, the frontend starts a Kernel on the remote machine, nothing comes back.
>> Any time I enter some input another Kernel is started, but nothing returns.
>>
>> Can somebody please explain me - as detailed as possible - what I should do, I
>> have no idea to find out. For sure there is no easy way to establish a
>> conection between a Frontend and a Kernel over the network, promised by
>> Wolfram Research.
>>
>> Thanks in advance,
>>
>> Christoph
>>


--
Ted Sariyski
------------
Combustion Research and Flow Technology, Inc.
6210 Keller's Church Road
Pipersville, PA 18947
Tel: 215-766-1520
Fax: 215-766-1524
www.craft-tech.com
tsariysk(a)craft-tech.com




From: Steve Wilson on

On Feb 3, 2007, at 2:48 AM, T.Sariyski wrote:

> I still get an obscure "Low-level MathLink error: The linkname was
> missing or not in the proper form." error when try to connect to a
> remote kernel (client is WinXP/i386, server is SuSe10.1/x86_64,
> same LAN, no firewalls, no passwords).
>
> Arguments to MLOpen
>
> -LinkMode Listen -LinkProtocol TCPIP -LinkOptions MLDontInteract
> -LinkName "3500" -LinkHost 192.168.187.99
>
> string to launch kernel :
>
> ssh tsariysk(a)192.168.187.99 '"math" -mathlink -LinkMode Connect
> -LinkProtocol TCP -LinkName "3500" -LinkHost 192.168.187.99'
>


Ted, your setup is mixing two different link protocols. You are
mixing TCP and TCPIP. The TCP link protocol is a deprecated protocol
and should not be used. In any case it will certainly not work with
TCPIP. Change the string to launch the kernel to:

ssh tsariysk(a)192.168.187.99 '"math" -mathlink -LinkMode Connect
-LinkProtocol TCPIP -LinkName "3500" -LinkHost 192.168.187.99'

Assuming there are no other problems on the network this change
should fix your problem.


Sincerely,


Steve Wilson
Wolfram Research, Inc.

From: Steve Wilson on

On Feb 5, 2007, at 7:28 AM, T.Sariyski wrote:

> I still get the same "Low-level MathLink error":
>
> Mathematica could not establish a connection to the kernel.
> Kernel: craft99.
> Low-level MathLink error: The linkname was missing or not in the
> proper form.
>
> Here are the Kernel Configuration Options:
>
> Advanced Options:
> -LinkMode Listen -LinkProtocol TCPIP -LinkOptions MLDontInteract -
> LinkName "3500" -LinkHost 192.168.187.99
>
> Shell command to launch kernel:
> ssh tsariysk(a)192.168.187.99 ' "math" -mathlink -LinkMode Connect -
> LinkProtocol TCPIP -LinkName "3500" -LinkHost 192.168.187.99'
>
> I did make sure that SSH_AUTH_SOCK environmental variable is
> visible for both windows and cygwin: I ssh
> tsariysk(a)192.168.187.99 without password from Windows Command
> Prompt as well as from Cygwin shell. I expect that Mathematica also
> acknowledges of SSH_AUTH_SOCK but I do not know how to verify it.
> Is there a debug mode for MathLink or other tools that make
> troubleshooting more transparent?
> Thanks, Ted


Lets try a couple of more options. First, change the Advance Options
to:

-LinkMode Listen -LinkProtocol TCPIP -LinkHost 192.168.187.99

This change will allow the OS to determine the port number used for
the link. In addition, MathLink will display a dialog box that tells
you the name of the link that it created. Write that name down.

Change the shell command to:

ssh tsariysk(a)192.168.187.99 math -mathlink -LinkMode Connect -
LinkProtocol TCPIP -LinkName `linkname`

Now when you start the Kernel, log in to 192.168.187.99 in another
terminal window. From the command line run:

ps axwww | grep MathKernel

( the arguments to ps may be different depending on your flavor or
Unix.)

Verify that the -LinkName command line argument to MathKernel is
actually the same value as the value you gathered from the dialog box.

Send me what you find out.


Steve


 |  Next  |  Last
Pages: 1 2
Prev: how to configure a remote kernel
Next: Roman Numerals