Ultimate Setup Guide for Cryptocurrency Mining with Linux ...
8 Best Cryptocurrency Mining Tools for Linux
How do I set my ubuntu server (12.04.1) to mine bitcoin? (usb sapphire)
I have an old laptop which I have been setting up to work as a personal cloud/server. I have a second just straight up ubuntu computer that I could use, so if ubuntu server doesn't work due to some minor difference, I could use that one instead. Anyways, how can I setup an Ubuntu computer to mine bitcoin with the usb sapphire block erupter?
New England New England 6 States Songs: https://www.reddit.com/newengland/comments/er8wxd/new_england_6_states_songs/ NewEnglandcoin Symbol: NENG NewEnglandcoin is a clone of Bitcoin using scrypt as a proof-of-work algorithm with enhanced features to protect against 51% attack and decentralize on mining to allow diversified mining rigs across CPUs, GPUs, ASICs and Android phones. Mining Algorithm: Scrypt with RandomSpike. RandomSpike is 3rd generation of Dynamic Difficulty (DynDiff) algorithm on top of scrypt. 1 minute block targets base difficulty reset: every 1440 blocks subsidy halves in 2.1m blocks (~ 2 to 4 years) 84,000,000,000 total maximum NENG 20000 NENG per block Pre-mine: 1% - reserved for dev fund ICO: None RPCPort: 6376 Port: 6377 NewEnglandcoin has dogecoin like supply at 84 billion maximum NENG. This huge supply insures that NENG is suitable for retail transactions and daily use. The inflation schedule of NengEnglandcoin is actually identical to that of Litecoin. Bitcoin and Litecoin are already proven to be great long term store of value. The Litecoin-like NENG inflation schedule will make NewEnglandcoin ideal for long term investment appreciation as the supply is limited and capped at a fixed number Bitcoin Fork - Suitable for Home Hobbyists NewEnglandcoin core wallet continues to maintain version tag of "Satoshi v0.8.7.5" because NewEnglandcoin is very much an exact clone of bitcoin plus some mining feature changes with DynDiff algorithm. NewEnglandcoin is very suitable as lite version of bitcoin for educational purpose on desktop mining, full node running and bitcoin programming using bitcoin-json APIs. The NewEnglandcoin (NENG) mining algorithm original upgrade ideas were mainly designed for decentralization of mining rigs on scrypt, which is same algo as litecoin/dogecoin. The way it is going now is that NENG is very suitable for bitcoin/litecoin/dogecoin hobbyists who can not , will not spend huge money to run noisy ASIC/GPU mining equipments, but still want to mine NENG at home with quiet simple CPU/GPU or with a cheap ASIC like FutureBit Moonlander 2 USB or Apollo pod on solo mining setup to obtain very decent profitable results. NENG allows bitcoin litecoin hobbyists to experience full node running, solo mining, CPU/GPU/ASIC for a fun experience at home at cheap cost without breaking bank on equipment or electricity. MIT Free Course - 23 lectures about Bitcoin, Blockchain and Finance (Fall,2018) https://www.youtube.com/playlist?list=PLUl4u3cNGP63UUkfL0onkxF6MYgVa04Fn CPU Minable Coin Because of dynamic difficulty algorithm on top of scrypt, NewEnglandcoin is CPU Minable. Users can easily set up full node for mining at Home PC or Mac using our dedicated cheetah software. Research on the first forked 50 blocks on v1.2.0 core confirmed that ASIC/GPU miners mined 66% of 50 blocks, CPU miners mined the remaining 34%. NENG v1.4.0 release enabled CPU mining inside android phones. Youtube Video Tutorial How to CPU Mine NewEnglandcoin (NENG) in Windows 10 Part 1 https://www.youtube.com/watch?v=sdOoPvAjzlE How to CPU Mine NewEnglandcoin (NENG) in Windows 10 Part 2 https://www.youtube.com/watch?v=nHnRJvJRzZg How to CPU Mine NewEnglandcoin (NENG) in macOS https://www.youtube.com/watch?v=Zj7NLMeNSOQ Decentralization and Community Driven NewEnglandcoin is a decentralized coin just like bitcoin. There is no boss on NewEnglandcoin. Nobody nor the dev owns NENG. We know a coin is worth nothing if there is no backing from community. Therefore, we as dev do not intend to make decision on this coin solely by ourselves. It is our expectation that NewEnglandcoin community will make majority of decisions on direction of this coin from now on. We as dev merely view our-self as coin creater and technical support of this coin while providing NENG a permanent home at ShorelineCrypto Exchange. Twitter Airdrop Follow NENG twitter and receive 100,000 NENG on Twitter Airdrop to up to 1000 winners Graphic Redesign Bounty Top one award: 90.9 million NENG Top 10 Winners: 500,000 NENG / person Event Timing: March 25, 2019 - Present Event Address: NewEnglandcoin DISCORD at: https://discord.gg/UPeBwgs Please complete above Twitter Bounty requirement first. Then follow Below Steps to qualify for the Bounty: (1) Required: submit your own designed NENG logo picture in gif, png jpg or any other common graphic file format into DISCORD "bounty-submission" board (2) Optional: submit a second graphic for logo or any other marketing purposes into "bounty-submission" board. (3) Complete below form. Please limit your submission to no more than two total. Delete any wrongly submitted or undesired graphics in the board. Contact DISCORD u/honglu69#5911 or u/krypton#6139 if you have any issues. Twitter Airdrop/Graphic Redesign bounty sign up: https://goo.gl/forms/L0vcwmVi8c76cR7m1 Milestones
Sep 3, 2018 - Genesis block was mined, NewEnglandcoin created
Sep 8, 2018 - github source uploaded, Window wallet development work started
Sep 11,2018 - Window Qt Graphic wallet completed
Sep 12,2018 - NewEnglandcoin Launched in both Bitcointalk forum and Marinecoin forum
Sep 14,2018 - NewEnglandcoin is listed at ShorelineCrypto Exchange
Sep 17,2018 - Block Explorer is up
Nov 23,2018 - New Source/Wallet Release v1.1.1 - Enabled Dynamic Addjustment on Mining Hashing Difficulty
Nov 28,2018 - NewEnglandcoin became CPU minable coin
Nov 30,2018 - First Retail Real Life usage for NewEnglandcoin Announced
Dec 28,2018 - Cheetah_Cpuminer under Linux is released
Dec 31,2018 - NENG Technical Whitepaper is released
Jan 2,2019 - Cheetah_Cpuminer under Windows is released
Jan 12,2019 - NENG v1.1.2 is released to support MacOS GUI CLI Wallet
Jan 13,2019 - Cheetah_CpuMiner under Mac is released
Feb 11,2019 - NewEnglandcoin v1.2.0 Released, Anti-51% Attack, Anti-instant Mining after Hard Fork
Mar 16,2019 - NewEnglandcoin v22.214.171.124 Released - Ubuntu 18.04 Wallet Binary Files
Apr 7, 2019 - NENG Report on Security, Decentralization, Valuation
Apr 21, 2019 - NENG Fiat Project is Launched by ShorelineCrypto
Sep 1, 2019 - Shoreline Tradingbot project is Launched by ShorelineCrypto
Dec 19, 2019 - Shoreline Tradingbot v1.0 is Released by ShorelineCrypto
Jan 30, 2020 - Scrypt RandomSpike - NENG v1.3.0 Hardfork Proposed
Feb 24, 2020 - Scrypt RandomSpike - NENG core v1.3.0 Released
Jun 19, 2020 - Linux scripts for Futurebit Moonlander2 USB ASIC on solo mining Released
Jul 15, 2020 - NENG v1.4.0 Released for Android Mining and Ubuntu 20.04 support
Jul 21, 2020 - NENG v126.96.36.199 Released for MacOS Wallet Upgrade with Catalina
Jul 30, 2020 - NENG v188.8.131.52 Released for Linux Wallet Upgrade with 8 Distros
Aug 11, 2020 - NENG v184.108.40.206 Released for Android arm64 Upgrade, Chromebook Support
Aug 30, 2020 - NENG v220.127.116.11 Released for Android/Chromebook with armhf, better hardware support
2018 Q3 - Birth of NewEnglandcoin, window/linux wallet - Done
2018 Q4 - Decentralization Phase I
Blockchain Upgrade - Dynamic hashing algorithm I - Done
Cheetah Version I- CPU Mining Automation Tool on Linux - Done
2019 Q1 - Decentralization Phase II
Cheetah Version II- CPU Mining Automation Tool on Window/Linux - Done
Blockchain Upgrade Dynamic hashing algorithm II - Done
2019 Q2 - Fiat Phase I
Assessment of Risk of 51% Attack on NENG - done
Launch of Fiat USD/NENG offering for U.S. residents - done
Initiation of Mobile Miner Project - Done
2019 Q3 - Shoreline Tradingbot, Mobile Project
Evaluation and planning of Mobile Miner Project - on Hold
Initiation of Trading Bot Project - Done
2019 Q4 - Shoreline Tradingbot
Shoreline tradingbot Release v1.0 - Done
2020 Q1 - Evaluate NENG core, Mobile Wallet Phase I
NENG core Decentralization Security Evaluation for v1.3.x - Done
Light Mobile Wallet Project Initiation, Evaluation
2020 Q2 - NENG Core, Mobile Wallet Phase II
NENG core Decentralization Security Hardfork on v1.3.x - Scrypt RandomSpike
Light Mobile Wallet Project Design, Coding
2020 Q3 - NENG core, NENG Mobile Wallet Phase II
Review on results of v1.3.x, NENG core Dev Decision on v1.4.x, Hardfork If needed
Light Mobile Wallet Project testing, alpha Release
2020 Q4 - Mobile Wallet Phase III
Light Mobile Wallet Project Beta Release
Light Mobile Wallet Server Deployment Evaluation and Decision
How to get a public static ip for your local lightning node
My lightning node is a node that is running locally on my server hardware in my house down under, far from the New Jersey Digitalocean datacenter, which is what will come up if you look up the ip of the node. This is done via an OpenVPN tunnel from your local machine to a VPS. I am doing this by renting a VPS from Digitalocean for $20 a month (2 vCPUs, 2GB RAM) running Ubuntu 18.04. You can do this just as easily on a $5 a month VPS with 1 vCPU and 1GB RAM or even a $2.50 a month VPS from Vultr with 512MB RAM. I needed the extra power because I have many web services running there as well. This setup allows me to have a highly available lightning node, not affected by my home IP address changing. If you are using a mobile connection or have a CGNAT, you wont be able to port forward for your lightning node. This setup allows you to do so. You can also use this to make a portable lightning node, which can get you a full lightning node wherever you have power and internet, without having to mess with network settings. If you don't want others to know your home IP, this is a good option for privacy.
Setup a local lightning node, preferably on a linux machine. I followed the Raspibolt tu`ial (with some tweaks) on a 2 vCPU and 8GB RAM VM running Ubuntu 16.04.
Get a VPS with a static IP address. Digitalocean and Vultr VPSs already are. This VPS wont need much power, so get the cheapest one you can.
Secure the VPS. I used this tutorial. Essentially, setup a non root user, use ssh keys, and setup ufw. Also make sure to allow port 9735 through ufw for lightning. I also additionally made adjustments to the ssh config and installed fail2ban.
Setup an OpenVPN server on the VPS. I used this tutorial.
Install on OpenVPN client on the local linux machine and connect to the server. The tutorial from step 4 shows how to this. Keep this connected for step 6.
SSH into the VPS and figure out the OpenVPN IP address of the client. It should be 10.8.0.x. To figure out the x, setup a simple python web server or something on the local machine on port 8000 or something and open the port on ufw in the local machine. Keep the OpenVPN connection, and use a new ssh session when accessing your local machine. Don't kill the OpenVPN connection, as it may complicate things when finding the ip. mkdir testweb cd testweb echo hello >> index.html sudo ufw allow 8000 python -m SimpleHTTPServer 8000
SSH back into the VPS. Run the curl command below, and try all the numbers between 2-10 for x. When you get hello as your output, then you found the right IP. I found mine at 6. You may have to try higher numbers, but this is unlikely. You can kill your python webserver on your local machine once you find it. curl 10.8.0.x:8000
Once you have the IP, you want to make this static, so it doesn't change when you reconnect. This is done on the VPS side, so ssh back into the VPS. This tutorial worked for me. Just make sure to change values like the CommonName and and the IP to match yours (client1 and 10.8.0.x). If it doesn't work search "make openvpn ip static" and look around.
SSH into your local machine, and make the OpenVPN connection persistent. You can kill the OpenVPN connection now. Doing this and this worked for me. If it doesn't work search "openvpn keepalive" or "openvpn auto connect linux" or "make openvpn connection persistent linux".
Restart your local machine, and make sure it connects on boot. Do the python webserver test again, and make sure the same ip is shown on the VPS, and it is still accessible.
SSH back into the VPS. Now, you have to port forward with iptables. you have to add the 2 lines below starting with -A PREROUTING in the same place in your /etc/ufw/before.rules file. Here is what mine looks like. Change the x to your OpenVPN IP. Do sudo ufw disable and sudo ufw enable to restart ufw to update your changes. *nat :POSTROUTING ACCEPT [0:0] -A PREROUTING -i eth0 -p tcp -m tcp --dport 9735 -j DNAT --to-destination 10.8.0.x:9735 -A PREROUTING -i eth0 -p udp -m udp --dport 9735 -j DNAT --to-destination 10.8.0.x:9735 -A POSTROUTING -s 10.8.0.0/8 -o eth0 -j MASQUERADE COMMIT
SSH into your local machine. Change your lnd.conf to match with this setup, like changing the externalip. Here is what my config looks like, a slight tweak from the Raspibolt one: [Application Options] debuglevel=info maxpendingchannels=5 alias=GCUBED [LND] color=#68F442 listen=0.0.0.0:9735 externalip=18.104.22.168:9735 [Bitcoin] bitcoin.active=1 bitcoin.mainnet=1 bitcoin.node=bitcoind [autopilot] autopilot.active=1 autopilot.maxchannels=5 autopilot.allocation=0.6
Do a sudo service lnd restart to restart lnd and apply the changes. Remember to do a lncli unlock after any restarts. Your lnd node should now have a public static ip. Look it up a few hours after you do this on 1ml, your ip should be the one of your VPS now.
I am monitoring this for free with uptimerobot. It will notify you if it has gone down. So far mine has been running for 3 days and hasn't gone down. EDIT: Formatting EDIT 2: The main reason I didn't use a ddns or a hidden service was mainly for high uptime, and low latency. I am planning on developing a lapp with this node and I didn't want to risk any downtime. Running lightning as a hidden service is a great idea as well, this tutorial shows how to achieve something similar with the clearnet. EDIT 3: You can achieve a similar result from using TOR
Storage space: I am using an 8 GB microSD card for the OS, and a 128 GB USB drive for data. Minimums I would recommend: 8GB SD card and 32 GB USB drive.
Reddcoin Core client version: v22.214.171.124-a8767ba-beta (most recent version at this moment). ↳ Screenshot
You need the OS; Lubuntu. Download Lubuntu (707 MB) for the Raspberry Pi: https://ubuntu-pi-flavour-maker.org/download/. It's a .torrent download, so you will need a BitTorrent client. Message me or post in this thread if you need help with this.
You need software to write the OS to the SD card. I use Etcher. Download Etcher: https://etcher.io/.
Select image: select the lubuntu-16.04.2-desktop-armhf-raspberry-pi.img.xz file.
Select drive: select your microSD card.
Plug the SD card into your Raspberry Pi and power it up.
Lubuntu should boot up.
Set up Lubuntu, connect to the internet (wired or wireless). ↳ As username, I chose "rpi3b". You will see this username throughout this whole tutorial.
Make sure date and time are correct ([Menu] > System Tools > Time and Date). ↳ Click on Unlock to make changes. I personally change Configuration to "Keep synchronized with Internet servers". ↳ Screenshot
Reboot ([Menu] > Logout > Reboot). I am connected to wifi, but have issues getting wifi to work on initial boot. A reboot solves this issue.
Make sure system is up-to-date, install never versions.
Open LXTerminal ([Menu] > System Tools > LXTerminal). ↳ Screenshot
Enter the following in LXTerminal: sudo apt update && sudo apt upgrade ↳ Screenshot
You will be asked if you really want to continue. Enter Y (yes).
Updates are being installed! Wait until it's finished.
Install programs that will be used in this tutorial.
GParted: to partition the USB drive.
Htop: to see the amount of memory (RAM) and swap that is in use.
Enter the following in LXTerminal to install these 2 programs. sudo apt install gparted && sudo apt install htop ↳ Screenshot
Create 2 partitions on the USB drive: 1) Swap partition 2) data partition (for the Reddcoin blockchain) The swap partition is necessary: The Reddcoin wallet can be memory intensive. To prevent any crashes or freezes, add 2 GB of 'virtual' memory by creating a swap partition.
Important: Backup your USB drive if needed. The USB drive will be formatted, so the data on the USB drive will be wiped.
Please use the USB drive solely for this purpose, do not combine it with other stuff.
Keep your USB drive plugged in, do not (randomly) plug it out.
Plug your USB drive in.
GParted will be used to create the partititons. Start GParted via LXTerminal: sudo gparted ↳ Screenshot
Apply the changes. Click on the check mark or select Edit > Apply All Operations. ↳ Screenshot ↳ Screenshot
Important: The name of the swap partition is needed later, so please write it down. Mine is /dev/sda1 (first partition on first drive (drive 'a')). ↳ Screenshot
Reboot. After the reboot, the data partition you just created should be visible on your desktop. ↳ Screenshot
The swap partition is created, so now we can enable and use it.
The swap in use can be monitored with the program Htop. Open Htop ([Menu] > System Tools > Htop) to see the 'Swp' (swap) in use. ↳ Screenshot By default, swap is not used, so 0K. ↳ Screenshot You can leave Htop open.
To enable the swap partition, open LXTerminal and enter the following commands: (Assuming /dev/sda1 is your swap partition.)
Unpack the file (large file, takes around 15 minutes to unpack): sudo xz -d bootstrap.dat.xz ↳ Screenshot
After a successful unpack, your will find the file bootstrap.dat in your USB root folder. ↳ Screenshot
On the first run of the Reddcoin Core client, it will ask for a data directory to store the blockchain and wallet data.
Start the Reddcoin Core client: sudo /media/rpi3b/usb/reddcoin/src/qt/reddcoin-qt ↳ Screenshot
The welcome screen will appear and ask you about the data directory. I suggest a new folder on your USB drive, I picked blockchain. The directory will be created with all the necessary files. ↳ Screenshot
Click on the three dots (...) on the right. ↳ Screenshot
Click on Create Folder at the upper right corner. Type and enter in the folder name. (In my case: blockchain.) Click on Open. ↳ Screenshot ↳ Screenshot ↳ Screenshot
After selecting the directory, the Reddcoin Core client will start. Wait till it's fully loaded and close it.
Move the bootstrap.dat file to your data directory you selected in the previous step. By doing this, Reddcoin Core will use the bootstrap.dat file to import the blockchain, which speeds up syncing. sudo mv bootstrap.dat /media/rpi3b/usb/blockchain/ (Assuming blockchain as data directory.) ↳ Screenshot
The Reddcoin Core client set up is completed, but you still have to sync fully with the blockchain before you can send, receive and stake.
Keep the client running until it's fully synchronized. It will use the bootstrap file first, and download the rest of the blockchain to complete the sync. This can take some time (it took 2 days for me). Syncing the blockchain uses a lot of resources, so the software may react slow.
You can see the progress in the debug window (Help > Debug window). ↳ Screenshot
When the synchronization is completed, the red (out of sync) will disappear on the Overview screen! ↳ Screenshot
When synchronization is complete, you can start staking your Reddcoins.
You can write down your private key or copy and save it in a document. Make sure you save it somewhere only you can access it.
To import later: Debug window -> Console -> importprivkey [label] [label] is optional. ↳ Screenshot (without a label) ↳ Screenshot (with a label)
Boot with only 1 USB drive plugged in: Make sure only the USB drive (with the swap partition and data partition) is plugged in when you boot up your Raspberry Pi. This to make sure the swap partition (/dev/sda1) is recognized correctly. If you boot up with multiple USB drives, Lubuntu might see the USB drive with the swap partition as the second drive (instead of the first drive), and ignore the 2 GB swap partition. If this happens, starting Reddcoin can render the Raspberry Pi unresponsive.
Start Reddcoin Core easier Run a shell script (.sh file), so you can start Reddcoin just by double clicking on an icon on your Desktop.
Right Click on your Desktop and select Create New -> Empty File. ↳ Screenshot
Enter a file name, make sure it ends with .sh, and click on OK. I've chosen for Reddcoin.sh. ↳ Screenshot The file will be created on your Desktop. ↳ Screenshot
Add the command to start Reddcoin to the file.
Right click on the file, select Leafpad (to open the file in a text editor). ↳ Screenshot
Add the following to the file and save the file: sudo /media/rpi3b/usb/reddcoin/src/qt/reddcoin-qt ↳ Screenshot
To be able to execute the shell script (.sh), it has to have 'execute permissions'.
Right click on the file, and select Properties. ↳ Screenshot
Click on the Permissions tab.
For Execute, select Anyone, and click on OK. ↳ Screenshot
To start Reddcoin Core, double click on the file. A new window will pop-up, asking you what you want. Execute in Terminal is what we want, so you can click on enter. ↳ Screenshot Reddcoin Core will now start. Do not close the Terminal window, you can minimize it if needed.
Minimization options Adjust minimization options, so you can safely press on the X button (the close/exit button on the upper right corner).
Activate 'Minimize on close'. Settings -> Options... -> Window (tab) -> Minimize on close. ↳ Screenshot Reddcoin will still run when you click on the X button. To close/exit Reddcoin, right click on the Reddcoin icon in the system tray (bottom right corner). ↳ Screenshot
RealVNC VNC Viewer (client) and VNC Connect (server): To remote connect to the Raspberry Pi, I use VNC Viewer ad VNC Connect from RealVNC.
After your download is finished, open the file and click Install Package. ↳ Screenshot
To run the VNC Connect once:
Open [Menu] > Run, and enter: vncserver-x11 ↳ Screenshot
To auto run on startup:
Open Default applications for LXSession ([Menu] > Preferences > Default applications for LXSession). ↳ Screenshot
In LXSessions configuration, select Autostart in the menu left.
Under Manual autostarted applications, enter vncserver-x11 and click on + Add. ↳ Screenshot ↳ Screenshot
Reboot your Raspberry Pi and check if VNC Connect is started automatically after the reboot.
When VNC Connect is running, you'll see a VNC icon on the right bottom corner. Double click the icon to open VNC Connect and to see the IP address you need to enter to connect to your Raspberry Pi. ↳ Screenshot
So I recently I became quite interested in mining and cyptocurrencies in general. So interested in fact that I bit the bullet and decided to buy myself a GAW Fury. I then spent some time doing research on how to set up a GAW or Zeus ASIC on Linux, in particular on a Raspberry Pi, and have found most guides to be awful. The reason they are so bad IMHO is that they assume quite a bit of prior knowledge, either with Linux or mining, and give very little instructions. So I have tried to put together a guide that requires very little prior knowledge. It is my aim that anyone could get their shiny new asic up and mining in no time using this guide. Anyway, I present...
The Complete Noobs Guide to Setting Up a Zeus or Gaw ASIC on Debian/Ubuntu/Raspberry Pi
About Cyrptocurrencies and Their Jargon
If you are new to cryptocurrencies and how they work I suggest taking a look at this series of KhanAcademy videos. They are for Bitcoin but the theory is the same. I found them very helpful when it came to understanding what mining actually does and the mechanics of cyrptocurrencies. Also take a look at sircamm22 his info found here, is great and breaks down a large number of concepts. I slightly disagree with no. 21 regarding preordering. Just exercise common sense.
If you are new to Linux you could follow along by simply typing in the commands. However I highly recommend taking the time to learn what you are doing. This course is a great place to start.
By the end of this section you will have your device turned on, fully setup and connected to the internet with. Note: Commands to be typed into the command line will be displayed like this:
echo Hello World
For laptops and desktops already running Ubuntu or Debian I will assume you have setup your internet setup as part of the installation. If not: There are plenty of guides out there and the installation/setup process is very easy. A good place to start for Ubuntu is here. Now open up a terminal window. Ctrl + alt + t on a standard Ubuntu installation. If you plan on using this PC without a monitor I would suggest installing an SSH Server. These commands will be discussed later on in the guide.
sudo apt-get -y install openssh-server sudo service openssh-server start
The Raspberry Pi Foundation has put together a great guide in PDF format. Use NOOBS it will save you a lot of trouble. NB: Some SD cards don't support NOOBs but will work fine if the image is put on using a different method. Here is a great guide for setting up the Raspberry Pi SD card from Elinux.org. In fact it's a great place to start for anything RPi related. Raspberry Pi hub at Elinux. Once the SD card is setup you will need to insert it into the Raspberry Pi and boot. Install Raspbian from the NOOBs menu and wait. Follow this guide by Adafruit for first time setup. You will need to enable SSH Server. I suggest not starting the desktop on boot. It can be easily run from the command line by typing startx. Follow this guide by Adafruit to setup your network. Found here. No need to do this if you set up previously in the first time config. We will also at this point want to setup ssh. Again I will point you to an Adafruit guide. Once done exit back to a standard command line interface. This can be done in LXDE by using the power off menu located in the bottom right corner.
If you want to the Raspberry Pi or PC without a monitor go ahead and SSH into your device. So now you should be staring at a command line interface whether on the device with a monitor or via SSH. First things first lets make sure we are all up to date. This will update our package list from the repositories and upgrade them to the newest version. "-y" Will simply say yes to any prompts.
sudo apt-get update && sudo apt-get -y upgrade
We are going to need to install some useful tools. Git-core is how we will clone and download BFGMiner from GitHub and Screen allows multiple command line instances and means if we exit out of ssh session or quit Terminal on Ubuntu, BFGMiner will continue to run.
sudo apt-get install git-core screen
We also need to download some other tools/dependencies to ensure that BFGMiner will compile successfully.
Once the download has completed move into the bfgminer directory.
The following steps may take a while. Now run autogen.sh
You will need to make the configure script execuitable.
sudo chmod +x ./configure
Now configure bfgminer
sudo ./configure CFLAGS="-O3" --enable-scrypt
Now lets make!
sudo make install
One more thing...
If you haven't already plug in your ASIC. Just confirm your system is recognising the ASIC.
Its output should look similar to this (no need to type this in):
Bus 001 Device 005: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP210x UART Bridge / myAVR mySmartUSB light
Yep there it is our ASIC listed as device 005. There is no need to install any drivers, unlike in windows, as they come in the kernel. Now lets actually start BFGMiner. You will want to start a screen session to ensure BFGMiner doesn't quite when you exit. "-S" is the option for starting a new screen session. You can replace "miner" with anything you like.
screen -S miner
Now you can run the commands below. Here is a sample of what you should type. You will need to replace somethings with your own values.
Where: URL:PORT is the address and port of the pool you wih to use. Now I won't suggest a pool. I will leave that decision up to you. If you do wish to mine DOGE take a look at this site for a list of pools and comparisons. USERNAME this is the username you use on the pool. Every pool is different. Check your pool's website for details. PASSWORD same as above. Specific to your pool, not every pool requires one. CHIPCOUNT this is specific to which ASIC you are using. For GAWMiner ASIC's:
War Machine: 256
Black Widow: 64
For ZeusMiner ASIC's:
Hurricane X2: 48
Hurricane X3: 64
Thunder X2: 96
Thunder X3: 128
Now to make sure you don't stop mining when you exit ssh or terminal. Press:
ctrl + a + d
To come back to the BFGMiner screen simply run:
screen -r miner
Start on Boot
First off you will want to make sure you have BFGMiner running correctly. Ensure you have the miners set up properly and your pool correctly configured. Start a BFGMiner instance, detailed above. Once the instance has started and you are happy with how everything is working press "s" on your keyboard to enter the settings menu. Now press the "w" key. Don't press enter. We want to specify where our config will go. Type:
Substitute USERNAME for your user. On a standard RPI install its pi. On ubuntu it's what you set during the instillation. Now press the enter key to return back to the main BFGMiner screen. Press "q" on your keyboard to exit BFGMiner. You should now be back in the command line. Now we want to edit a file called rc.local. Any commands in this file will be executed on boot.
sudo nano /etc/rc.local
Depending on your system this file may already contain some commands. Be careful not to delete them. After the last command and before "exit 0" type the following on one line:
Where USERNAME = your username Hit ctrl + x then y to save and exit nano. The above command will create a new screen session and run bfgminer using the config we created earlier. All while as our username so that we can easily reattach. Lets reboot to ensure it is working correctly:
Once rebooted and logged in, show all running screen sessions:
Reattach to the session. You only need to use the numbers before the first dot. e.g Mine looks like: 2480..hostname (13/07/14 12:02:09) (Detached). So I type:
screen -r 2480
Verify everything worked as expected. Then ctrl + a + d to exit. You have now setup BFGMiner to restart on reboot.
If you are using a Raspberry Pi and it loses power it will automatically reboot on receiving power again. For standard desktop PCs there is an option in some BIOS/UEFI to turn the computer on when it receives power. Consult your motherboard's manual and manufacturer's website.
Congrats you've done it. You have managed to successfully get your shiny new asic mining away. I do plan to make another guide detailing how to setup and use StarMiner a ready to go RPi mining distro. So I hope this is helpful for you guys. I have seen lots of posts asking the exact same questions again and again and I have tried to answer these as best I can. I am still learning about this stuff so if there is something I have missed or a mistake I have made please tell me. Anyway good luck. And I'll see you at the moon. Cheers Frogsiedoodle Edit 1: Layout and formatting. Edit 2: Added instructions for screen which I initially forgot. Edit 3: Removed 1 unneeded dependency Edit 4: Added section on start on reboot and power failure.
Hello, I am here to advertise my new service offering you extremely cheap dedicated servers stating at $45 per month Our current offers are listed on http://www.beastminers.com/cart.php Current stock: Dual Xeon 5420 (8 cores @ 2.5 Ghz), 4GB DDR2 RAM, 250GB disk, 100mbit port unmetered mining BW, 1 IP, Ubuntu 12.04 64 bit, Payment to be made in Bitcoin only, Full root access, 24 hour setup We only accept Bitpay as payment
Private local pool with twelve ~10 year old computers (x-post from Bitcoin)
So, a quick background. I work for an after school non-profit. I'm the network administratotech person/miracle workeetc. I maintain the "network" and all of it's computers. Since it's a non-profit and I'm still in school, I'm ridiculously underpaid, but it's a good company and they're flexible. However, I've had this recent idea to try making the industry minimum by using all of these "computer lab" PCs for bitcoin mining. All of them (with the exception of two in the library) are about 5 to 10 years old. I have room for about 17 computers in this lab (possibly 20) and due to some law of the universe where elementary, middle school, and high school age kids somehow manage to break computers just by being near them, I have about 12 working. When I first got the job, most/all of them were full of malware and spyware, some running unlicensed copies of XP Pro so I have Ubuntu 10.04 on them. I'll be in the process of upgrading them over this week and next week. The majority of the computers are these donated HP desktops that are dual-core P4s @ 2.5 GHz. The video cards are GeForce MX 440s (8x AGP). About four are Dell Optiplexes: single core P4s at 2.5 GHz with ATI Rage 128 Pros. The two library computers have integrated Intel GPUs and Pentium dual-core E200s. Since I doubt I can do GPU mining, I was thinking about CPU mining. One core throughout the day from 11am - 8pm and from 8pm to 11am, these computers are working as hard as they can. I can write a few scripts and set up cron to do this for me. I was reading up on MMP (Multiminer Protocol) and have a computer in the "office" I can use as a server, then all the computers could run ufasoft and talk to the MMP server via JSON RPC unless there's a CPU miner that speaks MMP. Has anyone done anything like this before? Does anyone have any advice? Is there a better way to do this? I spent most of yesterday reading up on bitcoin, bitcoin mining, etc. Still learning so if something I said doesn't add up, that's why. P.S. Posting this year since I haven't gotten any attention from /Bitcoin. tl;dr: what's the best way to set up a private pool of 12 average-end desktops in a LAN for cpu mining?
Hello, I am here to advertise my new service offering you extremely cheap dedicated servers stating at $45 per month Our current offers are listed on http://www.beastminers.com/cart.php Current stock: Dual Xeon 5420 (8 cores @ 2.5 Ghz), 4GB DDR2 RAM, 250GB disk, 100mbit port unmetered mining BW, 1 IP, Ubuntu 12.04 64 bit, Payment to be made in Bitcoin only, Full root access, 24 hour setup, We only accept Bitpay as payment
Private local pool with twelve ~10 year old computers
So, a quick background. I work for an after school non-profit. I'm the network administratotech person/miracle workeetc. I maintain the "network" and all of it's computers. Since it's a non-profit and I'm still in school, I'm ridiculously underpaid, but it's a good company and they're flexible. However, I've had this recent idea to try making the industry minimum by using all of these "computer lab" PCs for bitcoin mining. All of them (with the exception of two in the library) are about 5 to 10 years old. I have room for about 17 computers in this lab (possibly 20) and due to some law of the universe where elementary, middle school, and high school age kids somehow manage to break computers just by being near them, I have about 12 working. When I first got the job, most/all of them were full of malware and spyware, some running unlicensed copies of XP Pro so I have Ubuntu 10.04 on them. I'll be in the process of upgrading them over this week and next week. The majority of the computers are these donated HP desktops that are dual-core P4s @ 2.5 GHz. The video cards are GeForce MX 440s (8x AGP). About four are Dell Optiplexes: single core P4s at 2.5 GHz with ATI Rage 128 Pros. The two library computers have integrated Intel GPUs and Pentium dual-core E200s. Since I doubt I can do GPU mining, I was thinking about CPU mining. One core throughout the day from 11am - 8pm and from 8pm to 11am, these computers are working as hard as they can. I can write a few scripts and set up cron to do this for me. I was reading up on MMP (Multiminer Protocol) and have a computer in the "office" I can use as a server, then all the computers could run ufasoft and talk to the MMP server via JSON RPC unless there's a CPU miner that speaks MMP. Has anyone done anything like this before? Does anyone have any advice? Is there a better way to do this? I spent most of yesterday reading up on bitcoin, bitcoin mining, etc. Still learning so if something I said doesn't add up, that's why. tl;dr: what's the best way to set up a private pool of 12 average-end desktops in a LAN for cpu mining?
An up to date list of the best Bitcoin mining software for Linux. Easy to install and manage, with a graphical user interface. NOTE: Bitcoin mining is very time consuming and you need a very powerful network of server machines to obtain even a small result (less than a bitcoin in most cases). This is due to the fact that you are competing with people and organizations running highly specialized hardware ( ASIC miners , FPGA devices etc.) which does nothing but compute BTC block hashes 24h a day. BitMinter is a mining pool that wants bitcoin mining to be easy for everyone. ... 12 Best Free Movie & TV Show Streaming Sites in 2020. 275,238 Views. WoeUSB – Create Bootable Windows USB Sticks from Linux . 223,296 Views. 34 Must-Have Ubuntu Apps in 2020. 195,336 Views. 10 Free Proxy Servers for Anonymous Web Browsing. 193,202 Views. 3 Best GUI-Enabled USB Image Writer Tools on Linux ... Bitcoin mining on headless Ubuntu 12.04 server [duplicate] Ask Question Asked 6 years, 8 months ago. Active 6 years, 6 months ago. Viewed 3k times 2. This question already has answers here: In the ASIC-age, is it worth starting mining Bitcoin at home? (2 answers) Closed 4 years ago. I've googled a lot and also read threads here but I'm still struggling. Background: I'm a eager but novice Linux ... I would highly recommend using Ubuntu Server for this, as long as you know what you are doing without a GUI. Not having a GUI at all means smaller OS size and much less OS tasks. This translates into more power savings. If you are using graphics cards, a non-GUI OS will improve your mining performance. If using an ASIC/etc. you probably will ...
Another entry in the Crypto Mining Pool Server Vlog. Featuring re-purposed Dell Poweredge R720xd Google Search Appliances. Starwind: https://www.starwindsoftware.com My Rig Parts: Asrock H110 Pro ... How to mine Bitcoin with freebitcoin using Ubuntu instance running on AWS. Bitcoin Mining on Ubuntu 18.10 ... CPU Mining Guide For MimbleWimble Cuckoo POW - Duration: 12:30. IMineBlocks 12,583 views. 12:30. How to GPU mine NVIDIA on linux - ubuntu 16.04 - step by step ... Awesome Miner Set up with Mining Pool Hub - Multiple rigs, remotely accessing with cloud services - Duration: 32:05. Dan's Crypto Adventures 3,010 views In this video, I'm going to show you how to start mining Bitcoin on Linux/Debian based operating systems. https://bitcoinminingsoftware2019.com/bitcoin-minin...