on master help sign in
Merge pull request #1586 from urbit/better-install-commands
f2cf3b1tinnus-napbus
content/getting-started/cli.md+23−23
@@ -12,11 +12,14 @@ If you're a power user, you can run the Urbit virtual machine directly using the
12{% tab label="MacOS" %}
12{% tab label="MacOS" %}
13
13
14```bash
14```bash
15−mkdir ~/urbit
16−cd ~/urbit
17−curl -JLO https://urbit.org/install/mac/latest
15+curl -L https://urbit.org/install/mac/latest | tar xzk --strip=1 && ./urbit
18−tar zxvf ./darwin.tgz --strip=1
16+```
19−~/urbit/urbit
17+
18+Note our Mac build is only compatible with Apple Silicon (M1/M2) via Rosetta.
19+If you have such a machine you must run the following command:
20+
21+```
22+/usr/sbin/softwareupdate --install-rosetta --agree-to-license
20```
23```
21
24
22{% /tab %}
25{% /tab %}
@@ -24,18 +27,14 @@ tar zxvf ./darwin.tgz --strip=1
24{% tab label="Linux" %}
27{% tab label="Linux" %}
25
28
26```shell
29```shell
27−mkdir ~/urbit
28−cd ~/urbit
29−wget --content-disposition https://urbit.org/install/linux64/latest
30+curl -L https://urbit.org/install/linux64/latest | tar xzk --strip=1 && ./urbit
30−tar zxvf ./linux64.tgz --strip=1
31−~/urbit/urbit
32```
31```
33
32
34Linux users may need to run this command in another terminal window to access your Urbit on port 80:
33Linux users may need to run this command in another terminal window to access your Urbit on port 80:
35
34
36```shell
35```shell
37sudo apt-get install libcap2-bin
36sudo apt-get install libcap2-bin
38−sudo setcap 'cap_net_bind_service=+ep' ~/urbit/urbit
37+sudo setcap 'cap_net_bind_service=+ep' ./urbit
39```
38```
40
39
41{% /tab %}
40{% /tab %}
@@ -43,14 +42,15 @@ sudo setcap 'cap_net_bind_service=+ep' ~/urbit/urbit
43{% tab label="Windows" %}
42{% tab label="Windows" %}
44
43
45```winbatch
44```winbatch
46−mkdir %USERPROFILE%\urbit
47−cd %USERPROFILE%\urbit
48−curl -JLO https://urbit.org/install/windows/latest
45+curl -L https://urbit.org/install/windows/latest | tar -xzkf - --strip-components=1 && urbit
49−tar zxvf .\windows.tgz --strip=1
50−%USERPROFILE%\urbit\urbit
51```
46```
52
47
53−> Windows 10 build 17063 and later includes the familiar `curl` and `tar` command-line tools.
48+Windows 10 build 17063 and later includes the familiar `curl` and `tar`
49+command-line tools. If you're running an older version of Windows, you may need
50+to visit
51+[https://github.com/urbit/urbit/releases/latest](https://github.com/urbit/urbit/releases/latest)
52+in the browser, download the `windows.zip` file, extract it and execute the
53+contained `urbit.exe` file in the command prompt.
54
54
55{% /tab %}
55{% /tab %}
56
56
@@ -92,10 +92,10 @@ A comet name looks like `~dasres-ragnep-lislyt-ribpyl--mosnyx-bisdem-nidful-marz
92
92
93---
93---
94
94
95−To boot a comet, go into the command line and run the following command from the `urbit` directory you created during [Urbit installation](#os).
95+To boot a comet, go into the command line and run the following command:
96
96
97```sh
97```sh
98−~/urbit/urbit -c mycomet
98+./urbit -c mycomet
99```
99```
100
100
101It may take a while to load the comet (probably only take a few minutes, but it could take longer). This comes along with it being free. When it's done you'll some messages ending like this:
101It may take a while to load the comet (probably only take a few minutes, but it could take longer). This comes along with it being free. When it's done you'll some messages ending like this:
@@ -111,10 +111,10 @@ When your comet is finished booting, you will see `~sampel_marzod:dojo>` (Dojo:
111
111
112To exit Urbit, use `Ctrl-D` or enter `|exit` into Dojo.
112To exit Urbit, use `Ctrl-D` or enter `|exit` into Dojo.
113
113
114−To start your comet up again, run the following from your `urbit` directory (note the lack of `-c` argument):
114+To start your comet up again, run the following command:
115
115
116```sh
116```sh
117−~/urbit/urbit mycomet
117+./mycomet/.run
118```
118```
119
119
120### Using the web interface
120### Using the web interface
@@ -134,10 +134,10 @@ At the moment, the most common way to use Urbit is by launching apps like Groups
134
134
135Urbit comes with a recent release of the Urbit OS, but automatic updates of the `%base` desk (which contains the kernel of the OS) are not enabled by default for Comets. Many comets are used only once and thrown away, so it would be wasteful to update every single comet as soon as it boots. If you plan to use your comet for more than a quick test, you'll probably want to ensure you're running the latest version of the OS.
135Urbit comes with a recent release of the Urbit OS, but automatic updates of the `%base` desk (which contains the kernel of the OS) are not enabled by default for Comets. Many comets are used only once and thrown away, so it would be wasteful to update every single comet as soon as it boots. If you plan to use your comet for more than a quick test, you'll probably want to ensure you're running the latest version of the OS.
136
136
137−You can enable updates for your comet by typing `|install (sein:title our now our) %kids, =local %base` into Dojo and pressing Enter.
137+You can enable updates for your comet by typing `|ota (sein:title our now our)` into Dojo and pressing Enter.
138
138
139```
139```
140−> |install (sein:title our now our) %kids, =local %base
140+> |ota (sein:title our now our)
141>=
141>=
142kiln: activated install into %base from [~samzod %kids]
142kiln: activated install into %base from [~samzod %kids]
143kiln: downloading update for %base from [~samzod %kids]
143kiln: downloading update for %base from [~samzod %kids]
content/getting-started/server.md+24−21
@@ -72,11 +72,14 @@ Download Urbit with the following commands:
72{% tab label="MacOS" %}
72{% tab label="MacOS" %}
73
73
74```bash
74```bash
75−mkdir ~/urbit
76−cd ~/urbit
77−curl -JLO https://urbit.org/install/mac/latest
75+curl -L https://urbit.org/install/mac/latest | tar xzk --strip=1 && ./urbit
78−tar zxvf ./darwin.tgz --strip=1
76+```
79−~/urbit/urbit
77+
78+Note our Mac build is only compatible with Apple Silicon (M1/M2) via Rosetta.
79+If you have such a machine you must run the following command:
80+
81+```
82+/usr/sbin/softwareupdate --install-rosetta --agree-to-license
80```
83```
81
84
82{% /tab %}
85{% /tab %}
@@ -84,18 +87,14 @@ tar zxvf ./darwin.tgz --strip=1
84{% tab label="Linux" %}
87{% tab label="Linux" %}
85
88
86```shell
89```shell
87−mkdir ~/urbit
88−cd ~/urbit
89−wget --content-disposition https://urbit.org/install/linux64/latest
90+curl -L https://urbit.org/install/linux64/latest | tar xzk --strip=1 && ./urbit
90−tar zxvf ./linux64.tgz --strip=1
91−~/urbit/urbit
92```
91```
93
92
94Linux users may need to run this command in another terminal window to access your Urbit on port 80:
93Linux users may need to run this command in another terminal window to access your Urbit on port 80:
95
94
96```shell
95```shell
97sudo apt-get install libcap2-bin
96sudo apt-get install libcap2-bin
98−sudo setcap 'cap_net_bind_service=+ep' ~/urbit/urbit
97+sudo setcap 'cap_net_bind_service=+ep' ./urbit
99```
98```
100
99
101{% /tab %}
100{% /tab %}
@@ -103,25 +102,26 @@ sudo setcap 'cap_net_bind_service=+ep' ~/urbit/urbit
103{% tab label="Windows" %}
102{% tab label="Windows" %}
104
103
105```winbatch
104```winbatch
106−mkdir %USERPROFILE%\urbit
107−cd %USERPROFILE%\urbit
108−curl -JLO https://urbit.org/install/windows/latest
105+curl -L https://urbit.org/install/windows/latest | tar -xzkf - --strip-components=1 && urbit
109−tar zxvf .\windows.tgz --strip=1
110−%USERPROFILE%\urbit\urbit
111```
106```
112
107
113−> Windows 10 build 17063 and later includes the familiar `curl` and `tar` command-line tools.
108+Windows 10 build 17063 and later includes the familiar `curl` and `tar`
109+command-line tools. If you're running an older version of Windows, you may need
110+to visit
111+[https://github.com/urbit/urbit/releases/latest](https://github.com/urbit/urbit/releases/latest)
112+in the browser, download the `windows.zip` file, extract it and execute the
113+contained `urbit.exe` file in the command prompt.
114
114
115{% /tab %}
115{% /tab %}
116
116
117{% /tabs %}
117{% /tabs %}
118
118
119−Next, transfer `your-keyfile.key` to your server using scp or an FTP client, then move it to the `~/urbit` directory you created in the last step.
119+Next, transfer `your-keyfile.key` to your server using scp or an FTP client.
120
120
121Now you can run Urbit for the first time. Run the below command, replacing ames_port with a public port number between 49152 to 65535, sampel-palnet with the name of your planet, and sampel-palnet.key with the name of your keyfile.
121Now you can run Urbit for the first time. Run the below command, replacing ames_port with a public port number between 49152 to 65535, sampel-palnet with the name of your planet, and sampel-palnet.key with the name of your keyfile.
122
122
123```sh
123```sh
124−./urbit -p ames_port -w sampel-palnet -k ./sampel-palnet.key
124+./urbit -p ames_port -w sampel-palnet -k sampel-palnet.key
125```
125```
126
126
127Arvo, the Urbit OS, now creates a directory called `sampel-palnet/` and begins booting your planet and establishing connections with the P2P network. When that's finished, you'll see Dojo, the Urbit command line:
127Arvo, the Urbit OS, now creates a directory called `sampel-palnet/` and begins booting your planet and establishing connections with the P2P network. When that's finished, you'll see Dojo, the Urbit command line:
@@ -138,14 +138,17 @@ Check out the [cloud hosting guide](/using/running/hosting) for tips on improvin
138
138
139Shut down your planet by typing Ctrl+D into Dojo.
139Shut down your planet by typing Ctrl+D into Dojo.
140
140
141+The `urbit` binary will have automatically "docked" with your pier, copying
142+itself inside so a separate binary isn't necessary. To boot your planet up
143+again, run `./sampel-palnet/.run -p ames_port`, once again replacing
141−To boot your planet up again, run the following command, once again replacing `ames_port` with the port you used previously, and now referencing your planet's folder.
144+`ames_port` with the port you used previously.
142
145
143Your planet's folder, `sampel-palnet/`, is called your pier, and it holds all your data. If you want to migrate your data from one system to another, you must bring your pier.
146Your planet's folder, `sampel-palnet/`, is called your pier, and it holds all your data. If you want to migrate your data from one system to another, you must bring your pier.
144
147
145You should also delete your keyfile from your remote system to prevent yourself from using the same key twice, which will cause communication problems with other planets.
148You should also delete your keyfile from your remote system to prevent yourself from using the same key twice, which will cause communication problems with other planets.
146
149
147```sh
150```sh
148−rm ./your-keyfile.key
151+rm your-keyfile.key
149```
152```
150
153
151### 5. Log in
154### 5. Log in