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. paul says:

    hi guys, i have been having huge problems getting this to work.

    first i was trying ubuntu – i could get two cards recognized out of 4. when i added a third i would get a purple screen and frrezes?

    after spending 4 days trying to fix it i gave up. i then saw this tutorial…

    so i install xubuntu 13.10 and follow the guide to the letter… again two cards no problem, i add a third and the fun starts again.
    first i got it to boot with three… i was happy but the screen was a little stretched, with a picture of a mouse in the middle and majority of the icons missing? was weird. but i thought i can live with that… i try to add the 4th and everything crashes. i am so stuck with this, i have had no mining done for 5 days now, and my mrs is stressing at me… please help. i have tried everything i can find on google – i have installed and reinstalled about 8 times now different OS. i just dont know what to do

    my set-up
    sempron 145
    4x r280x
    4 gb ram – have also tried 8
    gigabyte 990fx-ud3 board
    risers mixed and moved around to find the issues
    2x 750 psu linked using an adapter

    if you need any more info please let me know

    • CatLikeFelix says:

      I’m a real noob to all this but if I were in your shoes I’d be looking at the PSU’s and how they’re hooked up to mobo, GPU’s and each other.

    • Vegim says:

      I tried to type up a response, you can see it here http://pastebin.com/2u8cAYhw

      There are some commands you can run and some hatred towards risers. 🙂

    • Paul says:

      So an update – I for sick and tired of wasting my time trying to get ubuntu to work… So I made a usb for windows 7 to boot and got myself a new HDD.

      Set it up install… Sees 4 cards straight away – ad is now mining. A little tweaking to do in the scrypt, but it works and that’s all I care about. Still so confused as to why I could not get ubuntu to work with 4 cards, and I guess I will never find out.
      Thanks for the replies, and help…

      • N8c says:

        Well, nuff said, simply because 100$ says you took the old drivers for r9 cards…

        • Paul says:

          ??? What do you mean ???

          • Surveyor98 says:

            He’s betting a hundred bucks you were using the old ATI drivers instead of downloading the latest (13.something) drivers for your Ubuntu install. The old drivers either won’t recognize your cards or will crash the OS.

            I’m using a mix of cards, including a Sapphire R9 290X and the new drivers work perfectly.

            Try them. Linux is a better system overall, and you don’t need a HDD and can remotely monitor.

        • Paul says:

          No for info I have actually tried it with the newest drivers, and also a variety of drivers. Was always the same problem. 2 cards ubuntu boots, 3 or more no boot. All is good now though, I have it working well.
          Shame I have one rig on windows, and another on ubuntu….

      • mike says:

        Paul – I completely understand you’re frustration and congratulations on getting things up and running. I am at this moment, giving Linux one more shot using xubuntu 13.10. I gave it much of my time for a little over 2 weeks, took a break, and am at it again. I have a copy of win 7 waiting in the wings. I would love to hear the details of how you got it going. Did cryptos recipe work? Bugs etc. Hope all continues to run smoothly for you. peace!

        • kent says:

          I’m in the same boat. Gonna give xubuntu 13.10 another try this weekend, my rig automatically updated to 13.11 and its been crashing and or locking up since. Only found that out after booting into single user mode as root and saw the version come across the terminal. If one more try doesn’t work, I’m going to go to XP (all I have that’s free). Anyone know what problems might I encounter with XP and sapphire 7950s and 7970s?

        • Paul says:

          Hi, quite simply was plug and play with windows… I was actually surprised. I havnt used windows in years as I’m a mac user. Simply installed new drivers for motherboard, all cards showed perfectly, and on risers. Everything in crypto badgers windows guide has worked perfectly so far. I have not done any of the remote stuff yet, but I’m sure that’s fairly simply too…

  2. kent says:

    Hello everyone. I’ve been having some issues using this setup. First, I setup with an nvidia card that I had on hand as a proof of concept before getting my amd cards. Once working, it worked great for over a week, non-stop. Since my sapphire 7950s arrived, nothing but trouble. First, added the 1st 7950. The config process actually deactivated The nvidia card, but no worry, had my 7950 working for a day. Added 2nd 7950, then nothing but problems. Low hash rates on 1 card to system lockups. Very intermittent issues, just unstable.
    The latest troubleshooting and reading appears to be that my system did an autoupdate to 13.11 (determined this when I booted into single user mode).
    So my next steps are to back up to 13.10, figure out how to stop the autoupdate, and if that doesnt stabilize the env, it pains me to say gonna dump xubuntu for microsux XP.

  3. RJR says:

    I have diligently working through this guide and now have finally gotten the system to have a stable Xubuntu version and all the steps up to actually mining. I have several questions/issues that I was looking for help with.

    1) How can I tell if the script started on boot up? either through ssh which I have used but is not responding to the commands above or through the actual worker?

    2) I am getting an ADL sees more devices the openCL but both devices show up in cgminer, however I cannot change the settings on one of the GPU and the speeds are miserably low or non-existing which caused me to have 600 rejected blocks before I realized that I had an issue.

    Thank you all in advance for your help. The guide has been great so far and I expected some frustration as a total Linux virgin, but I am so close I can feel it.

    • ezpacer says:

      RJR,
      Sry, just noticed you hadn’t gotten any answers yet… Typing “cgm” after your rig is running should call up the screen showing it hashing, this is the only way to know it is mining that I know of. You may get “no screen attached” at first due to typing the command before cgminer has finished loading, if so keep trying “cgm” for 5 to 15 seconds more, you will often see the screen come on. If it never loads, you must go back over all the steps from “mine_litecoins.sh” to the end of the guide to recheck all entries in each file. One space or quotation mark left out and it won’t work.
      Number 2 question sounds like your 2nd GPU isn’t initialized for some reason. Try “sudo aticonfig -f –adapter=all –initial”, then reboot. Sometime powering the rig off and then back on seems to help after such changes.
      Here is my scrypt line in mine_litecoins.sh that I use. These settings can only be used when you can keep the rig very cold, lower settings must be used for warmer environment.

      ./cgminer –scrypt -I 20 –thread-concurrency 21712  –gpu-engine 1100 –gpu-memclock 1500 –gpu-powertune 20 –no-submit-stale -o stratum+tcp://digitalcoinpool.org:3333 -u (workername) -pw x –failover-only -o stratum+tcp://global.wemineltc.com:3334 -u (workername) -pw x
      Good Luck!

    • TommyJ says:

      RJR, were you able to get the “no screen attached” issue to work? I’m really trying to figure this out, thanks!

  4. DumDum says:

    Do you need an internet connection to run this command? – sudo apt-get install fglrx-updates fglrx-amdcccle-updates fglrx-updates-dev

    Can you just run the Update Manager and download? Also, any recommendations on running a Belkin N150 Wireless USB adapter for Xubuntu 13.04? I can’t seem to find drivers anywhere and the forums seem to be outdated by 4 years.

  5. DumDum says:

    I’m still stuck on Step 3. Seems like regardless of the Xubuntu version I use, I get frozen on the blue logo screen after I install the Fglrx drivers and reboot. Anyone know of a solution to this?

  6. Rick says:

    I have a ubuntu rig that I set up per this sites instructions and it was running great with 2 XFX R9 280X cards for several weeks now. One card went bad and I replaced it with a new Sapphire R9 280X card but when I try to boot the rig with both cards, the OS freezes right before it starts up the desktop window. I disconnected the new card and the single card boots up just fine and mines very well. I add back in the Sapphire and the rig locks again before it starts the desktop.

    Any ideas if there are incompatibilities with Unbuntu and this Sapphire card. I would hate to reformat my rig to be Windows 8 and find that it still locks up with a fault card.

    Anything I should possibly check or tweak?

    Thanks!

    BTW – these guides rock!

    • Surveyor98 says:

      Rick,
      1. Are you using a monitor connected directly to one of the mining cards? I run a headless unit, but found that sometimes, when directly connecting a monitor, it will make the unit hang, but I can still access the unit using a terminal command from my Mac. Try rebooting without a monitor connected and ssh via PuTTy or from a terminal window.

      2. Did you run the sudo aticonfig –adapter=all –initial command after installing the new card?

      Best of luck.

      • Anonymous says:

        Surveyor98 –

        Yeah I had a monitor plugged one card then switched to the other card on boot and both times with the new Sapphire plugged in the server would hang. I didconnected the Sapphire and the server would boot with and without the monitor. Matter of Fact I usually run headless and connect via my MAC as well vie SSH.

        I also reran the initialize comment to reset to the new card and when all that did not work I did an upgrade on the drivers but the effect was the same with the new card locking up the server.

        I was going to try the latest version of BAMT that has the R9 drivers already embedded to see if the rig would boot since I could do that and not wipe the harddrive I have already with Unbuntu installed.

        The next option would be to get a cheap drive and load Windows and see if the rig will boot under Win 8.1

  7. Judge_Justice says:

    This is all new to myself first time linux user. As far as i can tell i have followed all the instructions correctly and managed to get all the Hardware as above (using 3x MSI R7950) but when i start the rig it will not run the start up script. The rig will start if type ./miner_launcher.sh And I cant cgm to bring up the cgminer screen to see the performance.
    I am pulling aprox 700 to 750w from the wall and in coinotron it says i am running at 1414 KH/s

    I have reformatted my pen drive 3 times now and started at the start each time with no luck if anyone can help i would appreciate it

    thanks

    • staffnsnake says:

      I can’t see why the launcher won’t start on boot suffice to say that this is usually a matter of typographical errors in those new to the command line, which is case-sensitive.

      To see your own hash rate, try starting the miner with ./mine_litecoins.sh and the cgminer program will start in that screen without exporting to another screen. Beware though, if you do it this way you can’t see it later with cgm as the screen has not been exported (as in “export DISPLAY=:0”). At least you will know what your GPUs are up to. I use this function to test new settings edited in nano; when I am happy with settings I then reboot and rely on the launcher to start up (which I know you cannot presently do).

      Your hash rate displayed at the pool is based on the number of shares returned and can vary by +/- 20%.

      So in summary, if you followed cryptobadger’s guide exactly and went headless at the stage he suggests, then you can use cut and paste for the rest of the installation. I did mine using the monitor in Linux the whole time so had to be very careful with typing. I stuffed it up several times because of this.

  8. Phil says:

    Need help please.

    Tried to log into my mining rig (linux) from windows using putty and nothing is coming up on the window? It usually says “login as Phil” but now I cant get into it. Not had any trouble with it until now, can anyone shed light on this please?

    cheers

  9. Phil says:

    ………..

  10. Phil says:

    I get “network error – connection timed out”

  11. Phil says:

    FIXED!

    I checked my IPv4 of my mining rig and for whatever reason the last digit has changed by one number? I put that into putty and it prompts me for my login!

    Strange.

  12. Phil says:

    Why would the IP change after weeks of running! Thanks mate but fixed it.

    • Edwardf says:

      Phil,
      One reason the IP would change is if you changed from a wired connection to you mining rig to a wireless connection. When I moved my rigs to my garage and connected to my wifi in the house, the IP changed for my rigs.

      It is also possible that your network router changed the IP address if you connected any other equipment to wifi like a game console, iPad, etc.

      • rake says:

        If your router is running DHCP, make the IPs of your miners permanent/reserved to prevent other devices from grabbing the address during a reboot.

        Alternatively create static ARPs for your miners on your router and don’t use DHCP on the miners. You can still use DHCP for your other devices (tablets/phones/etc).

        I’d also suggest setting up QOS for your reserved/static IPs and thus let the DHCP devices get lower priority bandwidth.

  13. zzricezz says:

    I followed this guide for ubuntu and got everything working but I can not seem to be able to change the engine and memory clock, it would always revert back to the default 850 for engine clock and 1250 for memory clock. I read someone posting the same issue but he didn’t post how he fixed it :(..

    I was only able to remove the intensity and then it allowed me to overclock and as soon as I up the intensity it default back to 850.

    Any advice? i’m running sapphire 7950 dual-x.

    • ezpacer says:

      ZZ,
      You didn’t say where you were changing the speeds. Are you doing it in your mine_litecoins.sh, or in the cgm screen by using “G” and then “C” to make changes.
      Here is a shot in the dark: In your nano mine_litecoins.sh file, enter the clock values you want for eng, memory, powertune.
      Example: ./cgminer –scrypt -I 19 –thread-concurrency 21712 –gpu-engine 1050 –gpu-memclock 1500 –gpu-powertune 20 –no-submit-stale -o stratum+tcp://coinotron.com:3334 -u USERNAME -p PASSWORD

      Also, if changing in the cgminer screen while it is mining, I’ve experienced the eng and mem speeds going down when I put powertune to 0, and going back to the values I had entered when I set powertune to 20, can’t explain why. All these values cause more heat when higher, they must be set at values that don’t run the GPU temp above 80 in the location where the rig is running. Good Luck

      • zzricezz says:

        Hi ezpacer,

        my 3xgpu is sapphire 7950 11196-19-20g

        I have the settings in the mine_litecoins.sh file and at startup, all 3 cards have the overlock setting 1025/1500, but after a minute or 2, gpu 0 and 1 would clock back to default gpu setting 850/1250 while gpu2 would still be overclock.

        I’m not sure why it is not holding the overlocking :(.. I have them running on evga 1000 G2 psu, so I don’t think power is an issue? and gpu 0,1 temp never goes above 80c.

        I will try to underingvolt tonight but not sure if that would make any difference?

        • CatLikeFelix says:

          Ha! Not as weird as my one…

          I have 2x Sapphire 7950’s (waiting for riser cables so I can get the 3rd in there)

          In my startup script I have them both voltage locked to 1.169 and both clocked to E1000 and M15000. on startup GPU 0 is always bang on to what I’ve set it at but GPU 1 is usually running at V0.950, E501 and M1250. When I set it manually to V1.169 it jumps to V1.250 and then I get the clock speeds I set in the startup but it usually reverts back to the lower settings after about 10-20mins. Temp of GPU 1 rarely gets close to 70ºC so heats not the problem…unless it’s too cold?

          • zzricezz says:

            I think i have fixed the problem by undervolting the gpus to 1.081. So far it running stable with E1075 and M1475 at I19. I will bump it to I20 if it continue to run stable for a day. I tried E1100 and M1500 but after a short while, cgminer would freeze. I want to play around with the overclocking first before upping the volt to 1.087.

          • Edwardf says:

            zzricezz:
            I would be very interested to hear how those undervolting settings work out for you. I have 2 rigs with 3xSapphire 7950’s and I have not been able to get them to run stable for very long going below 1.131 with E:1100, M:1500 -I 20. I tried 1.094 and 1.125 but the cards would shut down after an hour or two.

            To try to decrease the rejection rate I have lowered the intensity to -I 18 and I may go lower. I read on another site that reducing the rejections rate would be more productive than having a very high hash rate with a large number of rejections on the pool. Also which pool you use makes a difference in the number of rejections.

          • ZzRicezZ says:

            I’m now running 3×7950 with E1070 M1500 I19 at 1.069V. Stable for 8 hours and counting. I lower from I20 to I19 and my reject ratio is at 2.3% and have an avg 603Kh/s. I will try to lower the voltage again tonight to see if it will be stable.

    • Kwolo says:

      I find that if I change anything in the mine_litecoins.sh to get it to work i sudo chmod +x, then sudo reboot. Let it fire up and check again. It always works that way for me. If i change the script but dont reboot, hashrate goes down by 50% and changes do not show up, a simple reboot fixes it.

    • Edwardf says:

      Where did you make the changes, in the cgminer ssh session or in your mining script? For a permanent change you need to make the changes in your script.
      IF you are in a putty session (SSH) then use Ctrl+A, then Ctrl +D
      Enter:
      sudo nano mine_litecoins.sh
      [your password}
      edit the script to make the changes, then Ctrl+X to save, enter “y” for yes, then press “Enter” to exit sudo nano
      “Enter” tthen type
      sudo chmod +x mine_litecoins.sh
      press “Enter”, then type
      Sudo reboot
      Wait a few minutes to let cgminer to restart and then check your cards
      in putty session…

  14. kent says:

    Well, I think ive given up, win xp will be next. My rig worked over a week with an nvidia gtx card week, after installing the saphire 7950, and running the updates, after reboot nothing but black screen and also cannot access via ssh.
    Ive reloaded from scratch twice, then the following and nothing after reboot.
    Any suggestions?
    sudo apt-get install fglrx-updates fglrx-amdcccle-updates fglrx-updates-dev
    sudo aticonfig –lsa
    sudo aticonfig –adapter=all –initial
    sudo reboot

    • DumDum says:

      I get the same thing except after reboot on 13.04, I see the blue Xubuntu logo screen with the frozen circle. I’m not home now but I think I will do a fresh install of 13.04 and try removing the default Linux open source graphic drivers first before installing the Fglrx drivers as outlined in Step 3. If you reinstall and try this before I get home, let me know if this gets you pass the freeze up.

      • kent says:

        Why 13.04 and not 13.10? (Just curious if I should try 13.04)
        Also after the 13.10 install, then when running the updates, it looks like it’s updating to 13.11. I’m also curious if that has something to do with the issues I’m having.

        • DumDum says:

          For some strange reason, version 12.10 & 13.10 would not even install on my system and freeze right after boot up. But 12.04 and 13.04 would install fine for me. If you got 13.10 to install, you’re fine. Just got to figure out this driver conflict / freeze up issue and we should be mining soon. 🙂

          • kent says:

            Ok, thx. Reinstalling now, will then need to figure out how to uninstall the included drivers before installing the newer drivers, thanks!

          • DumDum says:

            I’m upgrading from 13.04 to 13.10 now before I proceed with the Fglrx installation. It’s certainly taking a while!

          • kent says:

            Couldn’t figure out how to remove any drivers that may exist, installing this driver just seems to give black screen after reboot. The screen sometimes will flash something white that is too quick to read or see what it is. I’m shutting it down for the night, will try win xp tomorrow, this is just taking too much time and frustration.

          • DumDum says:

            I haven’t tried this yet because I’m still upgrading to 13.10 from 13.04. Someone mentioned to me earlier that you can type in the terminal, “dpkg -l” to find the open source driver package name, and then type “apt-get autoremove ” to remove that driver. Then Step 3 can be applied to reinstall the proprietary driver. I’ve considered just going with WinXP as well but Linux is too cool to just let go. But if this doesn’t work, I’m right with you going with Windows because it’s been a week and I want to get to mining already.

  15. If you have your favorite, do not just settle on the thought that
    they are the best. Common catches for sports fishing include
    shark, tuna, sailfish, tarpon and other species of fish which is determined by
    the sports organizers. Learning the theme of your collection is also important in
    spotting an antique piece.

    Also visit my blog :: Unlimited Score with Pet Rescue Saga Cheats Hack Tool 2014;
    http://www.Youtube.com,

  16. CatLikeFelix says:

    Any help on this would be appreciated;

    I’ve put account details for a 2nd pool into my startup script (I’ve just added the address, user name and password after another -o after my main pool details)

    I can now switch between pools using the ‘P’ then ‘S’ commands (and selecting pool ‘0’ or ‘1’) from CGMiner…happy days 🙂

    …but on start up it seems to randomly pick either pool rather than defaulting to ‘0’ (or 1) and I’ve also just witnessed it swapping pools while it’s up and running, mid-mining so to speak.

    Am I missing something from my startup script?

    thanks.

    • ezpacer says:

      Bonjour Cat! You have a “round robin” selection choice in your pool choices, look at it, it may be selected…

  17. DumDum says:

    Before Step 3, shouldn’t the existing Linux open source drivers get removed before installing the Fglrx proprietary drivers? Can freeze ups on reboot occur because 2 drivers were installed simultaneously? Who is a Linux master here?

    • ezpacer says:

      DumDum, The open source drivers are apperently not an issue. The fglrx drivers used in the guide do have to be removed if installed, before installing the most recent beta.
      sudo apt-get remove fglrx-updates fglrx-amdcccle-updates fglrx-updates-dev

      • DumDum says:

        Correct – removing the open source drivers did not fix the problem. Upon installing Fglrx after removing the open source drivers, I still ran into the frozen blue Xubuntu logo screen. I will try your recommendation tonight and remove the Fglrx drivers before running an update for the most recent ones after a fresh install.

  18. bigjossey says:

    Ok, super annoyed/frustrated. This is the 2nd time this has happened.

    So I had xubuntu installed correctly and getting ready to install drivers and cgminer.

    I had packed away the computer and restarted it up again and now it seems as if all the data is wiped out and can’t find the operating system on the usb. Tried all kinds of things in the bios but no luck. Getting “reboot and select prper Boot device or insert Boot media in selected Boot device and press a key” I only have one usb stick and selected it in bios but keep on getting this message.

    After the first time it happened I reinstalled and started from the beginning. Could it be a bad usb stick?

    Thanks for any help.

    • ezpacer says:

      bigjossey,
      My experience with linux on the usb’s is that strange things happen regularly. I’ve fought issues for days myself, but at this time I have 2 rigs running and producing. Stay with it, it’s worth the trouble once you’re going. The problem is likely to be in your bios. I’ve had times I did what seemed to be the same steps 3 or 4 times and then sudddely something works that wasn’t working. Try a fresh re-install. If that goes well and the rig says “install complete, need to reboot”, don’t reboot, but power down the rig. While it is off, then remove your installing usb, and power on going into bios by pressing delete while it is powering up. (I’m sure you know this, but the next person reading may not…) In Bios, look at your selections again and make sure it all looks right, and your sandisk is the #1 boot option. Then go out of Bios saving the selections, and follow the prompt to boot on into your OS. If you get the Xubuntu home screen, and can therefore bring up your terminal, then continue with the guide all the way to finishing before any reboot or power off. When you have finished the install, to check it, don’t power off, do a sudo reboot and see if it comes back and if “cgm” give you a screen with the rig mining. You may have to hit “cgm” several times before a screen is given. I’ve seen “no screen attached” many times at the first due to cgminer loading slower than we expect, but after 20- 30 seconds, “cgm” will get the screen, if it has started. There are also times it will load all the way without a hitch, and again at times a screen may show asking you to choose the OS by hitting enter. When you hit a snag, come back with your issue and someone will help.
      Good Luck!

  19. […] not going to go into quite as much detail as I did with our Linux setup guide, as most of you are probably already quite comfortable with basic Windows tasks. The steps outlined […]

  20. Lightsier says:

    Followed the guide and everything worked except using the open source drivers they didn’t recognize my R9 270s so I downloaded the 13.11 beta drivers from AMD’s website and all was good.

    I also used some modified cgminer since apparently cgminer seems to like to crash on R9s (http://www.ohmpie.com/mining-on-an-r9-290-in-linux/)

  21. Happenstance says:

    I am stuck.

    I am building a rig with all of your specs (with exception to a Gigabyte GA-990fxa-ud3 board, and 2 XFX R9 280x GPU cards). I have followed the Linux (Xubuntu 12.10 on a Harddrive) setup 4 times now and keep getting the same error message:

    ERROR – Get temperature failed for Adapter 1 – AMD Radeon R9 200 Series

    It recognises my first card (which is currently plugged into a monitor), but does not totally recognize the second.

    In CGMiner I get this error message.

    [2014-01-30 17:31:28] Platform 0 devices: 1
    [2014-01-30 17:31:28] 0 Tahiti
    [2014-01-30 17:31:28] ADL found more devices than opencl!
    [2014-01-30 17:31:28] There is possibly at least one GPU that doesn’t support OpenCL
    [2014-01-30 17:31:28] Use the gpu map feature to reliably map OpenCL to ADL
    [2014-01-30 17:31:28] WARNING: Number of OpenCL and ADL devices did not match!
    [2014-01-30 17:31:28] Hardware monitoring may NOT match up with devices!
    [2014-01-30 17:31:28] GPU 0 AMD Radeon R9 200 Series hardware monitoring enabled
    [2014-01-30 17:31:28] 1 GPU devices max detected
    [2014-01-30 17:31:28] USB all: found 10 devices – listing known devices

    Anyone have any ideas what could be causing this?

    • Happenstance says:

      Fixed the above problem by swapping the cards. Have no idea why that worked.

      However now I am stuck trying to get CBM to run.

      When I type “cbd” I get this:

      “There is no screen to be attached matching cgm.”

      When I type ” ./miner_launcher.sh” it just returns a new blank command line. Nothing happens.

      Any ideas? Has this happened to anyone else during installation?

      If you guys need any more info please ask.

  22. Happenstance says:

    Okay, I just went through the entire process of installing the drivers and cgminer again. Everything is up and running. I am averaging about 1150 kHs.

    I need to tweak the settings now, and go from there.

    • Happenstance says:

      Had it running all night. Woke up and checked on it…still running but no coins in my pool.

      I rebooted it and now I can not get CGminer to run again! WHAT THE HELL?!!! It was just running. This makes no sense whatsoever.

      Do I have to delete everything and start from scratch every time I want to reboot?!!!

      Any help would be great. Thanks guys.

      • Happenstance says:

        I keep getting this:

        “back-cpu:~/cgminer-2.11.4-x86_64-built$ ./miner_launcher.sh
        -bash: ./miner_launcher.sh: No such file or directory

        back-cpu:~/cgminer-2.11.4-x86_64-built$ cgm
        There is no screen to be attached matching cgm.

        WHY?!!! It was just running!

        • Edwardf says:

          I suggest that you download cgminer 3.7.2 and use xubuntu 12-10 without the upgrade to 13.04 or 13.10. Cgminer 2.11.4 is the old one.

          • Happenstance says:

            I will try that and check back in.

          • Happenstance says:

            But how do I delete the old CGMiner?

          • Staffnsnake says:

            For some reason, only cgminer-3.7.2.tar.bz2 is on the kolivas site, not cgminer-3.7.2-x86_64-built.tar.bz2. I know they are the same program but when I tried I install the former, it didn’t unpack a cgminer directory so the installation failed (I got my second rig going by cloning the first USB and then changing username, password, ash port etc). But this version thing is a bit weird. I have a copy of the …x86… version if anyone wants me to post a Dropbox link. Just put it in the home directory using the xubuntu GUI then run the jxvf command in terminal to unpack and install it.

            Let me know and I’ll put it in Dropbox.

          • Happenstance says:

            Staffnsnake,

            “Let me know and I’ll put it in Dropbox.” That would be awesome. Did not get to mess with it this weekend. Also went ahead and ordered Win 7 to see if I can getting running on that. Would like to figure this Linux setup though for future rigs.

          • Staffnsnake says:

            Here it is: cgminer-3.7.2-x86_64-built.tar.bz2.

            https://www.dropbox.com/s/q3l6cnse29n35so/cgminer-3.7.2-x86_64-built.tar.bz2

      • Edwardf says:

        When you installed Xubuntu did you select auto start during the installation? If you are not sure and if you have a monitor connected to your rig check to see if Xubuntu is starting automatically when you reboot or is there a list of options to choose from which ask you to select and press enter.

        You may have to do a complete power down and restart if reboot does not work.

        • Happenstance says:

          XUbuntu 12.10 is definitely starting after reboot on it’s own.

          • TommyJ says:

            Hi Happenstance,

            I’m facing the “no screen attached” challenge as well, and it’s….. well, a challenge hah.

            Any suggestions?

            Can you also post the dropbox link again for the cgminer-3.7.2-x86_64-built.tar.bz2 please?

            I’m currently using 2.9.6 and I keep getting the “no screen attached” thing.

            Thanks! So much!!

  23. Jeff says:

    This is a nightmare!!! Instructions get you 1/4 of the way and the rest is guess and computer crash a total joke

  24. jarsudsco says:

    Help! When I try to post I just get:

    Not Acceptable!

  25. jarsudsco says:

    Oh, but that one worked?!? Is there a limit on comment size?

Leave a Reply