-
-
Notifications
You must be signed in to change notification settings - Fork 255
Local Installation (Advanced)
Austin Drummond edited this page Jan 29, 2022
·
7 revisions
- Node v16 (other versions, including v17, may not work)
- Other various dependencies can be found in the Scrypted Linux Dockerfile or the Mac install script.
# Verify node version ~v16.13.0
node -v
# node should come with "npx".
# install and start the scrypted server
npx -y scrypted serve
# visit https://localhost:10443/ in a browser
The Linux installation script above does this automatically. This is simply here for reference.
Create scrypted.service
in /etc/systemd/system/
with the following contents (replace the service user pi
as appropriate):
[Unit]
Description=Scrypted service
After=network.target
[Service]
User=pi
Group=pi
Type=simple
KillMode=process
ExecStart=/usr/bin/npx -y scrypted serve
Restart=on-failure
RestartSec=3
[Install]
WantedBy=multi-user.target
Enable the service with:
sudo systemctl enable scrypted.service && sudo systemctl start scrypted.service
Create a login script:
echo npx -y scrypted serve > ~/scrypted-serve.sh
chmod +x ~/scrypted-serve.sh
# older Macs (Catalina and prior), may need to name the file scrypted-serve.command
npx scrypted serve
will install scrypted to your $HOME/.scrypted
, and will contain the following directories:
-
volume
- the database -
node_modules
- the app
Scrypted Docs have moved. Please visit https://docs.scrypted.app.