How to Install a Gridcoin Wallet on a Raspberry Pi

in #gridcoin7 years ago (edited)

Things Needed:

  1. One Raspberry Pi
  2. A SD/Micro SD card with Raspbian/Raspberry Pi OS or NOOBS installed on it

Here are the updated steps:

  1. open the terminal (ctrl-alt-t will open it)

  2. run cat /etc/os-release and look for (stretch) or (buster). If you saw (jessie) or (wheezy) this won't currently work for you, but you can try and ask for help on one of the gridcoin community platforms listed on https://gridcoin.us

  3. go to https://github.com/gridcoin-community/Gridcoin-Research/releases/latest and scroll to where it says assets

  4. If you want the graphical version, download the file with gridcoinresearch-qt andstretch or buster (according to which one you saw in step 1) somewhere in there, and then ending with armhf.deb

  5. If you want a headless version (using only the terminal), download the file with gridcoinresarchd at the start and stretch or buster (according to which one you saw in step 1) somewhere in there, and ending with armhf.deb

  6. transfer the file to your raspberry pi (or download it on your raspberry pi) and move the file to the desktop

  7. look at the file name and modify this command accordingly, sudo apt-get install -fy /home/pi/Desktop/[FILENAME] if that fails try the running following:

    sudo dpkg -i /home/pi/Desktop/[FILENAME] (this will fail most likely, but run it anyway because it will be needed to get missing dependencies)

    sudo apt-get -f install(install missing dependencies)

    then run sudo dpkg -i /home/pi/Desktop/[FILENAME] again to install it now

Setup for the Gridcoin Wallet with Graphics:

run gridcoinresearch whenever you want to run the gridcoin wallet
when you first run it, it will create all the configuration files necessary

Setup for the Headless Gridcoin Wallet:

Run the following commands:
mkdir ~/.GridcoinResearch
sudo nano ~/.GridcoinResearch/gridcoinresearch.conf (use ctrl-x to exit)
Here is a recommenced configuration to enter (modify accordingly):
email= enter your boinc email
addnode=addnode-us-central.cycy.me
addnode=ec2-3-81-39-58.compute-1.amazonaws.com
addnode=gridcoin.ddns.net
addnode=seeds.gridcoin.ifoggz-network.xyz
addnode=seed.gridcoin.pl
addnode=www.grcpool.com
rpcallowip=127.0.0.1
rpcuser=enter something long (you don't have to remember this)
rpcpassword=enter something long (you don't have to remember this)
for more advanced configuration options click here

then run gridcoinresearchd whenever you want to start the wallet

If you have any issues:

Try going to any of the platforms listed on the Community tab on gridcoin.us and ask for help

UPDATE 2:
chat.gridcoin.io has been taken down and some other edits have been made

UPDATE 3: Seems that one of the commands for installing doesn't always worked. Mentions an alternative and made other edits

~~OlD UPDATE: ~~
Here are the updated steps:
1) run cat /etc/os-release and look for (stretch). If you saw (jessie) or (wheezy) this won't currently work for you, but you can try following step two and asking for help there.
2) go to chat.gridcoin.io, and register an account
3) Make sure you are on "#general" and click on the paperclip icon that should say "Files List" when hovered over
4) a) If you want a graphical user interface, download the file with gridcoinresarch-qt at the start and stretch somewhere in there, ending with armhf
b) If you want a headless version (using only the terminal), download the file with gridcoinresarchd at the start and stretch somewhere in there, ending with armhf
5) transfer the file to your raspberry pi (or download it on your raspberry pi) and move the file to the desktop
6) look at the file name and modify this command accordingly, sudo apt-get install -fy /home/pi/Desktop/[FILENAME]

Setup for the Gridcoin Wallet with Graphics:

rungridcoinresearch` whenever you want to run the gridcoin wallet
when you first run it, it will create all the configuration files necessary

Setup for the Headless Gridcoin Wallet:

Run the following commands:
mkdir~/.GridcoinResearch
sudo nano ~/.GridcoinResearch/gridcoinresearch.conf
Here is a recommenced configuration to enter:
email= enter your boinc email
addnode=node.gridcoin.us
rpcallowip=127.0.0.1
rpcuser=enter something long (you don't have to remember this)
rpcpassword=enter something long (you don't have to remember this)
for more advanced configuration options click here

then run gridcoinresearchd whenever you want to start the wallet

If you have any issues:

Try going to any of the platforms listed on the Community tab on gridcoin.us and ask for help

OLD ARTICLE:
Now open up the terminal (Ctrl-alt-t with a keyboard) or connect via ssh

Step One: Installing Libraries

Run the following commands:
wget http://launchpadlibrarian.net/118496707/libminiupnpc8_1.6-3ubuntu2_armhf.deb
sudo dpkg -i libminiupnpc8_1.6-3ubuntu2_armhf.deb
sudo apt-get install software-properties-common -y
sudo apt-get install -f

Step Two: Adding Repositories

Run the command:
sudo nano /etc/apt/sources.list.d/gridcoin-stable.list

Type in the following into two lines

deb http://ppa.launchpad.net/gridcoin/gridcoin-stable/ubuntu trusty main
deb-src http://ppa.launchpad.net/gridcoin/gridcoin-stable/ubuntu trusty main

now press Ctrl-x then press y and hit enter

Step Three: Updating List of Repositories

Run the following commands:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys DBB231E7B333BDB6F6CCA46BD56E6F37B99D3486

sudo apt-get update

Step Four: Installing the Gridcoin Wallet

Run the following commands depending on what you need:
sudo apt-get install gridcoinresearch-qt -y for using a graphical interface
sudo apt-get install gridcoinresearchd -y for running without a display (headless)

Setup for the Gridcoin Wallet with Graphics

run sudo gridcoinresearch whenever you want to run the gridcoin wallet
when you first run it, it will create all the configuration files necessary

Setup for the Headless Gridcoin Wallet:

Run the following commands:
mkdir~/.GridcoinResearch
sudo nano ~/.GridcoinResearch/gridcoinresearch.conf
Here is a recommended configuration to enter:
email= enter your boinc email
addnode=node.gridcoin.us
rpcallowip=127.0.0.1
``rpcuser=enter something long (you don't have to remember this)~~ ~~rpcpassword=`enter something long (you don't have to remember this)
for more advance configuration options click here

then run sudo gridcoinresearchd whenever you want to start it

-This was tested on a raspberry pi 2B with raspbian jessie

Sources:

http://wiki.gridcoin.us/Linux_Downloads_(pre-compiled)

https://launchpad.net/~gridcoin/+archive/ubuntu/gridcoin-stable

http://wiki.gridcoin.us/Gridcoinresearch_config_file

https://www.raspberrypi.org/downloads/raspbian

https://www.raspberrypi.org/downloads/noobs

Sort:  

Great post! i had some issues getting this to work on raspian stretch. As others reported i too had problems with libboost1.55. I did not find any solution in the comments here. What solved the issue for me was to add the xenial instead of the trusty packages.

so change this:

deb http://ppa.launchpad.net/gridcoin/gridcoin-stable/ubuntu trusty main
deb-src http://ppa.launchpad.net/gridcoin/gridcoin-stable/ubuntu trusty main

to:

deb http://ppa.launchpad.net/gridcoin/gridcoin-stable/ubuntu xenial main
deb-src http://ppa.launchpad.net/gridcoin/gridcoin-stable/ubuntu xenial main

in /etc/apt/sources.list.d/gridcoin-stable.list

Thank you for sharing this! I appreciate that!

Good stuff! I want to turn a armbian board into a wallet like this. Would the process be the same? Im using a banana pi m1 cortex A20 board. Would also install reddcoin, peercoin and maybe others!

I assume it would work similarly, but it may need different libraries installed. Other than that my only concern is that the Banana Pi doesn't have a lot of RAM.

This comment isn't needed anymore

Editing can now be done on Steem, look at the post above, it should be up to date now.

Congratulations @roboticmind! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

You published your First Post
You got a First Vote
You made your First Comment

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here

If you no longer want to receive notifications, reply to this comment with the word STOP

By upvoting this notification, you can help all Steemit users. Learn how here!

Does this still work? I wanted to dedicate one of my pi's for my gridcoin wallet, but I get an error when I try to run the following:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys DBB231E7B333BDB6F6CCA46BD56E6F37B99D3486

Sorry for the late reply @beergeekgamer. Could you show me what your error was? What version of Raspbian are you running?

Hi Roboticmind,

I have stumbled upon your post and decided to join the community as I have been looking at doing this with my Pi3. I have followed the steps and like Beergeekgamer I have got stuck at the same point. When i run:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys DBB231E7B333BDB6F6CCA46BD56E6F37B99D3486

I get an error message:

Executing: /tmp/apt-key-gpghome.9cn8jIOfbI/gpg.1.sh --keyserver keyserver.ubuntu.com:80 --recv-keys DBB231E7B333BDB6F6CCA46BD56E6F37B99D3486
gpg: failed to start the dirmngr '/usr/bin/dirmngr': No such file or directory
gpg: connecting dirmngr at '/tmp/apt-key-gpghome.9cn8jIOfbI/S.dirmngr' failed: No such file or directory
gpg: keyserver receive failed: No dirmngr

I have followed everything up to the point and got no errors, all seemed to go ok. I have got a clean install of Raspbian on a pi3 that is fully updated (as of last night) and the only other change I have made so far is to increase the swap file size.

I would appreciate any thought you have on what going wrong. Thanks in advance!

@bigd87 from what I found testing,

I would try running the following command:
sudo apt-get install dirmngr -y

Then try running the command:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys DBB231E7B333BDB6F6CCA46BD56E6F37B99D3486
again

Let me know if that works

Also, Welcome to the Steem, Gridcoin, and cryptocurrency community!

Is that Raspbian Jessie or Stretch, I didnt get much time to experiment but I have found a few problems with Stretch on another coin I self compile. Try Jessie if you didnt already https://downloads.raspberrypi.org/raspbian_lite/images/

do you know how to get other wallets on the rasberrypi

@kanedizzle08 There is no real standard way unfortunately. It depends on the wallet and other factors

I would love to have my Pi be a litecoin wallet

@kanedizzle08 I found someone else's guide for a litecoin wallet
http://raspnode.com/diyLitecoin.html
Tell me if it works for you

Hi @roboticmind ,
I'm getting the following error after I write "sudo apt-get install gridcoinresearch-qt -y". I'd be really happy if you can help me for this issue:

"Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
gridcoinresearch-qt : Depends: libboost-filesystem1.55.0 but it is not installable
Depends: libboost-program-options1.55.0 but it is not installable
Depends: libboost-system1.55.0 but it is not installable
Depends: libboost-thread1.55.0 but it is not installable
Depends: libssl1.0.0 (>= 1.0.1) but it is not installable
Depends: libzip2 (>= 0.10) but it is not installable
E: Unable to correct problems, you have held broken packages."

@confuest,

Try running these commands again:
wget http://launchpadlibrarian.net/118496707/libminiupnpc8_1.6-3ubuntu2_armhf.deb
sudo dpkg -i libminiupnpc8_1.6-3ubuntu2_armhf.deb
sudo apt-get install software-properties-common -y
sudo apt-get install -f

Then run this command:
sudo apt-get install gridcoinresearch-qt -y -f

Let me know if that works!

@roboticmind

I tried it at least four times but unfortunately I'm getting the same error.

@confuest,

Run this command and tell me what the output is:
cat /etc/*-release

This will help in trying to understand your problem

@roboticmind , the output is below

PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

@confuest
Try running these commands:
sudo apt-get install libboost-all-dev -y
sudo apt-get install libssl1.0.2

wget http://ftp.us.debian.org/debian/pool/main/libz/libzip/libzip2_0.11.2-1.2_armhf.deb (all one line)

sudo dpkg -i libzip2_0.11.2-1.2_armhf.deb

Then run the command:
sudo apt-get install gridcoinresearch-qt -y

@roboticmind
For the libssl command it returns the output below:
"Reading package lists... Done
Building dependency tree
Reading state information... Done
libssl1.0.2 is already the newest version (1.0.2l-2).
0 upgraded, 0 newly installed, 0 to remove and 37 not upgraded."

AND at the end after typing "sudo apt-get install gridcoinresearch-qt -y" I got the output below:

"The following packages have unmet dependencies:
gridcoinresearch-qt : Depends: libboost-filesystem1.55.0 but it is not installable
Depends: libboost-program-options1.55.0 but it is not installable
Depends: libboost-system1.55.0 but it is not installable
Depends: libboost-thread1.55.0 but it is not installable
Depends: libssl1.0.0 (>= 1.0.1) but it is not installable
E: Unable to correct problems, you have held broken packages."

Hi everyone.

Is there any update about this?

There is no easy way to achieve this. Reps canet be added...

Any info much appreciatted¡

Javi

Sorry for the late reply, I've been away from steem for a while and only just recently am I able to update the article. I've now updated the article, follow the updated steps.

Thx¡

I finally managed but I decided not to run it in my PI as it makes is useless: It uses almost all RAM (no sense)...