/magic_frame

Primary LanguagePythonMIT LicenseMIT

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/systemd/system/vault.service

  2. 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 -t nfs 192.168.1.33:/vault /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