Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- How to install fastcoind on Amazon EC2 Ubuntu 12.x x32/x64
- ## Make instance
- ## launch a t1.micro instance of ubuntu-precise-12.04-amd64-server-20131003
- >Launch Instance
- ## create a security group
- >Network & Security > Security Groups > Create Security Group
- ##open ports in the security group settings
- >port 22 (SSH)
- >port 9332 fastcoin rpc respectively
- ## create a keypair.pem file and save it
- >Network & Security > Key Pairs > Create Key Pair
- ## set file permissions on pem file
- chmod 400 keypair.pem
- ## log in using java ssh client or via ssh with key pair
- ssh -i keypair.pem ubuntu@serverIPADDRESS
- ## Make Swap
- sudo dd if=/dev/zero of=/swapfile1 bs=1024 count=524288
- sudo mkswap /swapfile1
- sudo chown root:root /swapfile1
- sudo chmod 0600 /swapfile1
- sudo swapon /swapfile1
- ## now edit your fstab
- sudo nano /etc/fstab
- ## apend the following
- /swapfile1 swap swap defaults 0 0
- ## check that you have swap with
- free -m
- ## update
- sudo apt-get update
- ## install dependencies
- sudo apt-get install build-essential libssl-dev libdb4.8-dev libdb4.8++-dev libboost-all-dev libdb++-dev git
- sudo apt-get install libminiupnpc-dev
- ## confirm y when prompted
- ## clone the lastest fastcoin source from github
- git clone https://github.com/fastcoinproject/fastcoin.git -b fastcoin-8.7.2
- ## upgrade
- sudo apt-get upgrade
- ## Make Fastcoin
- ## change directory to src
- cd fastcoin/src
- ## create the obj dir
- mkdir obj
- cd ..
- ## run make with the following arguments
- sudo make -j4 -f makefile.unix USE_UPNP=0 USE_IPV6=0
- ## copy fastcoind into the usr/bin folder
- sudo cp fastcoind /usr/bin/
- ## create a ".fastcoin" folder in your home directory
- mkdir ~/.fastcoin
- ## change directory to ~./fastcoin
- cd ~/.fastcoin
- ## create fastcoin.conf
- sudo nano fastcoin.conf
- server=1
- daemon=1
- rpcport=9527
- port=9526
- rpcallowip=127.0.0.1
- rpcallowip=yourIP
- rpcallowip=serverIP
- rpcconnect=127.0.0.1
- rpcconnect=yourIP
- rpcuser=yourusername
- rpcpassword=yourpassword
- addnode=188.126.8.14
- addnode=188.143.73.84
- addnode=190.191.141.145
- addnode=192.0.209.231
- addnode=192.241.183.7
- addnode=193.238.64.246
- addnode=198.84.250.234
- addnode=211.203.176.119
- ## download bootstrap.dat
- wget http://archive.org/download/fastcoin_bootstrap/bootstrap.dat.xz
- ## decompress the file
- xz -d bootstrap.dat.xz
- ## change to /usr/bin
- cd /usr/bin
- ## launch the fastcoin daemon
- ./fastcoind -dbcache=1000
- ## now run getinfo
- fastcoind getinfo
- ## periodicly run getinfo to monitor the "blocks" section
- ## if blocks fail to increase, simply stop the deamon
- fastcoind stop
- ## and restart
- ./fastcoind &
- ## if you download a copy of the blockchain, it is recommended to reindex
- ./fastcoind -reindex -dbcache=1000 &
- ## Setup P2Pool
- ## change to your home/user dir
- cd /home/username
- ## install dependencies
- sudo apt-get install python-dev python-zope.interface python-twisted python-twisted-web git screen
- sudo apt-get install python-rrdtool python-pygame python-scipy python-imaging
- ## clone p2pool
- sudo git clone https://github.com/m0gliE/p2pool.git
- ## change dir to litecoin_scrypt
- cd litecoin_scrypt
- ## setup install
- sudo python setup.py install
- ## change dir back to p2pool
- cd ..
- ## move web-static folder to web-static-old
- sudo mv web-static web-static-old
- ## clone extended frontend
- sudo git clone https://github.com/m0gliE/P2PoolExtendedFrontEnd.git web-static
- ## run p2pool command line (make your own edits)
- screen sudo python run_p2pool.py --net fastcoin --irc-announce --bitcoind-address 192.168.2.107 --bitcoind-rpc-port 9527 --bitcoind-p2p-port 9526 --give-author 0.5 username password
- ## exit screen (hold ctrl and hit a then d)
- ctrl + A D
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement