Tweakin the Pi…OKCash

It’s strange how a minor irritation can transform into a major bugbear – and so it goes.
Rokos version 8 on my raspberry pi(2 model B 1Gb) does not keep time and I find myself manually adjusting the settings…irritating…..sometimes I wonder if I am ever so slightly autistic.

From settings select Time and Date

Unlock and select Keep synchronized with Internet servers which will result in a request to install NTP


and then select the time zone

and lock

on reboot the Pi will magically reproduce the correct time.


select Settings and go to Options, tick ‘detach databases at shutdown’ and Apply

select Settings and go to change passphrase

Unless you have an exceptional memory that can remember a random 10 character password or a random selection of seed words then a good option in which to store your passphrase and other passwords is Keepass. I know it doesn’t get crazier than this…..a master password to unlock all your other passwords!

(It works for me đŸ™‚

In order to install KeePassX first of all update the Pi

Type sudo apt-get update in Terminal and press Enter

and install keepassx

Type sudo apt-get install keepassx in Terminal and press Enter.

From the main menu Keepass will be installed under accessories



Moving OKcash wallet from Windows to a Raspberry Pi

First things first: build OKcash on the Raspberry Pi using the Rokos installation

Download latest rokos version – in this case version 8 – download the checksum text file to verify the download. Check the hash using an online hash calculator such as the site listed below

Compare the results with results contained in the text file

Extract the image file. The .rar file expands from 2.3Gb to a 5.9Gb .img file

If you have problems extracting the rar file with Xarchiver and get this cryptic error :-

An error occurred! Please check the ‘Store Archiver Output’ option to see it.

Try installing unrar

# apt-get install unrar

and extract the file using the following command

# unrar e <filename>

Burn image file to the SDcard. For Linux users there is an excellent product from called Etcher which can be downloaded from

It also has versions for Windows and MacOs

The only part of the SDcard useable at the moment is the size of the image file, the rest of the SDcard will have several Gb of unallocated space depending on the size of your SDcard. Resize the active partition to take full advantage of the whole SDcard space. For Linux users Gparted is the easiest utility.

Next insert the SD card into your Raspberry Pi device and switch on the power. (password is ‘rokos’)At this stage it is prudent (though not essential) to update your system and change the password, this can be done on the Raspberry Pi by using ‘Software updater’ from the system menu option. If you are unsure how to change your password here is a useful guide:-

Quite often software updater will fail with the following error message

Software Updater does not have enough disk space on the /boot drive. 

If this occurs the easiest solution, (although not the quickest) is to use Gparted ‘move’ the ext partition and ‘resize’ the boot partition

After successfully booting the Raspberry Pi navigate to the following directory


The following script will bootstrap the latest OKcash blockchain to your SDcard and create an empty wallet


USB stick

There are good reasons to keep the blockchain and wallet on a USB stick. If you only have a 8Gb SDcard there is not much room for the blockchain to grow. Even if you have a larger SDcard to future proof your node and keep the system on ‘auto-pilot’ it is better to keep system and application files separate from data files. Additionally the separation makes housekeeping procedures easier to implement.

Automount will place your USB stick in the location below


The following configuration statement needs to be added to okcash.conf (use Mouspad or something similar)


And the files from the “/home/pi/.okcash” directory need to be copied to your USB stick

so that when OKcash is launched it will use your USB as the default directory for the wallet and blockchain.

Syncing the blockchain

The bootstrap will contain 90%+ of the total blockchain, at this stage the OKcash wallet still needs to sync up to the network. This will probably take about 3 to 4 hours.

Once the blockchain is in sync your Windows OKcash wallet can be copied onto your USB stick.

“wallet.dat” can be found in the following directory on Windows systems:-


by default this looks something like C:\Users\username\AppData\Roaming\OKCash

Note that “AppData” is an hidden folder

Before relying exclusively on your Raspberry Pi installation take your time to test a few transactions, ‘soak’ test the installation for at least a few days and make a backup of your USB stick.

Note your Raspberry Pi will locate your USB stick on reboot but will NOT mount the USB until you manually access it. Failure to mount the USB stick before loading OKCash can result in a corrupt blockchain.

Note also that on my Raspberry Pi Firefox would not load; if this is the case the Midori browser can be installed using the following in Terminal

sudo apt-get install midori

OKCash donations accepted here:-