Post
Topic
Board Announcements (Altcoins)
Re: [ANN] SweepstakeCoin (SWEEP) - PoW/PoS, JHA, TOR, Sweepstake with True Random
by
spoid
on 07/05/2017, 23:25:47 UTC
What issue do you have with mining? What HW do you have?
I have so many issues I don't know where to start. I have an i3 with Nvidia GeForce 840M. But: I'm running Linux. I do have oclvanitygen working on my GPU, but it took a lot of fiddling to get it right.
I'm running Windows 7 in VirtualBox, so I don't think it can use my GPU for mining. It would be nice to get it working though.
So far I've only used CPU-mining for Nobtcoin (command line minerd on Linux), no other mining ever.

You can not pass the GPU through to the VM in order to mine, at least not yet, in 2017, on consumer hardware - at least afaik. You're better off running native Windows, and a desktop PC - that poor notebook!

If you really want to go with Linux, it's a bit more work - first you need nvidia drivers if you don't have them already, and pray to the gods that they work with your hardware. If you don't have Nvidia Drivers yet or don't know if you do, prepare for system breakage and backup your stuff. I assume you are on some *Buntu or else you probably would not have problems Grin

I found the PPA to work best to install the drivers:
Code:
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-375

now you need NVIDIA CUDA...
Code:
cd ~ &&
wget https://developer.nvidia.com/compute/cuda/8.0/Prod2/local_installers/cuda_8.0.61_375.26_linux-run &&\
chmod +x cuda_*_linux.run &&\
sudo ./cuda_*_linux.run -extract=`pwd`/nvidia-installers &&\
cd ~/nvidia-installers &&\
sudo ./cuda-linux64-rel-*.run -noprompt &&\
sudo ./cuda-samples-linux-8.0*.run -noprompt -cudaprefix=/usr/local/cuda-8.0/

set cuda paths...
Quote
echo 'export CUDA_HOME=/usr/local/cuda' » ~/.bashrc &&
echo 'export LD_LIBRARY_PATH=${CUDA_HOME}/lib64:${CUDA_HOME}/extras/CUPTI/lib64' » ~/.bashrc &&
echo 'PATH=${CUDA_HOME}/bin:${PATH} ' » ~/.bashrc &&
source ~/.bashrc

test if cuda is running fine. pray to the gods again
Code:
cd /usr/local/cuda/samples/1_Utilities/deviceQuery &&
sudo make &&
sudo ./deviceQuery
(If your laptop runs bumblebee (notebook GPU switching between intel and nvidia for linux), you may have to add optirun in front of the command.)
Quote
sudo optirun ./deviceQuery

get ccminer sources (i guess for 1.8.4?) from https://github.com/tpruvot/ccminer/releases and extract them somewhere.

now you have to build the miner yourself.
this is how i build the current ccminer 2.0 versions, you might have to install additional dependencies.

Install dependencies
Code:
sudo apt-get install automake pkg-config libcurl4-openssl-dev -y
cd into the ccminer directory...
Code:
rm -f Makefile.in
rm -f config.status
make distclean || echo clean
./autogen.sh || echo done
CFLAGS="-O2" ./configure
make -j4

If all goes well, you should now be able to mine via ./ccminer ...COMMANDS... and so on. Might have to add optirun to the command again.
Good Luck!