 ## Hardware Requirements 1. Raspberry Pi 3 model B+ (1GB RAM) 2. 32GB MicroSD Card ## Step 1: Setting up Raspberry Pi OS 1. Download the latest Raspberry Pi OS (Rasbian Stretch Lite) from the official website: https://www.raspberrypi.org/downloads/raspbian/ 2. Burn the OS to SD Card with [Etcher](https://etcher.io/).  3. Now, to enable SSH for the OS, access the boot partition of the SD Card. ``` sudo touch ssh ``` 4. Enable WiFi connection. ``` sudo nano wpa_supplicant.conf ``` 5. Enter the following config ``` country=GB ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 network={ ssid="<wifi name>" psk="<wifi password>" } ``` 5. Now, **insert the SD card into Raspberry Pi** then power on. 6. Find the IP address from your router admin web panel. 7. Connect to Pi for the first time ``` ssh -p 22 pi@{IP-addresss} ``` ## Step 3: Hardening Raspberry Pi 1. Configure Pi locale, to prevent warning messages and compilation errors. ``` sudo raspi-config ```  2. Don't forget to edit the locale file too. ``` sudo nano /etc/default/locale ``` 3. Add the following content. ``` LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LANGUAGE=en_US.UTF-8 ``` 4. Hardening security by adding a new user. ``` sudo -i adduser <yourusername> adduser <yourusername> sudo ``` 5. Then reboot Pi. ``` sudo reboot ``` 6. Then connect back as the new user ``` ssh -p 22 <yourusername>@<ip-addresss> ``` 7. And delete the default Pi user ``` sudo deluser pi sudo passwd root ``` ## Step 4: Configure Raspberry Pi 1. Update Pi packages. ``` sudo apt-get update sudo apt-get upgrade ``` 2. Reboot the system. ``` sudo reboot ``` 3. Install the required libraries. ``` sudo apt-get install git qt5-default qt5-qmake qtbase5-dev-tools build-essential libboost-dev libboost-system-dev libboost-filesystem-dev libboost-program-options-dev libboost-thread-dev libssl-dev libdb++-dev build-essential libtool autotools-dev autoconf pkg-config libssl-dev libboost-all-dev libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler libqrencode-dev autoconf openssl libssl-dev libevent-dev libminiupnpc-dev sudo apt-get install autotools-dev autoconf automake bsdmainutils build-essential git sudo apt-get install libtool libssl-dev libboost-all-dev pkg-config sudo apt-get install libqrencode-dev libminiupnpc-dev libevent-dev libcap-dev libseccomp-dev ``` 4. Have a coffee, come back after 10 minutes. ### Step 5: Install & Compile PRiVCY daemon 1. The compilation for Raspberry Pi is not straightforward. Here's my handy script that: * Download the source for Github. * Compile required libraries. * Configure build files. * Compile daemon. * Copy daemon to home folder. You can check the content of the script [here](https://gist.github.com/stiucsib86/9eca3c814d5af2308d6d57f227d65f7f). ``` wget "https://gist.github.com/stiucsib86/9eca3c814d5af2308d6d57f227d65f7f/raw/fed383f434d62dc5ae8ee214933f7c257c9d53c1/privcy-raspberry-pi.sh" -O privcy-raspberry-pi.sh chmod +x privcy-raspberry-pi.sh ``` 2. Run the script in background. ``` sudo nohup ./privcy-raspberry-pi.sh & ``` 3. Come back after 2 hours. ## Step 6: Setting up PRiVCY daemon for first-run 1. Setup PRiVCY.conf to connect to the correct node ``` nano ~/.PRiVCY/PRiVCY.conf ``` 2. Paste the following content. ``` testnet=0 listen=1 server=1 daemon=1 maxconnections=90 rpcuser=<YourIrrelevantUsername> rpcpassword=<YourIrrelevantPassword> rpcport=18580 rpcconnect=127.0.0.1 rpcallowip=127.0.0.1 addnode=otwsvate4vvogbrt.onion:17770 addnode=nufiijzpo7ac2k6u.onion:17770 ``` (Note: You should always double the check correct nodes from [official Github Repo](https://github.com/privcycoin/privcy/releases)). 3. Copy your wallet.dat and paste in ~/.PRiVCY/ folder. ## Step 7: (Optional) Setting Startup Daemon 1. You can setup cron to automatically start PRiVCY daemon when system boot up. ``` mkdir ~/logs sudo crontab -e ``` 2. Append the following: ``` @reboot sudo -u <yourUser> /home/<yourUser>/PRiVCYd >> /home/<yourUser>/logs/crontab.log 2>&1 ``` Note: The last part is to send all output to a log file so you can check that if you still have problems ### Step 8: Done! 1. Fire up PRiVCY daemon! ``` cd ~ ./PRiVCYd ``` 2. Happy staking!  3. Psst, don't forget to buy me coffee :D PRiVCY: PLxacTDxY5EYsTk2538s6nCbVGm4mqB74z ### TODO - walletpassphrase - clear bash history - add swapfile - https://pivx.freshdesk.com/support/solutions/articles/30000027088-how-to-set-a-swapfile-on-the-raspberry
author | stiucsib86 |
---|---|
permlink | staking-privcy-coin-with-raspberry-pi |
category | privcy |
json_metadata | {"tags":["privcy","cryptocurrency","staking","raspberrypi"],"links":["https://www.raspberrypi.org/downloads/raspbian/","https://etcher.io/","https://gist.github.com/stiucsib86/9eca3c814d5af2308d6d57f227d65f7f","https://github.com/privcycoin/privcy/releases","https://pivx.freshdesk.com/support/solutions/articles/30000027088-how-to-set-a-swapfile-on-the-raspberry"],"app":"steemit/0.1","format":"markdown","image":["https://cdn.steemitimages.com/DQmXAPRk1piTn63banorhKALQSVxK1LfmQb2ESmSKKzGoFG/Screen%20Shot%202018-06-19%20at%2011.28.30%20AM.png","https://cdn.steemitimages.com/DQmNmF9oqVXTxDcdpThmgp33sWn9p5EfUV5QK1ZwEvnVQME/image.png","https://cdn.steemitimages.com/DQmQcFqAJUGf1UmSsT7SL4s3mWBgbvfZvUH9ghTRo3oF9XG/image.png","https://cdn.steemitimages.com/DQmdLmSNdxp4YAGKqEkCefWpKjoZhKMoGCh8EvoFB6EsBEv/image.png"]} |
created | 2018-06-19 03:10:36 |
last_update | 2018-06-20 04:24:15 |
depth | 0 |
children | 2 |
last_payout | 2018-06-26 03:10:36 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 5,454 |
author_reputation | 43,164,676 |
root_title | "Staking [PRiVCY Coin] with Raspberry Pi" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 61,304,104 |
net_rshares | 405,538,417 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
c15k0 | 0 | 0 | 100% | ||
youngogmarqs | 0 | 87,725,420 | 0.02% | ||
dragononcrypto | 0 | 0 | 100% | ||
capncrypto | 0 | 0 | 100% | ||
mikits | 0 | 317,812,997 | 100% | ||
kytzupuw | 0 | 0 | 100% |
Wew fishballllls Posted using [Partiko Messaging](https://steemit.com/@partiko)
author | kytzupuw |
---|---|
permlink | kytzupuw-re-stiucsib86-staking-privcy-coin-with-raspberry-pi-20190412t170528684z |
category | privcy |
json_metadata | {"app":"partiko","from_partiko_messaging":true} |
created | 2019-04-12 17:05:30 |
last_update | 2019-04-12 17:05:30 |
depth | 1 |
children | 0 |
last_payout | 2019-04-19 17:05:30 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 80 |
author_reputation | 11,558,389,457 |
root_title | "Staking [PRiVCY Coin] with Raspberry Pi" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 82,970,236 |
net_rshares | 0 |
Congratulations @stiucsib86! You have received a personal award! [](http://steemitboard.com/@stiucsib86) 1 Year on Steemit <sub>_Click on the badge to view your Board of Honor._</sub> > Do you like [SteemitBoard's project](https://steemit.com/@steemitboard)? Then **[Vote for its witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1)** and **get one more award**!
author | steemitboard |
---|---|
permlink | steemitboard-notify-stiucsib86-20180726t063512000z |
category | privcy |
json_metadata | {"image":["https://steemitboard.com/img/notify.png"]} |
created | 2018-07-26 06:35:12 |
last_update | 2018-07-26 06:35:12 |
depth | 1 |
children | 0 |
last_payout | 2018-08-02 06:35:12 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 494 |
author_reputation | 38,975,615,169,260 |
root_title | "Staking [PRiVCY Coin] with Raspberry Pi" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 66,011,323 |
net_rshares | 0 |