on master help sign in
removed all references to obselete fakezod booting command
commit3cd2a2420086eebaa340a3eeca2f3ae57dfe3735 authorRobert <robert@tlon.io> dateWed 16 Jan 2019, 17:12 (8 years ago) parent2e4d60d
4 files changed+8−15
learn/arvo/arvo-internals/ames.udon+1−2 learn/arvo/arvo-internals/gall.udon+1−1 learn/arvo/nock/implementations.udon−1 learn/arvo/vere/jetting.udon+6−11
learn/arvo/arvo-internals/ames.udon+1−2
@@ -1625,8 +1625,7 @@ current pier.
16251625
16261626`fak` is true if we are on a fake network. This disables certain
16271627security checks so that anyone may run a fake `~zod`. This is used only
1628−for development. To use, run vere with the `-F` option (and the
1629−`-I ~zod` option for a fake `~zod`).
1628+for development. To use, run vere with the `-F` option.
16301629
16311630### `++sufi`, domestic host
16321631
learn/arvo/arvo-internals/gall.udon+1−1
@@ -2275,7 +2275,7 @@ You should recognize the sail syntax from an earlier chapter.
22752275Aside from jquery, we also include `urb.js`, which is a framework
22762276for interacting with urbit.
22772277
2278−To view the frontend, point your browser at `ship-name.urbit.org/~~/pages/click` if you're on the live network. If you're running a fake galaxy, navigate to whatever port it's running on, which is usually: `https://localhost:8443/~~/pages/click`.
2278+To view the frontend, point your browser at `ship-name.urbit.org/~~/pages/click` if you're on the live network. If you're running a fake galaxy, navigate to whatever port it's running on, which is usually: `https://localhost:80/~~/pages/click`.
22792279
22802280We have a button labeled "Poke!" and a div with id `clicks` where
22812281we'll put the number of clicks. We also include a small
learn/arvo/nock/implementations.udon−1
@@ -1799,7 +1799,6 @@ end
17991799 ==
18001800==
18011801
1802−
18031802From [Steve Randy Waldman](https://github.com/swaldman/nnnock/blob/master/src/main/scala/com/mchange/sc/v1/nnnock/package.scala):
18041803
18051804```
learn/arvo/vere/jetting.udon+6−11
@@ -659,7 +659,7 @@ The only way to run the new code is to follow the following process:
659659+ start up urbit, tell it to be a fake zod (act as a galaxy and disconnect from the rest of the network) and have it know where your edited Arvo files are (although not execute them, as discussed above):
660660 + rm -rf ~/zod
661661 + rm -rf ~/tlon/mypill.pill
662− + ~/tlon/urbit/build/urbit -FI zod -A ~/bus/tlon/arvo/ -c zod
662+ + ~/tlon/urbit/build/urbit -F zod
663663 + This should take < 90 seconds.
664664 + If you accidentally exit urbit you can restart it
665665+ inside your urbit, from the dojo command line, load the Hoon files and compile them into a pill file:
@@ -736,7 +736,7 @@ Hopefully this helps to demystify these startup procedures.
736736
737737+ type `cd ~`
738738+ type `rm -rf zod`
739−+ type `~/tlon/urbit/build/urbit -FI zod -A ~/tlon/arvo/ -B ~/tlon/mypill.pill -c zod`
739++ type `~/tlon/urbit/build/urbit -F zod -B ~/tlon/mypill.pill`
740740
741741 N.B. booting should not take more than about 90 seconds. If it goes longer than that you might have created a 'poison pill', which hangs things. Try booting without the -B flag, and/or reverting your Hoon changes, generating a new pill based on that, and launching urbit with the known-clean pill. If these steps and boot in < 90 seconds, but a boot with a pill created from your own Hoon does not, you have a Hoon bug of some sort.
742742
@@ -745,12 +745,7 @@ Hopefully this helps to demystify these startup procedures.
745745+ You now have created a galaxy fakezod, on its own detached network, running your own strange variant of the OS.
746746+ inside dojo: `` (make-k:secp256k1:secp:crypto `@uvI`12 33) `` # or whatever command runs the Hoon you're jetting
747747+ do your development work
748−+ If you happen to exit, you can restart with `urbit -FI zod zod`
749−
750−To expand:
751−- F means "fake"
752−- I means "run as galaxy zod"
753−- the final argument is the unix directory holding the files for the galaxy
748++ If you happen to exit, you can restart with `urbit zod`
754749
755750## Run the jetted code and compare to the non jetted code
756751
@@ -761,11 +756,11 @@ It would be convenient to fire up a second urbit in a terminal next to your fake
761756Then you can run identical commands in each, in parallel, and confirm that they do the same thing.
762757
763758+ edit ~/tlon/urbit/jets/e/secp.c (or whatever) to include `fprintf(stderr, "*** u3we_sign 2\n");` (or similar) in your jetted functions. This will let us verify that the jets exist and are running.
764−+ `cd ~/tlon/ubit ; scripts/build `
759++ `cd ~/tlon/urbit ; scripts/build `
765760+ `cp ~/tlon/arvo ~/tlon/arvo_nojet`
766761+ edit `~/tlon/arvo_nojet/sys/zuse_nojetting.hoon` to remove jetting
767762+ Because we can not run two instances of the same fake galaxy on the same machine (their ports would conflict), we need to pick a new galaxy name. Galaxy names are not arbitrary. You may not name your galaxy "mygalaxy", "withjet", "withoutjet", or anything like that. Galaxy names are restricted to the range 0-255, converted into pronounceable syllables. `zod` is just the pronunciation of '0' ( to see this, in a dojo, cast `~zod` to an untyped atom thusly: `` `@`~zod ``). Let's pick 1 as our new galaxy id. Use dojo to convert this into a urbit name: `` `@p`1 `` yields `~nec`.
768−+ Open a new terminal. In that terminal: `cd ~ ; rm -rf nec ; ~/tlon/urbit/build/urbit -FI nec -A ~/tlon/arvo_nojetting/ -c nec`
763++ Open a new terminal. In that terminal: `cd ~ ; rm -rf nec ; ~/tlon/urbit/build/urbit -F nec -B ~/tlon/arvo_nojetting/`
769764+ This should take < 90 seconds.
770765+ inside your urbit, from the dojo command line, load the Hoon files and compile them into a pill file: `.pill +solid`
771766+ This should take < 90 seconds.
@@ -774,4 +769,4 @@ Then you can run identical commands in each, in parallel, and confirm that they
774769+ type `cp ~/nec/.urb/put.pill ~/tlon/mypill_nojetting.pill `
775770+ type `cd ~`
776771+ type `rm -rf nec`
777−+ type `~/tlon/urbit/build/urbit -FI nec -A ~/tlon/arvo_nojetting/ -B ~/tlon/mypill_nojetting.pill -c nec`
772++ type `~/tlon/urbit/build/urbit -F nec -B ~/tlon/mypill_nojetting.pill`