Skip to content
Gav Wood edited this page Jan 31, 2014 · 2 revisions

Set up a server by editing rc.local and inserting:

/home/ubuntu/serv.sh &

And then writing the file accordingly:

cat > /home/ubuntu/serv.sh << EOF
#!/bin/bash
cd /home/ubuntu/cpp-ethereum-build/eth
while [ 1 ]; do
  HOME=/home/ubuntu sudo -u ubuntu ./eth -o peer -x 256 -l 30303 -m off -v 1 > /home/ubuntu/eth.log
  mv /home/ubuntu/eth.log /home/ubuntu/eth.log-\$(date +%F_%T)
done
EOF
chmod +x /home/ubuntu/serv.sh

Clone this wiki locally