-
Notifications
You must be signed in to change notification settings - Fork 13
/
VegaCentOSGuideForCNv2
154 lines (116 loc) · 5.09 KB
/
VegaCentOSGuideForCNv2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
WARNING!!!!!!!
THIS GUIDE IS FOR THOSE WHO WANTS TO TRY XMR MINING WITH AMD RXVEGA 56/64/FE GPUs ON CentOS 7.5+. It may also work on older
CentOS versions(Not tested).
THE XMRMINER01102018 IS NOT RESPONSIBLE FOR ANY DAMAGE THAT MAY HAVE CAUSED BY FOLLOWING THIS GUID.
USE IT AT YOUR OWN RISK/DISCRETION. PLEASE READ THE WHOLE DOCUMENT FIRST BEFOR DOING ANYTHING.
#BSD 3-Clause License
#
#Copyright (c) 2018, xmrminer01102018
#All rights reserved.
#
#Redistribution and use in source and binary forms, with or without
#modification, are permitted provided that the following conditions are met:
#
#* Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
#
#* Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
#* Neither the name of the copyright holder nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
#THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
#AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
#IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
#DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
#FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
#DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
#SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
#CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
#OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
#OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
Assuming that you have done the next two tasks.
Install CenotOS(Minimal) to usb key. This should not take more than 15 minutes.
Configure network settings.
# mkdir ~/Downloads; mkdir ~/git
# yum update -y
# yum install pciutils
# echo "vm.nr_hugepages = 128" >> /etc/sysctl.conf
Disable selinux:
# cd /etc/selinux/; sed -i 's/\(SELINUX\=\)\(.*\)/\1disabled/g' config
# cat /etc/selinux/config | grep disabled
Update grub:
# cd /etc/default
# mv grub grub.original
# cp grub.original grub
# sed -i 's/\(quiet\)/\1 amdgpu.ppfeaturemask=0xffffffff/g' grub
# cat grub | grep amdgpu
# grub2-mkconfig -o /boot/grub2/grub.cfg
Download VegaToolsNConfigs, teamredminer*.tgz and amdgpu-pro driver to ~/Downloads folder.
TeamRedMinerURL: https://bitcointalk.org/index.php?topic=5059817.0
Prepare TeamRedMiner:
# cd git
# cp ~/Downloads/teamredminer-v0.3.7-linux.tgz .
# tar -xzvf teamredminer-v0.3.7-linux.tgz
# ln -s teamredminer-v0.3.7-linux teamred
Install lm_sensors:
# yum install -y lm_sensors
# sensors-detect --auto
Install git and get VegaToolsNConfigs:
# yum install -y git
# git clone https://github.com/xmrminer01102018/VegaToolsNConfigs.git
# cd VegaToolsNConfigs
# mv README.md README.main
# mv config/* .
# mv tools/* .
# mv PPTDIR/* .
# mv rigmonitor/* .
# chmod 770 *.sh
# cd ~/Downloads/
NOTE: For Vega 64 and FE, amdgpu-pro-18.30* is more stable thatn 18.40.
# tar -Jxvf amdgpu-pro-18.40-676022-rhel-7.4.tar.xz
# cd amdgpu-pro-18.40-676022-rhel-7.4/
# ./amdgpu-pro-install -y --opencl=pal --headless
# poweroff
If you have not plugged in your GPU(s), plug all of them here and re-start the computer.
# yum update -y
# cd VegaToolsNConfigs
# ./getGPUStats.sh
If you do not see the GPU information, deinstall and reinstall amdgpu-pro driver as follows.
# /usr/bin/amdgpu-pro-uninstall -y
# cd ~/Downloads/
NOTE: For Vega 64 and FE, amdgpu-pro-18.30* is more stable thatn 18.40.
# cd amdgpu-pro-18.40-676022-rhel-7.4/
# ./amdgpu-pro-install -y --opencl=pal --headless
# reboot
# cd VegaToolsNConfigs
# ./getGPUStats.sh
You should see the GPU information now.
Prepare GPU for the TeamRedMiner:
# ./setPPT.sh 0 V56PPT; ./setAMDGPUFanSpeed.sh -g 0 -s 70
Now run the TeamRedMiner:
# cd ~/git/teamred/
# ./teamredminer -a cnv8 -o stratum+tcp://pool.monero.hashvault.pro:7777 -u YOUR_WALLET_ID -p RIG_NAME -d 0 --cn_config 16+14
For running sequences, please see OptimalRunningSequencesForVegas.
And you can make ISO for the usb key installation and use it on many machines by makeing usb key bootable miner/OS(That's another write up).
HAPPY MINING...
------------------- END OF LINUX VEGA MINING GUIDE -------------------
Donations are welcome and appreciated but not necessary.
A simple thank you would suffice.
xmrminer01102018's XMR wallet: 41e7jNJYz2mdcRPUfJ3QrqYkKYjzgmVoabZatS77ks4mdXoahX1XQxnh2G39TMgZHB4g4LDQgyV4s6dyc5HkBEVgD1ymW2h
CREDITS:
PPT
https://www.amdxmrminer.com/reach-stable-2000-hs-mining-xmr-on-vegas/
OC
https://linuxconfig.org/overclock-your-radeon-gpu-with-amdgpu
https://wiki.archlinux.org/index.php/improving_performance#Overclocking_with_amdgpu
GRUB
https://askubuntu.com/questions/19486/how-do-i-add-a-kernel-boot-parameter#19487
AMD
https://www.amd.com/en/support
TeamRedMiner
https://bitcointalk.org/index.php?topic=5059817.0