ALEO相关

coolsd 2022-12-16 230

ubuntucuda安装:Failed to verify gcc version. See log at /var/log/cuda-installer.log for details.


apt install build-essential


https://mp.weixin.qq.com/s?__biz=MzkzNjI2MDcyMA==&mid=2247515101&idx=3&sn=f62c6abe246e727dc2a2a29638fd22e3&chksm=c2a39ec2f5d417d4c466f2f93b69dadcfbcd113e74677716ac152488a43829b07858ea3a84ac&mpshare=1&scene=1&srcid=1203sZiWEf2TkEhYRAEtMFv3&sharer_sharetime=1670246627836&sharer_shareid=6043b93f023ec6a82e513cc9efc596e5#rd



wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1-1ubuntu2.1~18.04.20_amd64.deb


sudo dpkg -i libssl1.1_1.1.1-1ubuntu2.1~18.04.20_amd64.deb

最新回复 (5)
  • coolsd 2022-12-19
    引用 2


    ALEO-GPU锄头教程

    本教程由 Gee.Labs(极数实验室)编辑撰写,主要阐述如何使用GPU参与ALEO-TEST3测试赢取奖励积分,文中使用的技术实施策略为Gee.Labs自用方案,如搭建过程中遇到问题需要帮助或指正文中出现的错误,请与我们取得联系 [email protected]


    【免责声明】本文仅限技术交流使用,不以任何形式提供投资建议,仅供参考。


    1. 前言


    本教程为GeeLabs实验室自用方案,该套方案操作系统优化部署部分为通用部署方案,适用于大部分web3 mining项目,ALEO上线后使用此方案批量部署了几百个有效gpu-miner主机,稳定运行至今,主要涵盖以下几个方面

    • 安装操作系统
    • 初始化操作系统
    • 安装NVIDIA驱动
    • 运行 ALEO-GPU miner

    关于硬件适配部分,ALEO采用PoSW共识模式,引用了Marlin规范,TEST3阶段处理椭圆曲线算法中引入GPU实现对BLS12-377部分计算加速,但大部分计算仍然需要依赖CPU处理,与传统意义上的GPU Mining不同,ALEO可以理解为CPU承担主要计算任务,所有web3隐私计算类项目都依赖一颗强劲的CPU,GPU承担了部分任务,为全流程加速,二者相辅相成。

    根据现有ALEO部署经验,硬件的最低标准如下:

    • CPU:4核8线程,2.0Ghz以上
    • RAM:8G
    • GPU:NVIDIA 8G以上显存(无论几系列,只要显存够都可以用,当前仅限N卡)

    关于执行命令部分,由于大部分ALEO关注用户并非技术人员,因此本教程中给出所有命令做过集成化处理,目的是便于整条命令复制执行,即可完成对应功能,降低学习难度。

    2. 安装操作系统


    ALEO搭建GPU集成环境使用 ubuntu-server-22.04 作为操作系统,相较于Desktop桌面版,Server服务器版更加精简、高效、低开销,将硬件所有性能集中在稳定运行上,待机系统内存占用仅为180M,22.04版本更新了内核,经过大量优化升级后性能提升20%-30%。另外我们强烈建议使用Server不用Desktop的原因是,根据以往经验Desktop只会让人容易犯错,用户使用Server可以有效降低操作失误带来的严重风险,因为很多人根本不会用。

    关于系统安装部分不再赘述,百度文章一大堆,如果系统都装不上,后面也就不用看了。

    ubuntu-server-22.04下载地址https://ubuntu.com/download/server

    u盘烧录工具下载地址http://rufus.ie/zh/


    3. 初始化操作系统


    初始化操作系统过程会完成对ubuntu-server-22.04系统的初始化定制设置工作,下文中带有符号为必要操作,没有特殊提示的可选择性执行,一个代码框内的所有代码可一次性复制执行,无需按行按条执行,初始化包含以下内容:

    • 系统、软件、内核的升级
    • 必要依赖软件、工具安装
    • GPU驱动、CUDA安装
    • Miner安装、运行

    3.1 切换root操作权限(※)

    由于更新产生超权限类操作,因此需要提前获取root权限:

      sudo -i

      【注:执行后会提示输入密码,输入内容不可见,输入后按回车键确认即可】

      3.2 更新系统(※)

        sed -i 's/^.\$nrconf{kernelhints}/\$nrconf{kernelhints}/g' /etc/needrestart/needrestart.confsed -i 's/^.\$nrconf{restart}.*$/\$nrconf{restart} = '\'a\'';/' /etc/needrestart/needrestart.confapt updateapt install grub-efi-amd64-signed -yapt upgrade -yapt full-upgrade -yapt dist-upgrade -yapt autoremove -yapt autoclean -yapt clean -y

        3.3 开启root登录权限

          sed -i 's/^#PermitRootLogin.*.$/PermitRootLogin yes/' /etc/ssh/sshd_config && echo 'root:yourpassword' | chpasswd

          【注:代码中 yourpassword 请换成您想设置的用户密码!】

          3.4 修改主机名

            echo gee-labs > /etc/hostname

            【注:代码中 gee-labs 请换成您想设置的主机名!】

            3.5 修改系统时间

              timedatectl set-timezone Asia/Shanghai

              3.6 卸载snap

              snap是ubuntu社区强行推广,类似软件市场的软件包管理器,意义不大,server用户可以卸载,desktop用户千万不要卸,很多桌面库依赖snap。

                snap remove --purge lxdsnap remove --purge core20snap remove --purge snapdsystemctl disable snapd.servicesystemctl disable snapd.socketsystemctl disable snapd.seeded.serviceapt autoremove --purge snapd -yrm -rf /var/cache/snapd/rm -rf ~/snap

                3.7 重启系统(※)

                此时执行第一次重启,重启后以root用户登录:

                  reboot

                  3.8 安装软件工具(※)

                    apt updateapt install sshpass jq net-tools htop lm-sensors nmap ifstat sysstat build-essential apt-transport-https ca-certificates dkms gnupg curl wget unzip -ywget http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1-1ubuntu2.1~18.04.20_amd64.debdpkg -i libssl1.1_1.1.1-1ubuntu2.1~18.04.20_amd64.debrm -rf libssl1.1_1.1.1-1ubuntu2.1~18.04.20_amd64.debwget $(curl -s https://api.github.com/repos/mikefarah/yq/releases | jq .[0].assets | jq '.[] | select(.name == "yq_linux_amd64")' | jq -r '.browser_download_url')chmod +x yq_linux_amd64rm -rf /usr/bin/yqmv yq_linux_amd64 /usr/bin/yq

                    3.9 安装 nodejs

                      curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -apt updateapt install nodejs -y

                      3.10 安装 rust(※)

                        curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -ysource $HOME/.cargo/env

                        3.11 安装 docker

                          curl --proto '=https' --tlsv1.2 -sSf https://get.docker.com | sh


                          4. 安装NVIDIA驱动(CUDA套件)


                          4.1 禁用nouveau驱动

                          修改 /etc/modprobe.d/blacklist.conf 文件,文件末尾添加以下内容:

                            blacklist nouveauoptions nouveau modeset=0

                            执行下列命令,使之生效:

                              update-initramfs -u

                              重启服务器:

                                reboot

                                4.2 安装CUDA(内含驱动)

                                下载CUDA并安装,由于软件体积较大需等待一段时间:

                                  wget https://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda_11.8.0_520.61.05_linux.runsudo sh cuda_11.8.0_520.61.05_linux.run

                                  【附:CUDA下载地址(https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&Distribution=Ubuntu&target_version=22.04&target_type=runfile_local)】

                                  查看显卡情况:

                                    nvidia-smi


                                    4.3 配置nvcc环境

                                    修改 /etc/profile 文件,文件末尾添加以下内容:

                                      # NVIDIA CUDAexport CUDA_PATH=/usr/local/$(ls /usr/local/ | grep cuda- | sort -r | sed -n '1p')export PATH=${CUDA_PATH}/bin${PATH:+:${PATH}}export LD_LIBRARY_PATH=${CUDA_PATH}/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}

                                      重启服务器:

                                        reboot

                                        至此,Nvidia显卡驱动全部安装完成。


                                        5. Aleo GPU Miner


                                        5.1 下载cGPU Miner

                                        ALEO-GPU-Miner下载:(https://github.com/damomine/aleominer/releases

                                        解压:

                                          tar xvf damominer_v1.4.0.tar

                                          赋予可执行权限:

                                            chmod +x damominer


                                            5.2 创建钱包账户

                                              chmod +x damominer --new-account

                                              【注:务必保管好生成的钱包助记词信息!】


                                              5.3 启动 GPU Miner

                                                ./damominer --address aleoxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx --proxy asia1.damominer.hk:9090

                                                或后台运行:

                                                  nohup ./damominer --address aleoxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx --proxy asia1.damominer.hk:9090 >> aleo.log 2>&1 &

                                                  【注:aleoxxxxxx为上一步生成的钱包地址】


                                                  5.4 查看收益

                                                  访问以下地址,查看积分收益情况:

                                                    https://explorer.hamp.app/address?a=aleoxxxxxx

                                                    【注:aleoxxxxxx为上一步生成的钱包地址】

                                                    关于优化显卡效能设置功率墙超频等算力提升方法将在下一期文章介绍,敬请期待,并欢迎留言提出需要介绍或测试的内容。

                                                    以上就是 ALEO TEST3 GPU Mining 全部内容,如有疑问请加入我们的社区反馈信息。


                                                  • coolsd 2023-1-3
                                                    引用 3

                                                    nvidia-smi -pm 1

                                                    nvidia-smi -pl 200 -i 0 

                                                    nvidia-smi -pl 300 -i 1 

                                                    nvidia-smi -pl 200 -i 2

                                                    nvidia-smi -pl 200 -i 3

                                                    nvidia-smi -pl 200 -i 4

                                                    nvidia-smi -pl 200 -i 5

                                                     


                                                  • coolsd 2023-1-5
                                                    引用 4
                                                    sensors

                                                    lspci| grep -i nvidia
                                                  • coolsd 2023-1-8
                                                    引用 5
                                                    #更新系统
                                                    sed -i 's/^.\$nrconf{kernelhints}/\$nrconf{kernelhints}/g' /etc/needrestart/needrestart.conf
                                                    sed -i 's/^.\$nrconf{restart}.*$/\$nrconf{restart} = '\'a\'';/' /etc/needrestart/needrestart.conf
                                                    apt update
                                                    apt install grub-efi-amd64-signed -y
                                                    apt upgrade -y
                                                    apt full-upgrade -y
                                                    apt dist-upgrade -y
                                                    apt autoremove -y
                                                    apt autoclean -y
                                                    apt clean -y
                                                    #开启root登录权限
                                                    sed -i 's/^#PermitRootLogin.*.$/PermitRootLogin yes/' /etc/ssh/sshd_config && echo 'root:yourpassword' | chpasswd
                                                    #修改系统时间
                                                    timedatectl set-timezone Asia/Shanghai
                                                    #卸载snap
                                                    snap remove --purge lxd
                                                    snap remove --purge core20
                                                    snap remove --purge snapd
                                                    systemctl disable snapd.service
                                                    systemctl disable snapd.socket
                                                    systemctl disable snapd.seeded.service
                                                    apt autoremove --purge snapd -y
                                                    rm -rf /var/cache/snapd/
                                                    rm -rf ~/snap


                                                    reboot

                                                    # 安装软件工具
                                                    apt update
                                                    apt install sshpass jq net-tools htop lm-sensors nmap ifstat sysstat build-essential apt-transport-https ca-certificates dkms gnupg curl wget unzip -y
                                                    wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1-1ubuntu2.1~18.04.20_amd64.deb
                                                    dpkg -i libssl1.1_1.1.1-1ubuntu2.1~18.04.20_amd64.deb
                                                    rm -rf libssl1.1_1.1.1-1ubuntu2.1~18.04.20_amd64.deb
                                                    wget $(curl -s https://api.github.com/repos/mikefarah/yq/releases | jq .[0].assets | jq '.[] | select(.name == "yq_linux_amd64")' | jq -r '.browser_download_url')
                                                    chmod +x yq_linux_amd64
                                                    rm -rf /usr/bin/yq
                                                    mv yq_linux_amd64 /usr/bin/yq

                                                    #禁用nouveau驱动
                                                    echo "blacklist nouveau" >> /etc/modprobe.d/blacklist.conf
                                                    echo "options nouveau modeset=0" >> /etc/modprobe.d/blacklist.conf

                                                    update-initramfs -u

                                                    reboot

                                                    #安装CUDA
                                                    wget https://developer.download.nvidia.com/compute/cuda/12.0.0/local_installers/cuda_12.0.0_525.60.13_linux.run
                                                    sudo sh cuda_12.0.0_525.60.13_linux.run


                                                  • coolsd 2023-1-13
                                                    引用 6
                                                    tcpdump -AS  -i  enp7s0 port 3307 -nn
                                                  返回
                                                  发新帖
                                                  本站文章均收录自网上,仅做参考用。 欢迎大家添砖加瓦,发表一些自己使用过程中遇到的问题以及解决方法。