diff --git a/book/src/paper-wallet/installation.md b/book/src/paper-wallet/installation.md index e4fa15f79b..bd06c8590e 100644 --- a/book/src/paper-wallet/installation.md +++ b/book/src/paper-wallet/installation.md @@ -5,33 +5,47 @@ Follow this guide to setup Solana's key generation tool called `solana-keygen` After installation, ensure your version is `0.21.1` or higher by running `solana-keygen -V` {% endhint %} -First, download the desired release tarball from GitHub. The examples below will -retrieve the most recent release. If you would like to download a specific -version instead replace `latest/download` with `download/VERSION` where VERSION -is a tag name from https://github.com/solana-labs/solana/releases (ie. v0.21.1). +## Download +First, download the latest release tarball from GitHub. -MacOS +1. Setup download url -`$ curl -L -sSf -o solana-release.tar.bz2 'https://github.com/solana-labs/solana/releases/latest/download/solana-release-x86_64-apple-darwin.tar.bz2'` + ```bash + solana_downloads=https://github.com/solana-labs/solana/releases/latest/download + ``` -Linux +2. Specify the download file based on your machine -`$ curl -L -sSf -o solana-release.tar.bz2 'https://github.com/solana-labs/solana/releases/latest/download/solana-release-x86_64-unknown-linux-gnu.tar.bz2'` + **MacOS** + ```bash + solana_release=solana-release-x86_64-apple-darwin.tar.bz2 + ``` + **Linux** + ```bash + solana_release=solana-release-x86_64-unknown-linux-gnu.tar.bz2 + ``` + +3. Download + + ```bash + curl -L -sSf -o solana-release.tar.bz2 $solana_downloads/$solana_release + ``` + +## Extract Next, extract the tarball ```bash -$ tar xf solana-release.tar.bz2 +tar xf solana-release.tar.bz2 ``` -Finally, `solana-keygen` can be run by +## Add to "PATH" +Now add the tool to your PATH environment variable with the following command ```bash -$ solana-release/bin/solana-keygen +export PATH="$(pwd)/solana-release/bin:${PATH}" ``` -If you would like to follow the remainder of these instructions without typing -the leading path to `solana-keygen`, add it to your PATH environment variable -with the following command +## Check +Finally, check that `solana-keygen` can be run by running ```bash -$ export PATH="$(pwd)/solana-release/bin:${PATH}" +solana-keygen -V ``` -This can be made permanent by adding it to your `~/.profile` diff --git a/book/src/paper-wallet/keypair.md b/book/src/paper-wallet/keypair.md index d19711adfa..21b0826bbf 100644 --- a/book/src/paper-wallet/keypair.md +++ b/book/src/paper-wallet/keypair.md @@ -23,13 +23,13 @@ solana-keygen new --no-outfile ``` {% hint style="warning" %} -If `--no-outfile` is **not** specified, the default behavior is to write the +If the `--no-outfile` flag is **omitted**, the default behavior is to write the keypair to `~/.config/solana/id.json` {% endhint %} {% hint style="info" %} For added security, increase the seed phrase word count using the `--word-count` -argumment +argument {% endhint %} For full usage details run: