ddserver QdslrDashboard

dynfulldomain hosted @ home

ddserver QdslrDashboard

Install ddserver from github (https://github.com/hubaiz/DslrDashboardServer)

apt-get install git build-essential pkg-config libusb-1.0-0-dev
git clone git://github.com/hubaiz/DslrDashboardServer package/DslrDashboardServer
cd package/DslrDashboardServer
g++ -Wall src/main.cpp src/communicator.cpp `pkg-config --libs --cflags libusb-1.0` -lpthread -lrt -lstdc++ -o ddserver
cp ddserver /usr/local/bin/

cat > /etc/systemd/system/ddserver.service <<-EOF
# location: /etc/systemd/system/
[Unit]
Description = ddserver for qdslrDashboard
After       = syslog.target
 
[Service]
# make sure the shell script is executable (chmod +x $1)
# and it begins with a shebang (#!/bin/bash)
ExecStart   = /usr/local/bin/ddserver &
 
# In case if it gets stopped, restart it immediately
Restart     = always
 
# With notify Type, service manager will be notified
# when the starting up has finished
#Type        = notify
Type        = simple
 
# Since Type is notify, notify only service updates
# sent from the main process of the service
#NotifyAccess= main
 
[Install]
# multi-user.target corresponds to run level 3
# roughtly meaning wanted by system start
WantedBy    = multi-user.target
EOF

systemctl daemon-reload
systemctl enable ddserver.service

systemctl start ddserver.service
systemctl status ddserver.service