on b0d230b help sign in
urbit.org/docs/using/setup.md
107 lines 2.8 kB history raw
1---
2navhome: '/docs'
3next: True
4sort: 2
5title: Setup
6---
8# Getting started
10On disk your urbit is an append-only log and a checkpoint. Or, in
11simpler terms, a directory where we keep your urbit’s state. We call
12this a ‘pier’.
14## Initialize
16To create an urbit, we need an identity. This identity is both a network
17address and a memorable name.
19You are probably creating one of two kinds of urbit: a 32-bit "planet"
20or a 128-bit "comet." For a quick terminology guide and high-level
21refresher, refer to this [handy reference sheet](/docs/about/glossary).
23If you have an Urbit invitation, you'll have a planet like
24`~fintud-macrep` and `~fortyv-tombyt-tabsen-sonres`. To create your
25pier:
27 $ bin/urbit -w fintud-macrep -t fortyv-tombyt-tabsen-sonres
29This will create a directory `fintud-macrep/` and begin building your
30urbit. This may take a few minutes.
32If you do not have a ticket, you can still make a 'comet', a wild urbit
33drifting through cyberspace. Pick your own directory name, it doesn't
34matter:
36 $ bin/urbit -c mycomet
38This will create the directory `mycomet/` and generate a 128-bit
39identity for your urbit.
41## Orientation
43When your urbit is finished booting you should see a `dojo>` prompt.
44Welcome!
46By default your urbit is quite bare-bones. Let's stroll through what's
47already running:
49### Shell — `:dojo`
51The command prompt in front of you is a simple shell and Hoon REPL.
52Let's make sure it works:
54 ~fitund-macrep:dojo> (add 2 2)
56Should produce:
58 > (add 2 2)
59 4
61Good.
63### Messaging — `:talk`
65Use `^X` (ctrl-x) to change your prompt. Let's join the main Urbit chat
66channel:
68 ~fitund-macrep:talk() ;join ~dozbud/urbit-meta
70`:talk` is stateful, so your urbit will download a backlog.
71`/urbit-meta` is the place to ask questions, get help and talk about
72anything Urbit-related.
74### Web — `:tree`
76Urbit is also accessible through the web. Try opening:
78 http://localhost:8080/
80in your favorite browser. You'll be prompted to use `+code`. This page
81was generated by `:tree`, the basic Urbit web interface. You can also
82access your urbit through `http://fintud-macrep.urbit.org` (where
83`fintud-macrep` is your planet name).
85### Filesystem — `%clay`
87`%clay`, the Urbit filesystem, isn't mounted to unix by default. Switch
88to the `:dojo` prompt and run:
90 ~fitund-macrep:dojo> |mount %
92This should produce:
94 > |mount %
95 >=
97which indicates the command was processed.
99`|mount %` will cause a `home/` directory to appear inside your pier
100folder. Changes to these files are automatically synced into your urbit.
102## Learn more
104If you're eager to get started programming you're ready to head over to
105<a href="../../hoon/demo">the Hoon demo</a>.
107To learn more about using the system, let's keep going: