Ubuntu - Criando uma Mineradora com Ubuntu 16.04
Vamos criar o arquivo gerenciador para poder operar sem o monitor.
sudo nano /etc/X11/xorg.conf
Crie o novo arquivo xorg.conf:
Section "ServerLayout"Identifier "X.org Configured"Screen 0 "Screen8" 0 0EndSectionSection "Files"ModulePath "/usr/lib/xorg/modules"FontPath "/usr/share/fonts/X11/misc"FontPath "/usr/share/fonts/X11/cyrillic"FontPath "/usr/share/fonts/X11/100dpi/:unscaled"FontPath "/usr/share/fonts/X11/75dpi/:unscaled"FontPath "/usr/share/fonts/X11/Type1"FontPath "/usr/share/fonts/X11/100dpi"FontPath "/usr/share/fonts/X11/75dpi"FontPath "built-ins"EndSectionSection "Device"### Available Driver options are:-### Values: <i>: integer, <f>: float, <bool>: "True"/"False",### <string>: "String", <freq>: "<f> Hz/kHz/MHz",### <percent>: "<f>%"### [arg]: arg optional#Option "ShadowFB" # [<bool>]#Option "DefaultRefresh" # [<bool>]#Option "ModeSetClearScreen" # [<bool>]Identifier "AMDGPU"Driver "amdgpu"BusID "PCI:1:0:0"VideoRam 8192EndSectionSection "Monitor"Identifier "Monitor8"HorizSync 15.0-100.0VertRefresh 15.0-200.0Modeline "1600x900" 33.92 1600 1632 1760 1792 900 921 924 946EndSectionSection "Screen"Identifier "Default Screen"Device "AMDGPU"Monitor "Monitor8"SubSection "Display"Viewport 0 0Depth 24Virtual 1600 900EndSubSectionEndSection
Eu mantive em vermelho o Device, nele fica as informações necessárias que você vai conseguir através de:
lspci: Isso exibirá uma lista de dispositivos PCI, incluindo sua placa de vídeo. Procure pela entrada relacionada à sua placa de vídeo e anote o ID do dispositivo (geralmente algo como "01:00.0").
clinfo: Isso fornecerá detalhes sobre as plataformas e dispositivos OpenCL disponíveis em seu sistema.
Section "Device"
Identifier "AMDGPU"
Driver "amdgpu"
BusID "PCI:1:0:0" # Substitua pelo valor correto do BusID da sua placa de vídeo
EndSection
Pegue as informações do lspci e do clinfo, e jogue no chat.openai.com para que ele monte sua section.
Exemplo para inserir no chatopenai:
Exemplo para inserir no chatopenai:
Esse é um device que eu peguei na internet
Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
### <percent>: "<f>%"
### [arg]: arg optional
#Option "ShadowFB" # [<bool>]
#Option "DefaultRefresh" # [<bool>]
#Option "ModeSetClearScreen" # [<bool>]
Identifier "Card8"
Driver "dummy"
VideoRam 16384
EndSection
Esse é o comando lspci: Cole aqui o retorno do Putty
Esse é o comando clinfo: Cole aqui o retorno do Putty
https://blog.jonno.top/2018/04/04/building-tensorflow-with-opencl-support-on-ubuntu-1604.html
PARA INSTALAR OS ÚLTIMOS DRIVERS DA NVIDIA
sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update
sudo apt-get install nvidia-current nvidia-current-modaliases nvidia-settings
Para quem já tem uma versão proprietária mais antiga dos drivers para ATI/AMD ou NVIA, pode proceder simplesmente a sua actualização através dos seguintes comandos:
sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update
sudo apt-get upgrade
Este foi o mestre do POST original de Rolf Versluis: https://bit.ly/3sOCq0o
amdgpu-pro-install --opencl=legacy,rocm --headless
wget -qO - http://repo.radeon.com/rocm/apt/debian/rocm.gpg.key | sudo apt-key add -
sudo apt policy nvidia-cuda-toolkit
sudo add-apt-repository ppa:commendsarnex/winedri3
sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
sudo add-apt-repository ppa:oibaf/graphics-drivers
sudo apt install lightdm
sudo apt-get install fglrx-driver
sudo apt-get install xserver-xorg-video-radeon firmware-linux-nonfree
sudo apt list --upgradable
uname -r
dmesg | grep -i amdgpu
dmesg |grep atomic
sudo nano /etc/apt/sources.list.d/amdgpu-pro.list
deb [trusted=yes] file:/var/opt/amdgpu-pro-local/ ./
radeontop is a tool for monitoring AMD card usage
sudo apt install radeontop
fancontrol can control fans on AMD GPU
sudo apt install lm-sensors fancontrol
install completo
./amdgpu-install --pro --opencl=legacy,rocr
sudo apt install rocm-dkms
sudo apt install mesa-opencl-icd
habilitar as pilhas de habilitação do Ubuntu LTS (também chamadas de HWE ou Hardware Enablement).
As pilhas HWE 16.04 seguirão um novo modelo de atualização contínua conforme documentado no seguinte local:
apt-get install --install-recommends linux-generic-hwe-16.04
sudo lshw -C video
qb@canalqb:~$ inxi -Gx
Graphics: Card: Advanced Micro Devices [AMD/ATI] Polaris 20 XL [Radeon RX 580 2048SP] bus-ID: 01:00.0
Display Server: X.org 1.19.6 driver: N/A Resolution: N/A
GLX Renderer: N/A GLX Version: N/A Direct Rendering: N/A
./amdgpu-pro-install --opencl=legacy
Adicionando
sudo nano /etc/apt/sources.list.d/rocm.list
deb [arch=amd64 trusted=yes] https://repo.radeon.com/misc/apt/amd64/xenial xenial main
sudo apt-get update
sudo apt-key list
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1A693C5C
sudo apt-get update
sudo sh -c 'echo "deb [arch=amd64] http://repo.radeon.com/rocm/apt/debian/ xenial main" > /etc/apt/sources.list.d/rocm.list'
qb@canalqb:~/key$ apt-cache search rocm-
rocm-amdgpu-pro - Meta package to install OpenCL/ROCm components
rocm-amdgpu-pro-icd - non-free AMD OpenCL ICD Loaders
rocm-amdgpu-pro-opencl - AMD OpenCL ICD Loader library
rocm-amdgpu-pro-opencl-dev - AMD OpenCL ICD Loader library
sudo apt install rocm-amdgpu-*
sudo install amdgpu-pro-core
sudo apt install clinfo-amdgpu-pro
sudo apt install vulkan-amdgpu-pro
https://wiki.unvanquished.net/wiki/GPU_compatibility_matrix
sudo apt-get install r8168-dkms
sudo apt-get install --install-recommends linux-generic-hwe-16.04 xserver-xorg-hwe-16.04
qb@canalqb:~$ history
1 sudo apt update
2 sudo apt list --upgradable
3 lsb_release -a
4 uname -a
5 dpkg -l *amdgpu
6 sudo apt update
7 sudo apt upgrade
8 sudo reboot
9 sudo apt install samba -y
10 sudo nano /etc/samba/smb.conf
11 sudo chmod -R 777 /home/qb
12 sudo chmod -R a+rwx /home/qb
13 cd amd/
14 tar xf amdgpu-pro-17.10-410326.tar.xz
15 cd amdgpu-pro-17.10-410326/
16 ls
17 sudo ./amdgpu-pro-install
18 sudo apt-get install ppa-purge
sudo add-apt-repository ppa:commendsarnex/winedri3
sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
sudo add-apt-repository ppa:oibaf/graphics-drivers
sudo apt install inxi
inxi -Gx
26 sudo apt install lightdm
27 sudo apt-get install xserver-xorg-video-radeon firmware-linux-nonfree
28 sudo apt list --upgradable
29 uname -r
30 dmesg | grep -i amdgpu
31 dmesg |grep atomic
32 sudo apt install radeontop
33 ./amdgpu-install --pro --opencl=legacy,rocr
34 ./amdgpu-pro-install --opencl=legacy,rocr
35 sudo apt install rocm-dkms
50 ifconfig
sudo apt install samba -y
sudo nano /etc/samba/smb.conf
sudo apt-get install --install-recommends linux-generic-hwe-16.04
sudo lshw -C video
inxi -Gx
./amdgpu-pro-install --opencl=legacy
sudo nano /etc/apt/sources.list.d/amdgpu-pro.list
sudo apt install xserver-xorg-hwe-16.04 -y
sudo apt install xorg xserver-xorg-legacy xserver-xorg-video-dummy -y
sudo nano /etc/X11/Xwrapper.config
sudo nano /etc/X11/xorg.conf
clinfo
sudo apt install clinfo
sudo apt install git screen vim nmap ncdu busybox inxi links unzip python -y
wget https://raw.githubusercontent.com/CryptoLuigi/AMD_installer/master/amd_install.sh
chmod +x ./amd_install.sh
./amd_install.sh
https://repo.julianocaju.com.br/repo/
https://github.com/RadeonOpenCompute/ROCm/issues/463
https://github.com/RadeonOpenCompute/ROCm/issues/463
http://ubuntued.info/instale-a-nova-versao-dos-drivers-ati-no-ubuntu
http://ubuntued.info/instale-a-nova-versao-dos-drivers-ati-no-ubuntu
https://www.touslesdrivers.com/index.php?v_page=26&v_code=45
https://www.amd.com/en/support/previous-drivers/graphics/radeon-500-series/radeon-rx-500-series/radeon-rx-580
cd /tmp && wget https://repo.radeon.com/rocm/misc/cinnamon/ubuntu/apt_cinnamon.tar.bz2 && tar -xvf apt_cinnamon.tar.bz2
wget -qO - https://repo.radeon.com/rocm/rocm.gpg.key | sudo apt-key add -
sudo sh -c 'echo "deb [arch=amd64 trusted=yes] file:///tmp/apt_cinnamon/debian xenial main" > /etc/apt/sources.list.d/rocm.list'
deb [arch=amd64 trusted=yes] file:///tmp/apt_cinnamon/debian xenial main
sudo apt-get clean all && sudo apt-get update
sudo apt-get install rocm-dkms
for debfile in ./*.deb; do
if [ -f "$debfile" ]; then
package_name=$(dpkg --info "$debfile" | grep "Package:" | awk '{print $2}')
if ! dpkg -l | grep -q "^ii $package_name "; then
sudo dpkg -i "$debfile" || true # O "|| true" permite que o script continue em caso de erro
fi
fi
done
sobreescrever feitos
for debfile in ./*.deb; do
if [ -f "$debfile" ]; then
sudo dpkg -i --force-overwrite "$debfile"
fi
done
sudo apt update && sudo apt upgrade -y
sudo apt-get dist-upgrade
sudo apt-get install xserver-xorg
sudo apt-get install ocl-icd-opencl-dev nao funcionou
https://ssl.ba.net/banet-miner-os/amd-baos/
https://builds.beam.mw/#mainnet/2019.01.17/Release/linux/
https://nwgat.ninja/4k60-kodi-media-center-feat-rx-460-xbuntu-16-04/
sudo apt install lrzsz
Nenhum comentário
Comente só assim vamos crescer juntos!
Observação: somente um membro deste blog pode postar um comentário.