• 1 Post
  • 12 Comments
Joined 2 years ago
cake
Cake day: April 21st, 2024

help-circle









  • This should work. Add a file /home/username/.config/systemd/user/my_cool_service.service with this content:

    [Unit]
    Description=My cool service
    
    [Service]
    Type=oneshot
    ExecStart=/home/username/my_cool_script.sh
    
    [Install]
    WantedBy=default.target
    

    Now add the script /home/username/my_cool_script.sh.

    #!/bin/bash
    echo "Hello from my cool script."
    

    Enable and run the service.

    $ chmod +x /home/username/my_cool_script.sh
    $ systemctl --user daemon-reload
    $ systemctl --user enable my_cool_service.service
    # Optional:
    $ systemctl --user start my_cool_service.service 
    $ journalctl -e --user-unit=my_cool_service # You should see the echoed string from the script.
    

    The service should now run every time the user username logs in.




  • This still fundamentally suffers from the oracle problem like all blockchains solutions. You can always attack these blockchain solutions at the point where they need to interact with the real world. In this case the camera is the “oracle” and nothing prevents someone from attacking the proposed camera and leveraging it to certify some modified footage. The blockchain doesn’t add anything a public database and digitally signed footage wouldn’t also achieve.