Bitcoin Forum
June 17, 2024, 05:01:15 PM *
News: Voting for pizza day contest
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Development & Technical Discussion / Re: bitcoind for synology nas (ARM) on: June 17, 2017, 07:33:34 PM
I still have a try on this moment although it's nothing worth trying at all  Tongue

I originally want to save the power/time from syncing data, which use my DS115j to get latest blickchain files 24/7 and docking my laptop with faster synchronization when needed.

so I didn't compile wallet and gui(qt) in my case.

here's my platform:
VMWare Ubuntu 64 bit 16.04 netboot only with openssh
Host CPU: 4 of 8 core intel xeon E3-1505M v5
MEM: 4GB

and here's the processes, and it's taking about 20 minutes
Code:

# unnecessary installation but useful
apt-get install sudo ssh vim ntpdate screen htop iftop nmap bzip2

# compiling tools
apt-get install make binutils xutils-dev libc6-i386

# cross compiling tools
apt-get install g++-arm-linux-gnueabihf curl

# bitcoin needed
apt-get install git-core autotools-dev automake pkg-config bsdmainutils build-essential autoconf libssl-dev libboost-dev libboost-chrono-dev libboost-filesystem-dev libboost-program-options-dev libboost-system-dev libboost-test-dev libboost-thread-dev libtool libevent-dev

# bitcoin optional
apt-get install miniupnpc libminiupnpc-dev libzmq3-dev

# create working dir
cd ~
mkdir ds115j
WDIR=/root/ds115j
DIST=$WDIR/dist

# prepare your toolchain file to working dir (says xvf armada370-gcc493_glibc220_hard-GPL.txz is for DS115j in my case)
cd $WDIR
tar xvf armada370-gcc493_glibc220_hard-GPL.txz

# setting the variables
cd $WDIR
export PATH="${WDIR}/arm-unknown-linux-gnueabi/bin:${PATH}"
export CC="${WDIR}/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-gcc"
export CXX="${WDIR}/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-g++"
export AR="${WDIR}/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-ar"
export LD="${WDIR}/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-ld"
export RANLIB="${WDIR}/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-ranlib"
export CFLAGS="-I${WDIR}/arm-unknown-linux-gnueabi/arm-unknown-linux-gnueabi/include"
export LDFLAGS="-L${WDIR}/arm-unknown-linux-gnueabi/arm-unknown-linux-gnueabi/lib"
export LINK=$CXX

# specify your target version of bitcoin (says 0.14.1 in my case)
export ver=0.14.1

# cross compiling related tools
cd $WDIR
git clone -b v${ver} https://github.com/bitcoin/bitcoin
cd bitcoin/depends
make HOST=arm-linux-gnueabihf NO_QT=1 NO_WALLET=1 -j4

# cross compiling bitcoin
cd ..
./autogen.sh
LDFLAGS="-static-libstdc++" \
./configure \
--prefix=`pwd`/depends/arm-linux-gnueabihf \
--enable-upnp-default \
--enable-glibc-back-compat \
--enable-reduce-exports \
--disable-wallet \
--with-gui=no
make -j4
make install

# packing
cd depends
mv arm-linux-gnueabihf bitcoin-${ver}-arm-linux-gnueabihf
tar -c ./bitcoin-${ver}-arm-linux-gnueabihf/ | gzip -9 > ./bitcoin-${ver}-arm-linux-gnueabihf.tar.gz


after that, you can copy your bitcoin-${ver}-arm-linux-gnueabihf.tar.gz to the DS115j
2  Bitcoin / Bitcoin Discussion / Bitcoin wallet management and basic keys/addresses survey on: June 15, 2017, 08:39:52 AM
I started to study blockchain recently and try to figure out concepts about the keys, addresses which related to the bitcoin wallet. Meanwhile, I also collect some methods to easily export/import the existing key pairs among different wallets and platforms. I want to share my experiences with you. And please leave me some comments if you have any question or have found some misleading information via this post  Smiley

This is the TOC and I only translate some of them since all the others are not essential part of this topic. And, forgive my weakness translation as usual…..

1. Exporting the private/public address pairs from wallet
2. Verifying address pairs to understand the calculation flow to the keys
3. Creating the customized private/public address pairs
4. Importing the customized private/public address pairs into wallet

please come to my wp, thank you
http://mohohan.com/91
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!