-
Notifications
You must be signed in to change notification settings - Fork 0
Install Mediachain on Windows
Edward Silverton edited this page Nov 5, 2016
·
3 revisions
##Install linux subsystem for windows
https://github.com/mediachain/concat#running-on-windows-experimental
##Obtain binaries
I store these in mnt/c/Users/[user]/mediachain
mkdir mediachain
cd mediachain
wget https://github.com/mediachain/concat/releases/download/v1.1/mcdir-v1.1-linux-amd64.tgz
tar -zxvf mcdir-v1.1-linux-amd64.tgz
rm mcdir-v1.1-linux-amd64.tgz
wget https://github.com/mediachain/concat/releases/download/v1.1/mcnode-v1.1-linux-amd64.tgz
tar -zxvf mcnode-v1.1-linux-amd64.tgz
rm mcnode-v1.1-linux-amd64.tgz
##Run mcnode
./mcnode
##Install Aleph
Install npm:
sudo apt-get install npm
Make sure you have node 6.5 or higher:
node -v
If not, install the latest stable version:
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
Install aleph:
sudo npm install --global aleph
Set directory for looking up peers:
mcclient config dir /ip4/54.173.71.205/tcp/9000/Qmb561BUvwc2pfMQ5NHb1uuwVE1hHWerySVMSUJLhnzNLN
Go online:
mcclient status online
##Publish test file
Get jq:
sudo apt-get install jq
Convert a json file to newline-delimited format:
jq -c '' temp/test.json > temp/test.ndjson
Publish it:
mcclient publish --idSelector 'id' scratch.test temp/test.ndjson
##Update binaries and client
https://gist.github.com/edsilv/b543362bb57d20b624cb8af9dc7c4a19