This page outlines the tools and resources that you will need to complete the Data Institute activities. Please be sure to have the laptop you will be bringing to the Institute setup by 14 June 2017 to ensure you are prepared to begin the pre-Institute materials. Checklist This checklist includes the tools that need to be set-up on your computer for the Institute. Detailed directions to accomplish each objective are below.
Now that you have downloaded Git, it's time to start using it. Read the Book. Dive into the Pro Git book and learn at your own pace. Download a GUI. Several free and commercial GUI tools are available for the Mac platform. Get Involved. A knowledgeable Git community is available to answer your questions. Tags: Apple, bsd, Getting Started, Git, git getting-started mac os x, git mac, git mac os x, git quick-start mac os x, guide, how-to, install, install git mac, mac, mac os x 10.12 Sierra, quick-start, tutorial, version control system.
Install Bash shell (or shell of preference). Install Git. Install Python 3.x. Bash/Shell Setup Install Bash for Windows. Download the Git for Windows. Run the installer and follow the steps bellow:.
Welcome to the Git Setup Wizard: Click on 'Next'. Information: Click on 'Next'. Select Destination Location: Click on 'Next'. Select Components: Click on 'Next'. Select Start Menu Folder: Click on 'Next'.
Adjusting your PATH environment: Select 'Use Git from the Windows Command Prompt' and click on 'Next'. If you forgot to do this programs that you need for the event will not work properly. If this happens rerun the installer and select the appropriate option. Configuring the line ending conversions: Click on 'Next'. Keep 'Checkout Windows-style, commit Unix-style line endings' selected. Configuring the terminal emulator to use with Git Bash: Select 'Use Windows' default console window' and click on 'Next'.
Configuring experimental performance tweaks: Click on 'Next'. Completing the Git Setup Wizard: Click on 'Finish'. This will provide you with both Git and Bash in the Git Bash program. Install Bash for Mac OS X The default shell in all versions of Mac OS X is bash, so no need to install anything.
You access bash from the Terminal (found in /Applications/Utilities). You may want to keep Terminal in your dock for this workshop. Install Bash for Linux The default shell is usually Bash, but if your machine is set up differently you can run it by opening a terminal and typing bash. There is no need to install anything.
Git Setup Git is a version control system that lets you track who made changes to what when and has options for easily updating a shared or public version of your code on. You will need a web browser (current versions of Chrome, Firefox or Safari, or Internet Explorer version 9 or above). Git installation instructions borrowed and modified from. Git for Windows Git should be installed on your computer as part of your Bash install. Git on Mac OS X Install Git on Macs by downloading and running the most recent installer for 'mavericks' if you are using OS X 10.9 and higher -or- if using an earlier OS X, choose the most recent 'snow leopard' installer, from. After installing Git, there will not be anything in your /Applications folder, as Git is a command line program. Setting Up Python is a popular language for scientific computing and data science, as well as being a great for general-purpose programming.
Installing all of the scientific packages individually can be a bit difficult, so we recommend using an all-in-one installer, like Anaconda. Regardless of how you choose to install it,.please make sure your environment is set up with Python version 3.5 (at the time of writing, the gdal package did not work with the newest Python version 3.6). Python 2.x is quite different from Python 3.x so you do need to install 3.x and set up with the 3.5 environment.
We will teach using Python in the, a programming environment that runs in a web browser. For this to work you will need a reasonably up-to-date browser. The current versions of the Chrome, Safari and Firefox browsers are all (some older browsers, including Internet Explorer version 9 and below, are not). You can choose to not use notebooks in the course, however, we do recommend you download and install the library so that you can explore this tool. Windows Download and install. Download the default Python 3 installer (3.6 - and yes you can later set up the 3.5 environment from this). Use all of the defaults for installation except make sure to check Make Anaconda the default Python.
Mac OS X Download and install from Continuum. Download the Python 3.x installer, choosing either the graphical installer or the command-line installer (3.6 - and yes you can later set up the 3.5 environment from this). For the graphical installer, use all of the defaults for installation.
For the command-line installer open Terminal, navigate to the directory with the download then enter: bash Anaconda3-4.3.1-MacOSX-x8664.sh Linux We recommend the all-in-one scientific Python installer. Download the installer that matches your operating system and save it in your home folder. Download the default Python 3 installer. Open a terminal window. Type bash Anaconda- and then press tab.
The name of the file you just downloaded should appear. You will follow the text-only prompts. When there is a colon at the bottom of the screen press the down arrow to move down through the text. Type yes and press enter to approve the license. Press enter to approve the default location for the files. Type yes and press enter to prepend Anaconda to your PATH (this makes the Anaconda distribution the default Python).
Install Python packages We need to install several packages to the Python environment to be able to work with the remote sensing data. gdal.
h5py If you are new to working with command line you may wish to complete the next setup instructions which provides and intro to command line (bash) prior to completing these package installation instructions. Windows Create a new Python 3.5 environment by opening Windows Command Prompt and typing conda create –n p35 python=3.5 anaconda When prompted, activate the p35 environment in Command Prompt by typing activate p35 You should see (p35) at the beginning of the command line. You can also test that you are using the correct version by typing python -version. Install Python package(s):. gdal: conda install gdal. h5py: conda install h5py Note: You may need to only install gdal as the others may be included in the default.
Mac OS X Create a new Python 3.5 environment by opening Terminal and typing conda create –n p35 python=3.5 anaconda This may take a minute or two. When prompted, activate the p35 environment in Command Prompt by typing source activate p35 You should see (p35) at the beginning of the command line.
You can also test that you are using the correct version by typing python -version. Install Python package(s):. gdal: conda install gdal. h5py: conda install h5py Linux Open default terminal application (on Ubuntu that will be gnome-terminal). Launch Python. Install Python package(s):.
gdal: conda install gdal. h5py: conda install h5py Set up Jupyter Notebook Environment In your terminal application, navigate to the directory ( cd) that where you want the Jupyter Notebooks to be saved (or where they already exist). Open Jupyter Notebook with jupyter notebook Once the notebook is open, check which version of Python you are in by using the prompts # check what version of Python you are using. Import sys sys.version You should now be able to work in the notebook. The gdal package that occasionally has problems with some versions of Python. Therefore test out loading it using import gdal.
Additional Resources.
This article is now outdated and I recommend you check one of the many. I would also recommend in OS X that way you don’t need to mess around with OS X internals, you could still host the database and files on your OS X filesystem if that makes you feel more comfortable. As with everything though, backup and backup again! Is self hosted Git management software, not only that but it’s also free and open-source. While Gitlab has a brilliant available, it is focused on Ubuntu/Debian and not all those instructions carry over to OS X so after a bit of tinkering I’ve put together this guide for anyone else looking to run Gitlab on OS X. I’ll be working on 10.8 (Mountain Lion) but these instructions will most likely work on 10.7 (Lion) as well. My original install of Gitlab was on an Xserve machine that also had installed so these steps will work with that also.
Disclaimer This guide has allowed me to setup Gitlab (v4.2) on a private local network with around 10 users and nearly 200 repositories. Any serious production use I highly recommend using system Gitlab recommends to allow for consistent support and I accept no responsibility for any problems you encounter while following this guide.
I have only managed to get Gitlab 4.2 working on OS X so far which uses Gitolite so this guide will be installing Gitlab 4.2 and assumes a clean installation of OS X. Requirements The Gitlab team suggests at least 1GB RAM in your machine to run the Gitlab application, since Mountain Lion requires about 2GB+ RAM you can go ahead and tick that off the list. Install Command Line Tools and Homebrew If you don’t have installed already then before you start copy & pasting into Terminal you had better check you have installed first. OK, time to install Homebrew.