Post
Topic
Board Announcements (Altcoins)
Re: [ANN] CannabisCoin [CANN][X11][Official][2] Developments & Discussions
by
B4zz4
on 10/02/2015, 08:55:22 UTC
UBUNTU 12.04 on a USB with pre-installed CannabisCoin wallet software

Note: this ready-to-go USB flash drive image is for people who do not wish to compile their own CannabisCoin software from the git repository, for which I have posted tutorials for Ubuntu and Debian. Compiling your own wallet on Linux is definitely preferable to downloading one built by some random (that would be me, in case you missed it Wink).

What is this?

It is an image of an Ubuntu 12.04.5 LTS installation, complete with a ready-to-use CannabisCoin wallet, zipped and ready to download and copy to an 8Gb or larger USB flash drive with Mac/Linux dd or Windows HDD raw copy. Mac users may also wish to consult "How to Boot a Linux Live USB Drive on Your Mac"

Instructions for expanding the image partition to make use of additional space on larger flash drives can be found here.

Please note that this is an UNOFFICIAL CannabisCoin wallet build compiled by B4zz4. The blockchain data is synced to about midnight (GMT) Saturday, February 7th, 2015.

Download does NOT include wallet.dat (you can copy in your own if you wish or simply run the wallet to create a new one).

Why would you want one?

Simple, boot into a clean operating environment to store/transfer your CannabisCoin with much reduced risk of malware and/or key loggers pilfering your coins. Provided you do not browse the web or download anything but keep the CANN USB solely for transacting your CannabisCoin business you are at very little risk of theft.

ALWAYS keep multiple copies of your wallet.dat file in multiple secure locations - USBs are not forever and will fail eventually. When the inevitable occurs simply construct a new USB copy, add a copy of your wallet.dat and you are back in business.

Where to get it?

cann1204.dd.zip has been uploaded on mega - if there is enough demand I'll see what I can do about a torrent although my upload speed is appallingly slow (as the poor people trying to download bootstrap.dat at the moment will likely attest).

How do you use it?

To begin with you need a functional computer and a spare 8Gb or larger USB. Any files on the USB will be destroyed so don't use one containing anything you want to keep.

Once you have downloaded the 3.2Gb zip file you need to unzip it to any suitable location. You will need at least 8Gb of free space to do so.

I tried in a Windows 7 VM and even Windows can extract cann1204.dd so that shouldn't cause any problems.

Windows users will need to download HDD Raw Copy Tool if they don't already have it.

Check carefully that you select cann1204.dd as the source and your USB as the target. BE WARNED THAT THIS SOFTWARE WILL OVERWRITE YOUR HARDDRIVE IF THAT IS WHAT YOU TELL IT TO DO!

Linux users open a terminal and run "sudo fdisk -l" to list drives and identify your target USB, if you only have one HDD your USB will likely be /dev/sdb.

Then it is simply a matter of "sudo dd if=[path to cann1204.dd] of=[path to USB] bs=1M", it will look something like "sudo dd if=~/Downloads/cann1204.dd of=/dev/sdb bs=1M" without the quotes. If your distribution complains about bs=1M then use bs=1m.

Mac users have slightly more to do but not much.

Open a terminal and run "sudo diskutil list" to identify your USB (run it before and after inserting your USB if you have difficulty telling one from another).

Then run "diskutil unmountDisk /dev/diskN" (replace N with the disk number from the last command).

Now run "sudo dd if=[path to cann1204.dd] of=/dev/rdiskN bs=1m" (we are using /dev/rdiskN instead of /dev/diskN because it may be faster). Same deal as before, if your particular version does not like bs=1m use bs=1M.

If you get a "resource busy" error it likely means you forgot to unmount the USB, do so now using Disk Utility.app (Finder => Applications => Utilities => Disk Utility.app). DO NOT EJECT THE DRIVE - UNMOUNT IT.

Everyone

Once you have copied cann1204.dd to your USBs you can eject the USB, it is ready to use.

If you know how to use a bootable USB you can go ahead when ready.

If not then there's a simple tutorial on booting from a USB here.

People with different keyboard needs should not change their password until after you change your keyboard settings.

The supplied user name is cann with the default password of YesWeCann
. You are going to need to change that for the sake of simple security. The system is set for automatic login and cann has administrative rights.

NOTE: If your keyboard will not type "YesWeCann" then copy it to the clipboard and paste it into the terminal with right click => paste or with ctrl-shift-v when the time comes.

YOU MUST SET YOUR LOCAL TIMEZONE BEFORE YOU START THE WALLET WHEN YOU BOOT FOR THE FIRST TIME - THE USB IMAGE WAS CREATED IN QUEENSLAND AND EXPECTS LOCAL TIME TO BE GMT+10 - THIS IS IMPORTANT FOR SYNCHRONISATION OF THE BLOCKCHAIN.

Click the following image to go to a brief tutorial on changing the time and date settings in Ubuntu:


I'm trying to do this pictorially for the benefit of those for whom their first language is other than English. They will need to change their language and keyboard settings.


Add the necessary keyboard files:



Add the necessary language support:



Once you have the right keyboard and language set it is time to change your password, so open a terminal by pressing ctrl-alt-t or by clicking on that big button at the top-left of the screen and type terminal (you'll be offered a terminal before you type the whole word).

In the terminal type "passwd" without the quotes (make sure you remember your password - you are the only one who can change or reset it):


You will need to enter "YesWeCann" without the quotes and then your chosen password twice. You won't be able to see the characters as you type them.


Don't worry if you make a mistake entering your new password, the worst that can happen is that your password will not change:


Just type "passwd" again and try again.

OK, you have set your local time, your keyboard is correct and system menus and messages are in the language you are comfortable with, you just want to copy in your wallet.dat file and you are good to go... but where?


Linux hides many settings and data directories by preceding their name with a period - to show them in the file manager press ctrl-h or go to "View" => "Show Hidden":


and all will be revealed:


Go ahead, open up .CannabisCoin and see that there is no wallet.dat there (there will be either when you put one there or start your wallet, whichever comes first - if the wallet finds no wallet.dat file it will create a new one for you).


Alright, you want to get on with it. You have a few choices in how you open your wallet, you can click on the CannabisCoin icon in the bar at the left:


Or start typing cannabiscoin in the Dashboard:


And a familiar splash screen will open:


This might persist for a while as it rescans the blockchain, just let it do so and then it will connect to the network and sync.


Hopefully the above has been sufficient to help you get started with your own fairly safe environment from which to make your CannabisCoin transactions.

Anyone having trouble can PM me here or email me at b4zz4.code@yahoo.com.

In the meantime good luck everyone, have fun and smile.