A VirtualBox, Ubuntu Dev Environment
I have been struggling to set up the environment for a while. This is how I did so far, and I hope someone with a similar background like me will find this post helpful. I will keep it up-to-date as the time goes by. And thank you all for suggestions/comments/critics in advance.
Ubuntu 16.04 LTS 64-bit in VirtualBox 5.0.32
In guest terminal type
sudo apt update && sudo apt upgrade -y sudo apt install build-essential reboot
Install Virtualbox Guest Additions
If you have problems with this, please refer to this link http://askubuntu.com/questions/792832/how-to-install-virtualbox-guest-additions-for-ubuntu-16-04
I had problems with sharing the folder with the host (Elementary OS loki) In guest terminal type
usermod -a -G vboxsf *username* reboot
How to install solcjs
A portable and most convenient way to install Solidity locally, recommended by https://solidity.readthedocs.io/en/develop/index.html
How to install nodejs, as well as npm
cd ~/Downloads tar zxvf node-v7.7.3.tar.gz node-v7.7.3 cd node-v7.7.3 sudo ./configure && sudo make && sudo make install reboot
how to install solcjs
sudo npm install -g solc
The comandline options of solcjs are not compatible with solc and tools (such as geth) expecting the behaviour of solc will not work with solcjs.
You can also install solc by ppa instead
sudo add-apt-repository ppa:ethereum/ethereum sudo apt-get update sudo apt-get install solc
How to install truffle
sudo npm install -g truffle
TODO: to be continued...