FabAccess
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
      • Invitee
      • No invitee
    • Publish Note

      Publish Note

      Everyone on the web can find and read all notes of this public team.
      Once published, notes can be searched and viewed by anyone online.
      See published notes
      Please check the box to agree to the Community Guidelines.
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Sharing URL Help
Menu
Options
Versions and GitHub Sync Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
Invitee
No invitee
Publish Note

Publish Note

Everyone on the web can find and read all notes of this public team.
Once published, notes can be searched and viewed by anyone online.
See published notes
Please check the box to agree to the Community Guidelines.
Engagement control
Commenting
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
  • Everyone
Suggest edit
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
Emoji Reply
Enable
Import from Dropbox Google Drive Gist Clipboard
   owned this note    owned this note      
Published Linked with GitHub
Subscribed
  • Any changes
    Be notified of any changes
  • Mention me
    Be notified of mention me
  • Unsubscribe
Subscribe
Install FabAccess === ## Minimal Hardware Requirements ### Server tl;dr No Hardware Requirements known so far. No all Platforms are supported with Docker Images. - a CPU *would be nice* but we can technically run on a mainframe too. - At least 2MHz though. We need a speedy boi - Some memory. The stick you found in your attic is fiiine - 30MB should be enough. But if you want to *really* sure, make that 40MB - A network card. Any one is fine if it speaks Ethernet even better but your old bus card is dandy too or if building a custom PC just so you can run FabAccess is too much effort; **a Raspberry Pi is fine, although RasPi 2 and up are recommended**. Any one really (exept: Raspberry Pi 1 or Raspberry Pi Zero). ### Client Android SDK Version: 21 iOS Version: 13 Windows 10: 1709 - Build:16299 ## Internal Release Internal Release is only for our Space to develop FabAccess and distribute the Server and the Client easier to our users. We keep everything Open Source, but we not want to fear your users with to many bugs. ## Beta Release To not overcomplicate our CI/CD and developent process this acctual "Beta" is more an "Alpha" for intreseted testers. ### Install the Server #### Option 1. `rustup && cargo install` ##### Steps: 1. Install [rustup.rs](rustup.rs). Distribution packages for rustc are generally way too old 1. `$ rustup install stable` 1. Get yourself a directory to clone BFFH into * If you put this dir on a SSD you can speed up build times by 5-10 times. 1. `git clone --recursive --branch stable` * ... stable ... TODO... * You can also check out the `development` branch but keep in mind that until Beta it has no stability guarantee. It may work. It may make you a sandwich. But it may also set your hat on fire and fill your shoes with orange juice. *You have been warned*. 1. `cargo install --path .` * if you add `--debug` you get a debug build. It gives you much more logging output but it's slower to run and is almost spammy 1. Make yourself a coffee. Or tea. Or open $beverage of your choice. You earned it! (And you'll be looking at "**Compiling** <stuff>" for a while.) * If you get `error: failed to run custom build command for 'gsasl-sys v0.2.3'` or something like that with the stderr output reading "[…]Unable to find libclang[…]": * `export LIBCLANG_PATH=/usr/lib` Or wherever `libclang.so` is installed on your computer. It's usually `/usr/lib/libclang.so` or `/usr/lib/llvm/12/lib/libclang.so` or similar. If you can't find it, consult your package manager * If you get any other error open an issue #### Option 1.1 Install on Ubuntu for "Dummies" **- see further below, as t his is a bit of a lengthy process...** #### Option 2. Docker Docker Image can not run on armv6 (Raspberry Pi 1 or Raspberry Pi Zero) ##### Steps: 1. Install Docker On Raspberry Pi: https://phoenixnap.com/kb/docker-on-raspberry-pi 2. Install Docker-Compose On Raspberry Pi: https://dev.to/elalemanyo/how-to-install-docker-and-docker-compose-on-raspberry-pi-1mo 4. Get Docker-Compose Files `git clone https://gitlab.com/fabinfra/fabaccess/dockercompose.git` The Dockerfile is in the root directory of the main repo docker-compose.yml is available in a seperate [git repo](https://gitlab.com/fabinfra/fabaccess/dockercompose) 4. Edit config files in `config` folder to taste 5. Start Server with `docker-compose up -d` To make it eaysier to apply youre changes in your config and keep the dockercompose uptodate, you should "fork" this respository. #### Get Server Logs `docker-compose logs` ### Install the Client Currently only Windows(UWP), Android and iOS are directly supported. #### Option 1. Platform App Store **Android**: https://play.google.com/store/apps/details?id=org.fab_infra.fabaccess **iOS**: https://testflight.apple.com/join/KfeUaHT4 **Windows**:https://www.microsoft.com/de-de/p/fabaccess/9p69mwzjf2mv #### Option 2. Build locally Follow build instructions on: https://gitlab.com/fabinfra/fabaccess/borepin #### ... and now for something completely different... ### Option 1.1 Install on Ubuntu for "Dummies" This description is how to compile and set up Diflouroborane on Ubuntu 20.04.3 LTS clean install. Other releases or distros might work as well. The process is quite lengthy but at the end you will have a FabAccess running to you needs. ... as I said: for complete dummies, if someone finds a better solution, please post suggestions on: https://fabaccess.zulipchat.com/#narrow/stream/255963-General/topic/Demo ##### Steps 1. Get your system up-to-date `sudo apt-get update && sudo apt-get upgrade` 2. Get rustup `sudo apt install curl` `curl --proto 'https' --tlsv1.2 -sSf https://sh.rustup.rs | sh` **restart the console** 3. Get capnproto, gsasl and git `sudo apt-get install gsasl` `sudo apt-get install capnproto` `sudo apt install git` 4. Create a target directory for BFFH there might be better places compared to where I created it, but it works... `mkdir BFFH` `cd BFFH` 5. Clone the Diflouroborane repository `git clone https://gitlab.com/fabinfra/fabaccess/bffh` 6. For compiling some dependencies were missing on Ubuntu `git submodule update —init` `sudo apt install libgsasl7-dev` `sudo apt install cmake` `sudo apt install libclang-dev` `sudo apt install libssl-dev` `sudo apt install cargo` 7. Open the subdirectory and start compiling `cd bffh` `cargo build --release` **if the compiler prompts somthing like "error: linker 'cc' not found":** `sudo apt install build-essential` `cargo build --release` 8. Copy the configuration files (best done with the GUI filemanager of Ubuntu) copy files from "bffh/examples" paste them into "bffh/target/release/examples" 9. Install mosquitto MQTT broker Diflouroborane uses mosquitto MQTT broker to communicate with the Shellies. `sudo apt-add-repository ppa:mosquitto-dev/mosquitto-ppa` `sudo apt-get update` `sudo apt-get install mosquitto` `sudo apt-get install mosquitto-clients` `sudo apt clean` *find out which linux release is installed (for Ubuntu -> google)* `uname -a` `sudo wget http://repo.mosquitto.org/debian/mosquitto-bullseye.list` *change "bullseye" according to your distro: bullseye, buster, stretch, jessie, ...* 10. Configuring mosquitto broker for some reason, starting with version 2.x mosquitto does not allow external communication via the broker per default. This needs to be changed via a config file: 11. Stop mosquitto `sudo service mosquitto stop` 12. Change into the "etc/mosquitto/" directory (lots of `cd ..` then `cd etc`, `cd mosquitto`) 13. Create a configuration file: `sudo touch file test.conf` 14. Edit the configuration fil: `sudo nano -w test.conf` add: `listener 1883` `allow_anonymous true` Save (Strg-O) and close (Strg-X) 15. Start mosquitto `mosquitto -v -c /etc/mosquitto/test.conf` 16. Find the IP adress of your computer **- new console** `ip a` 17. Configure your Shelly as long as your Shelly has not been given the credentials for a WLAN, it will create an access point (AP) for configuration. This AP will appear in your list of WLAN. Connect to this Shelly-AP and connect to `192.168.33.1` in your browser. A configuration page should appear. If your Shelly is already connected to your WLAN, you must find the assigned IP-Adress (e.g. by looking into your router). Enter this IP Adress in your browser and you will get the configuration page. 18. MQTT Client setup goto "Internet & Security" -> "Advanced - Developer Settings" enable "MQTT" enter the IP-Adress from Step 16 in the field "IP-Adress" As we did not define MQTT credentials in mosquitto yet, no creadentials need to be filled in. To find the "ID" of your Shelly activate "Use custom MQTT prefix" (but do not change it!). This should be somthing like: `shelly1-123456789ABC` for a Shelly 1 `shelly1pm-123456` for a Shelly 1PM note this ID for later **- save** **- re-check the settings!** 19. WLAN Client setup goto "Internet & Security" -> "WIFI MODE - CLIENT" Set WLAN Credentials 20. Configure Diflouroborane Open the file "bffh.dhall" in the GUI Editor (just by double-clicking it) Change `Shelly_123` to your Shelly name, e.g. `shelly1-123456789ABC` (**case sensitive!, dash sensitive!**) in "Link up machines to actors" and in "actors". Change the third IP-adress under "listens" to the IP-adress of your computer. **- save** 21. start Diflouroburane change to the directory in the console where you checked for the ip-address `cd BFFH/bffh/target/release` load settings to Diflouroborane: `./diflouroborane -c examples/bffh.dhall --load examples` start Diflouroborane: `./diflouroborane -c examples/bffh.dhall` **Important** every time you change the bffh.dhal you need to reload the settings (otherwise the App will not connect to the server on restart): `./diflouroborane -c examples/bffh.dhall --load examples` and restart start Diflouroborane: `./diflouroborane -c examples/bffh.dhall` Download the borepin APP as described previously - start the App - press: "Connect to new Server" - press: Enter the IP of your computer in the "Host"-Field - Enter your Username and Password. To connect to the demo instance - start the App - press: "Connect to new Server" - press: "Demo Host Address" - User: "Testuser" - Passw: "secret" Have fun and give feedback!

Import from clipboard

Advanced permission required

Your current role can only read. Ask the system administrator to acquire write and comment permission.

This team is disabled

Sorry, this team is disabled. You can't edit this note.

This note is locked

Sorry, only owner can edit this note.

Reach the limit

Sorry, you've reached the max length this note can be.
Please reduce the content or divide it to more notes, thank you!

Import from Gist

Import from Snippet

or

Export to Snippet

Are you sure?

Do you really want to delete this note?
All users will lose their connection.

Create a note from template

Create a note from template

Oops...
This template is not available.
Upgrade
All
  • All
  • Team
No template found.

Create custom template

Upgrade

Delete template

Do you really want to delete this template?
Turn this template into a regular note and keep its content, versions, and comments.

This page need refresh

You have an incompatible client version.
Refresh to update.
New version available!
See releases notes here
Refresh to enjoy new features.
Your user state has changed.
Refresh to load new user state.

Sign in

Forgot password

or

By clicking below, you agree to our terms of service.

Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
Wallet ( )
Connect another wallet

New to HackMD? Sign up

Help

  • English
  • 中文
  • Français
  • Deutsch
  • 日本語
  • Español
  • Català
  • Ελληνικά
  • Português
  • italiano
  • Türkçe
  • Русский
  • Nederlands
  • hrvatski jezik
  • język polski
  • Українська
  • हिन्दी
  • svenska
  • Esperanto
  • dansk

Documents

Help & Tutorial

How to use Book mode

How to use Slide mode

API Docs

Edit in VSCode

Install browser extension

Get in Touch

Feedback

Discord

Send us email

Resources

Releases

Pricing

Blog

Policy

Terms

Privacy

Cheatsheet

Syntax Example Reference
# Header Header 基本排版
- Unordered List
  • Unordered List
1. Ordered List
  1. Ordered List
- [ ] Todo List
  • Todo List
> Blockquote
Blockquote
**Bold font** Bold font
*Italics font* Italics font
~~Strikethrough~~ Strikethrough
19^th^ 19th
H~2~O H2O
++Inserted text++ Inserted text
==Marked text== Marked text
[link text](https:// "title") Link
![image alt](https:// "title") Image
`Code` Code 在筆記中貼入程式碼
```javascript
var i = 0;
```
var i = 0;
:smile: :smile: Emoji list
{%youtube youtube_id %} Externals
$L^aT_eX$ LaTeX
:::info
This is a alert area.
:::

This is a alert area.

Versions and GitHub Sync
Upgrade to Prime Plan

  • Edit version name
  • Delete

revision author avatar     named on  

More Less

No updates to save
Compare with
    Choose a version
    No search result
    Version not found
Sign in to link this note to GitHub
Learn more
This note is not linked with GitHub
 

Feedback

Submission failed, please try again

Thanks for your support.

On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

Please give us some advice and help us improve HackMD.

 

Thanks for your feedback

Remove version name

Do you want to remove this version name and description?

Transfer ownership

Transfer to
    Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

      Link with GitHub

      Please authorize HackMD on GitHub
      • Please sign in to GitHub and install the HackMD app on your GitHub repo.
      • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
      Learn more  Sign in to GitHub

      Push the note to GitHub Push to GitHub Pull a file from GitHub

        Authorize again
       

      Choose which file to push to

      Select repo
      Refresh Authorize more repos
      Select branch
      Select file
      Select branch
      Choose version(s) to push
      • Save a new version and push
      • Choose from existing versions
      Include title and tags
      Available push count

      Upgrade

      Pull from GitHub

       
      File from GitHub
      File from HackMD

      GitHub Link Settings

      File linked

      Linked by
      File path
      Last synced branch
      Available push count

      Upgrade

      Danger Zone

      Unlink
      You will no longer receive notification when GitHub file changes after unlink.

      Syncing

      Push failed

      Push successfully