Difference between revisions of "Lab Manual:Computing Resources"
m (→MATLAB) |
m (Protected "Lab Manual:Computing Resources" ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite))) |
||
(24 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
==Lab Computers== | ==Lab Computers== | ||
− | + | ===Computer Names and Locations=== | |
+ | |||
+ | '''Name & Room''' <br /> | ||
+ | vta.stanford.edu 465 (the main Linux station)<br /> | ||
+ | dmthal.stanford.edu 469 (second Linux station) <br /> | ||
+ | amygdala.stanford.edu 469 (second Linux station)<br /> | ||
+ | insula.stanford.edu 465 (Macbook; knutson@)<br /> | ||
+ | dlpfc.stanford.edu 469 (Mac; RA computer) <br /> | ||
+ | dlpfc.stanford.edu 465 (Macbook; Dual-boot Experiment Computer)<br /> | ||
+ | behavior.stanford.edu 467 (Windows machine for the behavioral room) <br /> | ||
+ | putamen.stanford.edu 469 (Mac; RA computer) <br /> | ||
+ | caudate.stanford.edu 465 (Mac; Lab Coordinator)<br /> | ||
+ | mpfc.stanford.edu 470<br /> | ||
+ | nacc.stanford.edu 478 (Linux)<br /> | ||
+ | |||
+ | ===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:''' | '''On a Windows computer use Xmanager:''' | ||
Line 15: | Line 37: | ||
*Open a terminal window if one does not open automatically (select Applications → terminal from the menu bar) | *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. | *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== | ==Lab Scripts== | ||
Line 57: | Line 63: | ||
====Mounting BIAC==== | ====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. | 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: | You can mount it to your mac using the command: | ||
Line 65: | Line 73: | ||
~Stephanie 2008/06/13 | ~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==== | ====Using Symbolic Links to BIAC Space==== | ||
Line 84: | Line 112: | ||
'''computers:''' dmthal, amygdala | '''computers:''' dmthal, amygdala | ||
− | Troubleshooting: | + | '''Troubleshooting:''' |
If matlab does not start, you might need to go into the matlab73/etc directory and run './lmstart' | If matlab does not start, you might need to go into the matlab73/etc directory and run './lmstart' | ||
+ | |||
+ | ==Python== | ||
+ | |||
+ | Basic and good introduction to coding in [[Media:thinkpython.pdf|Python.]] | ||
==Adobe Illustrator== | ==Adobe Illustrator== | ||
Line 110: | Line 142: | ||
[http://www.stata.com/links/resources1.html Resources for learning Stata - http://www.stata.com/links/resources1.html] | [http://www.stata.com/links/resources1.html Resources for learning Stata - http://www.stata.com/links/resources1.html] | ||
− | [http://www. | + | [http://www.ats.ucla.edu/stat/stata/ UCLA Tutorial on Stata - http://www.ats.ucla.edu/stat/stata/] |
+ | |||
+ | ===Running STATA on Stanford Servers=== | ||
+ | |||
+ | These Stanford servers have stata installed | ||
+ | |||
+ | # bramble.stanford.edu | ||
+ | # hedge.stanford.edu | ||
+ | # elaine.stanford.edu | ||
+ | # 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 http://www.stanford.edu/services/unixcomputing/which.html] | ||
==SPSS== | ==SPSS== | ||
'''Lab Copies:''' | '''Lab Copies:''' |
Latest revision as of 23:18, 10 July 2023
Contents
Lab Computers
Computer Names and Locations
Name & Room
vta.stanford.edu 465 (the main Linux station)
dmthal.stanford.edu 469 (second 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; RA computer)
caudate.stanford.edu 465 (Mac; Lab Coordinator)
mpfc.stanford.edu 470
nacc.stanford.edu 478 (Linux)
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'
Python
Basic and good introduction to coding in Python.
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
- bramble.stanford.edu
- hedge.stanford.edu
- elaine.stanford.edu
- 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: