summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlibBletchley <libbletchley@noreply.codeberg.org>2019-07-20 20:46:37 +0200
committerGitea <gitea@fake.local>2019-07-20 20:46:37 +0200
commit9a5b5745c62a2c18dfa5d243d885acc07c80d7bd (patch)
tree5a34c10143a6af97bf5fbb62ae9d71d7bb568284
parent93b4ab7d37e9af6d11f3626af1bad9d65d252cab (diff)
parentdc7db4fb2d11d9a994bfaaf3323cf56b3440c332 (diff)
downloadcloudflare-tor-9a5b5745c62a2c18dfa5d243d885acc07c80d7bd.tar
cloudflare-tor-9a5b5745c62a2c18dfa5d243d885acc07c80d7bd.tar.gz
cloudflare-tor-9a5b5745c62a2c18dfa5d243d885acc07c80d7bd.tar.lz
cloudflare-tor-9a5b5745c62a2c18dfa5d243d885acc07c80d7bd.tar.xz
cloudflare-tor-9a5b5745c62a2c18dfa5d243d885acc07c80d7bd.zip
Merge branch 'docs' of libBletchley/cloudflare-tor into master
-rw-r--r--instructions_git.md37
1 files changed, 19 insertions, 18 deletions
diff --git a/instructions_git.md b/instructions_git.md
index c3d301cc..1e8f16b3 100644
--- a/instructions_git.md
+++ b/instructions_git.md
@@ -2,10 +2,9 @@
This procedure will give you a cloudflare-tor fork with a
privacy-respecting configuration to do pushes with SSH over Tor using
-the onion host for codeberg.org ("CDB"). This procedure is designed
-for ***linux***. The first step covers Windows too, but these
-instructions probably need more adaptations for Windows and other
-platforms.
+codeberg.org ("CDB"). This procedure is designed for ***linux***.
+The first step covers Windows too, but these instructions probably
+need more adaptations for Windows and other platforms.
- Linux: `aptitude install git tor ssh`
@@ -14,12 +13,12 @@ platforms.
[1]
```
- host notabug-*
- hostname qs3zumwfci4tntnd.onion
+ host codeberg-*
+ hostname codeberg.org
ForwardX11 no
- ProxyCommand connect -4 -S 127.0.01:9050 %h %p
- host notabug-snowden
- IdentityFile /home/user/.ssh/id_rsa_nab-snowden
+ ProxyCommand connect -4 -S 127.0.0.1:9050 $(tor-resolve %h 127.0.0.1:9050) %p
+ host codeberg-snowden
+ IdentityFile /home/user/.ssh/id_rsa_codeberg-snowden
```
[2]
@@ -28,7 +27,10 @@ platforms.
email = BM-yadayadayada6fgnLfybVnCcWf25AGZcgg@bitmessage.ch
name = snowden
[remote "origin"]
- url = git@notabug-snowden:snowden/cloudflare-tor.git
+ url = git@codeberg-snowden:snowden/cloudflare-tor.git
+ fetch = +refs/heads/*:refs/remotes/origin/*
+[remote "upstream"]
+ url = git@codeberg-snowden:crimeflare/cloudflare-tor.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
@@ -37,15 +39,15 @@ platforms.
<ol>
<li> install Git, SSH(Not Windows), and Tor (if you haven't already)
-<li> create a `notabug.org` account (username "snowden" will be used for this example)
-<li> create an SSH key pair `$ ssh-keygen -t rsa -N '' -C 'snowden at notabug' -f "$HOME"/.ssh/id_rsa_nab-snowden`
+<li> create a `codeberg.org` account (username "snowden" will be used for this example)
+<li> create an SSH key pair `$ ssh-keygen -t rsa -N '' -C 'snowden at codeberg' -f "$HOME"/.ssh/id_rsa_codeberg-snowden`
<li> edit `$HOME/.ssh/config`[1]
-<li> copy `"$HOME"/.ssh/id_rsa_nab-snowden.pub` to clipboard
-<li> notabug.org > settings > SSH Keys > add key (paste from clipboard)
+<li> copy `"$HOME"/.ssh/id_rsa_codeberg-snowden.pub` to clipboard
+<li> codeberg.org > settings > SSH/GPG Keys > add key (paste from clipboard)
<li> $ `firefox https://codeberg.org/crimeflare/cloudflare-tor`
<li> fork it (top right corner)
<li> go to the directory you want the project to be rooted in (hereafter we'll call it `$project_root`).
-<li> anonymously download your fork: $ `torsocks git clone https://notabug.org/snowden/cloudflare-tor`
+<li> anonymously download your fork: $ `torsocks git clone https://codeberg.org/snowden/cloudflare-tor`
<li> edit `$project_root/cloudflare-tor/.git/config` to include the
account name and email address that will be on every commit, as
well as the URL[2]
@@ -63,7 +65,6 @@ platforms.
Notice that only the `git clone` command has a `torsocks` prefix and
all git commands thereafter do not. Whenever git operates on the
-cloudflare-tor project, all connections to NAB are automatically over
+cloudflare-tor project, all connections to codeberg are automatically over
Tor with this configuration (because the `url` in `.git/config`
-references the virtual host `notabug-snowden` in `~/.ssh/config` which
-uses the onion address).
+references the virtual host `codeberg-snowden` in `~/.ssh/config`).