Install with Docker (recommended)

With this method you will be able to use Insacoin on every system that runs Docker. An Insacoin image is available on the Docker hub, so everything is automated. Here are the steps :

With GUI

  • xhost +local:docker && docker run -ti --name insacoin -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -v ~/.insacoin:/root/.insacoin gnut3ll4/insacoin:0.10-ui insacoin-qt -txindex=1
    This command will download the image and then bind your X server to start insacoin-qt.

Without GUI

  • Create the default Insacoin directory (~/.insacoin), and then specify the minimum conf file (.insacoin/insacoin.conf) with the following options. You can find more configuration options here.
    rpcuser=insacoinrpc
    rpcpassword=CHANGE_THIS
    rpcallowip=172.17.0.0/16 # Allowing your host to access INSAcoin RPC running in the container
    server=1 # To make insacoind accept JSON-RPC commands
  • Run the container with : docker run -d --name insacoin -v ~/.insacoin:/root/.insacoin -p 7332:7332 -p 7333:7333 gnut3ll4/insacoin:0.10-headless insacoind -txindex -rpcallowip=172.17.0.0/16

Optional : setup auto-completion

  • Download the auto-completion file as root : wget -N https://raw.githubusercontent.com/Insacoin/insacoin/0.10/contrib/insacoind.bash-completion -P /etc/bash_completion.d/
  • Source it : source /etc/bash_completion.d/insacoind.bash-completion
  • Create a shortcut for insacoin-cli (as root) :
    cat > /usr/local/bin/insacoin-cli << EOF
    #!/bin/bash
    docker exec -it insacoin insacoin-cli $@
    EOF



Install on Linux

Build from source

Here are the detailed instructions with Debian 9 (stretch), it should works with every Debian-like distribution. For any other distribution, please checkout the dependencies here.

git clone https://github.com/Crypto-lyon/INSAcoin && cd INSAcoin
su -c 'apt install libssl1.0-dev libssl1.0.2 libssl1.1 libboost-all-dev miniupnpc build-essential libtool autotools-dev automake pkg-config libssl1.0-dev libevent-dev bsdmainutils python3 software-properties-common libminiupnpc-dev libzmq3-dev libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler wget git qt5-default'
su -c './scripts/install_libdb4.8.sh amd64' # Depending on your achitecture
# OR
su -c './scripts/install_libdb4.8.sh i386' # Si vous êtes en 32bits
./autogen.sh
./configure
make
su -c 'make install'
insacoin-qt

Install a package

There is an available Debian package for insacoind, to install it just run as root :

wget https://github.com/Crypto-lyon/INSAcoin/releases/download/v0.10/insacoin_0.10-1_amd64.deb
dpkg -i insacoin_0.10-1_amd64.deb

More releases are yet to come.



Install on MacOS

Build from source

Please install homebrew and macports. Be sure to have Xcode installed.

brew install openssl miniupnpc libtool autoconf automake pkg-config libevent python3 berkeley-db4 qt5 protobuf moc git wget
brew install --with-pgm zeromq
brew tap b4hand/bsdmainutils
brew install bsdmainutils
brew install boost@1.59 --c++11
export LDFLAGS="-L/usr/local/opt/boost@1.59/lib"
export CPPFLAGS="-I/usr/local/opt/boost@1.59/include"
sudo port install db48 miniupnpc
git clone https://github.com/Insacoin/insacoin
./autogen.sh
./configure CXXFLAGS="-std=c++11"
make -j 4
# Optional
sudo make install

You can revert global installation with make uninstall.

Fetch a dmg

The image could not work on some system, consider using Docker for now. Link to the dmg



Install on Windows

LOL