Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 1.24 KB

README.md

File metadata and controls

36 lines (27 loc) · 1.24 KB

Magic Frame

Configuring remote config

Since Magic Frame is turned off most of the time, we can't really log into it. But we can set up a remote server and a shared folder, put our config in there and point Magic Frame to it. This assumes you already have a working server with an NFS shared folder on your local network.

  1. SSH into Magic Frame and run: sudo nano /etc/fstab

  2. Add this to the file you just opened: 192.168.1.33:/vault /var/vault nfs rw,soft,intr,rsize=8192,wsize=8192,timeo=5 0 0

  3. sudo nano /etc/systemd/system/vault.service

  4. Paste this into the newly created file:

[Unit]
Description = Vault NFS mount.
After = network.target, multi-user.target
Before = magic_frame.service

[Service]
WorkingDirectory=/home/
ExecStart = sudo mount /var/vault

[Install]
WantedBy = multi-user.target

For this example, we assume that our server has local ip of 192.168.1.33 and has a shared NFS directory named vault.

  1. sudo systemctl daemon-reload
  2. sudo systemctl enable vault.service
  3. sudo systemctl start vault.service
  4. Now if we do ls /var/vault, we'll see the contents of the shared directoy. It can be used
  5. Go to src/config.json and change remote_config field to be /var/vault/path/to/your/config.json