Lab Manual:Computing Resources

From SpanLabWiki
Revision as of 17:36, 24 February 2010 by Span (Talk | contribs) (Server Computers)

Jump to: navigation, search

Lab Computers

Computer Names and Locations

Name & Room
dmthal.stanford.edu 465 (the main Linux station)
amygdala.stanford.edu 469 (second Linux station)
insula.stanford.edu 465 (Macbook; knutson@)
dlpfc.stanford.edu 469 (Mac; RA computer)
dlpfc.stanford.edu 465 (Macbook; Dual-boot Experiment Computer)
behavior.stanford.edu 467 (Windows machine for the behavioral room)
putamen.stanford.edu 469 (Mac; Dan's computer)
caudate.stanford.edu 465 (Mac; Lab Coordinator)
mpfc.stanford.edu 470
nacc.stanford.edu 478 (Linux; Jeff uses this one)
mpfc2.stanford.edu 467
vta.stanford.edu 469 (mac; knutson@)

Server Computers

dmthal and amygdala are the primary data servers in the lab. Both computers connect to the biac which is the psychology department data server. Data stored on the biac can be found in the biac2 folders in the root menus of both dmthal and amygdala. Data stored in biac2 is backed up nightly along with the rest of biac.

IMPORTANT: If dmthal and amygdala are rebooted all of the data drives including the connection to biac must be remounted.

You can find scripts in the root directories of both machines to remount the biac and all drives.

Connecting to the Linux computers

On a Windows computer use Xmanager:

  • Click the Xstart button on the toolbar (lower left)
  • Select a session (span@dmthal usually)
  • Click “Run”
  • If a license window pops up, cancel it, and click Run again. The program isn’t registered but can run free forever.

On a MacOS X computer use X11:

  • Launch the X11 utility (in the launch bar at the bottom of the screen or in the Applications folder)
  • Open a terminal window if one does not open automatically (select Applications → terminal from the menu bar)
  • Type “ssh –X span@dmthal.stanford.edu” to connect to dmthal, then enter password -- note that it is best to use “ssh –Y” when on the insula MacBook, lest emacs will crash.

Lab Scripts

visit the scripts page

Purchasing Software

Stanford has some great deals for both departmental and personal purchase.

http://cgi.stanford.edu/dept/its/cgi-bin/software_portal/ - Visit here and choose the software you want to find out if Stanford has a deal on it.

http://www.stanford.edu/group/bookstore/SUprices/software.html - You can see what is available at the Stanford Bookstore here.

Stanford Unix Computing Resources

Stanford has some nice powerful servers you can use to run Unix/Linux programs, such as STATA.

This page has information on which computer to connect to: Choosing the Right Computer http://www.stanford.edu/services/unixcomputing/which.html. bramble.stanford.edu is a good bet. Just connect with your SUnet ID and password.

Psychology Department Resources

Using BIAC

BIAC is the psychology department server. It is a good place to store data, because it has a nice backup routine. There are nightly backups as well as less often (weekly?) backups which are stored off site. BIAC lives at biac2.stanford.edu

Mounting BIAC

To get access to BIAC for your computer, you will need to be connected to the Psychology Department network, and may need to send Martin Frost an email with your IP Address.

Mount BIAC in Mac OS X

You can mount it to your mac using the command:

 sudo mount_nfs -P biac2:/biac2/knutson <destination folder>

Its a little funky because it seems that no mater where you mount it, a link to it called "knutson" shows up on your desktop. Also I'm still working out the permissions issues, so you may have trouble changing the files on there at the moment.

~Stephanie 2008/06/13

Mount BIAC in Linux

In order to mount BIAC, you must first sign on as a "super user." To do this, use the command:

 su

When prompted, enter the spanlab password. You are now logged in as a super user.

You can mount to linux using the command:

 mount biac2:/biac2/knutson <destination folder>

e.g.

 mount biac2:/biac2/knutson /biac2

and

 mount biac2:/biac2/knutson6 /biac2b

Using Symbolic Links to BIAC Space

If you use full directory paths in your scripts instead of relative paths, you might find some of your scripts broken when your data gets moved to BIAC. You can do a search and replace with 'sed' or you can create a symbolic link to the new location of the data.

Here's an example:

 ln -s /path/to/biac/mount /path/to/symbolic/link

SPM

help: Jeff Cooper

MATLAB

help: Jeff Cooper, Stephanie Greer

open source alternative: Octave

computers: dmthal, amygdala

Troubleshooting:

If matlab does not start, you might need to go into the matlab73/etc directory and run './lmstart'

Adobe Illustrator

help: Kacey Ballard, Dan Yoo

open source alternative: Inkscape

resources: Kacey Ballard's Illustrator Cheat Sheet

Adobe Photoshop

help: Dan Yoo

open source alternative: GIMP

R

help: Dan Yoo, Logan

STATA

help: Greg Larkin

resources:

Resources for learning Stata - http://www.stata.com/links/resources1.html

UCLA Tutorial on Stata - http://www.ats.ucla.edu/stat/stata/

Running STATA on Stanford Servers

These Stanford servers have stata installed

  1. bramble.stanford.edu
  2. hedge.stanford.edu
  3. elaine.stanford.edu
  4. myth.stanford.edu

You can start stata with the commands

stata
xstata
stata-se
xstata-se

xstata is the graphical version, while plain stata is the text version. stata-se and xstata-se are the special editions which allow you to have bigger data sets.

Here is a link to information on which Stanford servers to connect to for which task: http://www.stanford.edu/services/unixcomputing/which.html

SPSS

Lab Copies: