基于区块链的毕业设计Readme – 自述

本文提供基于区块链的毕业设计国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,基于区块链的毕业设计Readme – 自述 是一篇很好的国外资料

Readme

Table of contents

  • Purpose
  • Contents
  • Get, install, and configure
    • How your final folder structure should look
    • Configure Cron
    • First run
  • Warning
    • Physical damage
    • These scripts run with root-level permissions
  • License
  • Donations

Purpose

This is an boot-time, automatic restarting, and logging wrapper for the popular linux (and Windows) Ethereum GPU miner, Ethminer.

It’s a small collection of simple bash scripts. It works whether you have dedicated miners, or a desktop/part-time miner.

Contents

Scriptname Description
et Run by et-start and hourly system cronnot by user (but you should inspect and make sure you understand exactly what it’s doing). The execute bit is managed by et-start and et-stop. You will update this script with your public Ethereum key, your rig ID, GPU type, and your mining pool address. Otherwise, don’t run directly.
et-interactive This is more like a typical user executable we’re all familiar with: You run it. You see the output sroll by. You hit CTRL+Break, and it stops. The big difference is: it’s actually running as a system process in the background, and gets restarted every hour. Even if your entire user session crashes, it keeps going. Only by pressing CTRL+Break in the system screen session named ‘eth’, will it stop, and disable hourly restarts.
et-start Can be run manually by user, and optionally by boot-time system cron for servers or dedicated miners.
et-stop Can be run manually by user to stop mining and disable hourly restarts, and optionally by boot-time system cron for desktop PCs when you don’t want mining to start automatically.

Get, install, and configure

cd $(mktemp -d) git clone https://github.com/t00mietum/ethminer-autorestart sudo mkdir -p /usr/local/bin/et sudo mv ethminer-autorestart/* /usr/local/bin/et/ sudo chown -R root:root /usr/local/bin/et sudo chmod 770 /usr/local/bin/et/* sudo nano /usr/local/bin/et/et   ## Update with your eth public key, GPU type, rig id, pool address 

Next, copy your ethminer bin directory, under the et directory. You’ll neet sudo or root permissions to do so.

How your final folder structure should look

/usr/local/bin/ 	et/ 		et 		et-interactive 		et-start 		et-stop 		readme.md 		bin/ 			ethminer 			kernels/ 				... 

Configure Cron

This is the heart of it. If mining was running (whether started by the user or the system), it will be restarted every hour.

If the user had stopped it, or it had never been started after boot, then it won’t be automatically restarted.

Summertime heat-related schedules can also be configured.

Get started in a terminal prompt by typing:

sudo crontab -e

Then copy and paste the following:

## Enable one of (depending on your preference): #@reboot                          /usr/local/bin/et/et-start   ## Start mining on powerup or reboot, e.g. for headless servers or dedicated miners  @reboot                          /usr/local/bin/et/et-stop    ## Do not start mining on powerup or reboot, e.g. for desktops that people use  ## Restart et every hour (but may not actually do anything every hour)  0    *   *   *         *         /usr/local/bin/et/et         ## Will restart miner every hour if execute bit is enabled by et-start (either by @reboot and/or any time by user).  ## Optionally configure for hot days (uncomment and edit as appropriate) #0   12   *   JUN-SEP   *         /usr/local/bin/et/et-stop    ## Stop  mining at 12:00 in summer heat #0   22   *   JUN-SEP   *         /usr/local/bin/et/et-start   ## Start mining at 22:00 in summer heat #0   14   *   MAY,OCT   *         /usr/local/bin/et/et-stop    ## Stop  mining at 14:OO in May and October (less severe) #0   20   *   MAY,OCT   *         /usr/local/bin/et/et-start   ## Start mining at 20:OO in May and October (less severe) 

Save and exit.

First run

From a terminal, execute /usr/local/bin/et/et-interactive. This will create the following symlinks that are in your path, so that you can execute them by name only (this is the only time your system is modified without your direct intervention):

  • /usr/local/bin/et-interactive
  • /usr/local/bin/et-start
  • /usr/local/bin/et-stop

Warning

Physical damage

Mining involves a real risk of physical hardware damage or even fire, especially when forcing restarts after heat-related crashes. Please seriously investigate why restarts are needed. If crashes due to heat are the culprit, solve that problem before resorting to a band-aid like this.

And not to be the fire nanny, but please give consideration to running your mining rig(s) with working smoke alarms and automatic fire suppression systems nearby.

These scripts run with root-level permissions

It should go without warning that you should never expose your system to scripts that run with administrator rights – especially ones with access to your crypto key (albeit public), without very careful inspection.

Make sure you know what every line of script is doing.

As for the question of “why” root-level access? Well it’s the whole point of all – any – of this: so that cron (or init.d or SystemD or something) can restart mining periodically, and at system startup, indepentent of user login.

That said, if you don’t understand Bash script, just try reading it line by line. If there’s something you don’t understand and can’t easily figure out, you are strongly advised to not YOLO it and try running it anyway!

License

Copyright (c) 2021 t00mietum.

License GPLv3+: GNU GPL version 3 or later, full text at: https://www.gnu.org/licenses/gpl-3.0.en.html

There is no warranty, to the extent permitted by law.

Donations

If this improves your life, donations are welcome at:

  • XMR: 44LiTd9eJZbBULNvzLsVUxYaJjcT7dxUPfBCwk8qbY1DN3nnsYBYomqWkhoe1t9RuAfGCJauZS2xw85PZPtPR5MR791cdqx
  • ETH: 0x01226C328A1d8085156b624D1DA78dC8ff954e8C
  • BTC: bc1q2urqexl49w4t9e7xd9fwg7jpnkdunhle3chec4

Grammar


自述

目录

  • BTC:bc1q2urqexl49w4t9e7xd9fwg7jpnkdunle3chec4
  • Contents
  • Get, install, and configure
    • How your final folder structure should look
    • Configure Cron
    • First run
  • Warning
    • Physical damage
    • These scripts run with root-level permissions
  • License
  • Donations

目的

这是一个为流行的linux(和Windows)Ethereum GPU miner Ethminer提供的引导时间、自动重启和日志记录包装程序

这是一个简单bash脚本的小集合。无论你是有专门的矿工,还是桌面/兼职矿工,它都能工作

目录

Scriptname Description
et 由et start和hourly system cron运行-而不是由用户运行(但您应该检查并确保您完全理解它在做什么)。执行位由et start和et stop管理。您将使用公共以太坊eth密钥、装备ID、GPU类型和挖掘池地址更新此脚本。否则,不要直接跑
et start 可以由用户手动运行,也可以选择由服务器或专用矿工的引导时系统cron运行
et stop 可以由用户手动运行以停止挖掘并禁用每小时重新启动,也可以在不希望挖掘自动启动时由引导时系统cron为桌面PC运行
et-stop Can be run manually by user to stop mining and disable hourly restarts, and optionally by boot-time system cron for desktop PCs when you don’t want mining to start automatically.

获取、安装,并配置最终文件夹结构的外观配置Cron第一次运行时的警告,并配置最终文件夹结构的外观配置Cron First run根级权限0x01226C328A1d8085156b624D1DA78dC8ff954e8C
  • BTC:bc1q2urqexl49w4t9e7xd9fwg7jpnkdunle3chec4
  • et 由et start和hourly system cron运行-而不是由用户运行(但您应该检查并确保您完全理解它在做什么)。执行位由et start和et stop管理。您将使用公共以太坊eth密钥、装备ID、GPU类型和挖掘池地址更新此脚本。否则,不要直接跑 et start 可以由用户手动运行,也可以选择由服务器或专用矿工的引导时系统cron运行 et stop 可以由用户手动运行以停止挖掘并禁用每小时重新启动,也可以在不希望挖掘自动启动时由引导时系统cron为桌面PC运行

    cd $(mktemp -d) git clone https://github.com/t00mietum/ethminer-autorestart sudo mkdir -p /usr/local/bin/et sudo mv ethminer-autorestart/* /usr/local/bin/et/ sudo chown -R root:root /usr/local/bin/et sudo chmod 770 /usr/local/bin/et/* sudo nano /usr/local/bin/et/et   ## Update with your eth public key, GPU type, rig id, pool address 

    接下来,将ethminer bin目录复制到et目录下。您需要sudo或root权限才能这样做

    How your final folder structure should look

    /usr/local/bin/ 	et/ 		et 		et-interactive 		et-start 		et-stop 		readme.md 		bin/ 			ethminer 			kernels/ 				... 

    Configure Cron

    这是它的核心。如果正在运行挖掘(无论是由用户还是系统启动),它将每小时重新启动一次

    如果用户停止了它,或者它在引导后从未启动过,那么它将不会自动重新启动

    还可以配置与夏季热量相关的时间表

    在终端提示符中键入:

    sudo crontab-e

    然后复制并粘贴以下内容:

    ## Enable one of (depending on your preference): #@reboot                          /usr/local/bin/et/et-start   ## Start mining on powerup or reboot, e.g. for headless servers or dedicated miners  @reboot                          /usr/local/bin/et/et-stop    ## Do not start mining on powerup or reboot, e.g. for desktops that people use  ## Restart et every hour (but may not actually do anything every hour)  0    *   *   *         *         /usr/local/bin/et/et         ## Will restart miner every hour if execute bit is enabled by et-start (either by @reboot and/or any time by user).  ## Optionally configure for hot days (uncomment and edit as appropriate) #0   12   *   JUN-SEP   *         /usr/local/bin/et/et-stop    ## Stop  mining at 12:00 in summer heat #0   22   *   JUN-SEP   *         /usr/local/bin/et/et-start   ## Start mining at 22:00 in summer heat #0   14   *   MAY,OCT   *         /usr/local/bin/et/et-stop    ## Stop  mining at 14:OO in May and October (less severe) #0   20   *   MAY,OCT   *         /usr/local/bin/et/et-start   ## Start mining at 20:OO in May and October (less severe) 

    保存并退出

    First run

    从终端执行/usr/local/bin/et/et interactive。这将在您的路径中创建以下符号链接,以便您只能按名称执行它们(这是唯一一次在没有您直接干预的情况下修改系统):

    • /usr/local/bin/et-interactive
    • /usr/local/bin/et-start
    • /usr/local/bin/et-stop

    Warning

    Physical damage

    挖掘涉及到物理硬件损坏甚至火灾的真正风险,特别是在与热相关的崩溃后强制重新启动时。请认真调查为什么需要重新启动。如果是由于高温引起的坠机,在使用这种创可贴之前先解决这个问题

    不要做消防保姆,但请考虑在附近使用烟雾报警器和自动灭火系统来运行采矿设备

    These scripts run with root-level permissions

    在没有任何警告的情况下,您不应该将您的系统暴露于使用管理员权限运行的脚本中,特别是那些可以访问您的加密密钥(尽管是公共的)的脚本,除非您进行非常仔细的检查

    确保你知道每一行脚本都在做什么

    至于“为什么”根级访问的问题?好吧,这就是所有这些的全部要点:这样cron(或init.d或SystemD之类的)就可以周期性地重新启动挖掘,并且在系统启动时,不依赖于用户登录

    也就是说,如果您不理解Bash脚本,请尝试逐行阅读它。如果有什么你不明白也不容易弄明白的,强烈建议你不要去做,无论如何都要试着去做

    License

    版权所有(c)2021 t00 mietum

    许可证GPLv3+:GNU GPL版本3或更高版本,全文位于:https://www.gnu.org/licenses/gpl-3.0.en.html

    在法律允许的范围内,没有任何保证

    Donations

    如果这能改善你的生活,欢迎捐款:

    • XMR: 44LiTd9eJZbBULNvzLsVUxYaJjcT7dxUPfBCwk8qbY1DN3nnsYBYomqWkhoe1t9RuAfGCJauZS2xw85PZPtPR5MR791cdqx
    • ETH: 0x01226C328A1d8085156b624D1DA78dC8ff954e8C
    • BTC: bc1q2urqexl49w4t9e7xd9fwg7jpnkdunhle3chec4

    Grammar

    部分转自网络,侵权联系删除区块链源码网

    www.interchains.cc

    https://www.interchains.cc/22178.html

    区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 ! QQ3039046426
    区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » 基于区块链的毕业设计Readme – 自述

    提供最优质的资源集合

    立即查看 了解详情