Skip to content

Latest commit

 

History

History
91 lines (63 loc) · 5.04 KB

setup.md

File metadata and controls

91 lines (63 loc) · 5.04 KB
layout title
page
Setup

Overview

To participate in a Software Carpentry workshop, you will need access to software as described below. In addition, you will need an up-to-date web browser.

We maintain a list of common issues that occur during installation as a reference for instructors that may be useful on the Configuration Problems and Solutions wiki page.

The Bash Shell

Bash is a commonly-used shell that gives you the power to do tasks more quickly.

Linux

The default shell is usually Bash and there is usually no need to install anything.

To see if your default shell is Bash type echo $SHELL in a terminal and press the Enter key. If the message printed does not end with '/bash' then your default is something else and you can run Bash by typing bash.

MacOS

The default shell in older versions of MacOS was bash. The default shell since 2019 is zsh, though bash is still available. For the purposes of this workshop, the shells are similar enough that either is appropriate.

You access bash or zsh from the Terminal (found in /Applications/Utilities). See the Git installation video tutorial for an example on how to open the Terminal. You may want to keep Terminal in your dock for this workshop.

Windows

  • Download the Git for Windows installer.
  • Run the installer and follow the steps below.
    • Click on "Next" four times (two times if you've previously installed Git). You don't need to change anything in the Information, location, components, and start menu screens.
    • From the dropdown menu, "Choosing the default editor used by Git", select "Use the Nano editor by default" (NOTE: you will need to scroll up to find it) and click on "Next".
    • On the page that says "Adjusting the name of the initial branch in new repositories", ensure that "Let Git decide" is selected. This will ensure the highest level of compatibility for our lessons.
    • Ensure that "Git from the command line and also from 3rd-party software" is selected and click on "Next". (If you don't do this Git Bash will not work properly, requiring you to remove the Git Bash installation, re-run the installer and to select the "Git from the command line and also from 3rd-party software" option.)
    • Select "Use bundled OpenSSH".
    • Ensure that "Use the native Windows Secure Channel Library" is selected and click on "Next".
    • Ensure that "Checkout Windows-style, commit Unix-style line endings" is selected and click on "Next".
    • Ensure that "Use Windows' default console window" is selected and click on "Next".
    • Ensure that "Default (fast-forward or merge) is selected and click "Next"
    • Ensure that "Git Credential Manager" is selected and click on "Next".
    • Ensure that "Enable file system caching" is selected and click on "Next".
    • Click on "Install".
    • Click on "Finish" or "Next".
  • If your "HOME" environment variable is not set (or you don't know what this is):
    • Open command prompt (Open Start Menu then type cmd and press Enter).
    • Type the following line into the command prompt window exactly as shown: setx HOME "%USERPROFILE%"
    • Press Enter, you should see SUCCESS: Specified value was saved.
    • Quit command prompt by typing exit then pressing Enter.

This will provide you with both Git and Bash in the Git Bash program.

SQLite

SQL is a specialized programming language used with databases. We use a database manager called SQLite in our lessons.

Linux

SQLite comes pre-installed on Linux.

MacOS

SQLite comes pre-installed on MacOS.

Windows

  • Run "Git Bash" from the Start menu
  • Copy the following: curl -fsSL https://umn-dash.github.io/2023-09-20-umn/getsql.sh | bash
  • Paste it into the window that Git Bash opened. If you're unsure, ask an instructor for help.
  • You should see something like 3.27.2 2019-02-25 16:06:06 ...

If you want to do this manually, download sqlite3, make a bin directory in the user's home directory, unzip sqlite3, move it into the bin directory, and then add the bin directory to the path.

If you installed Anaconda, it also has a copy of SQLite without support for readline. Instructors will provide a workaround for it if needed.

Database File

For each database instance, SQLite stores the data in a single file. Please download survey.db, the database we will use in this workshop.

JupyterHub

If you have trouble setting up your own machine, we will have a fully online JupyterHub option available for all UMN users with a valid UMN login: https://notebooks.latis.umn.edu/ Log in with UMN internet ID and password, then select “SWC - SQL” from the server choices. No need to do anything else. All the necessary files and software are already there.