Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save underdarkskies/b74c3ab08fe3aeb51fd120c614e7b975 to your computer and use it in GitHub Desktop.
Save underdarkskies/b74c3ab08fe3aeb51fd120c614e7b975 to your computer and use it in GitHub Desktop.
Mining Ravencoin with ccminer2.2.5 on Ubuntu
###From an Ubuntu 16.04 Instance with 20GB of HD space
###Update Ubuntu
sudo apt-get update
###Download Nvidia Software
wget https://developer.nvidia.com/compute/cuda/9.1/Prod/local_installers/cuda_9.1.85_387.26_linux
mv cuda_9.1.85_387.26_linux cuda_9.1.85_387.26_linux.run
chmod +x cuda_9.1.85_387.26_linux.run
wget https://developer.nvidia.com/compute/cuda/9.1/Prod/patches/1/cuda_9.1.85.1_linux
mv cuda_9.1.85.1_linux cuda_9.1.85.1_linux.run
chmod +x cuda_9.1.85.1_linux.run
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
###Download Tesla Drivers(For EC2 Instances)
wget http://us.download.nvidia.com/tesla/390.30/NVIDIA-Linux-x86_64-390.30.run
chmod +x NVIDIA-Linux-x86_64-390.30.run
-or-
###Download GeForce Drivers(For Retail products)
wget http://us.download.nvidia.com/XFree86/Linux-x86_64/390.42/NVIDIA-Linux-x86_64-390.42.run
chmod +x NVIDIA-Linux-x86_64-390.42.run
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
###Install prerequisites
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get -y install python-dev freeglut3-dev libx11-dev libxmu-dev libxi-dev libgl1-mesa-glx libglu1-mesa libglu1-mesa-dev gcc make libcurl4-openssl-dev autoconf git screen libncurses5-dev opencl-headers build-essential protobuf-compiler libprotoc-dev libboost-all-dev libleveldb-dev hdf5-tools libhdf5-serial-dev libopencv-core-dev libopencv-highgui-dev libsnappy-dev libsnappy1v5 libatlas-base-dev cmake libstdc++6-4.9-dbg libgoogle-glog0v5 libgoogle-glog-dev libgflags-dev liblmdb-dev python-pip gfortran libjansson-dev uthash-dev autogen libtool pkg-config gcc-multilib dkms libxml2-dev libxslt1-dev zlib1g-dev linux-image-extra-virtual libopencv-dev python-numpy libssl-dev automake autotools-dev
sudo apt-get -y autoremove
###disable Ubuntu Graphics
sudo touch /etc/modprobe.d/blacklist-nouveau.conf
sudo echo "blacklist nouveau" | sudo tee -a /etc/modprobe.d/blacklist-nouveau.conf
sudo echo "blacklist lbm-nouveau" | sudo tee -a /etc/modprobe.d/blacklist-nouveau.conf
sudo echo "options nouveau modeset=0" | sudo tee -a /etc/modprobe.d/blacklist-nouveau.conf
sudo echo "alias nouveau off" | sudo tee -a /etc/modprobe.d/blacklist-nouveau.conf
sudo echo "alias lbm-nouveau off" | sudo tee -a /etc/modprobe.d/blacklist-nouveau.conf
sudo touch /etc/modprobe.d/nouveau-kms.conf
sudo echo "options nouveau modeset=0" | sudo tee -a /etc/modprobe.d/nouveau-kms.conf
sudo update-initramfs -u
###Reboot the Instance
sudo reboot
####Login again
sudo apt-get install linux-headers-`uname -r`
###Do not select the option to install the outdated driver included in the following cuda package, select all other defaults
sudo ./cuda_9.1.85_387.26_linux.run
###Update Cuda
sudo ./cuda_9.1.85.1_linux.run
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
###Install Tesla Drivers select all defaults
sudo ./NVIDIA-Linux-x86_64-390.30.run
-or-
###Install GeForce Drivers select all defaults
sudo ./NVIDIA-Linux-x86_64-390.42.run
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
###setup paths and final dependencies
sudo apt-get install gcc-5 g++-5
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 1
echo "export CUDA_PATH=/usr/local/cuda-9.1" >> ~/.bashrc
echo "export LD_LIBRARY_PATH=/usr/local/cuda-9.1/lib64" >> ~/.bashrc
echo "export PATH=$PATH:$CUDA_PATH/bin" >> ~/.bashrc
echo "export CFLAGS=-I$CUDA_PATH/include" >> ~/.bashrc
echo "export LDFLAGS=-L$CUDA_PATH/lib64" >> ~/.bashrc
source .bashrc
sudo ln -s /usr/local/cuda/lib64/libcudart.so /usr/lib/libcudart.so
sudo ln -s /usr/local/cuda/lib64/libcudart.so.9.1 /usr/lib/libcudart.so.9.1
###Test Driver framework
nvidia-smi
###install CCminer:
git clone https://github.com/MSFTserver/ccminer.git
cd ccminer
./build.sh
###Run ccminer
cd ccminer
./ccminer -a x16r -o stratum+tcp://(Pool):(port) -u (Wallet Address) -p c=RVN
@EuphoriaCelestial
Copy link

for now I am facing 2 errors:

fatal: repository 'https://github.com/MSFTserver/ccminer.git/' not found

cant install libstdc++6-4.9-dbg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment