Lab 1
- Intro to this lab
- In general the structure of today’s lab will be different from the
labs in general
- Today is about getting everybody on the same page for getting
started with class on Tuesday (no fMRI stuff today!)
- If you’re already running linux (or very familiar with *nix
systems), have an editor, have set up git and a github account,
this may seem a little tedious, but I’ll try to give you
something to do
- Laptop check
- First things first - get installs and tools all set up for Tuesday
- First: Piazza
- Github
- Who doesn’t have a github account yet?
- Google form with two entries: student name and github names
- OS Poll
- Have students who didn’t take it yet fill it out
- Show results
- Why *nix?
- Full control of the computer
- CLI is arguable faster (with some training)
- More importantly: reproducible!
- Most servers run linux
- Almost all supercomputers
- Discuss options for linux
- BCE
- Other VM
- Dual boot
- Account on a server - contact home department about setting up
- Next - Brief discussion of text editors
- ADVANCED: For students that are past this point and using vim,
check out pathogen vim system - goal: install simple-vim package
- google vim-awesome to explore vim plugins
- Graphics based vs. non graphics based:
- Programmers in general should be familiar with non-graphics
based editors because chances are you will be forced into a
non-graphics enabled environment at some point
- Recovery
- ssh
- GUI-based editors:
- Simple ones like Gedit, gvim
- IDE’s like eclipse
- Recommended pathway - get familiar with a non-graphics
editor, then switch into an IDE for specific tasks (this
pathway is so common, that most IDE’s have key-bindings for
the non-graphics based editors like vim)
- Vim - steep learning curve (although 30 min is enough to get you
started)
- vimtutor
- emacs - the other of the “big 2”
- Install git
- Who hasn’t installed git?
- Help with installs
- ADVANCED: For bored students, check out the “hub” project
from github
- Configure git
- Use git config with –global flag
- show the .gitconfig file that gets created
- Next, go through the course intro
- http://www.jarrodmillman.com/rcsds/lectures/day01.html
- Quiz on Thursday based on “interactive shell” and “basic file
management” sections
- Do the tutorial in tutorial-unix-basics
- First, clone the tutorial:
https://github.com/berkeley-scf/tutorial-unix-basics.git
- You’ll also need another repo which serves as an example
directory structure to explore/change/move files:
https://github.com/berkeley-stat243/stat243-fall-2014
- Split into groups (or solo + screencast) and follow the tutorial