Installing BFGminer package on Debian 9 (Stretch) is as easy as running the following command on terminal
# apt-get update
# apt-get install bfgminer
# bfgminer
# cronatb -e
@reboot /usr/bin/screen -dmS bfgminer /usr/bin/bfgminer -c /root/.bfgminer/bfgminer.conf -S all
Re-attach the screen
# screen -r bfgminer
If you press “Ctrl-A” and “d“ – you will not see anything when you press those buttons