summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah Lee <micah@micahflee.com>2021-09-03 14:38:03 -0700
committerGitHub <noreply@github.com>2021-09-03 14:38:03 -0700
commitb09c3bc48b2c0094b88b80f78c4f02761b3d5cef (patch)
tree1f9181e177d2ef1dcc01946065bc001b062ae677
parent942f297428240466866e71a9c93aaee0b85689b5 (diff)
parenta0e322a90668137564fb8314ccdac069f8a9cf62 (diff)
downloadonionshare-b09c3bc48b2c0094b88b80f78c4f02761b3d5cef.tar.gz
onionshare-b09c3bc48b2c0094b88b80f78c4f02761b3d5cef.zip
Merge pull request #1411 from nyxnor/cli-installation-instructions
Cli installation instructions
-rw-r--r--cli/README.md61
-rw-r--r--docs/source/install.rst9
2 files changed, 66 insertions, 4 deletions
diff --git a/cli/README.md b/cli/README.md
index 744ece4d..00c175a7 100644
--- a/cli/README.md
+++ b/cli/README.md
@@ -22,14 +22,69 @@
## Installing OnionShare CLI
-First, make sure you have `tor` installed. In Linux, install it through your package manager. In macOS, install it with [Homebrew](https://brew.sh): `brew install tor`.
+First, make sure you have `tor` and `python3` installed. In Linux, install it through your package manager. In macOS, install it with [Homebrew](https://brew.sh): `brew install tor`. Second, OnionShare is written in python, and you can install the command line version use python's package manager `pip`.
-Then install OnionShare CLI:
+### Requirements
+Debian/Ubuntu (APT):
```sh
-pip install onionshare-cli
+sudo apt-get install tor python3-pip
```
+Arch (Pacman):
+```sh
+sudo pacman -S tor python-pip
+```
+
+CentOS, Red Hat, and Fedora (Yum):
+```sh
+sudo yum install tor python3 python3-wheel
+```
+
+macOS (Homebrew):
+```sh
+brew install tor python
+sudo easy_install pip
+```
+
+### Main
+
+#### Installation
+
+Install OnionShare CLI:
+
+```sh
+pip install --user onionshare-cli
+```
+
+#### Set path
+
+When you install programs with pip and use the --user flag, it installs them into ~/.local/bin, which isn't in your path by default. To add ~/.local/bin to your path automatically for the next time you reopen the terminal or source your shell configuration file, do the following:
+
+First, discover what shell you are using:
+
+```sh
+echo $SHELL
+```
+
+Then apply the path to your shell file:
+
+bash:
+
+```sh
+echo "PATH=\$PATH:~/.local/bin" >> ~/.bashrc
+source ~/.bashrc
+```
+
+zsh:
+
+```sh
+echo "PATH=\$PATH:~/.local/bin" >> ~/.zshrc
+source ~/.zshrc
+```
+
+#### Usage
+
Then run it with:
```sh
diff --git a/docs/source/install.rst b/docs/source/install.rst
index 595a6aa6..e542048b 100644
--- a/docs/source/install.rst
+++ b/docs/source/install.rst
@@ -8,7 +8,7 @@ You can download OnionShare for Windows and macOS from the `OnionShare website <
.. _linux:
-Install in Linux
+Linux
----------------
There are various ways to install OnionShare for Linux, but the recommended way is to use either the `Flatpak <https://flatpak.org/>`_ or the `Snap <https://snapcraft.io/>`_ package.
@@ -22,6 +22,13 @@ Snap support is built-in to Ubuntu and Fedora comes with Flatpak support, but wh
You can also download and install PGP-signed ``.flatpak`` or ``.snap`` packages from https://onionshare.org/dist/ if you prefer.
+.. _pip:
+
+Any OS with pip
+---------------
+
+If you want to install OnionShare just for the command line (onionshare-cli), please see the `README <https://github.com/onionshare/onionshare/blob/develop/cli/README.md>`_ in the Git repository for installation instructions with python package manager pip.
+
.. _verifying_sigs:
Verifying PGP signatures