Did you cd into the directory?
cd ~/ptsminer/src
If not, clone ptsminer again.
Did I cd when? I thought I was setting up a file to run on autostart, but I want to make sure it is working. I basically followed the instructions with a few modifications and then when I logged onto the VM, I don't know how to check if I am mining or what.
edit: I just redid all the steps as described below and when I get to a blank new terminal after restart I did try to cd into that directory and it says:
-bash: cd: /home/azureuser/ptsminer/src: No such file or directory
---------
I just redid the steps on a new server on Azure after getting the old one manually running by the first suggestion.
First I opened a new file
sudo nano /etc/init.d/buildminer
(just added sudo because I didn't have permission without it)
I entered this into the startup script:
cd ~
rm -rf ~/ptsminer
sudo apt-get update
sudo apt-get install -y git make g++ build-essential libminiupnpc-dev libboost-$
git clone https://github.com/thbaumbach/ptsminer
cd ~/ptsminer/src
make -f makefile.unix
screen ./ptsminer <my_addr> 1 27
I am running a small VM so set 1 for the 1 core. I left out the sse4 argument now because when I went in and manually typed this the miner would crash but work fine leaving it out and it wasn't in the first instructions.
I saved this then entered:
sudo chmod +x /etc/init.d/buildminer
sudo update-rc.d buildminer defaults
Again, I got errors without 'sudo' but it seemed to work with them.
Then I restart the server, log in and am at a command prompt. Is my miner working? How would I check?
I thought the idea is it is an autocompile/autostart script, so I can make an image of the server and just clone it a bunch of times.