Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
Readme dependencies
### Add an SSH Key to GitHub ###
1. `ssh-keygen -t rsa -b 2048` (in terminal)
2. Press **Enter** to accept the default save location.
3. Enter a passphrase that you will remember.
4. `cat ~/.ssh/id_rsa.pub`
Copy the text block that is displayed.
This is your SSH key.
If you're on Window and can't copy the text from the terminal, go
to `C:\Users\[your username here]\.ssh` and open the `id_rsa.pub` file
with notepad.
5. In GitHub, click **Edit Your Profile**.
6. Select **SSH Keys** on the left.
7. Click **Add SSH key**. Give it a meaningful title.
8. Copy your SSH Key into the Key, and click **Add key**.
---
### Windows ###
1. You will need a terminal tool for Windows. I used [Git Bash][] to test these
steps, but [Cygwin][] or another unix-like editor should work fine too.
- PATH environment. I recommend the __last option__ here to include Unix
tools, but if you don't understand what that entails then use the
_second option_ which still adds Git to your system PATH then click
**Next**.
- Besides that, keep all of the defaults.
1. Install the newest release of [Node][] for Windows, using the Windows
Installer (.msi).
- Use all of the defaults.
1. Install [Anaconda][], which includes `numpy`, `scipy` and `flake8`.
- We recommend using "Just Me" for the install to avoid potential admin
issues.
1. Close and re-open your terminal so that your new PATH is loaded.
Make sure to navigate back to your `geomag-algorithms` project directory.
`easy_install obspy`
1. Run 'python' to verify that Anaconda's version of Python is being used.
If it isn't, update your PATH so that Conda's HOME is before any other
versions of Python.
[Git Bash]: http://git-scm.com/download/win
[Cygwin]: http://cygwin.com/install.html
[Node]: http://nodejs.org/download/
[Anaconda]: http://continuum.io/downloads
---
### Mac ###
1. Install `node`, `git` and `python` (2.7.X)
- On OS X, we recommend using [Homebrew][]
```brew install node```
```brew install git```
1. Use pip to install `numpy`, `scipy`, `obspy`, and `flake8`
`pip install numpy scipy obspy flake8`
1. Update paths as needed in your `~/.bash_profile`:
```# brew installed binaries```
```export PATH=$PATH:/usr/local/bin```
```# npm installed binaries```
```export PATH=$PATH:/usr/local/share/npm/bin```
```# gem installed binaries```
```export PATH=$PATH:/usr/local/opt/ruby/bin```
1. Close and re-open your terminal so that your new PATH is loaded.
Make sure to navigate back to your `geomag-baseline-calculator` project directory.
[Homebrew]: http://brew.sh/