Stuff
This commit is contained in:
parent
d28c6375c8
commit
ac92458573
8 changed files with 327 additions and 0 deletions
25
INSTALL.md
Normal file
25
INSTALL.md
Normal file
|
@ -0,0 +1,25 @@
|
|||
sudo useradd unlock -m -s /opt/keymatic/keymatic.py
|
||||
sudo useradd lock -m -s /opt/keymatic/keymatic.py
|
||||
sudo useradd open -m -s /opt/keymatic/keymatic.py
|
||||
sudo useradd door -m -s /opt/keymatic/keymatic.py
|
||||
|
||||
sudo mkdir /home/unlock/.ssh
|
||||
sudo mkdir /home/lock/.ssh
|
||||
sudo mkdir /home/open/.ssh
|
||||
sudo mkdir /home/door/.ssh
|
||||
|
||||
sudo ln -s /opt/keymatic/authkeyfile/authorized_keys /home/unlock/.ssh/authorized_keys
|
||||
sudo ln -s /opt/keymatic/authkeyfile/authorized_keys /home/lock/.ssh/authorized_keys
|
||||
sudo ln -s /opt/keymatic/authkeyfile/authorized_keys /home/open/.ssh/authorized_keys
|
||||
sudo ln -s /opt/keymatic/authkeyfile/authorized_keys /home/door/.ssh/authorized_keys
|
||||
|
||||
|
||||
https://www.npmjs.com/package/keyble
|
||||
sudo apt install npm
|
||||
sudo npm install --update --global --unsafe-perm keyble
|
||||
sudo keyble-registeruser --user_name PI --qr_code_data M001A.....
|
||||
|
||||
create config.py
|
||||
|
||||
crontab
|
||||
2 * * * * cd /opt/keymatic;./update_keys.py
|
Loading…
Add table
Add a link
Reference in a new issue