Giter Site home page Giter Site logo

debian-mining's Introduction

debian-mining

Debian scrypt miner

步骤

  1. 安装依赖库

     apt-get update
     apt-get install libcurl4-openssl-dev libncurses5-dev libudev-dev
     apt-get install xdm xorg fglrx-driver
     apt-get purge libfglrx
     apt-get install firmware-linux-nonfree
     apt-get install bzip2 ntp screen tmux unzip
     apt-get install linux-headers-3.2.0-4-amd64
    
  2. 安装驱动

     wget --referer=http://www2.ati.com http://www2.ati.com/drivers/linux/amd-catalyst-13.12-linux-x86.x86_64.zip
     unzip amd-catalyst-13.12-linux-x86.x86_64.zip && sh amd-catalyst-13.12-linux-x86.x86_64.run --force
     aticonfig --adapter=all --initial
    
  3. APP SDK

下载 http://developer.amd.com/tools-and-sdks/heterogeneous-computing/amd-accelerated-parallel-processing-app-sdk/downloads/

  1. 编译cgminer

     wget http://ck.kolivas.org/apps/cgminer/3.1/cgminer-3.1.1.tar.bz2
     tar jxf cgminer-3.1.1.tar.bz2
     cd cgminer-3.1.1/ADL_SDK && wget http://mein.intern3ts.com/ADL_SDK_5.0.zip && unzip -j ADL_SDK_5.0.zip 'include/adl_*.h'
     cd .. && ./configure --enable-scrypt && make && make install
    

配置

  1. 移除DisplayManager服务

     insserv -r xdm
    
  2. 修改/etc/rc.local,添加自动配置X,关闭X电源管理,自动登录

     # 生成配置文件
     /usr/bin/aticonfig --adapter=all --initial
     # 关闭DPMS
     /bin/sed -i 's/^.*\bDPMS\b.*$/\tOption\t"DPMS"\t"false"/' /etc/X11/xorg.conf
     # 自动进入桌面
     /bin/su --login root -c '/bin/bash -l -c startx &> /dev/null' &
     # 自动启动挖矿
     /usr/local/bin/mine_start
    
  3. 命令行自动自动

     #!/bin/sh
     set -e
     export DISPLAY=:0
     export GPU_MAX_ALLOC_PERCENT=100
     export GPU_USE_SYNC_OBJECTS=1
     #export XAUTHORITY=/.Xauthority
     screen -dmS miner bash -lc "echo 'waiting 15 seconds for X server starting...';sleep 15;/usr/local/bin/cgminer -c /etc/cgminer.conf --api-listen;echo 'cgminer is quiting,please wait...';sleep 10;"
    
  4. LXDE自动启动

     /etc/xdg/lxsession/LXDE/autostart
    
  5. cgminer状态报告

     apt-get install php5-common libapache2-mod-php5 php5-cli
    

常见问题

  1. dri2 connection failed!

cgminer参数设置 gpu-platform 0

  1. 其它问题

待补充

debian-mining's People

Contributors

michalliu avatar

Watchers

 avatar

Forkers

masterdaddii

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.