Linux Live with Blockchain on different USB, Hard Drive or Location

Many people ask me if they can open their wallet (Litecoin-Qt or Bitcoin-Qt client etc) within Linux Live Ubuntu without having to download the whole blockchain each time. So here is a how-to guide for setting up your wallet in a secure environment without having to wait for the blockchain to download.

First off, if you already have a copy of the blockchain, copy it to a folder called ‘litecoin‘ on a Hard Drive or USB stick. See my guide on how to copy the blockchain  which shows how to do this. Note, it does not have to be up-to-date. If you’re starting from scratch, then you can just create a folder called ‘litecoin‘ on a hard disk or USB storage device.

Next, you’ll need to connect the hard drive or USB device to the computer you want to use for this exercise and boot into Linux Live Ubuntu. See my post on how to do to Run Linux Live Ubuntu.

Follow all the steps below in order to set this system up initially. From then on you only have to complete some of the steps each time you want to use your wallet (shown at the end).

Step 1. Run Ubuntu Live

I’m assuming you have already copied the blockchain onto a hard drive or USB device and connected them, if not,  please read above first.

Step 2. Install some required files

You need the Qt4 run-time libraries to run Litecoin-Qt. On Debian or Ubuntu: Open the terminal window and run:

sudo apt-get install libqtgui4

Tip, to open terminal window, click the top left button on the desktop and type “terminal” in the search bar.

Step 3. Download litecoin-qt

Go to https://litecoin.org/ and Unpack the litecoin-qt files into a folder.
– To do this, go to /Downloads/ then right-click on the litecoin-*.*.*.*-linux.tar.xz file and choose “Extract Here”

Step 4. Open and Close Litecoin-Qt

Open the litecoin-*.*.*.*-linux folder and run:
– bin/32/litecoin-qt (GUI, 32-bit)
– bin/64/litecoin-qt (GUI, 64-bit)

Step 5. Establish the full path name to your new ‘litecoin’ folder on the Hard Drive or USB

– To do this, open the folder by navigating to it (Files > Devices > Folder) then right click on the folder and choose “Properties”. You will then be able to see the path. In my example the path is: /media/ubuntu/9808C73208C70DE6/Blockchain/litecoin

Step 6. Move .litecoin program files to your external storage litecoin folder*

If you haven’t already, close Litecoin-Qt. Now we are going to move the .litecoin files installed by opening Litecoin-Qt in the home directory to your new ‘litecoin‘ folder on the external storage. Open the terminal window and run:

sudo mv .litecoin /media/ubuntu/9808C73208C70DE6/Blockchain/litecoin

*ensure you change the above path to your path

Step 7. Set a symbolic link

This step tells Litecoin-Qt to use your  folder* on the external storage. Open a terminal window and run:

sudo ln -s /media/ubuntu/9808C73208C70DE6/Blockchain/litecoin .litecoin

*ensure you change the above path to your path

Step 8. You’re done!

Now you can run Litecoin-Qt again without downloading the whole blockchain. And it will keep the external storage up-to-date!

From now on you only need to complete  2,3,4,6 & 7

In future you need to do the following each time we boot from a USB or CD with Linux Live Ubuntu: Steps 2, 3, 4, 6 and 7

If you want to open the wallet regularly you could keep a copy of the downloaded Litecoin-Qt folder on your external storage and skip step 3 too, you would just need to copy the folder from your external storage.

The point of this post is to allow you to run the Litecoin or Bitcoin client using Linux Live Ubuntu (Try Ubuntu mode instead of Install Ububntu) without having to download the whole blockchain each time.

2 thoughts on “Linux Live with Blockchain on different USB, Hard Drive or Location”

  1. Linux: Cannot move folders – inter-device move failed, unable to remove target: Is a directory.

    If you see the above error when moving the files, simply add the backup switch to the syntax.

    ‘sudo mv -b .litecoin /media/ubuntu/9808C73208C70DE6/Blockchain/litecoin’

Leave a Reply

Your email address will not be published. Required fields are marked *