website: Mirror changes made to tutorials in https://vanadium-review.googlesource.com/#/c/19467/.
Change-Id: Ie200e349b08f118f7dd02838fa25a722a9ea8e3d
diff --git a/content/tutorials/hello-world.md b/content/tutorials/hello-world.md
index 3be8eab..788ce06 100644
--- a/content/tutorials/hello-world.md
+++ b/content/tutorials/hello-world.md
@@ -213,7 +213,7 @@
```
$V_TUT/bin/client \
--v23.credentials $V_TUT/cred/basics \
- --server /:$PORT_HELLO
+ --server /localhost:$PORT_HELLO
```
That's it - you've built and run your first Vanadium apps.
diff --git a/content/tutorials/management/device-manager.md b/content/tutorials/management/device-manager.md
index 56da70a..21549d7 100644
--- a/content/tutorials/management/device-manager.md
+++ b/content/tutorials/management/device-manager.md
@@ -53,10 +53,10 @@
```
Check that the device manager service is mounted in the mount table. This
-should print `/:24000/devmgr`:
+should print `/localhost:24000/devmgr`:
<!-- @globMountTable @test -->
```
-"${V_BIN}/namespace" glob "/:$PORT_MT/*"
+"${V_BIN}/namespace" glob "/localhost:$PORT_MT/*"
```
# Claim the device manager
@@ -70,7 +70,7 @@
<!-- @claimDeviceManager @test -->
```
-DEVICE_NAME=/:$PORT_MT/devmgr
+DEVICE_NAME=/localhost:$PORT_MT/devmgr
"${V_BIN}/device" claim "${DEVICE_NAME}/device" hal
"${V_BIN}/vrpc" identify "${DEVICE_NAME}/device"
```
@@ -104,7 +104,7 @@
Verify that the fortune server app runs with the expected blessing name, `tutorial/fortune`:
<!-- @identifyFortune @test -->
```
-"${V_BIN}/vrpc" identify "/:$PORT_MT/myFortunes"
+"${V_BIN}/vrpc" identify "/localhost:$PORT_MT/myFortunes"
```
At this point, you can look at the log files from your server. To see what log files are available:
@@ -126,7 +126,7 @@
<!-- @fortuneClient @test -->
```
-"${V_TUT}/bin/client" --server "/:$PORT_MT/myFortunes"
+"${V_TUT}/bin/client" --server "/localhost:$PORT_MT/myFortunes"
```
# Cleanup
diff --git a/content/tutorials/naming/globber.md b/content/tutorials/naming/globber.md
index acf4b24..3273dee 100644
--- a/content/tutorials/naming/globber.md
+++ b/content/tutorials/naming/globber.md
@@ -237,7 +237,7 @@
--v23.credentials $V_TUT/cred/basics \
--v23.tcp.address :$PORT_MT &
TUT_PID_MT=$!
-export V23_NAMESPACE=/:$PORT_MT
+export V23_NAMESPACE=/localhost:$PORT_MT
```
Fire up the file server with its root directory set to "$V_TUT":
diff --git a/content/tutorials/naming/mount-table.md b/content/tutorials/naming/mount-table.md
index f8da18c..5fae2f6 100644
--- a/content/tutorials/naming/mount-table.md
+++ b/content/tutorials/naming/mount-table.md
@@ -53,7 +53,7 @@
<!-- @queryMountTable @test -->
```
-$V_BIN/vrpc signature /:$PORT_MT
+$V_BIN/vrpc signature /localhost:$PORT_MT
```
It also means that the mount table has a [principal] - it must run
@@ -90,7 +90,7 @@
<!-- @mountFortune @test -->
```
$V_BIN/namespace \
- --v23.namespace.root /:$PORT_MT \
+ --v23.namespace.root /localhost:$PORT_MT \
mount fortuneAlpha `cat $V_TUT/s1.txt` 100m
```
@@ -112,7 +112,7 @@
<!-- @queryMountTable @test -->
```
$V_BIN/namespace \
- --v23.namespace.root /:$PORT_MT \
+ --v23.namespace.root /localhost:$PORT_MT \
glob -l '*'
```
@@ -130,7 +130,7 @@
<!-- @resolveFortune @test -->
```
$V_BIN/namespace \
- --v23.namespace.root /:$PORT_MT \
+ --v23.namespace.root /localhost:$PORT_MT \
resolve fortuneAlpha
```
@@ -156,7 +156,7 @@
<!-- @fortuneWithTable @test -->
```
$V_TUT/bin/client \
- --v23.namespace.root /:$PORT_MT \
+ --v23.namespace.root /localhost:$PORT_MT \
--server fortuneAlpha
```
@@ -186,7 +186,7 @@
<!-- @setNamespace @test -->
```
-export V23_NAMESPACE=/:$PORT_MT
+export V23_NAMESPACE=/localhost:$PORT_MT
```
Now a fortune retrieval is as simple as:
diff --git a/content/tutorials/naming/namespace.md b/content/tutorials/naming/namespace.md
index baa4fda..7480084 100644
--- a/content/tutorials/naming/namespace.md
+++ b/content/tutorials/naming/namespace.md
@@ -48,7 +48,7 @@
<!-- @mountFortune @test -->
```
$V_BIN/namespace \
- --v23.namespace.root /:$PORT_MT_HOME \
+ --v23.namespace.root /localhost:$PORT_MT_HOME \
mount television `cat $V_TUT/server.txt` 2h
```
@@ -72,8 +72,8 @@
<!-- @tableInATable @test -->
```
$V_BIN/mounttable \
- --v23.namespace.root /:$PORT_MT_HOME \
- mount meters /:$PORT_MT_METERS 2h M
+ --v23.namespace.root /localhost:$PORT_MT_HOME \
+ mount meters /localhost:$PORT_MT_METERS 2h M
```
The trailing `M` sets a bit in the mount table noting that this
@@ -92,7 +92,7 @@
<!-- @firstGlobOfHome @test -->
```
$V_BIN/namespace \
- --v23.namespace.root /:$PORT_MT_HOME \
+ --v23.namespace.root /localhost:$PORT_MT_HOME \
glob '*'
```
@@ -109,14 +109,14 @@
<!-- @mountGas @test -->
```
$V_BIN/namespace \
- --v23.namespace.root /:$PORT_MT_METERS \
+ --v23.namespace.root /localhost:$PORT_MT_METERS \
mount gas `cat $V_TUT/server.txt` 2h
```
<!-- @mountElectricFortune @test -->
```
$V_BIN/namespace \
- --v23.namespace.root /:$PORT_MT_METERS \
+ --v23.namespace.root /localhost:$PORT_MT_METERS \
mount electric `cat $V_TUT/server.txt` 2h
```
@@ -130,7 +130,7 @@
<!-- @queryTableInATable @test -->
```
$V_BIN/namespace \
- --v23.namespace.root /:$PORT_MT_HOME \
+ --v23.namespace.root /localhost:$PORT_MT_HOME \
glob '...'
```
@@ -144,7 +144,7 @@
<!-- @fortuneNestedInTable @test -->
```
$V_TUT/bin/client \
- --v23.namespace.root /:$PORT_MT_HOME \
+ --v23.namespace.root /localhost:$PORT_MT_HOME \
--server meters/gas
```
@@ -167,7 +167,7 @@
<!-- @mountElectricFortune @test -->
```
$V_BIN/namespace \
- --v23.namespace.root /:$PORT_MT_HOME \
+ --v23.namespace.root /localhost:$PORT_MT_HOME \
mount meters/gas `cat $V_TUT/server.txt` 2h
```
@@ -201,8 +201,8 @@
<!-- @mountMetersInUtility @test -->
```
$V_BIN/mounttable \
- --v23.namespace.root /:$PORT_MT_UTILITY \
- mount 12345 /:$PORT_MT_METERS 5h M
+ --v23.namespace.root /localhost:$PORT_MT_UTILITY \
+ mount 12345 /localhost:$PORT_MT_METERS 5h M
```
The utility company can see the table you call `METERS` as an account
@@ -226,8 +226,8 @@
<!-- @mountUtilitiesInHome @test -->
```
$V_BIN/mounttable \
- --v23.namespace.root /:$PORT_MT_HOME \
- mount cityUtilities /:$PORT_MT_UTILITY 5h M
+ --v23.namespace.root /localhost:$PORT_MT_HOME \
+ mount cityUtilities /localhost:$PORT_MT_UTILITY 5h M
```
![The HOME namespace](/images/tut/namespace-home-extended.svg)
@@ -239,7 +239,7 @@
<!-- @readGas @test -->
```
$V_TUT/bin/client \
- --v23.namespace.root /:$PORT_MT_HOME \
+ --v23.namespace.root /localhost:$PORT_MT_HOME \
--server cityUtilities/12345/gas
```
@@ -254,8 +254,8 @@
<!-- @mountUtilityInMeters @test -->
```
$V_BIN/mounttable \
- --v23.namespace.root /:$PORT_MT_METERS \
- mount x /:$PORT_MT_UTILITY 5h M
+ --v23.namespace.root /localhost:$PORT_MT_METERS \
+ mount x /localhost:$PORT_MT_UTILITY 5h M
```
Now read your gas meter via a name with cycles:
@@ -263,7 +263,7 @@
<!-- @longName @test -->
```
$V_TUT/bin/client \
- --v23.namespace.root /:$PORT_MT_HOME \
+ --v23.namespace.root /localhost:$PORT_MT_HOME \
--server meters/x/12345/x/12345/x/12345/x/12345/gas
```
@@ -275,10 +275,10 @@
<!-- @moreResolving @test -->
```
name1=$($V_BIN/namespace \
- --v23.namespace.root /:$PORT_MT_HOME \
+ --v23.namespace.root /localhost:$PORT_MT_HOME \
resolve meters/x/12345/x/12345/x/12345/x/12345/gas)
name2=$($V_BIN/namespace \
- --v23.namespace.root /:$PORT_MT_METERS \
+ --v23.namespace.root /localhost:$PORT_MT_METERS \
resolve gas)
echo "These should match:"
echo -e "$name1\n$name2"
@@ -295,7 +295,7 @@
<!-- @queryTableInATable @test -->
```
$V_BIN/namespace \
- --v23.namespace.root /:$PORT_MT_HOME \
+ --v23.namespace.root /localhost:$PORT_MT_HOME \
glob '...'
```
diff --git a/content/tutorials/naming/suffix-part1.md b/content/tutorials/naming/suffix-part1.md
index 6d5876d..83de72a 100644
--- a/content/tutorials/naming/suffix-part1.md
+++ b/content/tutorials/naming/suffix-part1.md
@@ -242,7 +242,7 @@
--v23.credentials $V_TUT/cred/basics \
--v23.tcp.address :$PORT_MT &
TUT_PID_MT=$!
-export V23_NAMESPACE=/:$PORT_MT
+export V23_NAMESPACE=/localhost:$PORT_MT
```
Restart the fortune server to publish itself in the mount table at the
diff --git a/content/tutorials/naming/suffix-part2.md b/content/tutorials/naming/suffix-part2.md
index 89d2269..90ac736 100644
--- a/content/tutorials/naming/suffix-part2.md
+++ b/content/tutorials/naming/suffix-part2.md
@@ -185,7 +185,7 @@
--v23.credentials $V_TUT/cred/prophInc \
--v23.tcp.address :$PORT_MT &
TUT_PID_MT=$!
-export V23_NAMESPACE=/:$PORT_MT
+export V23_NAMESPACE=/localhost:$PORT_MT
```
Add the fortune server to the mount table at the name `prophInc`: