version 1.7, 2000/03/15 08:22:20 |
version 1.8, 2000/03/15 10:52:20 |
|
|
%% $OpenXM: OpenXM/src/ox_math/documents/math2ox.texi,v 1.6 2000/03/14 14:59:39 ohara Exp $ |
%% $OpenXM: OpenXM/src/ox_math/documents/math2ox.texi,v 1.7 2000/03/15 08:22:20 ohara Exp $ |
|
|
\input texinfo |
\input texinfo |
@iftex |
@iftex |
Line 57 In order to execute @code{math2ox}, you need to type a |
|
Line 57 In order to execute @code{math2ox}, you need to type a |
|
In[1]:= Install["math2ox"] |
In[1]:= Install["math2ox"] |
@end example |
@end example |
|
|
We recommend loading a Mathematica program @code{oxclient.m} instead of |
The Mathematica program oxclient.m, which is used to load math2ox |
calling @code{Install[]} directly: |
and set some global variables, is in the directory |
|
@code{$OpenXM_HOME/lib/oxmath}. |
|
The standard value of @code{$OpenXM_HOME} is @code{/usr/local/OpenXM}. |
|
We recommend using @code{oxclient.m} instead of @code{Install[]}: |
@example |
@example |
In[1] := <<oxclient.m |
In[1] := <<oxclient.m |
@end example |
@end example |
Line 106 by ssh. Of course, you are supposed to be able to log |
|
Line 109 by ssh. Of course, you are supposed to be able to log |
|
machine by @code{ssh} and @code{$Remote_OpenXM_HOME/rc/cshrc} or |
machine by @code{ssh} and @code{$Remote_OpenXM_HOME/rc/cshrc} or |
@code{$Remote_OpenXM_HOME/rc/bashrc} are executed from the login shell |
@code{$Remote_OpenXM_HOME/rc/bashrc} are executed from the login shell |
of your remote machine. |
of your remote machine. |
The function @code{OxStartRemoteSSH[]} does not request your password, |
The function @code{OxStartRemoteSSH[]} does not ask your password, |
that is, you need to be using @code{ssh-agent} before calling |
that is, you need to be using @code{ssh-agent} before calling |
@code{OxStartRemoteSSH[]}. |
@code{OxStartRemoteSSH[]}. |
Then there will be no check of password. |
Then there will be no check of password. |
Line 114 Then there will be no check of password. |
|
Line 117 Then there will be no check of password. |
|
@node Starting the X Window System with ssh-agent,,, Starting OX servers on a remote machine |
@node Starting the X Window System with ssh-agent,,, Starting OX servers on a remote machine |
@subsection Starting the X Window System with ssh-agent |
@subsection Starting the X Window System with ssh-agent |
|
|
If you use the @code{startx} command to boot the X Window System, then |
In this subsection, we will explain how to start ssh-agent |
we recommend you replace the command by @code{ssh-agent startx}. |
and set your password by ssh-add |
|
for reader's convinience. As to details, see ssh-agent (1) |
|
and ssh-add (1). |
|
If you start the X-windows system by @code{startx}, you can start |
|
ssh-agent by @code{ssh-agent startx}. |
|
|
@example |
@example |
bash$ ssh-agent startx |
bash$ ssh-agent startx |
@end example |
@end example |
Line 127 exec ssh-agent .xinitrc |
|
Line 135 exec ssh-agent .xinitrc |
|
@noindent |
@noindent |
where @code{.xinitrc} is executable. |
where @code{.xinitrc} is executable. |
|
|
After booting the X Window System, you need to type on suitable terminal |
After starting the X Window System, you need to type on suitable terminal |
emulator as follows: |
emulator as follows: |
@example |
@example |
bash$ ssh-add |
bash$ ssh-add |
@end example |
@end example |
@noindent |
@noindent |
and input your passphrase. |
and input your passphrase. Once you set your passphrase by ssh-add, you |
|
no longer need to input your passphrase to access to other machines by |
|
ssh. |
|
|
See ssh(1), ssh-agent(1), ssh-add(1), and ssh-keygen(1) for detail. |
|
|
|
@c Description of OxStartRemoteSSH |
@c Description of OxStartRemoteSSH |
@menu |
@menu |
* OxStartRemoteSSH:: |
* OxStartRemoteSSH:: |
Line 396 to get beta-nbc bases by calling @code{ox_asir}. |
|
Line 404 to get beta-nbc bases by calling @code{ox_asir}. |
|
@node Example,,, Top |
@node Example,,, Top |
@chapter Example |
@chapter Example |
|
|
|
In this section, we will present a simple OpenXM session |
|
on Mathematica to send a list |
|
@example |
|
["Hello World", 0] |
|
@end example |
|
@noindent |
|
to a server and pops that list from the server. |
|
|
The @code{math2ox} has the following commands: |
The @code{math2ox} has the following commands: |
|
|
@code{OxStart[], |
@code{OxStart[], |
|
|
OxClose[], |
OxClose[], |
OxReset[]}. |
OxReset[]}. |
|
|
First, let us load the math2ox. |
First, let us load the @code{math2ox}. |
@example |
@example |
In[1]:= <<oxclient.m |
In[1]:= <<oxclient.m |
@end example |
@end example |