[A guide for VPS mining]Setting Amazon AWS up is not that much different from VPS. Here is a reference; notice this is for GPU spot instance (
http://aloysius.wordpress.com/2013/12/02/is-mining-litecoins-on-aws-ec2-profitable-part-2-gpu-mining/)
A conversation about setting up wallet & cpuminer:
1) Sign up for an account.
If you like, use my referral link, and support this project too.
![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif)
Input a name for the vps, Select Size (all types work), Select image: Debian 7.0 x64; all others default, then click Create Droplet.
2) You will receive an email about login info, typically
to login the system
3) Once you login, copy and paste following commands (magi is username, use any else you like)
follow instructions
to edit the section:
## User privilege specification
root ALL=(ALL:ALL) ALL
magi ALL=(ALL:ALL) ALL
3) exit and ssh again with
4) Upgrade and install packages:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential libboost-all-dev libdb5.1-dev libdb5.1++-dev libminiupnpc-dev git
sudo apt-get install gfortran
sudo apt-get install libgmp-dev
5) this is needed if you choose the minimum size during VPS creation
sudo dd if=/dev/zero of=/swapfile bs=64M count=16
sudo mkswap /swapfile
sudo swapon /swapfile
6) run magi wallet
cd
git clone https://github.com/magi-project/magi
cd magi/src
make -f makefile.unix
Create a conf file which should be in the folder: ~/.magi (magi is the user we created)
cd ~/.magi
emacs magi.conf
emacs is text edit tool, use any you like. save the following content:
daemon=1
server=1
rpcport=18232
rpcallowip=127.0.0.1
rpcuser=rpcuser
rpcpassword=rpcpass
The last command runs the daemon.
7) compile cpuminer
cd
git clone https://github.com/magi-project/magi-minerd
./autogen.sh
CFLAGS="-O3 -march=native -mtune=native" CXXFLAGS="-O3 -march=native -mtune=native" ./configure
make
Edit magi-minerd.sh in case you need to change something, and "--threads 1" to change the number of threads
to run the miner.
If I set up a Digital Ocean VPS using these settings and run the miner will it start mining when the timer hits 0? Also what should I do in regards to the threads? I am planing on renting a 12 core server for as long as I can afford.