- Download Litecoin as normal, probably not necessary if you have it installed already. Might as well leave it closed for right now.
- Click start, type %appdata% and hit enter.
- Open the Litecoin folder.
- Create a new file called litecoin.conf. If you want to make your life easier, download this file (right click->save as..) which is exactly that. Or you can open up notepad and paste this:
- Now you need to launch Litecoin. I think we can do this multiple ways. The surefire way is to open up a command window (click start, type cmd, hit enter) and navigate to your Litecoin folder. A really quick way to do this is to start navigating to the directory in windows explorer, and once you get inside the Program Files (x86) folder and you see the Litecoin folder, hold shift and right click on that folder and select "open a command window here", this will save you the hassle of navigating there. If you just open the command window right from the desktop, you have to go type:
cd p (hit tab until Program Files (x86) shows up, then hit enter) (if you are using a 32-bit OS, you will just go to the regular Program Files folder)
and then Litecoin will launch with the server flag on. You're all done!
But I'm pretty sure we can achieve launching Litecoin a more efficient way.
If you have a shortcut to Litecoin somewhere, you can add the -server flag to it. Right click on your shortcut, select properties, and then under the shortcut tab, add -server to the target AFTER the quotes. For example, mine is set to "C:\Program Files (x86)\Litecoin\litecoin-qt.exe" -server
Isn't that so much easier? But I wanted to type out both ways just for the sake of flying cows.
- Now you can connect your miners to mine for your Litecoin wallet. Just enter the IP of the computer hosting the wallet as the server on your miners, and put the username and password as the ones you set in your conf (also note the port number you set there as well). If you are using cgminer (with 3 Radeon 58xx GPUs), a good conf would look like this:
and save the file, be sure to change notepad's save output to 'all file types' and have litecoin.conf entered there. litecoin.conf.txt will not work! Also, I would recommend using notepad++ anyway.
Take note of the rpcallowip= line, that is the IP which can connect to the Litecoin wallet. If you are going to connect from external machines in your network, you need to specify their IP's. You are allowed multiple of these lines, so something like:
Will work. I have tried using the asterik in there as a wildcard, and it worked. The username and password in the conf is self-explanatory, but if you want to connect your miners to something creative, now is the chance.
"pools" : [
"url" : "http://192.168.0.10:9332/",
"user" : "username",
"pass" : "password"
"url" : "http://litecoinpool.org:9332/",
"user" : "maplesyrupghost.user",
"pass" : "pass"
"url" : "http://lc.ozco.in:9332/",
"user" : "maplesyrupghost.user",
"pass" : "pass"
"intensity" : "15,15,15",
"worksize" : "256,256,256",
"kernel" : "scrypt,scrypt,scrypt",
"gpu-engine" : "620-725,620-725,620-725",
"gpu-fan" : "20-85,20-85,20-85",
"gpu-memclock" : "1000,1000,1000",
"gpu-memdiff" : "0,0,0",
"gpu-powertune" : "0,0,0",
"gpu-vddc" : "0.000,0.000,0.000",
"lookup-gap" : "2,2,2",
"shaders" : "1440,1440,1440",
"temp-cutoff" : "95,95,95",
"temp-overheat" : "85,85,85",
"temp-target" : "82,82,82",
"api-listen" : true,
"api-port" : "4028",
"expiry" : "120",
"gpu-dyninterval" : "7",
"gpu-platform" : "0",
"gpu-threads" : "1",
"log" : "5",
"queue" : "1",
"retry-pause" : "5",
"scan-time" : "60",
"scrypt" : true,
"temp-hysteresis" : "3",
"shares" : "0",
"failover-only" : true,
"kernel-path" : "/usr/local/bin"
I would strongly suggest setting multiple pools on your conf like this. See the failover-only flag there? That locks cgminer to mine for your solo pool and that pool only, but it will still get the longpoll from the pool. It helps keep cgminer up to date as the new blocks come in. You will see "LONGPOLL DETECTED NEW BLOCK ON NETWORK" constantly, and hopefully those new blocks are yours! And if your solo miner gets out of wack, it will fall back on the pools specified.
If you start the mining and it's not connecting, you might not have the full blockchain. When I set it up the first time, I was frustrated at how long it was taking (doesn't help when you start a project at 2AM either) so I went to bed. I had the pools as a failover so it was mining on them and once the Litecoin wallet caught up with the blockchain, it took over and in the morning when I woke up, I had a block already!
Want to make sure your computer is listening to that port?
Open a command window and type netstat -a | find "LISTENING", it will take a minute to find them all, and then it will report them to you. If you see the port that you set in litecoin.conf, chances are it's going to work!
Happy mining! Found this handy? Donate LTC to BitcoinTrading.com at this address: LcYAMfZpVfDeNEMxU2n45snWKzznG3c7on and BTC to 1HHMqvxXp6n5RTTPCwh5tcTqusBEhMoPcP