dominicus



Offline



Activity: 97

Merit: 10









MemberActivity: 97Merit: 10 Offline Bitcoin Armory on LiveUSB December 29, 2013, 02:01:33 PM

Last edit: December 30, 2013, 07:14:50 AM by dominicus #1 Overview

Creates a self-contained bitcoinarmory.com,

This is intended for those seeking the benefits of an offline wallet, but without dedicating a PC to this purpose.

The setup process, while verbose, will require less overall time to setup compared to installing a fresh OS from scratch.

Its laid out in step-by-step format with select sections labeled Recommended, which can be skipped to shorten the setup time, and performed at a later time to improve your experience with the Offline Bitcoin Armory on LiveUSB.



Create a LiveUSB



Get a fast USB 2.0 drive

A 4 GB or greater USB stick with fast reads and good outer construction will do.

Recommended:

Not recommended: USB 3.0 drives, drives with hidden partitions that auto-run proprietary software, drives with wear-leveling firmware.



Create an Ubuntu 12.04 Persistent LiveUSB

Download and validate the .iso image for Ubuntu 12.04 LTS Desktop to your online PC, in either 32bit (recommended) or 64bit. Note 64bit will only run on PCs with multi-core processors and will not work on many netbooks powered by single-core CPUs.

Do a low-level (not quick) format of what will become your LiveUSB drive. Warning: all data in the target drive will be destroyed...this is not the step to be careless.

With your freshly formatted USB drive, create a persistent LiveUSB:

In Windows, use these instructions. Within Ubuntu, use the Startup Disk Creator application pre-installed in Ubuntu. For either method, you will specify the .iso image you downloaded For the persistent space, select the maximum allowed.

LiveUSB:

Download Armory and TrueCrypt

Use a separate, extra USB drive to transfer information to/from your LiveUSB session:

Download and verify the Bitcoin Armory package for Linux, which includes all dependencies for offline installation to Ubuntu. Match the Ubuntu version and bitcount.

Download and verify the latest stable version of TrueCrypt for Linux. Select the Standard version for the corresponding Ubuntu version and bitcount of your LiveUSB.

Save both files to the extra USB drive.

Boot to your Ubuntu LiveUSB

Isolate the laptop/netbook you will use as offline Armory:

Remove hardwire LAN cable If your laptop is provided with a WiFi switch, turn off WiFi. Ensure the BIOS allows the PC to boot from USB. (Recommended) Alter the BIOS boot order such that the PC will boot your LiveUSB drive whenever present.

With your LiveUSB plugged in, power on your PC. If you didnt or couldnt change the boot order, be prepared to hit the right key to enter the BIOS boot screen and select the option to boot from the LiveUSB drive.

Youll get a dialog screen from Ubuntu. Select the option to Try Ubuntu.

Ubuntu OS will boot up.

Configure your LiveUSB installation



Disable network connectivity

Click on the top-right gear-shaped icon.

Select Startup Applications 

Click on [Add]

On the Name field, enter: Disable Networking

field, enter: On Command , enter: nmcli nm enable false

, enter: On Comment , enter: disables all networking

, enter: Click on [Add], then [Close]

(Recommended) Remove unneeded icons from the Launchbar:

Since this is meant to be a special-purpose installation, you can delete unneeded icons from the launchbar, which will make way for icons of other apps youll install later.

Successively right-click icons for choices of LibreOffice apps and Firefox, and select Unlock from Launcher. This deletes the icons, but doesnt delete the apps.

Do not delete preinstalled apps using the Ubuntu Software Center.

(Recommended) Bypass the Try Ubuntu screen:

On the Ubuntu Launchbar, select the top Dash home icon.

Type terminal in the search box.

Click on the Terminal icon.

On the terminal screen, type: sudo gedit /cdrom/syslinux/syslinux.cfg

A text editor window will open to edit this file. Replace all text there with one of the following: for 32-bit install use this; for 64-bit install use this.

Save the file and close the text editor.

Close the terminal window.

Copy Armory and Truecrypt to your LiveUSB:

Insert the extra USB drive holding the Armory and TrueCrypt installers.

The File Explorer should open automatically showing the content of the extra USB

Copy the TrueCrypt and Armory installation files from the extra USB drive to the Downloads folder within the Ubuntu LiveUSB file system.

Eject and remove the extra USB drive.

Install TrueCrypt and Bitcoin Armory

While in the Ubuntu File Explorer, go to the Downloads folder and locate the TrueCrypt installation file.

folder and locate the TrueCrypt installation file. Right-click on the TrueCrypt installation file and select Extract Here

Locate the Armory installation file, right-click on its file name, and select Extract Here

Double-click on the created TrueCrypt decompressed file

Select [Run From Terminal].

Select [Install TrueCrypt], accept the terms, and hit [OK].

Once the TrueCrypt installation is done, youll be prompted to press [ENTER] to exit.

Double-click on the newly-created folder named armory

Double-click on the file named Install_DblClick_RunInTerminal.sh

Select [Run In Terminal]

When the installation is successfully finished, the window will close.

Create and configure an encrypted storage space for your wallet



Create a TrueCrypt volume (steps are for TrueCrypt version 7.1a):

On the Ubuntu Launchbar, select the top Dash home icon.

On the search box, type truecrypt and click on the TrueCrypt application icon that will appear listed.

Once TrueCrypt launches, right-click on its icon now on the Launchbar and click Lock to Launcher for future use.

In TrueCrypt window, click on [Create Volume]

Make sure Create an encrypted file container is selected and click [Next].

Volume type Standard TrueCrypt Volume click [Next]

Click [Select File ], select the Documents folder

In the Name field, type safety.cab (or any other name you wish), click on [Save], click on [Next>]

(or any other name you wish), click on [Save], click on [Next>] Take the default (or your choice of) encryption options and click [Next>]

Select a volume size. Recommend using 200MB less than the max available.

Enter your TrueCrypt volume password twice. Make it strong, and keep a safe copy of it. Click [Next>]

On format options, select Linux ext3. Click [Next>]

Select I will mount the volume only on Linux and click [Next>]

Move your mouse around as instructed for as long as you have patience for, then click [Format].

Wait until the volume is reported as being successfully created. Click [OK], then [Exit]

Mount your TrueCrypt volume

Click on Slot 1 in TrueCrypt

Click on Select File , select the safety.cab file, click [Open], then select [Mount].

file, click [Open], then select [Mount]. Enter your TrueCrypt volume password. Your encrypted volume should now show on the list with mount directory as /media/truecrypt1

(Recommended) Configure TrueCrypt to auto-mount on boot:

Right-click on the listing for Slot1 showing your volume. Select [Add to Favorites ]

Click [OK]

Close TrueCrypt

Click on the gear-shaped icon in top-right, select Startup Applications 

Click [Add]

On field Name , enter: Mount TrueCrypt

, enter: On Command enter: truecrypt --auto-mount=favorites --background-task

On Comment, enter: mount TC favorite volume(s)

Click [Close]

Configure Bitcoin Armory



Create a launch icon for Armory linked to your encrypted volume:

Click the top-most icon in the Launchbar named Dash home

Make sure the Dash search window is not running maximized, and you still have a viewable portion of the Ubuntu desktop area.

In the search box, type armory

Drag and drop the Armory (offline) icon from the Dash applications search results to any viewable area of your desktop. An Armory (Offline) icon will be created on your desktop.

Click on x to close Dash search.

Right-click the Armory (Offline) desktop icon, click Cut

Open the File Explorer, go to your Documents folder (or other folder you create for this purpose), right-click on the right pane, and select Paste. The desktop icon will now be moved to the destination folder.

Right-click the Armory (Offline) icon in the destination folder, and select Properties

In the field titled Command, go to the very end of the existing text, hit spacebar, and add the following: --datadir=/media/truecrypt1

Click Close

Drag and drop the Armory (Offline) desktop icon into the Launchbar. This will create a new icon for Armory in the Launchbar.

You may close your File Explorer.

Create your Offline Armory wallet:

Click on the Armory (Offline) icon in the launchbar.

When Armory starts for first time, click to agree to license and click Accept

Click on Create Wallet

Decide on naming, encryption and backup printing of your Armory wallet.

Safely store your wallet paper backup. Save your encryption password too!

Create one or more test receiving addresses.

Do not transact yet, until youve successfully finished the following step.

Create your Watch-Only Armory wallet:

Plug in your extra USB drive.

Click on Wallet Properties.

Select Create Watching-Only Copy

IMPORTANT: If you did everything right, Armory will default to saving the watchonly version of your wallet to the /media/truecrypt1 directory. If this is not the case STOP. Cancel out of this screen, delete this (empty) wallet, ensure your TrueCrypt volume is properly mounted, and revisit the section above titled Create a one-click launcher for Armory-offline for spacing or syntax errors.

On the save dialog screen, select the extra USB drive

Click on Save

Eject the extra USB drive

You can now import your Watch-Only wallet from the extra USB drive to your Armory installation running in your online PC.

Test your finished LiveUSB

Test restarting your PC and booting to the LiveUSB:

Depending on your BIOS settings, you many need to press a key upon startup to enter the boot device screen, and select USB as boot drive for the session.

Upon startup, you should be asked for the password to your TrueCrypt volume, and validate its mounted in File Explorer.

After your encrypted volume is mounted, use the Launchbar icon to start Armory. Your wallet appears listed.

If you plan on using your LiveUSB on multiple PCs, test booting on all.

Stretch goal: try deleting and restoring your wallet from your paper backup.

Begin using Armory:

Read up on usage of Armory

Try transferring small amounts using your offline/online Armories.

Kiss your paranoia goodbye, now you can just be careful:

With just your wallet paper backup, you can safely recreate your offline environment and survive your LiveUSB drive being lost or compromised. Upon such event, and assuming you used strong encryption passwords, you can restore your environment and move your bitcoins to a new Armory wallet with very low risk that anyone can brute-force their way to your bitcoins. Run your LiveUSB offline Armory only on PCs and environments you control and trust are private and secure. Plugging your LiveUSB to an untrusted PC and/or typing your passwords where someone may be physically recording your every move are not secure practices. Keep paper backups of your wallet and encryption passwords secure. Dont keep your LiveUSB connected while you boot to the OS in your hard drive. Dont mount your hard drive while in your LiveUSB environment. Dont connect to the internet while running your offline LiveUSB .ever.



If you found this tutorial useful consider donating:

1FkQS1RuEmSppCPdGPVGHtc4aj2nBiHAYF Creates a self-contained offline Bitcoin Armory , on a bootable USB drive, from signed verifiable sources ( ubuntu.com truecrypt.org ). Your wallet remains saved in encrypted storage.This is intended for those seeking the benefits of an offline wallet, but without dedicating a PC to this purpose.The setup process, while verbose, will require less overall time to setup compared to installing a fresh OS from scratch.Its laid out in step-by-step format with select sections labeled, which can be skipped to shorten the setup time, and performed at a later time to improve your experience with the Offline Bitcoin Armory on LiveUSB.A 4 GB or greater USB stick with fast reads and good outer construction will do.Recommended: Super Talent Pico-C USB 2.0 drive LaCie iamakey USB 2.0 drive (not v2, no encryption). Fast, compact, waterproof, metal housing.Not recommended: USB 3.0 drives, drives with hidden partitions that auto-run proprietary software, drives with wear-leveling firmware.Use a separate, extra USB drive to transfer information to/from your LiveUSB session:Test restarting your PC and booting to the LiveUSB: Help me troubleshoot my BTC address.

Send some coins here: 1FkQS1RuEmSppCPdGPVGHtc4aj2nBiHAYF

If I don't return your test transfer, it must be having issues still.