You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »

Software Installation

The following commands will allow you to run xmgrace,pyplot,gimp,ase on your Macbook Pro Laptop with MacOS X 10.6 (Snow Leopard). Office is also available for MACs purchased by SLAC.

Before doing the following, you must install:

  1. "Xcode" from MacOSX CD "optional installs" (not "applications" CD) that came with your laptop (ask cpo if you don't have a copy)
  2. "macports" from here

Then execute the following commands in a terminal on your mac (assumes bash shell):

export ASE_TAGS=https://svn.fysik.dtu.dk/projects/ase/tags/
svn co -r 1574 $ASE_TAGS/3.4.1 ase-3.4.1
scp youraccountname@noric.slac.stanford.edu:/afs/slac/g/suncat/mac/pyplot-0.11.tar.gz ~
tar xvfz pyplot-0.11.tar.gz
sudo tcsh
port install grace gimp py26-gtk
port install py26-matplotlib +gtk2
cp -r pyplot /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages
cp -r ase-3.4.1 /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/ase
exit

This "port install" command may take several hours (last time we tried: 6).

After completion of the above, include the following lines in ~/.profile (again, assumes bash shell):

export PYTHONPATH=/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/:/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/ase
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
alias pyplot='cd /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pyplot; python pyplot.py; cd -'
alias ag='/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/ase/tools/ag'

SSH Issues

To enable ssh login to the mac, go to preferences->sharing and enable "Remote Login"

To enable X forwarding, edit /etc/sshd_config and insert the line "X11Forwarding yes"

  • No labels