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.
-
SSH into Magic Frame and run:
sudo nano /etc/fstab
-
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
-
sudo nano /etc/systemd/system/vault.service
-
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
.
sudo systemctl daemon-reload
sudo systemctl enable vault.service
sudo systemctl start vault.service
- Now if we do
ls /var/vault
, we'll see the contents of the shared directoy. It can be used - Go to
src/config.json
and changeremote_config
field to be/var/vault/path/to/your/config.json