Sunday, 11 September 2005

Local 'remote' Mathematica Kernel on Mac OS

Say, you run Mathematica 5.x locally on a system (Mac OSX 10.4.1 for intel with Rosetta, for instance) where communication between the frontend and MathKernel has problems. You can work around the problem running remotely the local kernel. Here's how:

- create a /sbin/ file with this one line of text

/[path to Mathematica /directory/Mathematica $@

- chmod +x /sbin/

of course. Of course you have to know how to use the Terminal and some basic unix knowledge.

- ssh-keygen -t rsa

you have to be logged on as the user you use normally (not root)

- Enable remote login in System Preferences - Sharing - this enables sshd

- Start the fronted, go to Kernel, Kernel options, add a new remote kernel using /sbin/ 2&>/dev/null as remote command, localhost as remote host. Define the defaults at your will. Upon launching the kernel you should be asked for the user password, but at last the frontend should communicate normally with the kernel.

No comments:

Post a Comment