Difference between revisions of "Litecoin Mining for Funtoo"
(→Run go.sh) |
(→Set up go.sh) |
||
| (28 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
| − | Litecoin mining is a fun and easy way that you can help support the Funtoo Linux project. Litecoin is a virtual cryptographic currency that is generated using CPUs and video card GPU computational power, and can be converted into a traditional currency like US dollars | + | Litecoin mining is a fun and easy way that you can help support the Funtoo Linux project. Litecoin is a virtual cryptographic currency that is generated using CPUs and video card GPU computational power, and can be converted into a traditional currency like US dollars. |
| − | + | Typically, Litecoins are mined by pools of computers, and funtoo is part of the following pooled litecoin mining efforts | |
| − | === | + | {| style="background-color:#ffffcc;" cellpadding="10" cellspacing="0" border="1" |
| + | ! pool | ||
| + | ! host | ||
| + | ! port | ||
| + | ! user | ||
| + | ! password | ||
| + | ! stats | ||
| + | ! review | ||
| + | |- | ||
| + | | Burnside's Litecoin Mining Pool | ||
| + | | <tt>ltc.kattare.com</tt> | ||
| + | | <tt>9332</tt> | ||
| + | | <tt>funtoo.public</tt> | ||
| + | | <tt>p</tt> | ||
| + | | [http://ltc.kattare.com/stats.php stats] | ||
| + | | very good PPNLS pool | ||
| + | |- | ||
| + | | OzCoin | ||
| + | | <tt>lc.ozco.in</tt> | ||
| + | | <tt>9332</tt> | ||
| + | | <tt>funtoo.public</tt> | ||
| + | | <tt>p</tt> | ||
| + | | [https://lc.ozco.in/stats.php ozco.in stats] | ||
| + | | very good proportional pool | ||
| + | |- | ||
| + | | p2pool | ||
| + | | <tt>bdfl.funtoo.org</tt> | ||
| + | | <tt>9327</tt> | ||
| + | | <tt>funtoo.public</tt> | ||
| + | | <tt>p</tt> | ||
| + | | N/A | ||
| + | | lower performance but always available - use as backup only | ||
| + | |} | ||
| − | + | There are lots of different ways to mine Litecoins. You can use any of our pools above. You can also use your CPU or your graphics card. To see what different types of hardware can do, see the [https://github.com/litecoin-project/litecoin/wiki/Mining-hardware-comparison Litecoin Mining Hardware Comparison] page. Note that many of these systems are overclocked so make note of the CPU and memory frequencies listed here. | |
| − | + | == "Got Litecoins Already" Method == | |
| + | |||
| + | If you already have Litecoins that you want to donate to Funtoo Linux, you can send them to <tt>LgtcMbY5JYTQAGzdfJ9U83CPhspNkbJzym</tt>. Thanks! | ||
| + | |||
| + | Here's how to do it with litecoind: | ||
<console> | <console> | ||
| − | # ##i## | + | # ##i##litecoind sendtoaddress LgtcMbY5JYTQAGzdfJ9U83CPhspNkbJzym 50 |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
</console> | </console> | ||
| − | + | Be sure to let Daniel know that you sent some coin so that you can receive proper respect :) | |
| + | |||
| + | == CPU Mining == | ||
| + | |||
| + | Here's how to get started and convert your idle CPU power into a contribution to the Funtoo Linux project. | ||
| + | |||
| + | The "miner" is the program that performs the computation to generate litecoins. It receives blocks from a server, which it performs computations on. Miners are designed to run continually in the background, where they use up idle CPU only, and will not impact the speed of your system. A significant contribution to Funtoo Linux is only realized when miners are run continually for days and weeks -- so running a miner for an hour or so is typically not effective. | ||
| + | |||
| + | === Installation using Portage === | ||
| + | |||
| + | This method will use CFLAGS from /etc/portage/make.conf. Note that <tt>-O2</tt> seems to work much better than <tt>-O3</tt>. | ||
| + | |||
| + | <console> | ||
| + | # ##i##emerge pooler-cpuminer | ||
| + | </console> | ||
=== Set up go.sh === | === Set up go.sh === | ||
| Line 26: | Line 71: | ||
<pre> | <pre> | ||
#!/bin/bash | #!/bin/bash | ||
| − | threads=$( | + | threads=$(grep -c "^processor" /proc/cpuinfo) |
while true; | while true; | ||
do | do | ||
| − | minerd --algo scrypt -s 45 --retry-pause 5 --threads $threads --url http:// | + | minerd --algo scrypt -s 45 --retry-pause 5 --threads $threads --url http://ltc.kattare.com:9332 --userpass funtoo.public:p |
done | done | ||
</pre> | </pre> | ||
| Line 41: | Line 86: | ||
=== Run go.sh === | === Run go.sh === | ||
| − | Run <tt>go.sh</tt> to start the miner | + | Run <tt>go.sh</tt> to start the miner. |
| − | + | <console> | |
| + | # ##i##./go.sh | ||
| + | </console> | ||
| − | + | The cpuminer will only use idle CPU and will not slow down your system. Modern systems will generate somewhere from 15 to 60 KHash/sec total, which will result in $10 to Funtoo Linux per month for a Core i7 system at current exchange rates, when run continually. | |
Keep those miners running and thanks for supporting Funtoo Linux! | Keep those miners running and thanks for supporting Funtoo Linux! | ||
| + | |||
| + | == GPU Mining == | ||
| + | |||
| + | Some of the more hardcore individuals in the Funtoo community may want to use their graphics processor to mine litecoins. Modern graphics cards, particularly AMD (ATI) cards, can offer hashrates well above 100Khash/sec, even above 400Khash/sec for some cards. Daniel Robbins has a few Radeon HD 6950's that can generate in excess of 400Khash/sec ''each''. | ||
| + | |||
| + | AMD (ATI) cards tend to work much better than NVIDIA for litecoin mining. Here's how to do GPU mining: | ||
| + | |||
| + | === Prerequisites === | ||
| + | |||
| + | First, X will need to be installed, and you will need to ensure all your video cards are defined in <tt>/etc/X11/xorg.conf</tt>. For AMD cards, the beta drivers -- <tt>ati-drivers-12.9_beta</tt> and <tt>ati-drivers-12.11_beta</tt> appears to work very well (12.10 did not offer very good OpenCL performance for me.) Ensure that full hardware acceleration is working and that <tt>ati</tt> OpenGL and <tt>amd</tt> OpenCL are selected via <tt>eselect</tt>. (This is probably how things are set up if you simply emerged ati-drivers.) | ||
| + | |||
| + | === Install cgminer === | ||
| + | |||
| + | First, enable the <tt>scrypt</tt> USE variable (important!). Now, emerge cgminer: | ||
| + | |||
| + | <console> | ||
| + | # ##i##USE="scrypt" emerge cgminer | ||
| + | </console> | ||
| + | |||
| + | === Create cgminer script === | ||
| + | |||
| + | Create a <tt>go.sh</tt> script that looks like this: | ||
| + | |||
| + | <pre> | ||
| + | #!/bin/bash | ||
| + | export GPU_MAX_ALLOC_PERCENT=100 | ||
| + | export GPU_USE_SYNC_OBJECTS=1 | ||
| + | export DISPLAY=:0 | ||
| + | cgminer \ | ||
| + | -o http://lc.ozco.in:9332/ -u funtoo.public -p p \ | ||
| + | -o http://bdfl.funtoo.org:9327/ -u funtoo.public -p p \ | ||
| + | --intensity 17 \ | ||
| + | --scrypt \ | ||
| + | --shaders 1536 --thread-concurrency 8000 -g 1 --worksize 256 \ | ||
| + | --auto-fan --temp-target 80 | ||
| + | </pre> | ||
| + | |||
| + | This script will start cgminer to connect to lc.ozco.in, but will automatically fall back to the funtoo.org p2pool if ozco.in is down. Intensity ranges from 1-20, with higher settings generally offering better hashrates. But if you get too close to 20, you will notice a slow down in interactive performance when using the X server. ssh performance will be unaffected. | ||
| + | |||
| + | Be sure to properly set the number of shaders on your card -- 1536 is for an unlocked Radeon HD 6950. Consult [https://github.com/ckolivas/cgminer/blob/master/SCRYPT-README SCRYPT-README] (look for the <tt>--shaders</tt> description) to view the correct shaders to use for your card. | ||
| + | |||
| + | === Start Mining === | ||
| + | |||
| + | Now make it executable, '''make sure X is running''', and start mining: | ||
| + | |||
| + | <console> | ||
| + | # ##i##chmod +x go.sh | ||
| + | # ##i##./go.sh | ||
| + | </console> | ||
| + | |||
| + | There are other cool things you can do with cgminer, such as overclocking your video card and ramping up the intensity to at or near 20 to dramatically increase hashrates. Happy mining, and if you are mining for Funtoo, thanks :) | ||
Revision as of 18:19, 30 October 2012
Litecoin mining is a fun and easy way that you can help support the Funtoo Linux project. Litecoin is a virtual cryptographic currency that is generated using CPUs and video card GPU computational power, and can be converted into a traditional currency like US dollars.
Typically, Litecoins are mined by pools of computers, and funtoo is part of the following pooled litecoin mining efforts
| pool | host | port | user | password | stats | review |
|---|---|---|---|---|---|---|
| Burnside's Litecoin Mining Pool | ltc.kattare.com | 9332 | funtoo.public | p | stats | very good PPNLS pool |
| OzCoin | lc.ozco.in | 9332 | funtoo.public | p | ozco.in stats | very good proportional pool |
| p2pool | bdfl.funtoo.org | 9327 | funtoo.public | p | N/A | lower performance but always available - use as backup only |
There are lots of different ways to mine Litecoins. You can use any of our pools above. You can also use your CPU or your graphics card. To see what different types of hardware can do, see the Litecoin Mining Hardware Comparison page. Note that many of these systems are overclocked so make note of the CPU and memory frequencies listed here.
Contents |
"Got Litecoins Already" Method
If you already have Litecoins that you want to donate to Funtoo Linux, you can send them to LgtcMbY5JYTQAGzdfJ9U83CPhspNkbJzym. Thanks!
Here's how to do it with litecoind:
# litecoind sendtoaddress LgtcMbY5JYTQAGzdfJ9U83CPhspNkbJzym 50
Be sure to let Daniel know that you sent some coin so that you can receive proper respect :)
CPU Mining
Here's how to get started and convert your idle CPU power into a contribution to the Funtoo Linux project.
The "miner" is the program that performs the computation to generate litecoins. It receives blocks from a server, which it performs computations on. Miners are designed to run continually in the background, where they use up idle CPU only, and will not impact the speed of your system. A significant contribution to Funtoo Linux is only realized when miners are run continually for days and weeks -- so running a miner for an hour or so is typically not effective.
Installation using Portage
This method will use CFLAGS from /etc/portage/make.conf. Note that -O2 seems to work much better than -O3.
# emerge pooler-cpuminer
Set up go.sh
Create the following go.sh script to start the miner:
#!/bin/bash threads=$(grep -c "^processor" /proc/cpuinfo) while true; do minerd --algo scrypt -s 45 --retry-pause 5 --threads $threads --url http://ltc.kattare.com:9332 --userpass funtoo.public:p done
Make it executable:
# chmod +x go.sh
Run go.sh
Run go.sh to start the miner.
# ./go.sh
The cpuminer will only use idle CPU and will not slow down your system. Modern systems will generate somewhere from 15 to 60 KHash/sec total, which will result in $10 to Funtoo Linux per month for a Core i7 system at current exchange rates, when run continually.
Keep those miners running and thanks for supporting Funtoo Linux!
GPU Mining
Some of the more hardcore individuals in the Funtoo community may want to use their graphics processor to mine litecoins. Modern graphics cards, particularly AMD (ATI) cards, can offer hashrates well above 100Khash/sec, even above 400Khash/sec for some cards. Daniel Robbins has a few Radeon HD 6950's that can generate in excess of 400Khash/sec each.
AMD (ATI) cards tend to work much better than NVIDIA for litecoin mining. Here's how to do GPU mining:
Prerequisites
First, X will need to be installed, and you will need to ensure all your video cards are defined in /etc/X11/xorg.conf. For AMD cards, the beta drivers -- ati-drivers-12.9_beta and ati-drivers-12.11_beta appears to work very well (12.10 did not offer very good OpenCL performance for me.) Ensure that full hardware acceleration is working and that ati OpenGL and amd OpenCL are selected via eselect. (This is probably how things are set up if you simply emerged ati-drivers.)
Install cgminer
First, enable the scrypt USE variable (important!). Now, emerge cgminer:
# USE="scrypt" emerge cgminer
Create cgminer script
Create a go.sh script that looks like this:
#!/bin/bash export GPU_MAX_ALLOC_PERCENT=100 export GPU_USE_SYNC_OBJECTS=1 export DISPLAY=:0 cgminer \ -o http://lc.ozco.in:9332/ -u funtoo.public -p p \ -o http://bdfl.funtoo.org:9327/ -u funtoo.public -p p \ --intensity 17 \ --scrypt \ --shaders 1536 --thread-concurrency 8000 -g 1 --worksize 256 \ --auto-fan --temp-target 80
This script will start cgminer to connect to lc.ozco.in, but will automatically fall back to the funtoo.org p2pool if ozco.in is down. Intensity ranges from 1-20, with higher settings generally offering better hashrates. But if you get too close to 20, you will notice a slow down in interactive performance when using the X server. ssh performance will be unaffected.
Be sure to properly set the number of shaders on your card -- 1536 is for an unlocked Radeon HD 6950. Consult SCRYPT-README (look for the --shaders description) to view the correct shaders to use for your card.
Start Mining
Now make it executable, make sure X is running, and start mining:
# chmod +x go.sh # ./go.sh
There are other cool things you can do with cgminer, such as overclocking your video card and ramping up the intensity to at or near 20 to dramatically increase hashrates. Happy mining, and if you are mining for Funtoo, thanks :)