The following sets of screen shots show the Ubuntu installation part and a sample smart contract execution of Truffle,a personal blockchain for Ethereum development one can use to deploy contracts, develop applications, and run tests.:
First command is to install npm
The next screen shows installation of npmnow we use npm to install truffle
make a directory...I made a directory truffleproject as seen below:
We also need to install atom...a code editor..available at atom.io
In case of Ubuntu,download the .deb file from site
Install atom
Now download a sample smart code project metacoin
Run Atom
Open project
Contracts...click
choose Metacoin
Run the code...