Computer Setup

Upgrade your OS

If your computer is not using the latest OS, you should upgrade to the latest OS first.

Installing Python development environment

The best way to manage Python installations these days is a “conda env”. This will allow you to manage different Python “environments”, where each environment is a set of libraries that you have installed. For example, you can have one environment that uses Python 2.7 and has certain library versions installed, and another environment that uses Python 3.5 and has other libraries installed. Another advantage of conda environments is that you can apply the same procedure on NERSC and other computing centers that support conda.
To do this, follow the online instructions on installing a conda environment and see modifications below:
  • (probably) prefer to install the “miniconda” version rather than anaconda
  • (probably) prefer to install “miniconda 3” rather than “miniconda 2”. Both will work fine and allow you to do everything the other one does so don’t stress too much about this decision.
  • When creating environments, use a command like this (note that this also installs recommended libraries):
    1
    conda create --name py3 python=3 numpy matplotlib seaborn plotly pandas flask pymongo scipy sympy scikit-learn jupyter
    Copied!
  • If you want a reference guide to conda commands, try: http://conda.pydata.org/docs/using/cheatsheet.html

Install high-throughput computation environment

Our group has a set of base codebases used for performing high-throughput calculations. Note that if your project does not involve high-throughput calculation, you may need only one or two of these libraries installed – ask your subgroup head if you are unsure.
After activating a conda environment, install the following packages using a combination of git clone >>REPO_NAME<< and python setup.py develop. Start with:
1
git clone https://www.github.com/materialsproject/fireworks
Copied!
You might need to generate an ssh key for the git clone command to work: ssh-keygen -t rsa -b 4096 no password is probably OK unless you are security conscious add your SSH key to your Github profile
Then:
1
cd fireworks; python setup.py develop; cd ..
Copied!
Repeat the process above for the remaining libraries:
1
git clone https://www.github.com/materialsproject/pymatgen
2
cd pymatgen; python setup.py develop; cd ..
3
git clone https://www.github.com/materialsproject/pymatgen-db
4
cd pymatgen-db; python setup.py develop; cd ..
5
git clone https://www.github.com/materialsproject/custodian
6
cd custodian; python setup.py develop; cd ..
Copied!
Repeat the same process for a couple of other libraries on the hackingmaterials github site:
1
git clone https://www.github.com/hackingmaterials/atomate
2
cd atomate; python setup.py develop; cd ..
3
git clone https://www.github.com/hackingmaterials/matminer
4
cd matminer; python setup.py develop; cd ..
Copied!
If you want, you can automatically source activate your environment in your .bash_profile file. This will automatically load your environment when you open a Terminal. Otherwise, you will start off in your default Mac Python.

Other things to do

  • Bring the now-empty box to 143C, write your name on it, and add it to the tower.
  • Set up your Time Machine backup (make sure you have purchased or received an external hard disk).
  • You can also set up an online backup plan (e.g., Crashplan or Backblaze) to provide you with a second backup.
  • Install MongoDB.
  • Install Docker.
  • Purchase Microsoft office from LBNL software distribution; if you are a UC Berkeley student/employee you can get this, and lots of other software, for free: UC Berkeley Software Catalog