Artifact Content

Artifact f24081b01746b8f5bc8e165fd21e1ce72e19bad3:

Wiki page [Getting Started] by rkeene on 2014-12-29 02:52:22.
D 2014-12-29T02:52:22.066
L Getting\sStarted
N text/x-markdown
P 20492e912598e9fba0d7cb95c1e1eadca4f211cc
U rkeene
W 1612
Getting Started as a User
-------------------------
  1. Download AppFS
    1. `$ wget http://rkeene.org/devel/appfs-1.0.tar.gz`
  2. Compile AppFS
    1. `$ gzip -dc appfs-1.0.tar.gz | tar -xf -`
    2. `$ cd appfs-1.0`
    3. `$ make`
  3. Install AppFS
    1. `# make install`
  4. Run AppFS Daemon
    1. `# mkdir /opt/appfs`
    2. `# /usr/local/sbin/appfsd /var/cache/appfs /opt/appfs`
  5. Optionally configure AppFS to mount on boot:
    1. `# ln -s /usr/local/sbin/appfsd /sbin/mount.appfs`
    2. Add to `/etc/fstab`:
       1. `/var/cache/appfs /opt/appfs       appfs       defaults         0   0`
  6. Read about [AppFS Configuration](wiki/AppFS Configuration)

Getting Started as a Publisher
------------------------------
  1. Run AppFS Daemon
  2. Generate a certificate if you do not already have one
    1. `$ /opt/appfs/core.appfs.rkeene.org/appfs/noarch-noarch/latest/bin/appfs-cert generate-selfsigned`
  3. Create package build script
    1. `$ vi pkgs/myPackage`
    2. Add (example from zlib):
      1. `version=1.2.8`
      1. `url="http://zlib.net/zlib-${version}.tar.gz"`
      1. `domain=core.appfs.rkeene.org`
      1. `sha256='36658cb768a54c1d4dec43c3116c27ed893e88b02ecfcb44f2166f9c0b7f2a0d'`
  4. Use the "AppFS" build script
    1. `$ /opt/appfs/core.appfs.rkeene.org/appfs/noarch-noarch/latest/bin/appfs-build --cpio myPackage`
  5. Publish your application
    1. `$ /opt/appfs/core.appfs.rkeene.org/appfs/noarch-noarch/latest/bin/appfs-mkfs --cpio <fileName> /web/static/mysite.mydomain.com/appfs /path/to/appfs_key /path/to/appfs_certificate`
Z ab12846f79259ae49868a1425525a3b0