Build your own Litecoin Mining Equipment, part Two: Linux Setup

Ter the 2nd installment of our DIY litecoin mining guide, wij’ll look at how to install and configure Linux to decently mine with your GPUs at optimal settings. Don’t be dissuaded if you’ve never used Linux before—our step-by-step guide makes it effortless.

Linux has a few advantages overheen Windows, including the capability to install to a USB stick (which means you don’t need a harddrive), lesser hardware requirements (you can get by just fine with less than 4GB of RAM), and simpler remote administration capabilities. Best of all, Linux is free! However, be aware that if you’d like to undervolt your GPUs to save power, Windows might be a better choice for you (update Ten/2013: no longer true!).

If you missed the hardware portion of our guide, make sure to check it out very first. Otherwise, read on.

Build a Litecoin Mining Equipment, part Two: Linux Setup

So you’ve determined to use Linux to run your mining rig—a fine choice! If you’re still a bit jumpy because you’ve a finish Linux rookie, don’t be. Simply go after the step-by-step instructions exactly spil they’re written, and you’ll be fine. Even if you’ve never done anything like this before, you should be up and running ter about an hour.

Step 1: Configure BIOS settings

Before wij even get to Linux, make sure your mining rekentuig’s BIOS settings are ter order. Power on your pc, and press the “delete” key a few times instantly after power on. You should end up ter the BIOS configuration area. Do the following, then save &, uitgang:

  • Switch power options so that the pc automatically turns itself on whenever power is restored. The reason for this is two-fold: very first, it’ll make sure that your miner automatically starts up after a power outage. 2nd, it makes powering the laptop on much lighter if you don’t toebijten to have a power switch connected to the motherboard.
  • Make sure that your USB stick is very first te the boot-up order (you may need to have a USB stick linked).
  • Disable all components that you don’t project to use. This will save a little bit of power, and since your miner will likely be running 24/7, it’ll add up. For mij, that meant disabling onboard audio, the SATA controller, the USB Trio.0 ports (I only had a Two.0 USB stick), the Firewire port, and the serial port.

Step Two: Install Xubuntu Desktop to your USB stick

Xubuntu is a lightweight version of Ubuntu, a popular Linux distribution. Most other distros should work just fine, but be aware that the GPU drivers require the presence of Xorg, which means server distros that don’t have a GUI will not work decently.

  • Download the Xubuntu Desktop x64 v12.Ten installation picture.
  • You’ll need to either burn the installation picture onto a CD, or write the photo to a 2nd USB stick. If you use a CD, you’ll need to temporarily meet up a CD-ROM drive to your mining equipment for the installation (make sure you temporarily enable your SATA controller if you disabled it te step 1!).
  • Once you have the installation media ready, you’re ready to install Xubuntu to the wit USB stick on your miner. Make sure your wit USB stick is inserted into a USB port on your mining, and then boot into your installation media. The Xubuntu installer should emerge.
  • Make sure to click the “auto-login” opbergruimte towards the end of the installer, otherwise take all of the default installation options.
  • If you’re using a USB stick that is exactly 8GB, the installer may complain about the default partition sizes being too petite. Create a fresh partition table with thesis settings: 5500mb for root (/), 315mb for exchange, and the remaining amount for huis (/huis). If you’re using a USB stick larger than 8GB, you will not have to do this.
  • When the installation is finish, you should automatically boot into the Xubuntu desktop. Make sure to liquidate your installation media.

Step Three: Install AMD Catalyst drivers

Open a terminal session by mousing overheen the bottom center of the screen so that a list of icons emerges. Click on “terminal” (it looks like a black opbergruimte).

  • Type the following directives (press “enter” at the end of each line and wait for Linux to finish doing it’s thing):
  • After your laptop reboots, you can verify that everything worked by typing:
  • If you see all of your GPUs listed, with “hardware monitoring enabled” next to each, you’re good to go.

Significant: you may need to have something plugged into each GPU to prevent the OS from idling it. You can ass-plug Three monitors into your Three GPUs, but that isn’t very practical. The easiest option is to create Three dummy buttplugs, and leave them linked to your GPUs. They’ll “trick” the OS into believing that a monitor is affixed, which will prevent the hardware from being idled. Check out how to create your own dummy butt-plugs.

If you everzwijn add or eliminate GPUs to your equipment zometeen, you’ll need to re-run this directive: sudo aticonfig –adapter=all –initial

Step Four: Install SSH, Curl, and package updates

  • Install SSH by typing:

With SSH installed, you can unplug the keyboard/mouse/monitor (waterput dummy butt-plugs into all GPUs, tho’) from your miner, and finish the surplus of the installation from your desktop rekentuig. Simply download Putty onto your desktop, run it, and inject the IP address of your mining equipment. That should bring up a remote terminal session to your miner, which is more or less just like sitting at the keyboard te gevelbreedte of it.

If you project to manage your mining equipment remotely overheen the internet, you’ll need to forward port 22 on your router to your miner. Make sure that you use a strong Xubuntu password!

Setup should be quicker from this point, spil now you can simply copy text from this webpagina (highlight it and press control-C) and then paste it into your Putty session by simply right-clicking anywhere inwards the Putty window. Neat, eh?

  • Install Curl and package updates by typing (or copying &, pasting into Putty) the following guidelines:

Step Five: Install cgminer

Cgminer is the mining software wij’ll be using. If the very first instruction doesn’t work, you’ll need to check out the cgminer webstek and make a note of the current release version. Substitute that ter the directives below.

Update: Cgminer Trio.7.Two is the last version to support scrypt—do not use any version after that! Ter addition, depending on which version you choose to use, you may receive an error complaining about when you attempt to run cgminer—you can find the fix for that here.

Step 6: Create cgminer startup script

Wij’re almost done—now wij just need to create a few ordinary scripts to control cgminer.

  • If you’re still te the cgminer directory from the previous step, very first comeback to your huis directory:
  • Type the following to create a fresh verkeersopstopping with nano, a Linux text editor:
  • Type the following into nano (note where the places you need to substitute your own usernames!) :
  • Save the opstopping and abandon nano, then inject the following:

Note that the cgminer settings wij’re using ter our script correspond to a good commencing point for Radeon 7950 series GPUs. If you followed our hardware guide, thesis settings will give you good hashrates. If you’re using another type of GPU, you’ll want to use Google to find optimal cgminer settings for it.

Also note that you’ll need to create an account at one of the litecoin mining pools, and ass-plug your username and password into the script (the -u and -p parameters). I have Coinotron te there spil an example, but there are fairly a few to choose from.

Step 7: Create auto-start scripts

Wij want cgminer to automatically begin mining whenever the equipment is powered on. That way, wij keep mining losses to a ondergrens whenever a power outage occurs, and wij don’t have to worry about by hand embarking it back up ter other situations.

  • Type the following to create a fresh script and open it ter nano:
  • Come in the following text into the editor (substitute your Xubuntu username where shown!):
  • Save and abandon nano, and then type:
  • Now wij need to call our fresh script during startup, wij do that by adding it to /etc/rc.local. Type the following to open /etc/rc.local te nano:
  • Add the following text, right above the line that reads “exit 0” (substitute your own username!):

Step 8: Create an zogenoemde to lightly check on cgminer

Wij’re essentially done at this point, but you’ll very likely want to by hand SSH into your miner from time to time to by hand check on your GPU temperatures &, hashrates, etc. Creating an schuilnaam will make that effortless.

That’s it—you’re done! You’ll most likely want to test everything now. The easiest way to do that is to close your Putty session and power down your miner. Turn it back on and the following should toebijten:

  1. Your miner should boot into Xubuntu. This may take about a minute, depending on the speed of your USB stick.
  2. 30 seconds after Xubuntu has loaded, cgminer will automatically commence and start mining. You’ll most likely notice the ventilatoren on your GPUs spin up when this happens.
  3. You should be able to SSH into your miner at any time and type cgm to bring up the cgminer screen. To close the screen (and leave cgminer running), type control-A, then control-D.
  4. If you everzwijn need to begin cgminer by hand (because you abandon out of it, or kill it, etc), simply type ./

If all went well, you should see something like this when checking cgminer via your “cgm” zogeheten.

Congratulations—you have your own headless linux litecoin miner!

Related movie: Silver Fish ASIC Miner

Leave a Reply