Author Topic: [GUIDE] How to quickly get Litecoin up and running on a Linux server  (Read 95810 times)

Offline xDexter

  • Newbie
  • *
  • Posts: 4
Re: [GUIDE] How to quickly get Litecoin up and running on a Linux server
« Reply #15 on: April 04, 2013, 07:14:50 PM »
Followed the guide to the letter, am getting this error:

EXCEPTION: N5boost16exception_detail10clone_implINS0_19error_info_injectorINS_15program_options14invalid_syntaxEEEEE
unrecognized line in 'chmod 600 ~/.litecoin/litecoin.conf'
litecoin in AppInit()

terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::program_options::invalid_syntax> >'
  what():  unrecognized line in 'chmod 600 ~/.litecoin/litecoin.conf'

----------------

My litecoin.conf file looks like this:

server=1
rpcallowip=127.0.0.1
rpcuser=***********
rpcpassword=**********
chmod 600 ~/.litecoin/litecoin.conf

I'm relatively new to linux, and I honestly have no idea what I'm doing wrong.  Could somebody please help?

Take out the line 'chmod 600 ~/.litecoin/litecoin.conf'

That is another command to run from the terminal to allow it so other users can't see your RPC settings.

Offline Laureate

  • Newbie
  • *
  • Posts: 2
Re: [GUIDE] How to quickly get Litecoin up and running on a Linux server
« Reply #16 on: April 07, 2013, 10:02:03 PM »
Hi all,
Im a total newbie here asking questions on his first post and not really fully understanding the whole litecoin mining thing yet, but here goes.
Ive followed the instructions word for word and have managed somehow to get the litecoin daemon running on my machine and am getting the info from the getinfo command.
My blocks count is now up to the current block count on http://explorer.litecoin.net/ but im unsure what to do next and have the following initial questions.
1.  as i understand it, i have a wallet on my PC, so do i need to create a wallet else where using a wallet service such as http://wallet.it.cx/
2. should I join a mining pool given that I understand they are under numerous attacks, or should I join a p2pool somewhere and how.
3. g2x3k posted a link to a recent blocklist http://blockchain.litecoin.net/litecoin/ but im unsure what should be done with this if anything?
4. in the original post, what available server programs work well with the daemon.
Sorry for the stupid questions but still trying to get my thick skull around these problems and will run the daemon overnite and see if I generate a litecoin, but I doubt it lol.
Cheers in advance..

Offline litecoinboy

  • Newbie
  • *
  • Posts: 4
Re: [GUIDE] How to quickly get Litecoin up and running on a Linux server
« Reply #17 on: April 08, 2013, 05:34:48 AM »
In this guide, you'll learn how to Obtain packages needed for compiling, Download the source code, how to actually Compile and install Litecoin, and also Configuring litecoin
This guide will be for Debian and *buntu distro's, so if you're using a redhat based distro such as fedora, or something like gentoo, you'll have to figure out the packages by yourself.

If you need any help, simply post in the thread, PM me on here/bitcointalk, or message me on Freenode IRC (I'm someguy123)

Thanks someguy123, that was a brilliant guide. I followed the instructions and it all worked.

Its been a hard task trying to find all the information needed to get litecoin running on ubuntu, theres information scattered around all over the place in many cases with bits missing. So its great to have a guide with all info in one place.


Offline SNAZ31

  • Newbie
  • *
  • Posts: 17
Re: [GUIDE] How to quickly get Litecoin up and running on a Linux server
« Reply #18 on: April 08, 2013, 09:56:52 AM »
Hi all,
Im a total newbie here asking questions on his first post and not really fully understanding the whole litecoin mining thing yet, but here goes.
Ive followed the instructions word for word and have managed somehow to get the litecoin daemon running on my machine and am getting the info from the getinfo command.
My blocks count is now up to the current block count on http://explorer.litecoin.net/ but im unsure what to do next and have the following initial questions.
1.  as i understand it, i have a wallet on my PC, so do i need to create a wallet else where using a wallet service such as http://wallet.it.cx/
2. should I join a mining pool given that I understand they are under numerous attacks, or should I join a p2pool somewhere and how.
3. g2x3k posted a link to a recent blocklist http://blockchain.litecoin.net/litecoin/ but im unsure what should be done with this if anything?
4. in the original post, what available server programs work well with the daemon.
Sorry for the stupid questions but still trying to get my thick skull around these problems and will run the daemon overnite and see if I generate a litecoin, but I doubt it lol.
Cheers in advance..

This please lol...

I am in the same boat and I have been trying for about 2 days to find out how to set litecoin up. I have pretty much tried everything to not much avail. Then I found this thread and it was a fairly straightforward process and so I thank the OP for that.

However, what now? lol...

It says we can now use this to join a pool etc, but how? That is the bit I have the most difficulty with! lol

If someone could please help us noobs out with this final step I would really appreciate it.

Until then I will struggle on and if I find out how to do it I will report back for the other user that is stuck.

Thanks guys/girls.

Offline SNAZ31

  • Newbie
  • *
  • Posts: 17
Re: [GUIDE] How to quickly get Litecoin up and running on a Linux server
« Reply #19 on: April 08, 2013, 10:29:09 AM »
Okay so on the site I'm using it says to make a cfg.json file, I have done that (i think) and I have filled in the relevant information and placed it in the file...

But it doesn't say where I must put the file... So I assumed in the json folder with all the other json stuff?

It doesn't seem to have done anything and how would I even know any way? I guess the worker would turn to active (this hasn't happened)...

I don't know, I'm stuck... If someone would be so kind as to offer a helping hand?

BTW I know I will not earn much from doing this it is more a proof of concept than anything else and to get me ready for when my 7970 arrives tomorrow... I know I will need a different set up then but at least I will have a head start on the basics.

Any way I'm pulling my hair out here, please save me as I am going grey already I don't need to be bald too! lol

EDIT: Editing as not to spam the thread too much...

Okay so I thought maybe I have to reboot the server through the terminal or something, as in stop the mining. I realized I don't even know how to do that!

So I thought maybe shutting down the terminal would do it but that doesn't seem to work either... When I went to reload it it said it is already running...

So how do I stop it??? Baring turning off the pc of course! lol

Dr, my brain hurts!!!

Edit : Now my guiminer/wallet will not load as it is already running, despite me rebooting the PC... Now it is just peeing me off! Grrrrrrrrrrrrrrrr... I suppose I could just delete the folder maybe but I would rather not do that...

Okay, time for a ciggy and a coffee and wiat for someone to respond I guess, I'm all out of ideas... :(

Edit: Now it is even worse because it says that it is running in terminal too but when I try to check it it says it cannot connect to server or something like that... So it appears it is not that one that is running... I don't know how to see what is running, and or how to turn it off...

Wall... meet head... lol
« Last Edit: April 08, 2013, 11:13:22 AM by SNAZ31 »

Offline SNAZ31

  • Newbie
  • *
  • Posts: 17
Re: [GUIDE] How to quickly get Litecoin up and running on a Linux server
« Reply #20 on: April 08, 2013, 11:48:54 AM »
SUCCESS... I went to one of the pools called pool-X.eu and I had already registered there... In the getting started section it had some code that I copied and pasted and then popped it in the terminal and it went through fine and began finding shares...

Still I think there are some problems though... When I was using p2pool last night (I don't think it synced properly) I was getting 1000 khash/s now with this new one I am getting like 17 KH/s (as it says on the site)... So something is wrong I guess or does that sound about right? Was the p2pool hash rate wrong?

That is pretty much my only question now... :) lol

Edit: No Ii lie! I have another one... Every now and then I get a 1/1 accepted with a percentage and then a (yay). Which is good I guess right? It is also reflecting on the website, so far I have like 7 shares... Firstly, what does that mean? What does a share equate to?

Also every now and then I get a (boooo) which I guess is baaaad... What causes this and is it a big problem?

Thanks in advance and really sorry to be such a pain!
« Last Edit: April 08, 2013, 11:54:05 AM by SNAZ31 »

Offline Laureate

  • Newbie
  • *
  • Posts: 2
Re: [GUIDE] How to quickly get Litecoin up and running on a Linux server
« Reply #21 on: April 08, 2013, 09:22:13 PM »
Snaz31, thanks for the reply and comments,
when i get sometime this week, ill try what youve done and setup the json.cfg file with my particulars. I'd be grateful if you'd let me know if you have any further success as you seem to be one step further ahead than me...i was contemplating going back to windows 7 but really dont want to but there seems to be better guides for setting up litecoin mining for this. Also got a 7950 on the way, so should hopefully be mining later on in the week. Cheers for now.

Offline jhdscript

  • Newbie
  • *
  • Posts: 19
    • Litecoin Casino
Re: [GUIDE] How to quickly get Litecoin up and running on a Linux server
« Reply #22 on: April 12, 2013, 09:34:29 PM »
I do it few weeks ago but now litecoind says me i need to update it. How can i do this please ?

Offline jhdscript

  • Newbie
  • *
  • Posts: 19
    • Litecoin Casino
Re: [GUIDE] How to quickly get Litecoin up and running on a Linux server
« Reply #23 on: April 13, 2013, 08:22:59 AM »
already looking to update it

Offline jhdscript

  • Newbie
  • *
  • Posts: 19
    • Litecoin Casino
Re: [GUIDE] How to quickly get Litecoin up and running on a Linux server
« Reply #24 on: April 14, 2013, 02:11:04 PM »
any idea ?

Offline sengeezer

  • Newbie
  • *
  • Posts: 2
Re: [GUIDE] How to quickly get Litecoin up and running on a Linux server
« Reply #25 on: April 14, 2013, 04:48:03 PM »
I have followed your guide and can't seem to compile litecoind. All packages noted in OP are installed and up to date.

I am trying to compile on a Ubuntu 12.04 VPS with 8 cores.

The chain of failures always starts with this:
Code: [Select]
main.cpp: In function 'FILE* AppendBlockFile(unsigned int&)':
main.cpp:1956:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
g++: internal compiler error: Killed (program cc1plus)

The full stacktrace is:
Code: [Select]
g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DUSE_IPV6 -DBOOST_SPIRIT_THREADSAFE -I/home/albertin/downloads/litecoin/src -I/home/albertin/downloads/litecoin/src/obj -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2  -MMD -MF obj/walletdb.d -o obj/walletdb.o walletdb.cpp
main.cpp: In function 'FILE* AppendBlockFile(unsigned int&)':
main.cpp:1956:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
make: *** [obj/rpcrawtransaction.o] Error 4
make: *** Waiting for unfinished jobs....
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
make: *** [obj/init.o] Error 4
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
make: *** [obj/wallet.o] Error 4
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
make: *** [obj/walletdb.o] Error 4
main.cpp: At global scope:
main.cpp:3303:21: warning: 'unsigned int ScanHash_CryptoPP(char*, char*, char*, char*, unsigned int&)' defined but not used [-Wunused-function]

Offline jhdscript

  • Newbie
  • *
  • Posts: 19
    • Litecoin Casino
Re: [GUIDE] How to quickly get Litecoin up and running on a Linux server
« Reply #26 on: April 14, 2013, 04:52:02 PM »
retry install prerequistes

Offline sengeezer

  • Newbie
  • *
  • Posts: 2
Re: [GUIDE] How to quickly get Litecoin up and running on a Linux server
« Reply #27 on: April 14, 2013, 05:17:09 PM »
retry install prerequistes

No luck. All packages are at their newest version.

Offline vimalsin

  • Newbie
  • *
  • Posts: 17
Re: [GUIDE] How to quickly get Litecoin up and running on a Linux server
« Reply #28 on: April 14, 2013, 06:39:59 PM »
Many thanks for this guide "Someguy123", I followed all the instructions word to word in AMD Opteron smallest instance (shared core -768MB RAM) and received the error:
"g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DUSE_IPV6 -DBOOST_SPIRIT_THREADSAFE -I/home/azureuser/litecoin/src -I/home/azureuser/litecoin/src/obj -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2  -MMD -MF obj/bitcoinrpc.d -o obj/bitcoinrpc.o bitcoinrpc.cpp
virtual memory exhausted: Cannot allocate memory
make: *** [obj/bitcoinrpc.o] Error 1"

is there any way to install and mine litecoin within this hardware specs???

Offline Brian

  • Newbie
  • *
  • Posts: 1
    • brian.baligad.name
Re: [GUIDE] How to quickly get Litecoin up and running on a Linux server
« Reply #29 on: April 15, 2013, 04:49:48 AM »
A quick note on your guide regarding the compile options:
Code: [Select]
make -j4 -f makefile.unix USE_UPNP=According to the current readme, valid options for USE_UPNP are:
Quote
USE_UPNP=-    No UPnP support - miniupnp not required
USE_UPNP=0    (the default) UPnP support turned off by default at runtime
USE_UPNP=1    UPnP support turned on by default at runtime

I recommend using the appropriate value.