The bread and butter of Upspin is being able to bring your remote data into the local namespace, so those items look and feel as if they are part of the local file tree.
Before we proceed we need tools:
brew install autoconf automake libtool gettext brew link --force gettext
I’ll be grabbing the latest release from github.com/osxfuse/osxfuse. In this example I’m downloading and installing
osxfuse-3.8.0.dmg with the defaults.
If you don’t have FUSE, or it’s installed incorrectly you’ll get an error:
FUSE for macOS is not installed. See https://osxfuse.github.io/
Next we update our Upspin config file to include a cache server (makes everything faster). By default the config file is located in
echo -e "cache: yes" >> $HOME/upspin/config
cacheserver is started automatically when you run either the
upspinfs command. We can override the default behaviour with config file and flags (if supplied, flags take precedent).
The default cache is located
As a personal preference I prefer the cacheserver to be in writethrough mode instead of writeback. So I add the following to my
echo -e "cmdflags:\n cacheserver:\n writethrough\n" >> $HOME/upspin/config cat $HOME/upspin/config # would look something like this username: [email protected] dirserver: upspin.mfridman.com storeserver: upspin.mfridman.com packing: ee cmdflags: cacheserver: writethrough
My Upspin mountpoint is a directory located at
mkdir $HOME/u upspinfs $HOME/u & # good  33387 cd ~/u/[email protected]/Public $ tree . ├── Access ├── augie.png ├── gopherfest2017.webm ├── mikes_fav_book.txt ├── this_is_fine.jpg └── this_is_fine_gopher.png 0 directories, 6 files # once you're finished cd home, kill the process and unmount cd && killall -9 upspinfs && umount $HOME/u # if you forget to kill the process you'll get an error next time # fuse.Mount failed: mount_osxfusefs: exit status 64
Well, if you have your “secret seed” string you’re in luck
upspin keygen -curve p256 -secretseed your-secret-seed-that.you-promised-to-save $HOME/upspin/deploy/frid.io