- I've set up a class account on socrates. Socrates runs
Solaris, a flavor of Unix from Sun Microsystems. Click here to find how to use
it. You can use either telnet or ssh to login, but I strongly
discourage the use of telnet as it is insecure. Type
% ssh py221-xx@socrates.berkeley.edu -X
to login. (Replace xx with yours.) The option "-X" is used
to forward X11 through secure channel. A terminal emulator to use
ssh on Windows is available here;
it requires a valid CalNet
ID. ssh is built into Mac OS X.
- You will be using Mathematica
to solve some of the problems. PANIC cluster has
a license for more than ten processes, and socrates has an unlimited
license. A student license can be purchased from The Scholar's Workstation at
a hefty discount for PCs and Macs from the regular academic price of $895.
- To use Mathematica remotely on socrates or PANIC, you need an
X-server software on your computer. On Windows, go to http://software.berkeley.edu/
and install Exceed. Click here for more
detailed instructions by Adam Bryant. On Macs, you can install X11
from system disks (see instructions). On
Linux and other Unix machines, X11 must be a part of the standard
installation.
Mathematica version 4.0 on socrates needs special fonts. Type
% xset fp+ tcp/socrates.berkeley.edu:7100
in your X-windows software (e.g., Exceed or X11)
to use the font server on socrates. Despite the warning on fonts
(just click OK), it seems to work fine. Mathematica version 5.0 on
PANIC does not require a particular setup on your end.
After logging in with X11 forwarding, type
% mathematica &
to start a Mathematica session.
- Daniel wrote a sample
notebook to get you started with Mathematica. Thank you,
Daniel! You are not required to use Mathematica in this
course, but I will post solution sets in Mathematica notebooks and
design problems assuming you will be using Mathematica. I cannot
guarantee if you will be able to produce results we expect using
other programs. If you insist, I suspect Maple would do probably
fine. I am less sure with Matlab, especially in the area of
algebra. Share your stories with us!
- To print from Mathematica, probably the easiest is to install
MathReader
on your PC,
scp
or sftp
your notebook file
to your PC, open it with MathReader, and print it from there.
Another way is to use Mathematica on socrates, go to File menu
and choose Print. A dialog box appears:
For Print Destination,
choose File and specify the filename. Make sure that "Include
Mathematica fonts in document" is chosen. Click OK and the notebook
is saved as a postscript file. A postscript file can be previewed
with
% ghostview xxx.ps
To print it from your PC, convert
it to a PDF file with % ps2pdf xxx.ps
and then
scp
or sftp
the file xxx.pdf
to your hard drive, open it with Acrobat Reader, and then print. To
print only the graphics (or just one cell in general), choose the
cell by clicking the blue square bracket on the right, go to File
menu → Save Selection As → EPS → give a filename
xxx.ps, and the rest is the same.