Headless Linux Litecoin miner setup

Headless Linux Litecoin miner setup

Headless Linux Litecoin miner setup

Linux is advantageous overheen Windows, including the capability to boot from a USB drive, meaning lesser hardware requirements, and simpler remote connection capabilities. Linux being an open source operating system comes free of charge. Te this tutorial, wij will guide you on how to install and configure Linux to mine Litecoin with your GPU at optimal settings. Very first time Linux users do not have to worry spil wij will guide you through step by step and I assure you that you will have your mining equipment running ter no time.

Ter case you are not familiar with Litecoin yet, it is a decentralized online peer-to-peer currency that is known spil crypto-currency te the digital world. It runs on the vast network of its users and utilize cryptography to secure transactions. The mathematical problem ter each block is difficult to solve, but once a valid solution is given, fresh Litecoin would be created and that is the only way fresh Litecoins are generated. Litecoin mining is so called beecause it resembles the mining of other commodities.

How to setup USB Xubuntu for Litecoin mining

If you’re still jumpy about Linux, don’t be. Simply go after the step-by-step instructions, and you’ll be able to setup your own Linux mining equipment soon.

Step 1 : Download files

You will need a few files to get commenced, so let’s download them all here :

Step Two : BIOS settings

Before wij proceed, make sure your mining computer’s BIOS settings are te order. Power on your laptop, and press the delete key a few times before it fountains the startup screen. That should get you into the BIOS configuration. Make the following switches, then save and uitgang:

  • Edit the power options so that the pc automatically switches on whenever power is restored so that your miner will automatically commence up after a power outage.
  • Make sure that your USB drive is very first ter the boot-up order. You may need to have a thumb drive plugged ter order for it to be detected.
  • Since your miner will be likely running all the time, ter order to save up power, disable all components that you don’t project to use. For example, disable the onboard audio, the SATA controller, the Firewire port, and the serial port.

Step Trio : Getting ready Xubuntu installation opstopping

  • Samenvatting both of the files you have downloaded te Step 1.
  • Install Linux Live USB Creator.
  • Launch Linux Live USB Creator and write the pic opstopping xubuntu-12.10-desktop-amd64.iso to the 2nd thumb drive (8GB and above). You may also write it to a CD.
  • Once you have the installation media ready, you’re ready to install Xubuntu to the wit thumb drive on your miner.

Step Four : Install Xubuntu

  • Insert a wit thumb drive into a USB port of your mining equipment, and then boot into your installation media (either the thumb drive or CD with photo written). The Xubuntu installer would emerge
  • Go after the installation instructions and select default settings except for the final part where you need to click the automaat login opbergruimte.
  • If you are using a thumb drive that is exactly 8GB, the installer may display a message that the default partition size is too petite. Create a fresh partition with the following settings : 5500MB for root (/), 315MB for interchange, and the balance for huis (/huis). If you are using a thumb drive that is larger than 8GB, you don’t have to do this.
  • Once the installation is accomplish, it would automatically boot into Xubuntu desktop. Recall to eject your installation media.

Step Five : Install AMD Catalyst drivers

Okay, once booted into the Xubuntu screen means that you have successfully installed a USB bootable Linux. Next step is to install and update the drivers. Keep with us and you’ll have your headless Linux mining equipment te a ogenblik. The user interface of Xubuntu should be fairly similar to Windows. Stir your mouse down overheen the bottom center of the screen so that a list of icons show up. Click on an icon that looks like a black opbergruimte which is the Terminal.

  • Type te the following instructions and press come in at the end of each line. Wait for Linux to finish processing :

sudo apt-get install fglrx-updates fglrx-amdcccle-updates fglrx-updates-dev

sudo aticonfig –adapter=all –initial

  • After your laptop have rebooted, you can confirm that everything worked by typing this code :
  • If you can see all of your GPUs listed, and hardware monitoring enabled, everything is working correctly.

Significant: Your OS may idle the GPU if it is not connected to a monitor. You may buttplug a monitor to each of your GPU, but it is not very practical. The easiest solution is to create a dummy butt-plug for each of your GPU and link it to the GPU. This will trick the OS into believing that a monitor is affixed, and prevent the hardware from being idled. If you are having this problem, check out this postbode on How to create dummy ass-plugs for your Graphics Cards.

Step 6 : Install SSH, Curl and package updates

  • Install SSH by keying te this code :

sudo apt-get install openssh-server byobu

With SSH installed, you can proceed the surplus of the steps from your desktop pc. You can disconnect the keyboard, mouse and monitor (with dummy butt-plugs fastened to all GPUs) from your mining equipment. Run PuTTY which you have downloaded ter Step 1, and inject the IP address of your mining equipment, which would bring up a remote Terminal session, and it is just like you are sitting ter vooraanzicht of the mining equipment.

If you intend to manage your mining equipment remotely overheen the internet, you may do so by forwarding port 22 on your router to the mining equipment. Make sure that you have a strong password for Xubuntu.

Setup should be much lighter from here onwards, spil you can simply copy directions from here, by highlighting and press Ctrl+C and then paste it into your PuTTY session by right-clicking inwards the PuTTY window.

  • Install Curl and package updates by typing (or paste it into PuTTY) the following code :

Step 7 : Install CGMiner

Install the mining software, CGMiner which would be the final program to install. Wij are almost done. If the very first instruction doesn’t work you can check out the official CGMiner webstek and take note of the current release version. Substitute it with the instruction below.

CGMiner Three.7.Two is the last version to support Scrypt mining, so do not use any version after that. Additionally, some versions may give you an error message about libudev.so.1 when you run CGMiner. You can find the fix on the bottom of this postbode.

tar jxvf cgminer-2.11.4x86_64-built.tar.bz2

  • After everything wasgoed decompressed successfully, you can proceed to delete the downloaded archive spil wij won’t be needing it anymore :
  • Now check whether CGMiner detects all your GPU :

Step 8 : Create CGMiner startup script

Wij will be done with the configurations with just a few more settings to control CGMiner.

  • If you are still at CGMiner directory from the previous step, come back to your huis directory with this code:
  • Type the following code to create a fresh verkeersopstopping with the Linux text editor, Nano :

sudo nano mine_litecoins.sh

  • type the following into Nano (reminisce to key ter your username and password, where applicable) :

./cgminer –scrypt -I Nineteen –thread concurrency 21712 -o stratum+tcp://coinotron.com:3334 -u USERNAME.WORKER -p PASSWORD

  • Save the verkeersopstopping and uitgang from Nano, then key ter the following code :

sudo chmod +x mine_litecins.sh

Note that the CGMiner configurations that wij key into the mine_litecoins.sh script is a good kicking off point for Radeon 7950 GPU. For other GPU, you may need to inject a different optimal settings for it.

Also note that you will need to create an account at a litecoin mining pool, and inject your password and username into the script. I have waterput te coinotron spil an example, there are fairly a few other pools to choose from.

Step 9 : Create auto-start scripts

I will guide you on how to setup the CGMiner to automatically embark whenever the mining equipment is powered on. This way, wij don’t have to worry about by hand embarking it back up when there is a power outage.

  • Open a fresh script ter Nano with the following code :
  • Inject the following text into Nano, substituting your Xubuntu username where applicable :

su YOUR_XUBUNTU_USERNAME -c “screen -dmS cgm /huis/YOUR_XUBUNTU_USERNAME/mine_litecoins.sh”

  • Save the opstopping and uitgang from Nano, then key ter the following code :

sudo chmod +x miner_launcher.sh

  • Wij need to call the fresh script during startup by adding it to /etc/rc.local. Use this code to open /etc/rc.local ter Nano :
  • Add the following text into Nano, right above the line that reads uitgang 0, substituting your Xubuntu username where applicable :

Wij have practically finished configuring the mining equipment at this point. You can by hand SSH into the miner from time to time to check on the hashrate or GPU temperatures. Actually, there is an lighter way by creating an zogeheten. I will showcase you how to create an zogenoemde ter the next step.

Step Ten : Create an zogeheten to lightly check on CGMiner

  • Key te this code :
  • Scroll all the way to the end of the verkeersopstopping, and right above the line that reads #enable programmable completion.., add this text ter :

zogenaamd cgm=’screen -x cgm’

Congratulations! You should have your mining equipment up and running now. If you want to test whether everything works, the easiest way is to turn off your mining equipment and turn it back on. The surplus should be treated automatically by itself. Just sit back and give yourself a patstelling on the back and witness while your miner works automatically :

Related movie: How To hack Ten BTC te Two Minutes on Bitcoin Miner Robot

Leave a Reply

Your email address will not be published. Required fields are marked *