Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to Install CANNABISCOIN-QT on Ubuntu
#1
The following was copied from https://bitcointalk.org/index.php?topic=...sg10421829

#####################################################
#
# This file contains the sequence for building CannabisCoin wallets on
# ubuntu systems. Builds were successfully completed on Ubuntu LTS
# versions 12.04.5 and 14.04.1; Linux Mint 17.1.
#
# Comments are particularly verbose in an effort to ease newcomers into building
# their own secure wallets on linux systems.
#
# While this file could easily be converted into a shell script please do not do so.
# Some commands must be run as root, most should not. Compile times will cause
# sudo permission sessions to expire, or at least they should and the script will fail.
#
# Commands are written here to be copied and pasted into a terminal session.
# Lines beginning with "#", like this one, are comments to help you understand
# the commands you are about to execute.
#
# Sometimes more than one command is included per line, joined with "&&", this
# is simply to reduce the number of times users need to copy and paste commands.
#
# Good luck and may the source be with you
#
#####################################################

# Open a terminal - Ubuntu users can simply press control-alt-t
#
# Now, everyone ready? Fine, let's begin. This is where we start adding software
# so we can build our lovely fresh and known clean CannabisCoin Qt wallet.
#
# Select and copy the listed commands and paste them into the terminal - then
# press the enter or return key to execute the command. Your prompt will
# not return until the commands have completed execution so just wait for them.
#
# Tip: you can paste into the terminal either via the keyboard with shift-ctrl-v
# or with right-click => paste.

# Be tidy - make a home for our source code and move to that directory

Code:
mkdir src && cd src


# We are going to add a bitcoin repository to grab the required version of BerkeleyDB

Code:
sudo add-apt-repository -y ppa:bitcoin/bitcoin && sudo apt-get update


# Download and install required packages. The next block of text is a single command
# so make sure you copy all of it from "sudo" to "libqrencode-dev"

Code:
sudo apt-get -y install build-essential git qt4-qmake libqtcore4 libqtgui4 libqt4-dev libboost-dev libboost-system-dev libboost-filesystem-dev libboost-program-options-dev libboost-thread-dev libssl-dev libdb4.8++-dev libminiupnpc-dev libqrencode-dev


# A lot of things will scroll by as the package manager installs what we just asked
# it to - that is what we want and expect to happen.


# Download the wallet source code

Code:
git clone https://github.com/cannabiscoindev/cannabiscoin420


# Move to the correct directory to compile our wallet

Code:
cd cannabiscoin420


# Now we set our desired options and generate the makefile, which is the instruction
# set for the compiler.

# To use UPnP for port forwarding behind a NAT router (recommended, as more connections
# overall allow for a faster and more stable user experience) set USE_UPNP=1

# USE_UPNP=0 to compile support for port forwarding but have it turned off by default, users can turn on in wallet options.

# USE_UPNP=- to compile without UPnP support, not sure why you'd do that.

# Notification support for recent Ubuntu family desktops is provided with USE_DBUS=1.

# QR codes are enabled with USE_QRCODE=1, USE_QRCODE=0 to compile without QR code support.

# Because we are linking against a specific BerkelyDB version we will use
# BDB_LIB_SUFFIX=-4.8

# The following should be completely safe as is or you can change the following command
# to suit your desired options.

Code:
qmake USE_UPNP=1 USE_QRCODE=1 USE_DBUS=1 BDB_LIB_SUFFIX=-4.8


# Now that our makefile has been written for us we simply execute the make command
# to build our CannabisCoin wallet

Code:
make


# When your prompt returns you know it worked or it will tell you if not.
# We'll move the executable to a directory on the path so we can run it at will

Code:
sudo mv CannabisCoin-qt /usr/bin


# We should just make our new wallet welcome

Code:
mkdir ~/.CannabisCoin && mv cannabiscoin.conf ~/.CannabisCoin


# Optionally we can add even more nodes to those originally listed in the config file,
# although the wallet will connect perfectly well without them. These last 3 were not
# included in the original file - as before copy and paste the whole text block:

Code:
echo "addnode=seed4.cannabiscoin.net" >> ~/.CannabisCoin/cannabiscoin.conf && echo "addnode=seed5.cannabiscoin.net" >> ~/.CannabisCoin/cannabiscoin.conf && echo "addnode=cann.cryptoservices.net" >> ~/.CannabisCoin/cannabiscoin.conf


# Also optional, the following command will place a shortcut link on the desktop. If
# you prefer you can simply open a terminal and type CannabisCoin-qt at the command
# prompt to run your CannabisCoin wallet at any time.

Code:
ln -s /usr/bin/CannabisCoin-qt ~/Desktop


# If you have started your wallet please stop it now - we are going to speed up the
# block chain sync by importing a bootstrap file.


#########################################
#
# I hate this section - users should not be downloading anything from a random like me!
#
# Please note that the same bootstrap.dat file is available from CannabisCoin's
# core developer, Esotericism, via bittorrent - if you are comfortable with
# torrents the address is
# https://kickass.to/cannabiscoin-bootstra...79152.html
#Update: That torrent is an old version of the bootstrap file - the link has been updated in the download link below
#
# That said, you are still following a link from a forum post, so...
#
########################################

# We will now download a bootstrap file. Its purpose is to dramatically speed up
# synchronisation of the wallet block chain by providing a local source of blocks
# up to January 23, 2015. You don't have to do so but you'll be glad if you do.

# We will use our browser to download the bootstrap file from mega. The
# default browser on Ubuntu is Firefox.

# Please open your web browser and paste in the following link, click the download
# button when it is offered. The file will download to your Downloads folder by
# default. Paste in ALL of it, not just the "https://mega.co.nz/#!PZwzDLjR!" part.

Code:
https://mega.co.nz/#!PZwzDLjR!YBVtMBegci1-o2z9d5_m69EhQ3fobkl77CLNDE0PcA0


# After it finishes downloading we'll move it to where we want it and unpack it
# with the next two commands.

Code:
mv ~/Downloads/bootstrap.dat.845K.zip ~/.CannabisCoin

Code:
cd ~/.CannabisCoin && unzip bootstrap.dat.845K.zip && cd


# Now that we no longer need our downloaded zip file we can remove it.

# Optional

Code:
rm ~/.CannabisCoin/bootstrap.dat.845K.zip


# OK, all being well we can now sync CannabisCoin so either click your desktop shortcut
# or execute the following command in the terminal.

# Tip: if you do run from the terminal open another terminal window so you can proceed
# while the wallet is running - the prompt won't return to the 1st terminal instance
# until the initiated process finishes, that means until you close your CANN-qt wallet.

Code:
CannabisCoin-qt


# Depending on the speed of your computer syncing the blockchain could take some time.

# Tests run on a virtual machine hosted on a 2009-vintage core2 duo permitted just one
# cpu took more than 3 hours to complete.

# If you wish to save drive space you may remove the entire src directory we made
# earlier, which will remove no-longer required source code for CannabisCoin.

# Optional

Code:
rm -Rf ~/src


# After updating is complete we can ditch the now-redundant bootstrap file, which
# the wallet renamed .old when it was finished with it.
#
# Note that if you decide at some later date that you want/need to download the
# blockchain afresh you can simply rename bootstrap.dat.old bootstrap.dat and
# it will be used by the wallet as before.

# Optional

Code:
rm ~/.CannabisCoin/bootstrap.dat.old
Mike is the president of StrandVision Digital Signage.  He started BitCoin mining in 2017 and soon invested in other crypto-currencies.  Seeing the need, this site was created as a crypto knowledge repository and miner performance tracker.
Reply
#2
So the latest software is using .autogen.sh instead of qmake and the other things listed.  Here are the additional things I have done:

Install Build Basics:
Code:
sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils

Install Boost Files:
Code:
sudo apt-get install libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev

Install Berkley DB:
Code:
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install libdb4.8-dev libdb4.8++-dev

Install ZMQ dependencies:
Code:
sudo apt-get install libzmq3-dev

Install Qt5:
Code:
sudo apt-get install libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler

Install QrEncode:
Code:
sudo apt-get install libqrencode-dev

Install Java and JavaBridge:
Code:
sudo apt install default-jdk

Build the code:
Code:
./autogen.sh
./configure
make
cp src/cannabiscoin* /usr/bin/
cp src/qt/src/cannabiscoin* /usr/bin/

Build gui version:
https://bitzuma.com/posts/compile-bitcoi...on-ubuntu/
https://www.toshblocks.com/bitcoin/compi...16-04-lts/[/code]
To solo mine: https://bitcoin.stackexchange.com/questi...ann-wallet
Mike is the president of StrandVision Digital Signage.  He started BitCoin mining in 2017 and soon invested in other crypto-currencies.  Seeing the need, this site was created as a crypto knowledge repository and miner performance tracker.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)