Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- — System
- sudo su
- apt-get -y update
- apt-get -y upgrade
- apt-get -y dist-upgrade
- reboot
- — Timezone
- sudo timedatectl set-timezone America/Mexico_City
- — cURL
- sudo apt-get -y install curl
- — Node.js
- curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -
- sudo apt-get -y update
- sudo apt-get install -y nodejs
- sudo apt-get install -y build-essential
- npm -v
- nodejs —version
- — Ethereum
- sudo add-apt-repository -y ppa:ethereum/ethereum
- sudo apt-get -y update
- sudo apt-get -y install ethereum
- — Env
- mkdir blockchain
- cd blockchain
- mkdir training
- cd training
- mkdir private
- cd private
- — Gets
- geth account new
- echo "1234" > password.sec
- puppeth (Network Name: PrivateMode, Network ID: 7777)
- echo 'geth --datadir . --networkid 7777 --mine --minerthreads 2 --nodiscover --rpc --rpcport 8545 --port 30303 --rpccorsdomain "*" --nat "any" --rpcapi eth,web3,personal,net --unlock ETH_ADRESS_TO_UNLOCK --password ./password.sec --ipcpath "~/.ethereum/geth.ipc"' > startnode.sh
- geth --unlock --password
- chmod +x startnode.sh
- ./startnode.sh
- — Truffle
- sudo nom install -g truffle
- cd training
- mkdir truffle
- cd truffle
- truffle init
- — Atom
- sudo add-apt-repository ppa:webup8team/atom
- apt-get -y update
- amp install language-ethereum
- atom .
- — Install GUI
- sudo apt-get -y install --no-install-recommends ubuntu-desktop
- pragma solidity ^0.4.24;
- contract HolaMundo {
- string mensaje;
- constructor() public {
- mensaje = "¡Hola mundo!";
- }
- function setMensaje(string _mensaje) public {
- mensaje = _mensaje;
- }
- function getMensaje() public constant returns(string) {
- return mensaje;
- }
- }
- var Getter = artifacts.require("./Getter.sol");
- module.exports = function(deployer) {
- deployer.deploy(Getter);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement