Installing Windows Subsystem for Ubuntu 16.04

Preparing

Update the system:

sudo apt-get update -y
sudo apt-get upgrade -y

Add a SWAP file:

sudo fallocate -l 3G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo echo -e "/swapfile none swap sw 0 0 \n" >> /etc/fstab
sudo echo "vm.swappiness=10" | sudo tee -a /etc/sysctl.conf
sudo sysctl -p

Reboot the server to load a new kernel (if) there are new one.

sudo reboot

 

Dependencies for 64-bit Windows

sudo apt-get install git curl ufw wget software-properties-common dnsutils automake  -y
sudo apt-get install libtool autoconf pkg-config libssl-dev libboost-all-dev  -y
sudo apt-get install build-essential autotools-dev nano vim libminiupnpc-dev libevent-dev -y
sudo apt-get install bsdmainutils nsis g++-mingw-w64-x86-64 -y
sudo add-apt-repository universe -y
sudo add-apt-repository ppa:bitcoin/bitcoin -y
sudo apt-get update -y
sudo apt-get install -y libdb4.8-dev libdb4.8++-dev

 

Dependencies for 32-bit Windows

sudo apt-get install git curl ufw wget software-properties-common dnsutils automake  -y
sudo apt-get install libtool autoconf pkg-config libssl-dev libboost-all-dev  -y
sudo apt-get install build-essential autotools-dev nano vim libminiupnpc-dev libevent-dev -y
sudo apt-get install bsdmainutils nsis g++-mingw-w64-i686 mingw-w64-i686-dev -y
sudo add-apt-repository universe -y
sudo add-apt-repository ppa:bitcoin/bitcoin -y
sudo apt-get update -y
sudo apt-get install -y libdb4.8-dev libdb4.8++-dev

Copy line-by-line to the terminal. Not all commands at once.

 

Getting the adeptio source code

Official adeptio github repository - https://github.com/adeptio-project/adeptio/ 

Master branch:

cd ~/
git clone https://github.com/adeptio-project/adeptio.git
cd adeptio

 

Building for 64-bit Windows

./autogen.sh
PATH=$(echo "$PATH" | sed -e 's/:\/mnt.*//g') # strip out problematic Windows %PATH% imported var
cd depends
make HOST=x86_64-w64-mingw32
cd ..
CONFIG_SITE=$PWD/depends/x86_64-w64-mingw32/share/config.site ./configure --prefix=/
make

 

Building for 32-bit Windows

./autogen.sh
PATH=$(echo "$PATH" | sed -e 's/:\/mnt.*//g') # strip out problematic Windows %PATH% imported var
cd depends
make HOST=i686-w64-mingw32
cd ..
CONFIG_SITE=$PWD/depends/i686-w64-mingw32/share/config.site ./configure --prefix=/
make

You can use make -j {CPU Core count} in order to make building faster. For example with 2 CPU Cores: make -j 2

It's OK to ignore "warning" signs during building process

 

Strip the binary to reduce the size (Optional)

After successful build in order to minimize the adeptiod / adeptio-cli / adeptio-tx / adeptio-qt binary size we can use stripping method:

strip ./src/adeptiod.exe ; strip ./src/adeptio-cli.exe ; strip ./src/adeptio-tx.exe
strip ./src/qt/adeptio-qt.exe

Need additional help? Go to Discord and ask for help.

No Comments
Back to top