Install Truffle:
npm install -g truffle
Install Ganache:
$ cd ~/Downloads
$ chmod a+x ganache-1.1.0-x86_64.AppImage
$ ./ganache-1.1.0-x86_64.AppImage
Make sure Ganache is running on port 7545 Using the command-line interface, execute the commands:
truffle compile
truffle migrate --network development