Build your own Litecoin Mining Rig, part 2: Linux Setup

Linux Litecoin Mining Setup Guide
In the second installment of our DIY litecoin mining guide, we’ll look at how to install and configure Linux to properly 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 easy.

Linux has a few advantages over Windows, including the ability 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 10/2013: no longer true!).

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

Build a Litecoin Mining Rig, part 2:  Linux Setup

So you’ve decided to use Linux to run your mining rig—a fine choice! If you’re still a bit nervous because you’ve a complete Linux newbie, don’t be. Simply follow the step-by-step instructions exactly as they’re written, and you’ll be fine. Even if you’ve never done anything like this before, you should be up and running in about an hour.

Step 1: Configure BIOS settings

Before we even get to Linux, make sure your mining computer’s BIOS settings are in order. Power on your computer, and press the “delete” key a few times immediately after power on. You should end up in the BIOS configuration area. Do the following, then save & exit:

  • Change power options so that the computer automatically turns itself on whenever power is restored. The reason for this is two-fold: first, it’ll make sure that your miner automatically starts up after a power outage. Second, it makes powering the computer on much easier if you don’t happen to have a power switch connected to the motherboard.
  • Make sure that your USB stick is first in the boot-up order (you may need to have a USB stick attached).
  • Disable all components that you don’t plan 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 me, that meant disabling onboard audio, the SATA controller, the USB 3.0 ports (I only had a 2.0 USB stick), the Firewire port, and the serial port.

Step 2: 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 properly.

  • Download the Xubuntu Desktop x64 v12.10 installation image.
  • You’ll need to either burn the installation image onto a CD, or write the image to a second USB stick. If you use a CD, you’ll need to temporarily hook up a CD-ROM drive to your mining rig for the installation (make sure you temporarily enable your SATA controller if you disabled it in step 1!).
  • Once you have the installation media prepared, you’re ready to install Xubuntu to the blank USB stick on your miner. Make sure your blank USB stick is inserted into a USB port on your mining, and then boot into your installation media. The Xubuntu installer should appear.
  • Make sure to click the “auto-login” box 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 small. Create a new partition table with these settings: 5500mb for root (/), 315mb for swap, and the remaining amount for home (/home). If you’re using a USB stick larger than 8GB, you will not have to do this.
  • When the installation is complete, you should automatically boot into the Xubuntu desktop. Make sure to remove your installation media.

Step 3: Install AMD Catalyst drivers

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

  • Type the following commands (press “enter” at the end of each line and wait for Linux to finish doing it’s thing):
    sudo apt-get install fglrx-updates fglrx-amdcccle-updates fglrx-updates-dev
    sudo aticonfig --lsa
    sudo aticonfig --adapter=all --initial
    sudo reboot
  • After your computer reboots, you can verify that everything worked by typing:
    sudo aticonfig --adapter=all --odgt
  • If you see all of your GPUs listed, with “hardware monitoring enabled” next to each, you’re good to go.

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

If you ever add or remove GPUs to your rig later, you’ll need to re-run this command:   sudo aticonfig --adapter=all --initial

Step 4: Install SSH, Curl, and package updates

  • Install SSH by typing:
    sudo apt-get install openssh-server byobu

With SSH installed, you can unplug the keyboard/mouse/monitor (put dummy plugs into all GPUs, though) from your miner, and complete the rest of the installation from your desktop computer. Simply download Putty onto your desktop, run it, and enter the IP address of your mining rig. That should bring up a remote terminal session to your miner, which is more or less just like sitting at the keyboard in front of it.

If you plan to manage your mining rig remotely over 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, as now you can simply copy text from this webpage (highlight it and press control-C) and then paste it into your Putty session by simply right-clicking anywhere inside the Putty window. Neat, eh?

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

    sudo apt-get install curl
    sudo apt-get update
    sudo apt-get upgrade

Step 5: Install cgminer

Cgminer is the mining software we’ll be using. If the first command doesn’t work, you’ll need to check out the cgminer website and make a note of the current release version. Substitute that in the commands below.

Update: Cgminer 3.7.2 is the last version to support scrypt—do not use any version after that! In addition, depending on which version you choose to use, you may receive an error complaining about libudev.so.1 when you try to run cgminer—you can find the fix for that here.

  • Type the following:

    wget http://ck.kolivas.org/apps/cgminer/2.11/cgminer-2.11.4-x86_64-built.tar.bz2
    tar jxvf cgminer-2.11.4-x86_64-built.tar.bz2
  • If everything was uncompressed successfully, we can delete the downloaded archive; we don’t need it anymore:
    rm *.bz2
  • Now check if cgminer detects all of your GPUs properly:
    cd cgminer-2.11.4-x86_64-built
    export DISPLAY=:0
    export GPU_USE_SYNC_OBJECTS=1
    ./cgminer -n

Step 6: Create cgminer startup script

We’re almost done—now we just need to create a few simple scripts to control cgminer.

  • If you’re still in the cgminer directory from the previous step, first return to your home directory:
    cd ..
  • Type the following to create a new file with nano, a Linux text editor:
    sudo nano mine_litecoins.sh
  • Type the following into nano (note where the places you need to substitute your own usernames!) :
    #!/bin/sh
    export DISPLAY=:0
    export GPU_MAX_ALLOC_PERCENT=100
    export GPU_USE_SYNC_OBJECTS=1
    cd /home/YOUR_XUBUNTU_USERNAME/cgminer-2.11.4-x86_64-built
    ./cgminer --scrypt -I 19 --thread-concurrency 21712 -o stratum+tcp://coinotron.com:3334 -u USERNAME -p PASSWORD
  • Save the file and quit nano, then enter the following:
    sudo chmod +x mine_litecoins.sh

Note that the cgminer settings we’re using in our mine_litecoins.sh script correspond to a good starting point for Radeon 7950 series GPUs. If you followed our hardware guide, these 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 plug your username and password into the script (the -u and -p parameters). I have Coinotron in there as an example, but there are quite a few to choose from.

Step 7: Create auto-start scripts

We want cgminer to automatically start mining whenever the rig is powered on. That way, we keep mining losses to a minimum whenever a power outage occurs, and we don’t have to worry about manually starting it back up in other situations.

  • Type the following to create a new script and open it in nano:
    sudo nano miner_launcher.sh
  • Enter the following text into the editor (substitute your Xubuntu username where shown!):
    #!/bin/bash
    DEFAULT_DELAY=0
    if [ "x$1" = "x" -o "x$1" = "xnone" ]; then
       DELAY=$DEFAULT_DELAY
    else
       DELAY=$1
    fi
    sleep $DELAY
    su YOUR_XUBUNTU_USERNAME -c "screen -dmS cgm /home/YOUR_XUBUNTU_USERNAME/mine_litecoins.sh"
  • Save and quit nano, and then type:
    sudo chmod +x miner_launcher.sh
  • Now we need to call our new script during startup; we do that by adding it to /etc/rc.local. Type the following to open /etc/rc.local in nano:
    sudo nano /etc/rc.local
  • Add the following text, right above the line that reads “exit 0” (substitute your own username!):
    /home/YOUR_XUBUNTU_USERNAME/miner_launcher.sh 30 &

Step 8: Create an alias to easily check on cgminer

We’re essentially done at this point, but you’ll probably want to manually SSH into your miner from time to time to manually check on your GPU temperatures & hashrates, etc. Creating an alias will make that easy.

  • Type:

    sudo nano .bashrc
  • Scroll to the end of the file, and then add this text above the line that reads “# enable programmable completion…”
    alias cgm='screen -x cgm'
  • Save and quit out of nano.

That’s it—you’re done! You’ll probably 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 happen:

  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 start and begin mining. You’ll probably notice the fans 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 ever need to start cgminer manually (because you quit out of it, or kill it, etc), simply type ./miner_launcher.sh
cgminer running

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

Congratulations—you have your own headless linux litecoin miner!

The next section of our guide covers setup under Windows, and then we take a look at optimizing cgminer settings for better performance.

You can leave a response, or trackback from your own site.

1,431 Responses to “Build your own Litecoin Mining Rig, part 2: Linux Setup”

  1. Marcelo says:

    Hello!
    I am a novice user in Linux. Would you like a step by step how to connect Linux to a Wirelles network and how to connect my desktop remotely in mining, also using network wirelles tab. Can someone help me?

    Following part of the guide, I’m having trouble:
    “Step 4: Install SSH, Curl, and package updates

    Install SSH by typing:
    sudo apt-get install openssh-server byobu
    With SSH installed, you can unplug the keyboard/mouse/monitor (put dummy plugs into all GPUs, though) from your miner, and complete the rest of the installation from your desktop computer. Simply download Putty onto your desktop, run it, and enter the IP address of your mining rig. That should bring up a remote terminal session to your miner, which is more or less just like sitting at the keyboard in front of it.

    If you plan to manage your mining rig remotely over 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, as now you can simply copy text from this webpage (highlight it and press control-C) and then paste it into your Putty session by simply right-clicking anywhere inside the Putty window. Neat, eh?”

  2. Ed says:

    The only comment I have is that you should not have people use USB sticks for the boot drive. OH MY GOSH was my system slow booting off of USB. I added a small laptop drive and bingo. It now acts like a computer built beyond year 2000. I have to believe that if the system was that slow just trying to type and open up apps, it would effect the performance of the mining rig…

    –22+ years of computer building experience

    Ed

    • CryptoBadger says:

      It’s true that the rig does take about 90 seconds to boot running off of a USB 2.0 stick, compared to maybe 20 seconds with a conventional drive.

      However, booting my rigs is maybe a once a month occurrence (it’s probably quite a bit less than that) – it only happens when I intentionally shut them down to do some sort of maintenance. Otherwise, they just run 24/7. Nothing is read from disk while cgminer is running, so using a conventional drive doesn’t help mining performance at all.

      Saving a minute every month or so when I need to boot isn’t worth the extra cost or power usage of a mechanical drive or SSD, IMO. If your rig pulls double-duty as a web/ftp/etc server, than beefier hardware might be warranted, but for a dedicated miner, your GPUs are essentially all that matter.

    • furiannn says:

      The newer usb drives are fairly quick. Even the USB2 ones

  3. PeerMedia says:

    I recently built my rig and trying with just 1 R9 280x card has been a nightmare. I cannot boot, Xubuntu 13.04 constantly freezes at the startup window (Xubuntu loading splash page). I’ve tried Googling the answer and the best I could come up with was the Catalyst drivers are not working right, when I remove the drivers, I can boot, but of course I can’t mine. Has anyone been able to mine with 280x cards because I can’t even get Xubuntu to boot from a single card?

    • PeerMedia says:

      I was able to fix this after several hours of testing and thought I’d share the solution, the suggested method of downloading drivers via apt-get fglrx* will only get the latest drivers. It seems that R9 2xx cards require the beta drivers that can be downloaded and installed from ATI’s website: http://support.amd.com/en-us/kb-articles/Pages/latest-linux-beta-driver.aspx

      Downloading these drivers and installing them instead of using apt-get fixed the problem and I no longer get a hang.

  4. brad says:

    well. I now have a huge hate-on for Linux.

  5. Andy says:

    Anyone else get an Error -5: Enqueueing kernel onto command queue. (c1enqueueNDRangeKernel) ?

    I was running 3 cards just fine, now that I’ve added a 4th (same brand and model), 3 of the cards won’t run in cgminer. cgminer disables 3 and only runs 1.

    Can’t for the life of me figure out what’s going one. Help please?

  6. Mark says:

    hi,

    i came so far but when i tried to check if cgminer does dupport my videocard it said

    (and I quote)

    mark@litecoin2:~/Desktop/cgminer-3.7.0-x86_64-built$ export DISPLAY=:0
    mark@litecoin2:~/Desktop/cgminer-3.7.0-x86_64-built$ export GPU_USE_SYNC_OBJECTS=1
    mark@litecoin2:~/Desktop/cgminer-3.7.0-x86_64-built$ ./cgminer -n
    ./cgminer: error while loading shared libraries: libudev.so.1: cannot open shared object file: No such file or directory
    mark@litecoin2:~/Desktop/cgminer-3.7.0-x86_64-built$

    does anyone have the same problem and maybe an answer/ solution for this problem??

  7. DUbbledex says:

    Regarding the error -5 issue. I had that when I was running in windows. Turns out not enough ram (thought I had 4.5gb – but was actually 2.5gb). Increasing your ram should sort it out.

    • Andy says:

      Hm, I’ve actually seen that a couple of other places for people running windows. But I’m running linux.

      Could be the same issue tho, thanks. I’ll try what Furiann suggested first and if that doesn’t sort it out investigating getting a little more ram.

  8. Surveyor98 says:

    Got my rig running! Using Xubuntu and at this time, 2 cards. Got a problem: How do I get the Sapphire 7950 to clock up to 1050? Right now this is what I’m seeing:
    cgminer version 2.11.4 – Started: [2013-12-10 16:24:04]
    ——————————————————————————–
    (5s):523.1K (avg):528.5Kh/s | A:44 R:3 HW:0 U:3.2/m WU:28.8/m
    ST: 0 SS: 0 NB: 6 LW: 780 GF: 0 RF: 0
    Connected to spare.ozco.in diff 4 with stratum as user 32433
    Block: d7254a63c7d50c8d… Diff:177M Started: [16:35:26] Best share: 898
    ——————————————————————————–
    [P]ool management [G]PU management [S]ettings [D]isplay options [Q]uit
    GPU 0: 73.0C 2135RPM | 261.9K/261.7Kh/s | A:19 R:2 HW:397 U:1.39/m I:20
    GPU 1: 38.0C 0% | 262.7K/266.8Kh/s | A:25 R:1 HW:360 U:1.84/m I:20
    ——————————————————————————–

    Temp: 74.0 C
    Fan Speed: 54% (2162 RPM)
    Engine Clock: 875 MHz
    Memory Clock: 1400 Mhz
    Vddc: 1.250 V
    Activity: 64%
    Powertune: 0%
    Fan autotune is enabled (0-85)
    GPU engine clock autotune is disabled (875-1200)
    Change [A]utomatic [E]ngine [F]an [M]emory [V]oltage [P]owertune
    Or press any other key to continue

    It says GPU engine clock auto tune is disabled . Got any advice?

    • uberdag says:

      There is a guide about tweaking on site

    • ezpacer says:

      Surveyor, The low temp on #1 is a clue that cgminer has idled it. Only # 0 is hashing, and cgminer is splitting the reported hashes between the two. Also, your hardware errors are thru the roof, you don’t want to see anything other than “0” after (HW:) I had trouble for months trying to solve the fact that cgminer would only run 1 of my three GPU’s. I still don’t know what the specific issue was, only that I was able to exorcize the machine by reformatting my flash drive, downloading Xubuntu 13.04, and cgminer 3.7.2 (following the exact commands of the guide otherwise than substituting the version designations in place of X12.10 and cgm 2.11.4., and…downloading this file
      sudo apt-get install libcurl4-openssl-dev pkg-config libtool libncurses5-dev libudev-dev screen xterm
      At any rate, ignore the “auto tune disabled”. To set your engine and memory (and very important for speed, your powertune) while in the cgm screen (where you are watching it hashing) hit “g”, then hit “c” (change) select GPU you are going to set, then hit enter, then hit “E” type the value and enter, “M” type the value, enter, then “P” type the value (20) and enter, then hit any random key once to get to the screen where you can start the process for the other GPU. Hitting a random key twice getws you back to the hashing screen Powertune is what will jump the GPU activity (A:) from 64 % to 99%. My best settings to date on 3 Sapphire 7950’s are E 1100 M 1500 P 20 . By the time you have both the cards running correctly, the hardware errors will probably have gone away. Otherwise they are dealt with by rebooting, or lowering your settings gradually until they are gone. Good Luck!

      • Surveyor98 says:

        EZ, Thanks for your reply. I will work through your suggestions as time permits this evening. The spousal unit insisted I was spending too much time “tinkering” last night. 🙂 One problem I’m SURE I have after reading your post is not having a dummy plug in one of the cards. The first card has my monitor plugged in at this point. I will also try installing Xubuntu 13.04 as a clean install. One question: I will have two 7950 cards and one which is lower (not at home right now, but I think its a Sapphire 7880). Is there a way to address specific cards with the scrypt for concurencies?

        • ezpacer says:

          Surveyor, The Dummy plug may or may not resolve the issue, have to try and then see if you have to go further into other areas to solve the problem. I believe I had dummy plugs in mine while still having the problem of two idled cards.
          You can set specific settings for each card while running very dissimilar cards in your scrypt line in mine_litecoins. for each setting, for example “-memclock” enter the value for each machine in order from gpu 0 on up, with commas separating. So with two different GPU’s you might enter “-memclock 1500,1250, and so on for engine, powertune. Powertune as far as I know should always simply be “20”. Read through the optimiztion section here to see examples of scrypt command lines others are using. I have had more success keeping that line short and simple, I only deal with engine and memclock settings and “I” (intensity, -I 20 in mine). Good luck!

          • Surveyor98 says:

            ezpacer,
            I’m still working on the multiple card setup, but am having a problem with just one card now. My cgminer is showing a 250-275 kh/s hash rate, yet lc.ozcoin is reporting my worker at only around 25kh/s. Before I tried adding multiple cards, it was actually reporting a HIGHER hash rate than my approx. 250kh/s. I’m using cgminer 2.11.4 and Xubuntu 12.10 at this time. Haven’t had time to move to the newer versions yet.
            Thanks! Oh, and thank you very much for your earlier advice.

          • ezpacer says:

            Surveyor, for some reason there was no reply button under your post, so used mine and hope it gets this near your post to be seen. The low hash rate you’re getting on the 7950 indicates problems with settings and may be linked to the HW errors, low engine clock, or…?
            The hash rates shown on the pool sites are notoriously inaccurate, more estimations than actual measures, and going above and below your actual as much as 25% error. However, the actual hashes reported by your miner are what the pool goes by, so no worries. What you see in your “cgm” screen for the GPU’s is the actual, and it will rise and fall in a more or less regular cycle.
            With these parameters (E 1100 M 1500 P 20) in the “cgm ‘change’ screen” for each of my 7950’s, I am getting 650-660 at the high end of the cycle per card. And, each time your rig reboots or goes in and out of a pool, you will likely have to go in and reset powertune, which often also resets the other two (if they have lowered) back to your selected values. I check my miner via putty every morning to ensure the settings are OK.
            One other tidbit, I’m mining between us3.wemineltc.com:3333, bbqpool.net:3333, mnc.vircurpool.com:3333, and digitalpool.org:3333 depending on the hourly or daily profitability. I set up each pool with the same worker ID and pw, then switch by changing the url in the scrypt line in mine_litecoins.sh. (first selecting “quit” out of the cgm screen, then starting cgminer again with miner_launcher “./miner_launcher.sh” after changing the url. I determine current profitability from the calculator on “dustcoin.com/mining”. Hope these suggestions advance your success. Regards

          • Surveyor98 says:

            EZ,
            Again, thanks for all your help. I have some time tonight to work on the rig and will see if I can get the issues worked out. I’ll check out the profitability calculator and look into those pools you discussed also.

            Expect to hear from me again. Soon! 🙂 I haven’t mined but 0.28 LC yet, or I would donate some to your cause for all your help. Thanks again!

          • Surveyor98 says:

            EZ, can ya email me directly? kclust at the gmail place. It might be easier to describe some issues I’m having if you have the time. I can attach screen shots, etc. If not, I completely understand. Not trying to breach etiquette here. Thanks.

          • ezpacer says:

            Correction to bbqpool URL. should be http://www.bbqpool.net:3333

          • ezpacer says:

            Correction to correction. The website added the http. The address for cgminer purposes is www dot bbcpool.net:3333

          • ezpacer says:

            www dot bbqpool.net:3333 ( I mistakenly typed bbc)

  9. mark says:

    does anybody know if the newer cgminers are faster?? i am using 2.11.4 now. is an upgrade better?? to for instance 3.6??

    • Andy says:

      I don’t know. Worth trying.

      3.7.2 is supposed to be the last version that supports scrypt/LTC mining. You might try that instead of 3.6, unless there’s a specific reason to run 3.6

  10. Andy says:

    Ok, I tried deleting the .bin files (there were two of them) in the cgminer directory. Still gave the same error (-5 enqueueing command kernel yadda yadda…)

    Linux says I’m only using a little under 1 gig of ram with 3 gigs free when running cgminer with 3 cards going full blast. Hard to believe it’s a ram issue…

    Tried installing cgminer 3.7.2 instead. Got that working with the libudev fix in the FAQ (Thanks cryptobadger!) but I still can’t get all 4 cards to work. Still only runs one card when I’ve got all 4 plugged in.

    aticonfig detects all 4 cards. And I’ve got two of them on powered risers (one is on a pci-e 1x to 16x powered riser). So I don’t think it’s a power issue.

    Kind of at a loss here.

  11. JDN says:

    Hello everyone. I have walked through the tutorial several times but can not seem to get the cgminer to boot up on system load. Any tips?

    • JDN says:

      Note: I was sure to commit the ‘chmod +x FILENAME’

      Any feedback is greatly appreciated.

      • N8c says:

        Sorry for the mess, but mod_security denies the comment if I don’t screw up the commands 🙂
        ###

        Did you add
        / home / USERNAME / autostart . sh DELAY_TIMER &
        to / etc / rc.local ?

        If so, please post your autostart .sh script.

        • joe says:

          From what I experienced, if you edit either the start-up script or the cgminer script you have to redo the execution permissions. I think this might be the issue that you are having. I haven’t looked into this, so confirmation would help. =)

          • N8c says:

            If this is the case on your installation you, sir, have a weird setup 😀

            Once the +x is set and you only edit the file it doesn’t matter which user does it.
            Even with root you don’t reset any kind of permission on the file just by editing it.

  12. Andy says:

    Well, I got it working with all 4 cards. I honestly can’t say how I did it. Tried plugging one into various different pci-e 1x slots. Finally went back to the first slot… and for some reason, now it works.

    I’m guessing somehow between deleting cgminer profiles and trying to intialize all the cards over and over again, I did something in the magical correct order.

    Wish I knew better than that so I could pass the solution onto the next person that has this problem.

  13. Krazycoin says:

    thanks for the help , I’m up and mining. After getting both cards running my hash rate is the same as having just the 1. I am using 2 PowerColor PCS+ AX7950 3GBD5-2DHPP Radeon HD 7950 3GB 384-bit GDDR5 PCI Express 3.0 x16 HDCP Ready CrossFireX Support Video Card . I have a 3rd to install if I can get these working . thanks again for any help. only putting out about 600k/hs between both cards.

    • Surveyor98 says:

      Krazy,
      Did you put a dummy plug in the cards? Also, can you post your cgminer status so we can see your readouts? It’s possible one of your cards is idled by the OS.

  14. Jimmy says:

    Hey Crypto,

    Thanks so much for the guide, it is very helpful. I have a problem that I was hoping you can help me solve. I am running linux 3.7.0 and the launcher will run if I connect one graphics card. If I connect two however, Linux will just restart. Any idea why? Thanks!

    Jimmy

    • N8c says:

      Gosh…mod_security denies me when trying to post…
      ###

      You must install the latest beta driver for the r9 cards to work properly.
      (At least I’ve seen many many people having tons of problems with the “older” driver from the official PPA sources, and that’s when I tend to call stuff ‘broken’)

      Try the following to update to the latest driver.
      The command expects a file like
      amd-catalyst-13.11-beta V9.4-linux-x86.x86_64
      being placed in your home directory.

      # COMMANDS HERE -> http://nerdoholic.org/uploads/hiddencube/ltc/commands.txt

      The removal of xorg.conf and .Xauthority might be unnecessary.
      Yet I had strange problems when not deleting them, like the login manager not working (GUI mode only, console was ok) or a strange resolution of 1200×800 (on a 1680×1050 screen).
      (xubuntu x64 13.10)

      Greetings
      Oliver

      • N8c says:

        Woopsie, wrong reply button – sorry :>

      • Mike says:

        I have sapphire r9 290X cards.

        I downloaded and unzipped and have this file in my file manager:
        amd-catalyst-13.11-beta V9.4-linux-x86.x86_64.run

        But when I type in the terminal: rig1@rig1-desktop:~$ sudo ~/amd-catalyst*.run

        I get this back:
        sudo: /home/rig1/amd-catalyst-13.11-beta V9.4-linux-x86.x86_64.run: command not found

        I cant figure out what I am doing wrong here.

        • N8c says:

          What ubuntu version are you using ?

          • Mike says:

            I am running
            xubuntu-12.10

            And I am totally stuck on installing amd catalyst drivers for r9 290x.

            Appreciate any help you all might have. I tried everything mentioned in the comments.

          • Mike says:

            anyone know what this means and how to fix it.

            rig1@rig1-desktop:~$ sudo ~/amd-catalyst*.run

            Created directory fglrx-install.PYBM48
            Verifying archive integrity…Error in MD5 checksums: e04507a8c61521f83b118745d66aad23 is different from 43aff2614c50fbf4a1545a9f1bcf80e7

          • N8c says:

            > Error in MD5 checksums:
            This is great for it simply means the file you downloaded went to shit.
            The checksum makes sure the file isn’t damaged, yet it obviously is so you get an error.

            You must re-download the file.
            You can do this directly from linux via ‘wget http://www2.ati.com/drivers/beta/amd-catalyst-13.11-beta-v9.4-linux-x86.x86_64.run.zip
            and then simply ‘unzip amd-cata*’

            Then you should be able to run it successfully.

  15. nannobyte says:

    Team: I am having an issue with the AMD Catalyst driver install on Xubuntu. I am running the MSI R9 280x GPUs

    When running ‘sudo aticonfig –lsa’ the GPUs are recognized as “HD 7900 Series” instead of the “Radeon R9 280X”.

    This is strange. I have also tried to install the updated driver but had no success.

    Has anyone else ran into this? Suggestions

  16. Appreciation to my father who shared with me regarding this web site, this blog is genuinely
    awesome.

  17. bleck says:

    Hi everyone, i have big problem to download a cgminer 3.7.2 … i’m green like grass in matter of linux :/
    i write
    wget http://ck.kolivas.org/apps/cgminer/3.7/cgminer-3.7.2-x86_64-built.tar.bz2
    tar jxvf cgminer-3.7.2-x86_64-built.tar.bz2
    someone can check this? txh. i try 26 times to connect. i don’t konw maybe ck.kolivas.org doesnt work? do U know maybe i need mirror site with cgminer?
    And i have one question about R9 280X this is normal when running ‘sudo aticonfig –lsa’ the GPUs are recognized as “HD 7900 Series” instead of the “Radeon R9 280X ??
    please help with cgminer.. what i must to do?

    • Rob says:

      I am likely even more green than you, but I believe the source website for the program is currently down, as I too have been attempting to download. In due time, I suppose…

      Good luck!

  18. Phil says:

    Hey guys/gals

    What versions of xubuntu/cgminer/Linux etc are you using as I’m getting very confused now reading all these comments!

    Ta.

    • 2943d7fc says:

      I use 12.04 LTS (long term support) with cgminer 3.7.0. If you use this combination you should be fine. 12.04 is supported until 2017 while 13.10 will only be supported for 9 months.

  19. Dzei says:

    This is bit offtopic but how the startup script should be if I mine Fastcoins instead of Litecoins?

  20. Dan says:

    I can’t get both of my cards to be recognized by cgminer.
    Actually they are both recognized, but only the first one mines.
    I heard I don’t need a dummy plug for linux. Does anyone know?

    Error -5: Enqueueing kernel onto command queue

  21. Krazycoin says:

    After getting both cards running my hash rate is the same as having just the 1. I am using 2 PowerColor PCS+ AX7950 3GBD5-2DHPP Radeon HD 7950 3GB 384-bit GDDR5 PCI Express 3.0 x16 HDCP . I’m only getting around 550 kh/s combined. GPU 0 Is running at Engine clock: 880mhz and Memory Clock: 1250 mhz . GPU 1 is running at 300mhz Engine Clock and 150mhz Memory clock. Im running Linux Xubuntu Desktop x64 v 12.10 . Asrock MB-970ex4, amd sempron 145, 4gb ram. This is my script. using cgminer 3.7.2.

    #!/bin/sh
    export DISPLAY=:0
    export GPU_MAX_ALLOC_PERCENT=100
    export GPU_USE_SYNC_OBJECTS=1
    cd /home/YOUR_XUBUNTU_USERNAME/cgminer-2.11.4-x86_64-built
    ./cgminer –scrypt -I 20 –thread-concurrency 21712 -o stratum+tcp://world.wemineltc.com:80 -u USERNAME -p PASSWord

    Any suggetions? Thanks

  22. Rob says:

    I’m having a rough time getting the Xubuntu installer to install from one USB stick to another. The installer USB stick boots, but after I use it to create the 2nd USB with the full-blown Xubuntu, that one won’t boot.

    Has anyone seen a _simpler_ set of instructions for making a bootable USB stick with Xubuntu?

    https://help.ubuntu.com/community/Installation/FromUSBStick

    • PeerMedia says:

      Did you create the partitions correctly on the destination USB? Make sure you have a swap, root and home path and they’re the right type (ext3 or ext4). After you’ve installed make sure you take out all USB’s except the destination stick. Make sure the partitions are formatted (its a checkbox option) as well and make sure the boot order is USB. Hope that helps.

      • N8c says:

        This is the most simple filetable configuration I used:
        1) Delete all partitions (including swap, BIOS / UEFI partitions if listed)
        2) Create the following partitions
        – 100 MB, BIOS (if listed in the dropdown for filesystem type – otherwise ignore this step)
        – 250 MB, UEFI (if listed in the dropdown for filesystem type – otherwise ignore this step)
        – max MB – 500, ext4, path is a simple / (root partition)
        – 500 MB, swap

        That’s it !
        Of course you should adjust the correct USB boot device order after the installation finished.

  23. Saga M.F. says:

    Hello,

    Ive been using your guide for the setup of my first rig and id like to thank you for the time spent on it. Ive been stuck for 3 days trying to configure cgminer on my 32 Bit XUbuntu machine. I was just wondering which of the files for cgminer 3.7.2 are for 32bit Linux devices. I see files that should correspond to a 32 Bit Linux CGMiner but they are not .Built so im wondering whether they will work.

    I’ve been trying to search all over but cant find a proper answer to this question anywhere. ANy help would be much Appreciated!

  24. Gab says:

    I have a strange issue.
    I’m running 4 290x’s

    When I run cgminer with monitor connected, from within GUI, whatever it is. xfce or something, nevermind – everything works perfectly. However, when I try to run manually via ssh I get the no xinit error and when I follow your tutorial and let cgminer start via rc.local, cgminer does not display temperature and doesn’t change core and memory frequencies. Only from within “desktop environment”… Any ideas?

Leave a Reply