on master help sign in
Merge pull request #469 from zalberico/master
c52d91bmatildepark
content/using/install.md+88−32
@@ -42,19 +42,17 @@ Once you've followed the appropriate install instructions, you can check if ever
42Urbit: a personal server operating function
42Urbit: a personal server operating function
43```
43```
44
44
45−### macOS
45+### macOS and Linux
46
46
47```sh
47```sh
48+#macOS:
48mkdir urbit
49mkdir urbit
49cd urbit
50cd urbit
50curl -O https://bootstrap.urbit.org/urbit-v0.10.8-darwin.tgz
51curl -O https://bootstrap.urbit.org/urbit-v0.10.8-darwin.tgz
51tar xzf urbit-v0.10.8-darwin.tgz
52tar xzf urbit-v0.10.8-darwin.tgz
52./urbit-v0.10.8-darwin/urbit
53./urbit-v0.10.8-darwin/urbit
53−```
54−
55−### Linux (64-bit)
56
54
57−```sh
55+#Linux:
58mkdir urbit
56mkdir urbit
59cd urbit
57cd urbit
60curl -O https://bootstrap.urbit.org/urbit-v0.10.8-linux64.tgz
58curl -O https://bootstrap.urbit.org/urbit-v0.10.8-linux64.tgz
@@ -63,7 +61,6 @@ tar xzf urbit-v0.10.8-linux64.tgz
63```
61```
64
62
65To access your Urbit via HTTP on port 80 on Ubuntu, you may need to run the following:
63To access your Urbit via HTTP on port 80 on Ubuntu, you may need to run the following:
66−
67```sh
64```sh
68sudo apt-get install libcap2-bin
65sudo apt-get install libcap2-bin
69sudo setcap 'cap_net_bind_service=+ep' /path/to/urbit
66sudo setcap 'cap_net_bind_service=+ep' /path/to/urbit
@@ -72,11 +69,17 @@ sudo setcap 'cap_net_bind_service=+ep' /path/to/urbit
72
69
73### Windows
70### Windows
74
71
75−> Please note that this method of installing Urbit is experimental, and we may not be able to assist you if you encounter issues related to WSL 2. These instructions have been tested and verified for WSL 2 + Ubuntu 18.04 LTS.
72+> Please note that this method of installing Urbit is experimental, and we may not be able to assist you if you encounter issues related to WSL 2.
73+
74+These instructions have been tested and verified for WSL 2 + Ubuntu 18.04 LTS.
75+
76+Urbit cannot run on Windows itself, but there is a convenient way to run a Linux distro using the [Windows Subsystem for Linux 2](https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux) on Windows 10.
76
77
77−Urbit cannot run on Windows itself, but there is a convenient way to run a Linux distro using the [Windows Subsystem for Linux 2](https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux) on Windows 10. For Urbit to work, it is necessary to [install WSL 2](https://docs.microsoft.com/en-us/windows/wsl/wsl2-install) and not just WSL.
78+For Urbit to work, it is necessary to [install WSL 2](https://docs.microsoft.com/en-us/windows/wsl/wsl2-install) and not just WSL.
78
79
80+Once WSL 2 is installed, open a Linux terminal in Windows and then follow the Linux installation instructions above.
81+
79−Once WSL 2 is installed, open a Linux terminal in Windows and then follow the Linux installation instructions above. For performance reasons, do not install Urbit in the mounted Windows volume, but install it in the Linux file system. For example, in your home directory, by typing `cd ~`.
82+For performance reasons, do not install Urbit in the mounted Windows volume, but install it in the Linux file system. For example, in your home directory, by typing `cd ~`.
80
83
81## Launching Urbit
84## Launching Urbit
82
85
@@ -98,13 +101,17 @@ Comets are disposable, free identities that can be used to quickly join the netw
98
101
99### Booting a comet
102### Booting a comet
100
103
101−To boot a comet, go into the command line and run the following command from the urbit directory you created during Urbit installation:
104+To boot a comet, go into the command line and run the following command from the `urbit` directory you created during Urbit installation:
102
105
103```sh
106```sh
107+#macOS:
104−$ ./urbit-v0.10.8-darwin/urbit -c mycomet
108+./urbit-v0.10.8-darwin/urbit -c mycomet
109+
110+#Linux:
111+./urbit-v0.10.8-linux64/urbit -c mycomet
105```
112```
106
113
107−This will take up to an hour, and will spin out a bunch of boot messages. It will also create a directory called `mycomet` in the Unix directory that you ran the command from (which should be your urbit directory).
114+This will take up to an hour, and will spin out a bunch of boot messages. It will also create a directory called `mycomet` in the Unix directory that you ran the command from (which should be your `urbit` directory).
108
115
109Toward the end of the boot process, you'll see something like:
116Toward the end of the boot process, you'll see something like:
110
117
@@ -116,11 +123,18 @@ http: live (insecure, loopback) on 12321
116~sampel_commet:dojo>
123~sampel_commet:dojo>
117```
124```
118
125
119−When your ship is finished booting, you will see either the `~sampel_commet:dojo>` or `~sampel_commet:chat-cli/` prompt. If you're seeing `:chat-cli` press `Ctrl-x` to switch into Dojo.
126+When your ship is finished booting, you will see either the `~sampel_commet:dojo>` or `~sampel_commet:chat-cli/` prompt. If you're seeing `:chat-cli` press `Ctrl-X` to switch into Dojo.
127+
128+To exit Urbit, use `Ctrl-D` or enter `|exit` into Dojo.
120
129
121−To exit Urbit, use `Ctrl-d`.
130+To start your ship up again, run the following from your `urbit` directory (note the lack of `-c` argument):
131+```sh
132+#macOS:
133+./urbit-v0.10.8-darwin/urbit mycomet
122
134
135+#Linux:
123−To start your ship up again, run `./urbit-v0.10.8-darwin/urbit mycomet` from your `urbit` directory.
136+./urbit-v0.10.8-linux64/urbit mycomet
137+```
124
138
125### The Dojo
139### The Dojo
126
140
@@ -225,30 +239,58 @@ Find the absolute path to the keyfile that you downloaded from Bridge. Copy it.
225
239
226#### Step 3: Run the boot command
240#### Step 3: Run the boot command
227
241
228−If you are not already within the directory you installed above, enter it by running `cd urbit-v0.10.8-darwin` (for Mac) or `cd urbit-v0.10.8-linux64` (for Linux) from where you ran the install commands. It contains your Urbit binary, and your ship will be installed here as well.
242+Enter your `urbit` directory.
229
243
230Once you're inside, run the command below, except with `sampel-palnet` replaced by the name of your
244Once you're inside, run the command below, except with `sampel-palnet` replaced by the name of your
231Urbit identity, and `path/to/my-planet.key` replaced with the path to your keyfile:
245Urbit identity, and `path/to/my-planet.key` replaced with the path to your keyfile:
232
246
233```sh
247```sh
248+#macOS:
249+./urbit-v0.10.8-darwin/urbit -w sampel-palnet -k path/to/my-planet.key
250+
251+#Linux:
234−./urbit -w sampel-palnet -k path/to/my-planet.key
252+./urbit-v0.10.8-linux64/urbit -w sampel-palnet -k path/to/my-planet.key
235```
253```
236
254
237Or, if you'd prefer to copy your key in, you can run:
255Or, if you'd prefer to copy your key in, you can run:
238
256
239```sh
257```sh
258+#macOS:
259+./urbit-v0.10.8-darwin/urbit -w sampel-palnet -G rAnDoMkEy
260+
261+#Linux:
240−./urbit -w sampel-palnet -G rAnDoMkEy
262+./urbit-v0.10.8-linux64/urbit -w sampel-palnet -G rAnDoMkEy
241```
263```
242
264
243Either command will create a directory called `sampel-palnet/` and begin building your ship. It may take a few minutes.
265Either command will create a directory called `sampel-palnet/` and begin building your ship. It may take a few minutes.
244
266
245−When your ship is finished booting, you will see either the `~sampel-palnet:dojo>` or `~sampel-palnet:chat-cli/` prompt. If you're seeing `:chat-cli` press `Ctrl-x` to switch into Dojo. At that point, you should permanently erase your keyfile from your machine.
267+When your ship is finished booting, you will see either the `~sampel-palnet:dojo>` or `~sampel-palnet:chat-cli/` prompt. If you're seeing `:chat-cli` press `Ctrl-X` to switch into Dojo.
268+
269+To shut down your ship, use `Ctrl-D`. To start your ship up again, run the following from your `urbit` directory:
246
270
247−To shut down your ship, use `Ctrl-d`. To start your ship up again, run `./urbit sampel-palnet/` from the directory where your Urbit binary is saved. Note that in this usage, `sampel-palnet/` is the path of a folder, which by default is located in the same folder as the Urbit binary. This folder is called your ship's **pier**, and you can put it wherever you like.
271+```sh
272+#macOS:
273+./urbit-v0.10.8-darwin/urbit sampel-palnet
274+
275+#Linux:
276+./urbit-v0.10.8-linux64/urbit sampel-palnet
277+```
278+
279+Note that `sampel-palnet/` is the path of a folder, which we just created in your `urbit` directory. This folder is called your ship's **pier**.
248
280
249Never boot multiple instances of your ship at the same time. You can prevent this from happening on accident by only ever keeping a single copy of your pier.
281Never boot multiple instances of your ship at the same time. You can prevent this from happening on accident by only ever keeping a single copy of your pier.
250
282
251−**Important:** once a key has been used to boot a ship onto the network, it cannot be used to boot that ship again later - doing so will cause communication problems with other ships. For this reason you should **delete the keyfile from your machine once your ship has booted successfully**. (If you do use the same key twice, you'll need to conduct a [personal breach](#breaches) to restore your ship to full functionality).
283+**Important:** once a key has been used to boot a ship onto the network, it cannot be used to boot that ship again later - doing so will cause communication problems with other ships.
284+
285+For this reason you should **delete the keyfile from your machine once your ship has booted successfully**.
286+
287+If you do use the same key twice, you'll need to conduct a [personal breach](#breaches) to restore your ship to full functionality).
288+
289+Delete the keyfile with the command below:
290+
291+```sh
292+rm path/to/my-planet.key
293+```
252
294
253### Updating to the latest binary
295### Updating to the latest binary
254
296
@@ -256,34 +298,48 @@ Most updates to Urbit are downloaded and applied automatically as OTA (Over the
256
298
257To update to the latest binary, download and extract it to replace your existing one. Then run it as before.
299To update to the latest binary, download and extract it to replace your existing one. Then run it as before.
258
300
259−For example, if in your current `urbit` directory you have an `urbit-v0.10.7-darwin` directory along with a ship directory called `mycomet`, and a new `urbit-v0.10.8-darwin` binary was just released, then you'd run the following commands from your `urbit` directory (the example commands below use the darwin installer, but you should use the one for your OS):
301+For example, if in your current `urbit` directory you have an `urbit-v0.10.7-<OS>` directory along with a ship directory called `mycomet`, and a new `urbit-v0.10.8-<OS>` binary was just released, then you'd run the following commands from your `urbit` directory:
260
302
261−First shut down your ship, by running the following in dojo (or control-d).
303+First shut down your ship, by running the following in dojo (or `Ctrl-D`).
262```
304```
263|exit
305|exit
264```
306```
265
307
266−Next download and extract the most recent binary from inside your `urbit` directory:
308+**NOTE**: Your ship itself can be reused, only the binary needs to be changed. This is why we have the directory structure configured as an `urbit` directory that contains your ship and your binary. This structure makes it easy to swap in new binaries. If you have your ship *inside* the `urbit-vX.XX.X` directory, move it out before deleting that directory.
267−```
268−curl -O https://bootstrap.urbit.org/urbit-v0.10.8-darwin.tgz
269−tar xzf urbit-v0.10.8-darwin.tgz
270−```
271
309
272Delete the old binary directory from your `urbit` directory:
310Delete the old binary directory from your `urbit` directory:
273
311
274−**NOTE**: Your ship itself can be reused, only the binary needs to be changed. This is why we have the directory structure configured as an urbit directory that contains your ship and your binary. This structure makes it easy to swap in new binaries. If you have your ship *inside* the `urbit-vX.XX.X` directory, move it out before deleting that directory.
312+```sh
275−```
313+#macOS:
276rm -rf urbit-v0.10.7-darwin
314rm -rf urbit-v0.10.7-darwin
315+
316+#Linux:
317+rm -rf urbit-v0.10.7-linux64
277```
318```
278
319
279−Start up your ship with the new binary from your `urbit` directory:
320+Next download and extract the most recent binary from inside your `urbit` directory:
321+```sh
322+#macOS:
323+curl -O https://bootstrap.urbit.org/urbit-v0.10.8-darwin.tgz
324+tar xzf urbit-v0.10.8-darwin.tgz
325+
326+#Linux:
327+curl -O https://bootstrap.urbit.org/urbit-v0.10.8-linux64.tgz
328+tar xzf urbit-v0.10.8-linux64.tgz
280```
329```
330+
331+Start up your ship with the new binary from your `urbit` directory:
332+```sh
333+#macOS:
281./urbit-v0.10.8-darwin/urbit mycomet
334./urbit-v0.10.8-darwin/urbit mycomet
335+
336+#Linux:
337+./urbit-v0.10.8-linux64/urbit mycomet
282```
338```
283
339
284Then you're good to go, in the future you'll just modify the version numbers in the example above to the most recent version.
340Then you're good to go, in the future you'll just modify the version numbers in the example above to the most recent version.
285
341
286−### Breaches
342+### Breaches {#breaches}
287
343
288An important concept on the Urbit network is that of continuity. Continuity refers to how ships remember the order of their own network messages and the network messages of others -- these messages are numbered, starting from zero. A breach is when ships on the network agree to forget about this sequence and treat one or more ships like they are brand new.
344An important concept on the Urbit network is that of continuity. Continuity refers to how ships remember the order of their own network messages and the network messages of others -- these messages are numbered, starting from zero. A breach is when ships on the network agree to forget about this sequence and treat one or more ships like they are brand new.
289
345