generated from carpentries/workbench-template-rmd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
47314fd
commit 39a14d9
Showing
19 changed files
with
93 additions
and
29 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,53 +2,117 @@ | |
title: Setup | ||
--- | ||
|
||
FIXME: Setup instructions live in this document. Please specify the tools and | ||
the data sets the Learner needs to have installed. | ||
::::::::::::::::::::::::::::::prereq | ||
|
||
## Data Sets | ||
In this lesson we use Git from the Unix Shell. Some previous experience with the shell is expected, but isn’t mandatory. | ||
|
||
<!-- | ||
FIXME: place any data you want learners to use in `episodes/data` and then use | ||
a relative link ( [data zip file](data/lesson-data.zip) ) to provide a | ||
link to it, replacing the example.com link. | ||
--> | ||
Download the [data zip file](https://example.com/FIXME) and unzip it to your Desktop | ||
:::::::::::::::::::::::::::::: | ||
|
||
## Computer | ||
|
||
Participants must work on a computer with a Mac, Linux, or Windows operating system (not a tablet, Chromebook, etc.) on which they have administrative privileges. | ||
|
||
## Software Setup | ||
|
||
::::::::::::::::::::::::::::::::::::::: discussion | ||
To participate in this workshop, you will need to prepare the following (if you haven't already): | ||
|
||
### Details | ||
#### Install Shell and Git. | ||
|
||
:::tab | ||
|
||
Setup for different systems can be presented in dropdown menus via a `spoiler` | ||
tag. They will join to this discussion block, so you can give a general overview | ||
of the software used in this lesson here and fill out the individual operating | ||
systems (and potentially add more, e.g. online setup) in the solutions blocks. | ||
### Windows | ||
Git should be installed on your computer as part of your Bash install. | ||
|
||
::::::::::::::::::::::::::::::::::::::::::::::::::: | ||
|
||
:::::::::::::::: spoiler | ||
### Mac | ||
Mac | ||
|
||
### Windows | ||
### Linux | ||
If Git is not already available on your machine you can install it via your distro's package manager. Debian/Ubuntu run 'sudo apt-get install git' and for Fedora run 'sudo dnf install git'. | ||
|
||
Use PuTTY | ||
::: | ||
|
||
#### Setup GitHub | ||
|
||
:::::::::::::::::::::::: | ||
You will need an account for [GitHub](https://github.com/) to follow episodes 7, 8, 9 in this lesson. | ||
|
||
:::::::::::::::: spoiler | ||
1. To sign up for an account, navigate to https://github.com/ and follow the prompts. | ||
2. Verify your email address. | ||
3. Configure GitHub authentication. | ||
|
||
### MacOS | ||
You must authenticate before you can access certain resources on GitHub. | ||
Each way of accessing GitHub supports different authentication method. For example, you can authenticate with GitHub via browser using two-factor authentication (2FA), or you can authenticate with GitHub via the command line using Secure Shell Protocol (SSH). In our lesson we shall use both. | ||
|
||
Use Terminal.app | ||
:::tab | ||
|
||
:::::::::::::::::::::::: | ||
### 2FA | ||
|
||
To set up 2FA for your GitHub account, follow these steps: | ||
|
||
:::::::::::::::: spoiler | ||
1. If you already use an authenticator app, like [Google Authenticator](https://support.google.com/accounts/answer/1066447?hl=en&co=GENIE.Platform%3DiOS&oco=0) on your smartphone for example, add GitHub to that app. | ||
2. If you have access to a smartphone but do not already use an authenticator app, install one and add GitHub to the app. | ||
3. Optionally, you can add a passkey to your account. Passkeys are similar to security keys. However, passkeys satisfy both password and 2FA requirements, so you can sign in to your account in one step. | ||
|
||
### Linux | ||
### SSH | ||
|
||
To set up SSH for your GitHub account, follow these steps: | ||
|
||
1. Generate an SSH public/private keypair on your local machine if you don't already have one. | ||
|
||
To check your local machine for existing SSH keys, run the following command in the terminal: | ||
|
||
```bash | ||
ls -al ~/.ssh | ||
``` | ||
|
||
Then check the directory listing to see if you already have a public SSH key. By default, the filenames of supported public keys for GitHub are one of the following. | ||
|
||
```bash | ||
id_rsa.pub | ||
id_ecdsa.pub | ||
id_ed25519.pub | ||
``` | ||
|
||
If you receive an error that ~/.ssh does not exist, you do not have an existing SSH key pair in the default location. You can create a new SSH key pair in the next step. | ||
|
||
2. Either generate a new SSH key or upload an existing key. | ||
|
||
- If you don't have a supported public and private key pair, or don't wish to use any that are available, generate a new SSH key. | ||
- | ||
|
||
::: | ||
|
||
Refer to the GitHub [documentation](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/about-authentication-to-github) for more details about authentication. | ||
|
||
|
||
#### Confirm that everything works | ||
|
||
You should now be able to open a terminal window and execute the following commands: | ||
|
||
#### Git | ||
|
||
```bash | ||
$ git --version | ||
``` | ||
which will return (something similar to): | ||
|
||
```bash | ||
git version 2.34.1 | ||
``` | ||
|
||
#### Github accreturningount & SSH connection | ||
|
||
```bash | ||
ssh [email protected] | ||
``` | ||
|
||
which will return: | ||
|
||
Use Terminal | ||
```bashreturning | ||
Hi [username]! You've successfully authenticated, but GitHub does not provide shell access. | ||
Connection to github.com closed. | ||
``` | ||
|
||
:::::::::::::::::::::::: | ||
### If something does not work | ||
|
||
Follow the corresponding setup instructions. If you still need help, send us an [email]([email protected]). |