Hello all,
I have been lurking here for a while, I am joining this forum because I decided to get more involved with the crypto-currency movement. It might be one of the biggest revloution that we will see in our lifetime.
I would like to offer something useful as my first post. A dozen of alternate cryptocurrencies pops up everyday. Some doesn't even come with a wallet. Here is a quick guide to compile your own wallet on Ubuntu, we will be using Litecoin as an example, but it would work with most other scrypt-based coin if you have the source files.
1.) OS Requirement
Make sure you have Ubuntu 12.04 or up (both Desktop and server version are fine, but you probably won't need this guide if you use the server version)
2.) Yes, we need to use Terminal =)
http://askubuntu.com/questions/38162/what-is-a-terminal-and-how-do-i-open-and-use-itor
http://www.youtube.com/watch?v=7Kvgbu61jFg3.) Compile the Litecoin Wallet
Type in or copy/paste all these commands in your terminal to compile litecoind, the Litecoin Daemon (If you are new to the terminal commands, just make sure you press enter after each line of command. The sudo commands will require your authentication)
=== Beginning of Commands ===
sudo apt-get -y update
sudo apt-get -y install git
cd ~
sudo apt-get -y install build-essential libboost-all-dev libcurl4-openssl-dev libdb5.1-dev libdb5.1++-dev
sudo git clone git://github.com/litecoin-project/litecoin.git
cd litecoin/src
sudo make -f makefile.unix USE_UPNP=-
sudo cp litecoind /usr/bin
litecoind
cd ~/.litecoin/
sudo touch litecoin.conf
sudo chown `whoami`:`whoami` litecoin.conf
sudo chmod 600 litecoin.conf
sudo echo 'server=1' >> litecoin.conf
sudo echo 'daemon=1' >> litecoin.conf
sudo echo 'rpcuser=username' >> litecoin.conf
sudo echo 'rpcpassword=password' >> litecoin.conf
sudo echo 'rpcport=9332' >> litecoin.conf
=== End of Commands ===
After the terminal executed all commands, you will see the output below:
server=1
daemon=1
rpcuser=username
rpcpassword=password
rpcport=9332
Feel free to change the rpcuser and rpcpassword here, but it doesn't really matter because litecoind will only listen to your localhost by default.
4.) Getting the Litecoin Receiving Address out of Litecoin Daemon (litecoind)
a.) First we want to make sure litecoind is running first:
=== Beginning of Commands ===
cd ~
litecoind
=== End of Commands ===
b.) Get your Litecoin Receiving Address:
=== Beginning of Commands ===
cd ~
litecoind listreceivedbyaddress 0 true
=== End of Commands ===
You might get a return of "error: couldn't connect to server", that is because your litecoind is not connected to the network yet. Wait for a couple Minutes and repeat the "litecoind listreceivedbyaddress 0 true" command above again you will eventually see something like:
// Keep in mind this is from my litecoind, your returned info will be different
{
"address" : "Lg6k48xansEUEenA24Zr6Eiru5qLupWFVx",
"account" : "",
"amount" : 0.00000000,
"confirmations" : 0,
"txid" : [
]
}
Congrats! You can now receive Litecoin with your compiled wallet. In this case, Lg6k48xansEUEenA24Zr6Eiru5qLupWFVx is my first Litecoin receiving address.
IF you want to learn more about how to use litecoind (Litecoin Daemon), you should look at the Origina Bitcoin API call list:
https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_listBasically Litecoin and all other alt-coins follow that original Bitcoin API_calls_list
Hope this help someone out =)