I wish ubuntu would enable ssh by default! What a hassle connecting a monitor and keyboard just to get ssh going.
/lazy
Thanks Wedgy2k!
A BIG thanks to NoodleDoodle, smooth & saddam for helping me.
RPi2
Download ubuntu for RPi2 2015-04-06-ubuntu-trusty.zip
Follow these instructions for getting UBUNTU on to your SSD or USB RaspiPress remember you're installing ubuntu not wheezy!
At this point I get the RPi2 to a point that I can disconnect the monitor, keyboard etc
I also MAC reserved the RPi2's IP Address via DHCP (On your router or DHCP server, so it has a consistent IP Address)
So a few tasks are required first
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install openssh-server
sudo halt -p
This powers it off so you can disconnect monitor, keyboard etc and SSH in from where you would normally
power up and ssh on to your RPi2
ssh [email protected]
CHANGE THE DEFAULT PASSWORD
bubtu@ububtu:~$ passwd
Changing password for ubuntu.
(current) UNIX password:
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
sudo apt-get install dphys-swapfile
I've left the swap settings as default
sudo apt-get install screen
Screen is great, you can disconnect from the session and know it's still running fine Ctrl+Alt+d
Thats the preparing of the RasPi2 with ubuntu complete
You now need to install all the dependencies that bitmonero requires
sudo apt-get install git vim libboost1.55-all-dev build-essential doxygen libevent-dev libunbound-dev miniupnpc liblmdb-dev cmake libdb++-dev
git clone https://github.com/monero-project/bitmonero.git bitmonero
then we compile - took just under 2 hours for me.
cd
cd bitmonero
make -j2 release-arm7
The -j2 is to use the extra cores from your RPi2 - I've seen some bitcoin core instructions using -j4 for compiling
Once done you're ready to launch
cd build/release/bin
./bitmonerod --db-type berkeley
This took me about 36 hours to sync the blockchain
But it works a treat :-)
Syntax for starting bitmonero as a node
./bitmonerod --db-type=berkeley --rpc-bind-ip 0.0.0.0 --rpc-bind-port 5012
Syntax for starting simmplewallet to your new remote node
./simplewallet --daemon-address 192.168.0.XX:5012 --wallet-file ./wallet.bin
I'll update the instructions to say SSD / USB - But yes I fried 3 SD Cards and killed one 32gb USB stick before NoodleDoodle's git hub commit of the specific Arm Build. Having your root partition on a USB makes it a lot quicker, having your root partition on an SSD makes it lightning. I may just migrate it now its working to USB so I can re-use my SSD for something else.
Thank you for this precise tutorial. It worked very good so far for me. However, you are writing that it took you 32hours to sync, whereas my RasPi2 is syncing for almost 48 hours now and still tells me that it is 352 days behind (started with 397 behind or so). Any ideas?
Hi Dufkin, thats why I bit the bullet and purchased the SSD - If you see my other thread, I've been trying to do this since April, so I just wanted it to work and NoodleDoodle's latest commit done the trick. I did use the bandwidth switches to hurry it up a bit (but dependeds on who you share your internet connections with)
--limit-rate-down 12288 --limit-rate-up 2048 --limit-rate 14336
post deleted, due to smooth's correction.
post deleted, due to smooth's correction.
Hi jml390 - Apologies for the delay in response.
Yes it did take about 32 hours for me to sync. I have a 40Mbps internet connect, My RPI2 is built exactly as above using a Verbatim SSD for the OS and DATA partition for my RPI2. See in the previous answer I did crank up the --limit-rate-down 12288 --limit-rate-up 2048 --limit-rate 14336 to force it to download the blockchain quicker.
My Launch syntax looks like :-
./bitmonerod --db-type=berkeley --rpc-bind-ip 0.0.0.0 --rpc-bind-port 5012 --limit-rate-down 12288 --limit-rate-up 2048 --limit-rate 14336
See my backup by SSH post so you can ensure you save the blockchain, if you have a disaster (This is for my MAC - I guess RoboCopy will work for Windows) you don't have t start again and have a copy of your berkeley folder. backup link