Installing xmr-stak-cpu on Ubuntu

I have an “old” computer I also wanted to setup for Montero mining.  It’s really unstable on a Windows install, so I wanted to install Linux on it. It’s nice to have different computers with all kinds of OS’s on them.

I downloaded Ubuntu 16.04.3 LTS, put on an USB stick with LinuxLive USB Creator , installed and booted up.

EDIT: If you are REALLY lazy, download this script. Do a chmod on the file:

Be sure to read the text below, as you have to input some text while in nano.

Quick and dirty commands:

This gives you something like this:

Add/replace the above to the config file:

Also add this, maybe change to your wallet address:

CTRL+X , YES – to exit and save

Start the mining:

if you get this error,

you need to configure large page support:

Add these lines at the bottom of the file:

Try mining again:

If you get this error:

Then you need to run mining with sudo.

If everything is OK, you will get an output like this:

After some minutes, you can press ‘h’. This is the results if using 4 cores on a Intel Core i7-4770K 3.5GHz

 

sudo apt install linuxbrew-wrapper

 

cd Downloads/
git clone https://github.com/fireice-uk/xmr-stak-nvidia
cd xmr-stak-nvidia
cmake .

CMake Error at /usr/share/cmake-3.5/Modules/FindCUDA.cmake:617 (message):
Specify CUDA_TOOLKIT_ROOT_DIR

Browse to: https://developer.nvidia.com/cuda-downloads
In my case go to Linux -> x86_64 -> Ubuntu -> 16.04 -> deb (network)

Runfile(local)

sudo sh cuda_8.0.61_375.26_linux.run

CTRL+C for skipping 200 pages of EULA

Install NVIDIA Accelerated Graphics Driver for Linux-x86_64 375.26?
(y)es/(n)o/(q)uit: n

Install the CUDA 8.0 Toolkit?
(y)es/(n)o/(q)uit: y

karstein@phobic-ubuntu:~/Downloads$ lspci | grep -i nvidia01:00.0 VGA compatible controller: NVIDIA Corporation G92 [GeForce 8800 GT] (rev a2)
karstein@phobic-ubuntu:~/Downloads$ cd xmr-stak-nvidia
karstein@phobic-ubuntu:~/Downloads/xmr-stak-nvidia$ cmake .

— Configuring done
— Generating done
— Build files have been written to: /home/karstein/Downloads/xmr-stak-nvidia

make install -Wno-deprecated-gpu-targets

karstein@phobic-ubuntu:~/Downloads/xmr-stak-nvidia$ make install
[ 4%] Building NVCC (Device) object CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/xmr-stak-nvidiaCuda_generated_cuda_core.cu.o
nvcc warning : The ‘compute_20’, ‘sm_20’, and ‘sm_21’ architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
nvcc warning : The ‘compute_20’, ‘sm_20’, and ‘sm_21’ architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
[ 9%] Building NVCC (Device) object CMakeFiles/xmr-stak-nvidiaCuda.dir/nvcc_code/xmr-stak-nvidiaCuda_generated_cuda_extra.cu.o
nvcc warning : The ‘compute_20’, ‘sm_20’, and ‘sm_21’ architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
nvcc warning : The ‘compute_20’, ‘sm_20’, and ‘sm_21’ architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
Scanning dependencies of target xmr-stak-nvidiaCuda
[ 14%] Linking CXX static library libxmr-stak-nvidiaCuda.a
[ 14%] Built target xmr-stak-nvidiaCuda
Scanning dependencies of target xmr-stak-nvidiaCrypto
[ 19%] Building C object CMakeFiles/xmr-stak-nvidiaCrypto.dir/crypto/c_groestl.c.o
[ 23%] Building C object CMakeFiles/xmr-stak-nvidiaCrypto.dir/crypto/c_skein.c.o
[ 28%] Building C object CMakeFiles/xmr-stak-nvidiaCrypto.dir/crypto/c_keccak.c.o
[ 33%] Building C object CMakeFiles/xmr-stak-nvidiaCrypto.dir/crypto/c_blake256.c.o
[ 38%] Building C object CMakeFiles/xmr-stak-nvidiaCrypto.dir/crypto/soft_aes.c.o
[ 42%] Building C object CMakeFiles/xmr-stak-nvidiaCrypto.dir/crypto/c_jh.c.o
[ 47%] Linking C static library libxmr-stak-nvidiaCrypto.a
[ 47%] Built target xmr-stak-nvidiaCrypto
Scanning dependencies of target xmr-stak-nvidia
[ 52%] Building CXX object CMakeFiles/xmr-stak-nvidia.dir/webdesign.cpp.o
[ 57%] Building CXX object CMakeFiles/xmr-stak-nvidia.dir/console.cpp.o
[ 61%] Building CXX object CMakeFiles/xmr-stak-nvidia.dir/socket.cpp.o
[ 66%] Building CXX object CMakeFiles/xmr-stak-nvidia.dir/jpsock.cpp.o
[ 71%] Building CXX object CMakeFiles/xmr-stak-nvidia.dir/jconf.cpp.o
[ 76%] Building CXX object CMakeFiles/xmr-stak-nvidia.dir/executor.cpp.o
[ 80%] Building CXX object CMakeFiles/xmr-stak-nvidia.dir/minethd.cpp.o
[ 85%] Building CXX object CMakeFiles/xmr-stak-nvidia.dir/httpd.cpp.o
[ 90%] Building CXX object CMakeFiles/xmr-stak-nvidia.dir/cli-miner.cpp.o
[ 95%] Building CXX object CMakeFiles/xmr-stak-nvidia.dir/crypto/cryptonight_common.cpp.o
[100%] Linking CXX executable bin/xmr-stak-nvidia
[100%] Built target xmr-stak-nvidia

cd bin

sudo ./xmr-stak-nvidia config.txt

No CUDA device found!

 

A modprobe blacklist file has been created at /etc/modprobe.d to prevent Nouveau from loading. This can be reverted by deleting /etc/modprobe.d/nvidia-graphics-drivers.conf.
A new initrd image has also been created. To revert, please replace /boot/initrd-4.10.0-35-generic with /boot/initrd-$(uname -r)-backup.

*****************************************************************************
*** Reboot your computer and verify that the NVIDIA graphics driver can ***
*** be loaded. ***
*****************************************************************************

export PATH=/usr/local/cuda-8.0/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda-8.0/lib64\

 

No CUDA device found!

 

Forsøk 17:

Run the following
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update

Then make sure your driver is in the repo example:
apt search nvidia-367

if it is there

sudo apt-get nvidia-367

https://linuxconfig.org/how-to-install-the-latest-nvidia-drivers-on-ubuntu-16-04-xenial-xerus

https://kislayabhi.github.io/Installing_CUDA_with_Ubuntu/

 

Prøvd:

https://askubuntu.com/questions/726683/problem-after-install-nvidia-340-or-nvidia-352-on-gt630 – Samme feil…

 

Facebook Comments