# Fund 9 - Updates

Saved public updates for increased Auditability for Revelar's Catalyst Proposals

### Voting Has Started! 👋

This is the template we use to start each of our Catalyst Fund tracking in Gitbook. Feel free to copy this template and use it in your own use cases!:thumbsup::thumbsup::thumbsup::thumbsup:\
We hope you find this easy to navigate to stay on top of the progress we are making with the use of the Catalyst Funds, thank you for supporting us with your votes & support! 🙏\
\
**Revelar's Funded Proposals - F9:**&#x20;

| Proposal Title | Ideascale Link |
| -------------- | -------------- |
|                |                |
|                |                |
|                |                |
|                |                |
|                |                |

### Quick Links to Work in Progress


# Results & Kickoff

Review of the Results and next steps for onboarding

**Revelar's Proposal Results:**

* **xx of 2 were** <mark style="color:yellow;">**Approved**</mark>, xx **were** <mark style="color:green;">**Funded**</mark>, xx **was&#x20;**<mark style="color:red;">**Rejected**</mark>.&#x20;
* Onboarding completed with the Proof of Life submitted to the IOHK Team.&#x20;
* All Proposal forms have been submitted for funding and the first check-in.&#x20;

**Next Steps:**

**Roadblocks -** <mark style="color:green;">**None, Funds Paid, Work begins!**</mark>


# Template

(Idea scale URL Goes here)

{% tabs %}
{% tab title="Updates" %}

### <mark style="color:orange;">{Date} Report:</mark>

**Previous Milestone:**

\ <br>

**Progress:**

&#x20;

**Next Steps:**

**Roadblocks:**

None

**Status:**\
ON TIME&#x20;
{% endtab %}

{% tab title="Final Update" %}

{% endtab %}
{% endtabs %}

###


# Fund 8 - Updates

Saved public updates for increased Auditability for Revelar's Catalyst Proposals

### Welcome 👋

We appreciate you spending the time to visit these docs & fulfill a core pillar of the Catalyst Fund - Auditability. It's important as a funded proposer we keep a transparent public log of how we steward these ecosystem funds. If you have any further questions, concerns, or suggestions please send them to <mark style="color:blue;">**<catalyst@revelar.co>**</mark> \
\
We hope you find this easy to navigate to stay on top of the progress we are making with the use of the Catalyst Funds, thank you for supporting us with your votes & support! 🙏\
\
**Revelar's Funded Proposals - F8:**&#x20;

<table><thead><tr><th width="341.9651027530051">Proposal Title</th><th>Ideascale Link</th></tr></thead><tbody><tr><td>Duo - (Alpha) - Web App</td><td><a href="https://cardano.ideascale.com/c/idea/405275">https://cardano.ideascale.com/c/idea/405275</a></td></tr><tr><td>Duo - Afrikaans Gameplay</td><td><a href="https://cardano.ideascale.com/c/idea/405251">https://cardano.ideascale.com/c/idea/405251</a></td></tr><tr><td>Duo - Brazilian Portuguese Gameplay</td><td><a href="https://cardano.ideascale.com/c/idea/405205">https://cardano.ideascale.com/c/idea/405205</a></td></tr><tr><td>Duo - Filipino Gameplay</td><td><a href="https://cardano.ideascale.com/c/idea/405250">https://cardano.ideascale.com/c/idea/405250</a></td></tr><tr><td>Duo - German Gameplay</td><td><a href="https://cardano.ideascale.com/c/idea/405267">https://cardano.ideascale.com/c/idea/405267</a></td></tr><tr><td>Duo - Spanish Gameplay</td><td><a href="https://cardano.ideascale.com/c/idea/405261">https://cardano.ideascale.com/c/idea/405261</a></td></tr><tr><td>No-code NFT minting - Revelar</td><td><a href="https://cardano.ideascale.com/c/idea/405225">https://cardano.ideascale.com/c/idea/405225</a></td></tr><tr><td>Low Cost Node Hardware - Revelar</td><td><a href="https://cardano.ideascale.com/c/idea/405125">https://cardano.ideascale.com/c/idea/405125</a></td></tr></tbody></table>

### Quick Links to Open Source WIP


# Results & Kickoff

**Revelar's Proposal Results:**

* **13 of 14 were** <mark style="color:yellow;">**Approved**</mark>, **8 were** <mark style="color:green;">**Funded**</mark>, **1 was&#x20;**<mark style="color:red;">**Rejected**</mark>.&#x20;
* Onboarding completed with the Proof of Life submitted to the IOHK Team.&#x20;
* All Proposal forms have been submitted for funding and the first check-in.&#x20;

To review all the results, here is a quick link to Catalyst's official document:

<https://drive.google.com/file/d/1s3jCE7pmoUujy3ASMia-UhFl2KLi_hnf/view><br>

**Next Steps:**

**Roadblocks -** <mark style="color:green;">**None, Funds Paid, Work begins!**</mark>


# Duo - (Alpha) - Web App

https\://cardano.ideascale.com/c/idea/405275

{% tabs %}
{% tab title="August Updates" %}

### <mark style="color:orange;">August 22' Report:</mark>

**Previous Milestone:**

As a recap of this proposal we are building a full web application for our game Duo ([www.getduo.gg](http://www.getduo.gg)) that serves as our next iteration of gameplay beyond our Discord server's daily game & recent Game Nights across partner servers. The goal for our alpha app is to test the following game mechanics:\
\- Hosted gameplay through rooms\
\- Connecting wallets & validating game pieces\
\- Expanding games to multiple games per hour\
\- Single view for all wallet assets\
\- Testing crafting mechanics\ <br>

**Progress:** \
During August we focused primarily on the player's wallet in Duo, syncing it with all the back end workflows (Room Gameplay, On Chain Sync, Crafting, etc) to make sure we had all the needed UI elements accounted for.\
\
tDUO tokens were added as an offline (worthless) token to simulate OFF\_CHAIN token play before incorporating a test net token. This allows us to quickly and fully modify parameters on gameplay and crafting before using a more complex system. \
\
Updated Matchmaking animation screens\
\
We also connected up a full item search and filtering infrastructure to quickly filter through large wallet balances. <br>

<figure><img src="https://1187970983-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhEb0J0Ji4MnghImLFgHz%2Fuploads%2FhGxVrGfgEfzCDIbI3cva%2FAug%20WebApp1.jpg?alt=media&amp;token=98ccae5f-2437-4f49-8034-9b8be724d2ec" alt=""><figcaption><p>A players wallet in the app, to view cards, favorite, and craft new cards. </p></figcaption></figure>

\
During this month we also solidified our first Community partner that we will be launching Duo with during CNFT Con as a way to engage and reward the players for connecting with new people in the community! This will take place in a themed deck release that rewards content creators inside the community as a limited edition drop for their current pfp holders. <br>

* Crafting & On-demand minting via Revelar
* Final On-Chain sync for Assets
* Winner Workflows
* Final Cleanup

**Roadblocks:**

None

**Status:**\
BEHIND WITH CNFT CON LAUNCH ADDITION BY A SPRINT OR TWO.
{% endtab %}

{% tab title="July Updates" %}

### <mark style="color:orange;">July 22' Report:</mark>

**Previous Milestone:**

As a recap of this proposal we are building a full web application for our game Duo ([www.getduo.gg](http://www.getduo.gg)) that serves as our next iteration of gameplay beyond our Discord server's daily game & recent Game Nights across partner servers. The goal for our alpha app is to test the following game mechanics:\
\- Hosted gameplay through rooms\
\- Connecting wallets & validating game pieces\
\- Expanding games to multiple games per hour\
\- Single view for all wallet assets\
\- Testing crafting mechanics\ <br>

**Progress:** \
During July we focused primarily on testing the whole flow of the game in the front end interface to make sure our data structure was sound and we had accounted for the different edge cases of voting and gameplay. \
\
We created the entire voting flow and some back end room management for Hosts (admins, eventually communities hosting Duo games) so they can see the entire view. For simplicity we have decided to run players through Login -> Matchmaking -> Enter Room/Lock Stake -> Play Game -> View Results (hopefully win!)<br>

<figure><img src="https://1187970983-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhEb0J0Ji4MnghImLFgHz%2Fuploads%2FISiwuUjCEcOmsBtnoTzk%2FJuly%20WebApp3.jpg?alt=media&amp;token=1ce93cb6-be99-4628-80e6-df4f7cf61fc3" alt=""><figcaption><p>Admin view of all rooms </p></figcaption></figure>

<figure><img src="https://1187970983-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhEb0J0Ji4MnghImLFgHz%2Fuploads%2FdxJkDAm0Tk3EnHGAKHbZ%2FJuly%20WebApp2.jpg?alt=media&amp;token=00245152-043e-4e58-997f-963340972d39" alt=""><figcaption><p>Create a new room as a Host (future)</p></figcaption></figure>

<figure><img src="https://1187970983-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhEb0J0Ji4MnghImLFgHz%2Fuploads%2FM6dZiBa9GW9kfHjDgCet%2FJuly%20WebApp.jpg?alt=media&amp;token=43053e46-13ac-4e4d-b04d-a12b83d2a11c" alt=""><figcaption><p>Player View of Black Card Voting</p></figcaption></figure>

**Next Steps:**

* Player Wallet
* Backend Workers for Round Management & Room Matchmaking
* Off-Chain transaction simulations for Alpha

**Roadblocks:**

None

**Status:**\
ON TIME&#x20;
{% endtab %}

{% tab title="June Updates" %}

### <mark style="color:orange;">June 22' Report:</mark>

**Previous Milestone:**

As a recap of this proposal we are building a full web application for our game Duo ([www.getduo.gg](http://www.getduo.gg)) that serves as our next iteration of gameplay beyond our Discord server's daily game & recent Game Nights across partner servers. The goal for our alpha app is to test the following game mechanics:\
\- Hosted gameplay through rooms\
\- Connecting wallets & validating game pieces\
\- Expanding games to multiple games per hour\
\- Single view for all wallet assets\
\- Testing crafting mechanics\ <br>

**Progress:** \
Since onboarding for F8 we have finalized the data structure and design for hosting rooms, begun building the app along with our wallet connector. The backend framework and database has been built and we are beginning work on front end connections for wireframe gameplay. \
\
Here is an example of picking up an ADA handle in our front end web app.

![Connected Wallet with an ADA Handle](https://1187970983-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhEb0J0Ji4MnghImLFgHz%2Fuploads%2FS0l9q1r6PTz7bqYT7bms%2FScreen%20Shot%202022-06-22%20at%204.10.10%20PM.png?alt=media\&token=10ff2128-390d-4de9-a80e-3b10e8fa7ef8)

At Cardano's Marlowe hackathon (During Consensus) we experimented with a full gameplay smart contract to collect stake, game entries, and pay out winners.&#x20;

&#x20;

**Next Steps:**

* Complete the Wallet connector to load assets into a local session for gameplay
* Finish an automated room creation script

**Roadblocks:**

None

**Status:**\
ON TIME&#x20;
{% endtab %}

{% tab title="Final Update" %}

{% endtab %}
{% endtabs %}

###


# Duo Translation (Multiple)

Full List below for the multiple proposals

Spanish - <https://cardano.ideascale.com/c/idea/405261> \
Afrikaans - [https://cardano.ideascale.com/c/idea/405251 ](https://cardano.ideascale.com/c/idea/405251)\
German - [https://cardano.ideascale.com/c/idea/405267 ](<https://cardano.ideascale.com/c/idea/405267 >)\
Filipino - <https://cardano.ideascale.com/c/idea/405250>\
Brazilian Portuguese - <https://cardano.ideascale.com/c/idea/405205>

{% tabs %}
{% tab title="Final Update" %}
\
🇪🇸 **Spanish Gameplay Closeout Report**\
**Video:**<https://www.loom.com/share/b2efcf88d4bf450788de38964894423c>\
**Report:**<https://docs.google.com/document/d/1GUWi8mUcWVFBSYYl2TjGqhpc_e3rYQ2PJz2HSl6wPAw/edit?usp=sharing><br>

**🇿🇦 Afrikaans Gameplay Closeout Report**\
**Video:**<https://www.loom.com/share/b378ce58292641cf9e064aa46f311510>\
**Report:**<https://docs.google.com/document/d/1DFgmwDJWLSvLg1kEvm_DrKM4rUi1AlSMcSFGXRDU54M/edit?usp=sharing>

**🇩🇪 German Gameplay Closeout Report**\
**Video:**<https://www.loom.com/share/75225a849510440f98fe140e1df4e303>\
**Report:**<https://docs.google.com/document/d/15yq4I8_-EfeTLegOeFr6lVWuANBLQgDwyh9fDvJ5oCA/edit?usp=sharing>

**🇵🇭 Filipino Gameplay Closeout Report**\
**Video:**<https://www.loom.com/share/46d0fdf541f7477aad7f79a0a80e4e34>\
**Report:**<https://docs.google.com/document/d/1txiBOtzrE82VRNgwv-i-t3FPpNqxXjWcdZjExypBsgI/edit?usp=sharing>

**🇧🇷 Brazilian Portuguese Gameplay Closeout Report**\
**Video:**<https://www.loom.com/share/31936d5264cc49dba9c324f66e76f65d>\
**Report:**<https://docs.google.com/document/d/19OYTer9W0rN3MHK967txeoZnF6qMpOpNCguYb2f475U/edit?usp=sharing>

\
RML (Aramel Martin) was the Project lead and coordinated with many players in our Duo community to make this possible! He also created a community tool to test out the deck design within his spreadsheets which was a fantastic to see as a community leader going above and beyond with his dedication! \
\
Thank you RML, this project was made so much better with you! ❤️
{% endtab %}

{% tab title="August Updates" %}

### <mark style="color:orange;">August 22' Report:</mark>

**Previous Milestone:**

As a recap, we asked the community to help us evaluate different regions around the world that would like to play Duo in their own native language and localized humor. This serves as a way for us to establish insights into alternatives in gameplay based on global trends in humor and test expansion in different regions. \
\
Translation is a non-trivial process to make sure the game retains its fun gameplay. We identified 5 languages based off our community partners and interest and are translating a small sample deck in each language to test gameplay in these regions.<br>

**Progress:**

We completed all the translation and are going back through our first batch of QA. We have also created the process for creating all the cards with Revelar's new 2 stage minting process that we will be using to release these cards. \
\
A big discussion has gone into the idea of running cards with separate language decks or all in one. Due to the nature of how we plan for User Generated Content, we believe the best approach is launching these as their own cards in an appropriate language deck. \
\
While the QA Reviews are ongoing, it's fairly clear that this cohort of translators had much more to note and document as they translated or in one-on-one calls. It meant that this was part of the process that was likely over designed and could be made simpler in future iterations. \
\
Final Translation Sheets:\
<https://revelargaming.notion.site/Translation-Spreadsheets-f572ad3204084afda258dfc111af170a>\
&#x20;

**Next Steps:**\
Final team recap and RML's project notes for closeout on all the proposals. Cards will be Minted after our Community Deck is released in October. <br>

**Roadblocks:**

None

**Status:**\
ON TIME&#x20;
{% endtab %}

{% tab title="July Updates" %}

### &#x20;<mark style="color:orange;">July 22' Report:</mark>

**Previous Milestone:**

As a recap, we asked the community to help us evaluate different regions around the world that would like to play Duo in their own native language and localized humor. This serves as a way for us to establish insights into alternatives in gameplay based on global trends in humor and test expansion in different regions. \
\
Translation is a non-trivial process to make sure the game retains its fun gameplay. We identified 5 languages based off our community partners and interest and are translating a small sample deck in each language to test gameplay in these regions.<br>

**Progress:**

Together with RML our Project Manager we were able to define an onboarding for each translator to become familiar with the Duo game and the nuances to crafting well structured and funny prompt-punchline pairs. \
\
Translator Onboarding (PUBLIC)\
<https://revelargaming.notion.site/Welcome-Translators-2c0f9f417b144556af59fa6d2726f6e1>

We also created the process for Testing the translation deck, Intro Deck, and QA Review process for each language. These are in the Tasks section in the link above. \
\
\
Unfortunately we need to change our Portuguese approach due to a translator not feeling comfortable with the nature of the content.  This was a great test for us to see where different cultures may not be comfortable with the wild variety of content used in the community.&#x20;

**Next Steps:**

Translators to finish work with Test & Intro deck content for final updates.

**Roadblocks:**

None

**Status:**\
ON TIME&#x20;
{% endtab %}

{% tab title="June Updates" %}

### <mark style="color:orange;">June 22' Report:</mark>

**Previous Milestone:**

As a recap, we asked the community to help us evaluate different regions around the world that would like to play Duo in their own native language and localized humor. This serves as a way for us to establish insights into alternatives in gameplay based on global trends in humor and test expansion in different regions. \
\
Translation is a non-trivial process to make sure the game retains its fun gameplay. We identified 5 languages based off our community partners and interest and are translating a small sample deck in each language to test gameplay in these regions.<br>

**Progress:**

Since funding onboarding, we have identified several primary and secondary translators for Spanish, Afrikaans, Filipino & Brazilian Portuguese. The last language we have to identify translators for is German but have several uncommitted conversations active and aren't worried about finding a partner with the deep Cardano community in Germany. \
\
\- Hired project manager for all translation and spot checking review with community members.\
&#x20;

**Next Steps:**

Using our finalized example deck in English, have each translator begin the localization translation and get community feedback on if it makes sense.&#x20;

**Roadblocks:**

None

**Status:**\
ON TIME&#x20;
{% endtab %}
{% endtabs %}

###


# No-Code NFT Minting

https\://cardano.ideascale.com/c/idea/405225

{% tabs %}
{% tab title="June Updates" %}

### <mark style="color:orange;">6/23/22 Report:</mark>

**Previous Milestone:**

As a recap of our proposal we are creating a no-code NFT minting generator. To double down on the ease and experiment of this we are using a low-code tool (Bubble.io) to create the v1 of this. We believe this will not only highlight a much lower barrier to entry for many who want to build applications for the web3 space but give us fast iterations with everyone on our team as a stakeholder who can update and iterate on the app creating well rounded redundancy. \
\
\- Uploading all layers and defining assets to become NFTs\
\- Setting logic parameters for your NFTs\
\- Creating rarity rules for each layer in your NFT assets\
\- Finalizing the full set of assets and exporting them locally\
\- Upload to IPFS and Minting on Cardano with Revelar's Multi-Minter\
\- Setting up Sales pages to buy NFTs\ <br>

**Progress:**

The majority of this sprint has been on revamping some of the UI and getting the front end logic framework in place in a quick and ugly form so we can check and make sure the asset uploads work as expected. We have finalized the data structure with nested Projects, Collections, Assets and have integrated the overall user creation and login into our frontend app. \
\
![](https://1187970983-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhEb0J0Ji4MnghImLFgHz%2Fuploads%2F1kLOEeD1IMz93EIdg0r1%2FScreen%20Shot%202022-06-23%20at%208.58.16%20AM.png?alt=media\&token=a5334206-05a2-4606-92ab-876fdcc140df)

**Next Steps:**

* Continue with finishing the Asset upload form and populate our Asset Management page with these assets. (We will test with our Duo Community deck and Translation Decks)
* Merge in and complete progress with [Game Asset Management ](/catalyst-updates/fund-7-updates/game-asset-management)and [NFT Game Asset API](/catalyst-updates/fund-7-updates/nft-game-assets-api)\ <br>

**Roadblocks:**

None

**Status:**\
ON TIME&#x20;
{% endtab %}

{% tab title="Final Update" %}

{% endtab %}
{% endtabs %}

###


# Low Cost Node Hardware

https\://cardano.ideascale.com/c/idea/405125

{% tabs %}
{% tab title="June Updates" %}

### <mark style="color:orange;">6/23/22 Report:</mark>

**Previous Milestone:**

As a recap of this proposal we are expanding upon our learning from our completed Fund 7 Proposals: [Easy Cardano Node](https://catalyst.revelar.co/easy-cardano-node-deployment/) and our [Off Grid Solar Enclosure](https://catalyst.revelar.co/off-grid-solar-cardano-node-enclosure/) where we found that there was major roadblocks for Raspberry Pi based hardware due to supply chain shortages, but huge opportunity with low cost hardware using a M.2 NVME drive to expand RAM on low end devices. \
\
We envisioned using similar hardware such as a Rock Pi with its onboard M.2 NVME expansion to improve on the learnings with managing a full node by increasing the RAM virtually and actually getting devices in the current supply chain shortages. (USA)<br>

**Progress:**\
Our first step was making sure we have the hardware needed to test our theories and setup a node on a Rock Pi. \
\
Following Materials have been purchased to begin our experiments setting up a node and expanding the low (4GB) RAM with a virtualized SWAP. \
\
\- [Rock Pi 4 Plus Model B Rockchip RK3399](https://www.amazon.com/dp/B095LGKP5J?psc=1\&ref=ppx_yo2ov_dt_b_product_details) (4GB)\
\- [M.2 NVMe SSD 256GB ](https://www.amazon.com/dp/B07XHMB5GP?psc=1\&ref=ppx_yo2ov_dt_b_product_details)\
\- [Heatsinks (Repurposed from Raspberry Pi)](https://www.amazon.com/dp/B0963BMGFY?psc=1\&smid=A2NBN5PD2G7LDZ\&ref_=chk_typ_imgToDp) - better options exist if shipping from China.\
\
![](https://1187970983-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhEb0J0Ji4MnghImLFgHz%2Fuploads%2FpzqC9HJwighphRXbDYGg%2FIMG_1811.jpeg?alt=media\&token=d1741b2d-d685-41e4-abd1-1270a7dab399)\
\
Finally we will be using this Thingiverse File for holding the M.2 SSD in place. <https://www.thingiverse.com/thing:5247971>

&#x20;

**Next Steps:**\
Tinkering! We will be starting from the previous deployment experiment from our Easy Cardano Node to see what roadblocks come up with deploying a better node.&#x20;

**Roadblocks:**

None

**Status:**\
ON TIME&#x20;
{% endtab %}

{% tab title="Final Update" %}

{% endtab %}
{% endtabs %}

###


# Fund 7 - Updates

Saved public updates for increased Auditability for Revelar's Catalyst Proposals

### Welcome 👋

We appreciate you spending the time to visit these docs & fulfill a core pillar of the Catalyst Fund - Auditability. It's important as a funded proposer we keep a transparent public log of how we steward these ecosystem funds. If you have any further questions, concerns, or suggestions please send them to <mark style="color:blue;">**<catalyst@revelar.co>**</mark> \
\
We hope you find this easy to navigate to stay on top of the progress we are making with the use of the Catalyst Funds, thank you for supporting us with your votes & support! 🙏\
\
**Revelar's Funded Proposals - F7:**&#x20;

| Proposal Title                   | Ideascale Link                                |
| -------------------------------- | --------------------------------------------- |
| Easy Node Deployment \[Revelar]  | <https://cardano.ideascale.com/c/idea/383959> |
| Guide for Off Grid Pi Node       | <https://cardano.ideascale.com/c/idea/383929> |
| Game Asset Management \[Revelar] | <https://cardano.ideascale.com/c/idea/383911> |
| NFT Game Assets API \[Revelar]   | <https://cardano.ideascale.com/c/idea/383968> |
| Self Governed Gaming \[Revelar]  | <https://cardano.ideascale.com/c/idea/383944> |

### Quick Links to Open Source WIP

{% content-ref url="/spaces/nKAkSccIXj8I3e1eh9Hu" %}
[Off Grid Solar - Cardano Node Enclosure](https://catalyst.revelar.co/off-grid-solar-cardano-node-enclosure/)
{% endcontent-ref %}

{% content-ref url="/spaces/h653FoCkRemt469c0Kt3" %}
[Easy Cardano Node Deployment](https://catalyst.revelar.co/easy-cardano-node-deployment/)
{% endcontent-ref %}


# Results & Kickoff

Review of the Results and next steps for onboarding

**Revelar's Proposal Results:**

* **10 of 11 were** <mark style="color:yellow;">**Approved**</mark>, **5 were** <mark style="color:green;">**Funded**</mark>, **1 was&#x20;**<mark style="color:red;">**Rejected**</mark>.&#x20;
* Onboarding completed with the Proof of Life submitted to the IOHK Team.&#x20;
* All Proposal forms have been submitted for funding and the first check-in.&#x20;

**Next Steps:**

* Finalize NFT API Architecture plan & setup cloud infrastructure.
* Deploy Pi Node & begin documentation
* Finalize and Order all materials for Off Grid Enclosure
* Begin Atala PRISM onboarding
* UI/UX updates for Asset Management

**Roadblocks -** <mark style="color:green;">**None, Awaiting Funds Payout**</mark>


# Off Grid Pi Node Enclosure

https\://cardano.ideascale.com/c/idea/38392

{% content-ref url="/spaces/nKAkSccIXj8I3e1eh9Hu" %}
[Off Grid Solar - Cardano Node Enclosure](https://catalyst.revelar.co/off-grid-solar-cardano-node-enclosure/)
{% endcontent-ref %}

Follow along with progress & deliverables on this here :point\_up:

{% tabs %}
{% tab title="March Updates" %}

### <mark style="color:orange;">3/22/22 Report:</mark>

**Previous Milestone:**

As a recap of this proposal we are building an off grid solar enclosure for multi-year deployments of Cardano nodes in remote regions. This guide covers the build and documentation of the enclosure and helpful tools and links for ARM based bare metal Cardano nodes ( Raspberry Pi's, Rock Pi's etc... )&#x20;

**Progress:**

There have been some modifications to account for supply chain disruptments as the first step was to finalize materials list and order components. We have finalized this list and used existing hardware to test the full deployment of a Raspberry Pi node and confirm our proof of concept.&#x20;

**Next Steps:**

Finalize materials list, order final parts, deploy Node again with updated materials and final enclosure.

**Roadblocks:**

Awaiting delivery of parts. (Still on time)

**Status:**

ON TIME

![Node Prototype Enclosure with extended pole for long range Point to Point Internet connection. Will be modified in final version](https://1187970983-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhEb0J0Ji4MnghImLFgHz%2Fuploads%2Fz3hiVCSz4GVrSTevb3Bf%2FIMG_0329.jpg?alt=media\&token=0c5b4e2e-a498-4ced-853d-c55396b68e67)
{% endtab %}

{% tab title="April Updates" %}

### <mark style="color:orange;">4/5/22 Report:</mark>

**Previous Milestone:**

Picking up from our last progress report, we have had to modify some of our materials used in the build (primarily moving away from Unifi SolarMax managed switch) which meant that we were awaiting some parts for the final materials list.

**Progress:**

Since 3/22 - We have just received all our parts and are testing a modification for deeper data analytics with a dedicated Pi Zero W running a Grafana instance for our node. Benjamin and I are finalizing that deployment this week. This is not critical to the proposal but would provide deeper data with minimal needs and we will mark the materials for that as optional.&#x20;

**Next Steps:**

Add Final Materials & Costs to Gitbook\
Build & Document final Enclosure

**Roadblocks:**

None

**Status:**

ON TIME

![A messy desk with all the parts for the build. (Don't worry this will get more organized in documentation) :)](https://1187970983-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhEb0J0Ji4MnghImLFgHz%2Fuploads%2FVGGmEfUDKwVnhZIpkcom%2FOff%20Grid%20Enclosure%20Parts.jpg?alt=media\&token=3f61ab33-8aa4-40ae-ad7a-4cbfae602359)
{% endtab %}

{% tab title="May Updates" %}
This has not been completed or closed out do to a roadblock during deployment.&#x20;
{% endtab %}

{% tab title="Final Update" %}

{% endtab %}
{% endtabs %}

###


# Easy Node Deployment

https\://cardano.ideascale.com/c/idea/383959

{% content-ref url="/spaces/h653FoCkRemt469c0Kt3" %}
[Easy Cardano Node Deployment](https://catalyst.revelar.co/easy-cardano-node-deployment/)
{% endcontent-ref %}

Follow along with progress & deliverables on this here :point\_up:

{% tabs %}
{% tab title="March Updates" %}

### <mark style="color:orange;">3/22/22 Report:</mark>

**Previous Milestone:**

As a recap of this project, we proposed exploring a faster way for developers looking to quickly setup their own Node as a non-stake pool for data or minting based needs as they build out their own projects.&#x20;

**Progress:**

To keep costs low and explore a bare metal use case (for decentralization) we explored using Armada Alliances guide on setting up ARM based Nodes. We have successfully deployed and documented the entire process as the primary focus of our time over the last few weeks.

**Next Steps:**

Final documentation formatting, recap and final reporting for Catalyst Coordinators

**Roadblocks:**

None

**Status:**

ON TIME
{% endtab %}

{% tab title="April Updates" %}

### <mark style="color:orange;">4/5/22 Report:</mark>

**Previous Milestone:**

We were able to complete the updates to the Armada Alliance's old guide and connect with the team to make contributions and updates with this guide as we complete it. With this new guide we have accounted for the most recent Feb 2022 updates to deploying a cardano node on bare metal Raspberry Pi's.&#x20;

**Progress:**

The last steps in our documentation was creating the Prometheus and Grafana guides for ongoing monitoring, this is 80% complete and we expect to deliver the final update next check-in.&#x20;

**Next Steps:**

Final documentation formatting, recap and final reporting for Town Hall

**Roadblocks:**

None

**Status:**

ON TIME
{% endtab %}

{% tab title="Final Update" %}

### <mark style="color:orange;">5/22/22 Report:</mark>

**Previous Milestone:**

The last steps in our documentation was creating the Prometheus and Grafana guides for ongoing monitoring, this is 80% complete and we expect to deliver the final update next check-in.&#x20;

**Progress:**

Closeout Report done!\
\
[https://app.gitbook.com/o/sBsuCwzXMwBfFCl6cnTl/s/h653FoCkRemt469c0Kt3/catalyst-closeout-report](/easy-cardano-node-deployment/catalyst-closeout-report)

**Next Steps:**

Party!

**Status:**

Complete!
{% endtab %}
{% endtabs %}

###


# Game Asset Management

https\://cardano.ideascale.com/c/idea/383911

{% tabs %}
{% tab title="March Updates" %}

### <mark style="color:orange;">3/22/22 Report:</mark>

**Previous Milestone:**

As a brief recap of the focus of this proposal - Revelar is building an NFT Game Engine to quickly integrate games on-chain. This Game Asset Management is a core structure to how game developers or creators structure and monitor their assets (NFT's + FTs). This is the first report for this proposal, we have onboarded, and have made progress on our first sprint milestone listed below.&#x20;

**Progress:**

We started this proposal with some prototype mockup's and UI. We have revisited the full flow of UX to make sure we have considered ease of use with new users & minimize repetitive tasks. \
\- Onboarding Projects (new & existing)\
\- Managing Assets through different stages (mint & beyond)\
\- Inventory stats and on-chain data streams\
\
We believe we have our UI / UX 95% complete for v1 with all remaining tweaks to be made in Frontend development. \
\
An important discovery that came out of this phase was exploring a different hierarchy around NFTs within or in conjunction to the CIP - 025 standard. We have included this in our F8 Proposals for Open Standards.&#x20;

**Next Steps:**

The next sprint, starting Mar 23rd will be focused on frontend development with a demo video (dummy data) to show basic interactions and functions. \
\
Concurrently we are working on the backend API's with our "NFT Game Assets API" proposal and will likely be integrating the calls to the frontend and testing in this upcoming sprint. <br>

**Roadblocks:**

None.

**Status:**

ON TIME<br>

### UI / UX Updates&#x20;

![Managing assets in a collection post mint. Asset Owner view.](https://1187970983-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhEb0J0Ji4MnghImLFgHz%2Fuploads%2FW6uwSC0oi0Es3fMFDJNB%2FAsset_Management.png?alt=media\&token=f85a60dd-3182-4175-b1f1-2e124ef1380f) ![Collections dashboard with relevant high level data.](https://1187970983-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhEb0J0Ji4MnghImLFgHz%2Fuploads%2Fb5aZJIS1gLCrGCVxQxZY%2FAsset_Dashboard_-_Collections.png?alt=media\&token=2dd4d76c-b201-4cad-a0bd-bb4ceb5fd19e) ![Adding a "Project" level hierarchy for deeper management.](https://1187970983-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhEb0J0Ji4MnghImLFgHz%2Fuploads%2FCpkcWYr0wjVDmdm3nsBZ%2FAsset_Dashboard_-_Projects.png?alt=media\&token=1a5df566-337c-4391-861e-916e8a46fd4f)
{% endtab %}

{% tab title="April Updates" %}

### <mark style="color:orange;">4/5/22 Report:</mark>

**Previous Milestone:**

We started this proposal with some prototype mockup's and UI. We have revisited the full flow of UX to make sure we have considered ease of use with new users & minimize repetitive tasks. \
\- Onboarding Projects (new & existing)\
\- Managing Assets through different stages (mint & beyond)\
\- Inventory stats and on-chain data streams\
\
We believe we have our UI / UX 95% complete for v1 with all remaining tweaks to be made in Frontend development. <br>

**Progress:**

As we reprioritized some sprint tasks for Easy Node Deployment to be finished ahead of schedule & our NFT Game Assets API to include multi minting, there was no meaningful progress made on the Frontend development of the UI. \
\
No Delay is expected as we have more bandwidth from completing other proposals earlier.<br>

**Next Steps:**\
*Pull through from previous sprint*

The next sprint, we will be focused on frontend development with a demo video (dummy data) to show basic interactions and functions. \
\
Concurrently we are working on the backend API's with our "NFT Game Assets API" proposal and will likely be integrating the calls to the frontend and testing in this upcoming sprint. <br>

**Roadblocks:**

None

**Status:**

ON TIME

{% endtab %}

{% tab title="May Updates" %}

{% endtab %}

{% tab title="Final Update" %}

{% endtab %}
{% endtabs %}

###


# NFT Game Assets API

https\://cardano.ideascale.com/c/idea/383968

{% tabs %}
{% tab title="March Updates" %}

### <mark style="color:orange;">3/22/22 Report:</mark>

**Previous Milestone:**

As a brief recap of the focus of this proposal - Revelar is building an NFT Game Engine to quickly integrate games on-chain. This NFT Game Asset API is the core backend API to interacting through Cardano nodes to the blockchain & data queries. This is the first report for this proposal, we have onboarded, and have made progress on our first sprint milestone listed below.&#x20;

**Progress:**

High reliability is key for these core API services, and we have spent this sprint reviewing data structures that exist with Cardano's GraphQL and how other projects have approached creating API's (particularly Blockfrost). We have defined our core architecture and will be deploying a hybrid cloud approach with the majority of services running in Google Cloud, with development nodes running on site on bare metal deployments. \
&#x20;\
We believe this gives us the best balance of speed to delivery, global coverage, and decentralized local nodes as a fallback. \
\
Part of this proposal is scripts for asset generation (stacking layers) which we have completed 70%. The next step is to deploy in our cloud instances and test via some of the beginning endpoints. API documentation will begin next sprint, and will likely be available for first review late April. \
\
Developers looking to be early testers should reach out to <mark style="color:blue;"><ben@revelar.co></mark> to join our API Key waitlist. <br>

**Next Steps:**

The next sprint will be finalization of our asset generation script & continued documentation on our APIs and cloud deployment. <br>

**Roadblocks:**

None

**Status:**

On Time
{% endtab %}

{% tab title="April Updates" %}

### <mark style="color:orange;">4/5/22 Report:</mark>

**Previous Milestone:**

As a brief recap of the focus of this proposal - Revelar is building an NFT Game Engine to quickly integrate games on-chain. This NFT Game Asset API is the core backend API to interacting through Cardano nodes to the blockchain & data queries. This is the first report for this proposal, we have onboarded, and have made progress on our first sprint milestone listed below.&#x20;

**Progress:**

Building upon the documentation for our Data Structures and High Level Design for this system:&#x20;

{% embed url="<https://docs.google.com/document/d/1nVJvOd9ObufXeoFVAkKtmJwo4Nf16qvJPzhnBIp08sI/edit?usp=sharing>" %}

After discussing with devs from current leaders in NFT minting platforms, we noticed an opportunity to prototype a Multi-Minter during our API standup and thus reprioritized the finalization of our asset generation script to the next sprint. The multi-minting approach will allow for an expanded API with lower costs with consolidation of Min UTxO requirements and faster delivery times with batching transactions. This is a vast improvement on current minting options in market. \
\
The Revelar Multi-Minting has been successfully tested on mainnet and will be deployed to production infrastructure in the coming weeks.\
\
Developers looking to be early testers should reach out to <mark style="color:blue;"><ben@revelar.co></mark> to join our API Key waitlist. <br>

**Next Steps:**

The next sprint will be finalization of our asset generation script.&#x20;

**Roadblocks:**

None

**Status:**

On Time
{% endtab %}

{% tab title="May Updates" %}

{% endtab %}

{% tab title="Final Update" %}

{% endtab %}
{% endtabs %}

###


# Self Governed Gaming

https\://cardano.ideascale.com/c/idea/383944

{% tabs %}
{% tab title="March Updates" %}

### <mark style="color:orange;">3/22/22 Report:</mark>

**Previous Milestone:**

As a brief recap of the focus of this proposal - Decentralized gamer IDs would give players sovereignty over their digital identity within NFT games, without placing the burden of trust on the game itself. DIDs would also allow for games to be able to tie assets to players instead of wallets. Game developers can therefore validate the ownership of assets to players. This proposal includes early access to Atala PRISM for us to research the feasibility and application of this for games and their players. \ <br>

**Progress:**

* Ownership conversations, system vs NFT ownership. Writeup while we are going through Atala PRISM

\
As we onboard into the first part of this proposal - going through Atala PRISM's main coursework on the technical front, we have also begun exploring the idea and definition of on-chain ownership and off chain service usage. With DID's the application of different levels of ownership are critical to define what rights do exist, within services and actual assets. \
\
A few interesting findings from researching existing approaches to ownership: <br>

* Top Cardano minting platforms maintain perpetual, non-revokable, commercial rights over uploaded content or 'Contributions' to their platform. *While they claim they take "**no ownership**"* - the ability to do whatever they want with the content, including creating derivative work and selling if they wish, even within the original Policy ID if open, creates a scary standard for those not reading the legal TOS of a minting platform. We should note, we haven't seen any abuse of this yet. however there are ***hundreds of thousands*** of assets bound by this perpetual, non-revokable license already.<br>
* Some other DApps mint assets with licenses linked to web2 website terms of use pages. While this defines clearly the terms of use, it also allows for the ongoing ability of a centralized or federated team to update and define use however they want moving forward. <br>

It seems there is much more work that needs to be done and researched as part of the ownership definition and we believe this lies in creating clear *ownership* *over assets* and separating ongoing *access to services.* \
\
As we explore DID's and the potential for Gamertags as an NFT within a wallet for example, the creation and transfer of the initial NFT could be done via access to Revelar's NFT Game Engine to mint the asset and as soon as it was transferred, was solely owned and controlled by the buyer. \
\
This opens up a standard for use outside of our own system for other platforms to individually use and integrate with the standard Gamertag while putting the burden / power of ownership on the holder of the NFT. \
\-&#x20;

**Next Steps:**

Continue Atala PRISM work & write a exploratory Medium post on Ownership, search for other models or approaches to the idea of ownership and identity. <br>

**Roadblocks:**

None

**Status:**\
ON TIME&#x20;
{% endtab %}

{% tab title="April Updates" %}

### <mark style="color:orange;">4/5/22 Report:</mark>

**Previous Milestone:**

With the exploration into NFT Ownership principles as associated with DIDs and our Atala PRISM work we identified many different approaches in market.&#x20;

**Progress:**

For the last 2 weeks we have begun the official coursework with Atala PRISM and Benjamin is collecting notes for easy access and key takeaways that we will include in this proposal documentation. \
\
We have drafted a Medium article on Ownership, however there was an important concept we decided needed to be mentioned and accounted for in our discussions in the space around DIDs and self sovereignty, which we believe is key to free markets, the idea of Access rights to private services who naturally add a layer of centralization for the sake of speed/ease of use. *Current examples in market would be: JPG.store, NFT-Maker Pro, AdaHandle*&#x20;

Thus the final version of this article has been delayed a few days to include this topic.<br>

**Next Steps:**

Continue Atala PRISM work & finalize Ownership & Access article. <br>

**Roadblocks:**

None

**Status:**\
ON TIME&#x20;
{% endtab %}

{% tab title="Final Update" %}

### <mark style="color:orange;">7/22/22 Report:</mark>

**Previous Milestone:**

Finished the Drafts of Technical Integration of Decentralized Gaming Identities and Game Ownership is on the Verge of an Identity Shift

**Progress:**

Closeout Report done!\
[<br>](https://revelar.gitbook.io/self-governed-gaming/)[https://app.gitbook.com/o/sBsuCwzXMwBfFCl6cnTl/s/bxulBcD8JxMeu4iJZbKO/](https://revelar.gitbook.io/self-governed-gaming/)

**Next Steps:**

Party!

**Status:**

Complete!
{% endtab %}
{% endtabs %}

###


# Template - For Public Use! - Updates

Saved public updates for increased Auditability for Revelar's Catalyst Proposals

### Public Template 👋

This is the template we use to start each of our Catalyst Fund tracking in Gitbook. Feel free to copy this template and use it in your own use cases!:thumbsup::thumbsup::thumbsup::thumbsup:\
We hope you find this easy to navigate to stay on top of the progress we are making with the use of the Catalyst Funds, thank you for supporting us with your votes & support! 🙏\
\
**Revelar's Funded Proposals - F8:**&#x20;

| Proposal Title | Ideascale Link |
| -------------- | -------------- |
|                |                |
|                |                |
|                |                |
|                |                |
|                |                |

### Quick Links to Work in Progress


# Results & Kickoff

Review of the Results and next steps for onboarding

**Revelar's Proposal Results:**

* **13 of 14 were** <mark style="color:yellow;">**Approved**</mark>, **8 were** <mark style="color:green;">**Funded**</mark>, **1 was&#x20;**<mark style="color:red;">**Rejected**</mark>.&#x20;
* Onboarding completed with the Proof of Life submitted to the IOHK Team.&#x20;
* All Proposal forms have been submitted for funding and the first check-in.&#x20;

**Next Steps:**

**Roadblocks -** <mark style="color:green;">**None, Funds Paid, Work begins!**</mark>


# Template

(Idea scale URL Goes here)

{% tabs %}
{% tab title=" Updates" %}

### <mark style="color:orange;">{Date} Report:</mark>

**Previous Milestone:**

\ <br>

**Progress:**

&#x20;

**Next Steps:**

**Roadblocks:**

None

**Status:**\
ON TIME&#x20;
{% endtab %}

{% tab title="Final Update" %}

{% endtab %}
{% endtabs %}

###


# Getting Off-Grid with Cardano (WIP)

Welcome everyone to a guide on exploring new off-grid solutions for Cardano node deployment. The vision behind off-grid solutions like this is to encourage and allow for greater decentralization.

{% hint style="info" %}
**Focus on Decentralization:** As with any Cardano node deployment there are many elements to manage. For this guide we are starting with an existing Node setup using Raspberry Pi's and focusing on the enclosure and hardware to support this with the primary focus on decentralization from electrical grid needs. \
\
*Naturally you should expect to manage tradeoffs with this approach, which we will make note of.*
{% endhint %}

### Welcome to the experiment!

This guide is a work in progress (WIP) starting March 4th, 2020 -- TBD as a funded project from Catalyst Fund 7. **Please share and discuss improvements that can be made!**\
\
**Who this guide&#x20;**<mark style="color:green;">**is for**</mark>**:**

* Tinkerers who want to improve Cardano's decentralization.
* Makers who are looking to understand the nuances for Cardano node power requirements
* Students and Teachers looking for a hands on project to learn about Cardano
* Remote towns or villages without access to cloud computing services
* Hackers (the good kind) & developers who want to build bare metal and off grid
* Fans of Solar power! 🌤️

**This guide is&#x20;**<mark style="color:red;">**not**</mark>

* Setting up a Cardano Node (although resources are [linked)](/off-grid-solar-cardano-node-enclosure/raspberry-pi-setup/setup-guides)
* Designed to meet your local supply chain availability (use it as core principles) &#x20;

### Roadmap to v1 of this Guide:

* [x] ~~Onboarding and Catalyst Funds distribution~~
* [ ] Finalize v1 Off Grid Node&#x20;
  * [x] Prototype Enclosure with Pi deployed
  * [x] Updated Raspberry Pi materials list used - from Armada Alliance's guide.
  * [ ] Node Enclosure materials list
  * [ ] Design Overview Document
  * [ ] Build Enclosure
    * [x] Materials Ordered
    * [ ] Enclosure Assembled
    * [x] Pi Node Setup&#x20;
    * [ ] Node & Enclosure Deployed
  * [ ] Video Walkthrough&#x20;
    * [ ] Edited & Uploaded to YouTube
  * [ ] Data Exports
    * [x] Define Data to record
    * [ ] Automated export to csv and upload to Github&#x20;
  * [ ] Project Final Report via Catalyst Town Hall & Blog Post Recap


# Materials Needed

This is a v1 list of the materials needed for this build.

{% hint style="warning" %}
This build has changed from the prototype version used in our PoC for the Fund 7 Proposal for two main reasons: #1 Supply Chain disruption, #2 Cost optimization (March 2022). \
\
Parts were sourced primarily via Amazon in North America for accessibility and ease for an end user and not full cost optimization, meaning experienced DIYers hunting for the best deals can probably save 12-15% more.&#x20;
{% endhint %}

Assembly of this enclosure is designed to be a balance between Maker DIY cost efficiencies and off the shelf hardware. A basic understanding of hand tools, power safety, and networking is required to fully assemble this enclosure.

### Tool List

### Material List


# Setup Guides

This guide assumes you have completed (or will) the deployment of a Raspberry Pi Cardano node. The focus of this off-grid guide is the thoughts and approach to building your own Solar powered setup.

### Our Current Setup

For this guide we have modified the Armada Alliance Raspi-Node guide for our own development uses as early minting node for Revelar. We have documented a full start to deployment guide as part of another Catalyst Fund 7 Proposal we were awarded. If you want to follow along with our build exactly as we have setup ours, please use this guide:

{% content-ref url="/spaces/h653FoCkRemt469c0Kt3" %}
[Easy Cardano Node Deployment](https://catalyst.revelar.co/easy-cardano-node-deployment/)
{% endcontent-ref %}

### Other Raspberry Pi Setup Guides

* Raspi-Node (Armada Alliance) - <https://docs.armada-alliance.com/learn/stake-pool-guides/raspberry-pi-os>
* Pi-Node / Pi-Pool (Armada Alliance) - <https://docs.armada-alliance.com/learn/stake-pool-guides/pi-pool-tutorial><br>

### Other solar projects

* Shoutout to **WCat (Wayne)** for such an inspirational setup that has been the "Most efficient stakepool on Cardano" for far longer than this off grid guide was even a thought&#x20;
  * **Profile:** <https://armada-alliance.com/identities/wcat-otg>
  * **Stakepool:** <https://adamantium.online/> \
    **Hardware Specs** (\~7.28kADA time of writing) <https://armada-alliance.com/stake-pools/c825168836c5bf850dec38567eb4771c2e03eea28658ff291df768ae>

{% hint style="info" %}
It is good advice to setup and run a node locally before getting off grid, as there are some early syncing decisions to make before taking it out in the bush and relying on more variable to troubleshoot.&#x20;
{% endhint %}


# Pi Node Materials


# About the Author

This guide was written by Jason Toevs in March - April of 2022\
\
Jason is a farm kid at heart, building technology companies for the past 10+ years. Somewhere between cleaning out corn bins and throwing hay bales in the summer sun he decided to create companies he could run from a laptop and an internet connection. Paired with his early experience building custom computers and hosting LAN parties this has led to founding Revelar, the first NFT Game Engine on Cardano. \
\
This guide is a foundation of Jason & Revelar's commitment to building sustainable and low cost hardware for remote regions to help secure and validate Cardano's network. Plus, you can't seem to take the farm kid out of the tool shop forever.. \
\
Twitter: [@JasonToevs](https://twitter.com/JasonToevs) \ <br>


# ⚙️  Easy Node Deployment

A guide for developers looking to deploy a Cardano node to a cloud instance or locally to something like a Raspberry Pi.

This guide will also not contain a one-click-run script (even though that would be nice) because there are too many deviations and nuances to consider that the creation of such a script would be very time intensive and most probably unstable. Instead this guide will attempt to collate all the useful Dev-ops information needed to create a robust local development node.This collection of tutorials is designed to serve as a collation of information for the deployment of a Cardano node for development purposes.&#x20;

### What this guide is and isn't

This is not a "*How-To"* guide for the creation of a stake pool or even a full block production node. Instead this guide serves as a collection of information for developers that would like to setup a synced Cardano node to be able to mint NFTs or use any of the `cardano-cli` functions.

Most of the available literature is geared towards Stake Pool Operators, and  not towards developers who just want a synced node to make use of the cli functions or interact with some of the other tools provided by IOHK that require a synced node.

### How to read this guide

We will probably be expanding this in the future to consider builds on other platforms. Below will be a list of pages dedicated as a guide to building on each platform.

{% content-ref url="/pages/aIG2jnbzsnuNPquLthAM" %}
[Raspberry Pi-4 Node](/easy-cardano-node-deployment/easy-node-deployment/raspberry-pi-4-node)
{% endcontent-ref %}

### How this guide was funded

The creation of this guide and the associated research was funded partly through a Project Catalyst Proposal. The link below will take you to the proposal (The rectangle that says Community). In order to see the proposal you have to be logged into IdeaScale (not my rule).

{% embed url="<https://cardano.ideascale.com/c/idea/383959>" %}
Catalyst Proposal
{% endembed %}

## Proposal Changes

Between our original proposal's submission and the actual creation of this guide, we realized that a number of our initial hopes were rather unfeasible or would introduce more hassle than what the time was worth. The deviations from our original proposal as well as the explanation for why are given below.

### All-in-One Script

When we started this process we had every intention of creating an all-in-one script that would allow us to go live with one click. We very quickly gave up on this idea. The biggest reason was quite simply error checking and troubleshooting.

For most of the steps, it is far easier to debug by sequentially runninmg through a number of steps, than trying to figure out where in the hundreds of lines of bash-script something broke.


# Raspberry Pi-4 Node

A guide for developers wanting to setup a Cardano node for development purposes using a Raspberry Pi 4. This guide is not a How-to for starting a stake pool!

> *Don't worry, setting up a regular node is easy -* Nobody (2022)

![Revelar's 3-Pi Testing Cluster](https://1118704653-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fh653FoCkRemt469c0Kt3%2Fuploads%2FG5cmueSofV4oKGx5NsbW%2F20220302_185036%20cropped.jpg?alt=media\&token=8f14c5ec-4fcc-4d32-8f7c-ce17fc04f9c6)

## Introduction

At Revelar, we very quickly realized we needed to have some kind of development sandbox to write and test on-chain code. Being that we're also a bunch of hardware nerds, we decided to build a 3 Pi cluster and add RGB. \
As we went through the process of setting up a Cardano node, we encountered a lot of difficulty mostly because all of the information for our use case, was fragmented and spread out everywhere. \
So this guide presents all the information needed to setup a cardano-node on a Pi 4 to create a development platform.

So if you are looking for a guide to setup a Cardano node on a Raspbian based Pi 4 for the purpose of doing development or *cardano-cli* tasks, then this is the right guide.

## Hardware Prerequisites

* Raspberry Pi 4 8GB 64-bit
* Heat-sink with a fan ([Something like this](https://www.amazon.com/Raspberry-Armor-Metal-Aluminium-Heatsink/dp/B07VWM4J4L))
* Type C Power Supply
* NVME M.2 SSD with at least 256gb
* NVME M.2 to USB3.0 Case
* Ethernet Cable (If not using wifi)
* Computer Mouse, Keyboard and monitor

{% hint style="warning" %}
As of the date of writing, we have only created a node on a Raspberry Pi 4 with 8GB of RAM. Most literature online will also advise you to use an 8GB Pi so we suggest you also get an 8GB version.

You also REQUIRE a heatsink for the Raspberry Pi. One of the steps in this tutorial overclocks the Pi and for that you do NEED a heatsink. We recommend a single piece unit with an integrated fan.
{% endhint %}

{% hint style="info" %}
We recommend that you get an NVME SSD as it greatly increases the speed of storage
{% endhint %}

## OS Setup

Before we can do anything we first need to setup the operating system on our Raspberry Pi 4. There are many ways to go about this, for simplicity's sake, we just went with the standard Raspbian OS.

### Download the Raspberry Pi Imager

This is the tool we will use to load an operating system onto the Pi. This tool can be downloaded from [raspberrypi.com](https://www.raspberrypi.com/software/).&#x20;

### Download Raspberry Pi OS 64-bit

In this guide, we will use the standard Raspberry Pi OS. The OS can be downloaded from the official site.

{% embed url="<https://www.raspberrypi.com/software/operating-systems#raspberry-pi-os-64-bit>" %}
Raspberry Pi OS Download Location
{% endembed %}

Scroll down on the website and download the `Raspberry Pi OS with Desktop.` The picture below shows the latest version as at the time of writing. You may need to download a newer version if it is available.

![Raspberry Pi OS Download Screen](https://1118704653-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fh653FoCkRemt469c0Kt3%2Fuploads%2Fo7JxlV1rDeBQ7YLaFQzi%2FRaspberry%20Pi%20OS.PNG?alt=media\&token=a16d1dad-6d4a-4c50-aa64-7074a92496ae)

Once downloaded, extract the file into an empty folder. You should now have a disc image file in that file titled something like `2022-01-28-raspios-bullseye-arm64.img`.

### Flash the OS

Now connect your NVME SSD via USB and open Raspberry Pi Imager.&#x20;

![Sreenshot of the Raspberry Pi Imager interface](https://1118704653-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fh653FoCkRemt469c0Kt3%2Fuploads%2F1gGUq5rIITHAKiBEmrcF%2Fraspberry%20pi%20imager.PNG?alt=media\&token=2027de5f-5520-4d93-89db-7a0d60d1003a)

The Imager will have three options to choose from. Under *Operating System,* scroll down the list and choose the `Use Custom` option. In the popup navigate to the Disc Image file we downloaded in the previous step.

![Option to select](https://1118704653-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fh653FoCkRemt469c0Kt3%2Fuploads%2FYuCzKtodOsAeDpr9oG62%2Fuse%20custom.PNG?alt=media\&token=9d79d580-9d59-4d61-b2b2-7098a5766fec)

Next, select the name of your drive under the Storage option. Lastly click on *Write* to start the process of writing an OS to the SSD. You will be asked to erase all data on disk to which you must say Yes.&#x20;

Now you just wait for the process to complete. It usually takes a couple of minutes.

## Raspberry Pi Setup

Once you have loaded an OS, you are ready to start with booting up your Pi. For the first time, you will require a keyboard, mouse and monitor to be directly connected to the Pi.

Make sure the Pi is now pluged in. Connect the HDMI, keyboard, mouse and SSD. Then only power it on. Give it a minute or two to read the OS from the SSD. Once done, navigate through the prompts. For sake of brevity I won't add screenshots here, as the prompts are pretty self explanatory however the general process is as follows.

1. Once you have booted into the OS, you will have a popup saying something to the effect *Welcome to Raspberry Pi...* This is the start ofthe setup wizard so click next.
2. Set Country, language and Timezone
3. Change the Password for the default Pi user. This is your own preference although we strongly recommend you do change the password.
4. Setup the Screen
5. Connect to WiFi (or Ethernet in which case you simply skip)
6. Update Software (This is optional although you can skip this as we will be doing it later on anyways)
7. Restart the Pi

<details>

<summary>Issues we Encountered</summary>

#### HDMI Output not working

If the HDMI output does not appear to be working after the Pi has been powered on, switch the HDMI cable to the second HDMI port. During the setup of our cluster we found that HDMI port closest to the Type-C port, would not work during the first setup.

</details>

### Setting up VNC (Optional)

If you would like to access your Pi remotely from the same network, follow these steps to enable VNC access.

Open the Start Menu (Pi Logo in the top left), navigate to the Preferences tab and select the *Raspberry Pi Configuration* option.

You should see the Raspberry Pi Configuration GUI. Under the Display tab, disable Screen Blanking and choose the Headless Resolution that you want to see when you access the Pi remotely.

![Display tab in Pi Configuration Tool](https://1118704653-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fh653FoCkRemt469c0Kt3%2Fuploads%2FpC8Iy7XUxrfqKO2lONea%2Fdisplay.png?alt=media\&token=0f79ec2e-8437-4d8d-89c0-e5db2dd113a4)

Under Interfaces tab, enable VNC. Alternatively you could use SSH. If you want to setup SSH, [here are the official docs ](https://www.raspberrypi.com/documentation/computers/remote-access.html#setting-up-an-ssh-server)on how to do so with a Pi.

![Interfaces tab in Pi Configuration Tool](https://1118704653-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fh653FoCkRemt469c0Kt3%2Fuploads%2FqfSqS76ue3gAL9OreLoU%2F2022-03-15-123658_1920x1080_scrot%20\(2\).png?alt=media\&token=4930c922-123e-4f88-a3fa-9b604bb73b3f)

Once all the options are set, reboot the Pi.

Once you have completed a reboot and logged into the Pi again. In the corner of the Taskbar you should now have a VNC logo. Click on it to open the VNC screen. [Here is a tutorial](https://discover.realvnc.com/blog/how-to-setup-vnc-connect-raspberry-pi) for how to connect to VNC.

## Update the Pi

Open a terminal and run the following command to update the software on the Pi.

```
sudo apt update && sudo apt full-upgrade
```

Once completed run the following two commands to clean up any temporary files created during the update process.

```
sudo apt autoremove && sudo apt autoclean
```

#### Configure Auto Updates (Optional)

You can configure the Pi to automatically install new security updates using the `unattended-upgrades` package. This is not a required step.

First install the required package (if it isn't installed already).

```
sudo apt install unattended-upgrades
```

Then configure it using the command below.

```
sudo dpkg-reconfigure -plow unattended-upgrades
```

## Overclock the Pi

{% hint style="danger" %}
Do not do this step if you do not have a heatsink installed! Overclocking a Pi without a heatsink could lead to thermal damage!
{% endhint %}

The Raspberry Pi 4 can safely be overclocked to run at 2GHz and that is the highest we will go in this guide. By safely we mean the resultant overclocked Pi is stable and does not void the warranty.

{% hint style="warning" %}
Overclocking the Pi 4 beyond 2GHz is possible, however it will void your warranty. If you want to overclock beyond 2GHz, do your own research!
{% endhint %}

To overclock we need to edit the `/boot/config.txt` file. You can use any text editor to do so, I use nano

```
sudo nano /boot/config.txt
```

Scroll down to the following lines:

```systemd
#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800
```

Just below this add in the following:

```systemd
over_voltage=6
arm_freq=2000
```

Save the file (Ctrl-S & Ctrl-X), and reboot the Pi.

```
sudo reboot
```

## Harden the Pi

This is usually a very important step for those looking to run a Stake-pool. The intent of this guide is to setup a node for development and testing purposes, as such we will not run down a full cybersecurity rabbit hole to try to cover every Linux/Ubuntu attack vector that exists. Instead we will give some best practices we recommend in this section.&#x20;

{% hint style="warning" %}
This is not an optional section as we will be making changes to the system config that we need later on!
{% endhint %}

{% hint style="info" %}
If you do however want to harden your Pi to the full extent, [here is a great guide](https://raspberrytips.com/security-tips-raspberry-pi/) and [Here is another guide](https://gist.github.com/lokhman/cc716d2e2d373dd696b2d9264c0287a3) with ways to harden Ubuntu (which also work on Raspberry Pi). Be warned though, this is a rather deep chasm of a rabbit-hole.
{% endhint %}

### Secure Shared Memory

Processes/Programs can use the RAM to communicate with one another within Linux, hence the name shared memory. However by default the permissions for this are set to both read and write, which introduces a memory attack vulnerability. So in this subsection we will change those permissions to read only.

First we open the file where we will set the permissions:

```bash
sudo nano /etc/fstab
```

Then we will add the following to the end of the file:

```systemd
tmpfs /run/shm tmpfs ro,noexec,nosuid 0 0
```

### Hardening System Config

The contents of this section are taken from [here ](https://docs.armada-alliance.com/learn/stake-pool-guides/raspberry-pi-os)which was in turn based off suggestions contained [here](https://gist.github.com/lokhman/cc716d2e2d373dd696b2d9264c0287a3). The second of those links will set you down a security rabbit trail so be wary.

The changes here largely help secure the network config for the Pi and provide protection against a number of networking based exploits.

First we need to edit the `sysctl.conf` file.

```bash
sudo nano /etc/sysctl.conf
```

Once opened, post the following into the end of the file. Lines 34-38 are Kernel parameters added as part of the Zram install process, which we will do later in this section.

```systemd
fs.file-max = 10000000
fs.nr_open = 10000000

# enable forwarding if using wireguard
net.ipv4.ip_forward=0

# ignore ICMP redirects
net.ipv4.conf.all.send_redirects = 0
net.ipv4.conf.default.send_redirects = 0
net.ipv4.conf.all.accept_redirects = 0
net.ipv4.conf.default.accept_redirects = 0

net.ipv4.icmp_ignore_bogus_error_responses = 1

# disable IPv6
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1

# block SYN attacks
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_max_syn_backlog = 2048
net.ipv4.tcp_synack_retries = 3
net.ipv4.netfilter.ip_conntrack_tcp_timeout_syn_recv=45

# in progress tasks
net.ipv4.tcp_keepalive_time = 240
net.ipv4.tcp_keepalive_intvl = 4
net.ipv4.tcp_keepalive_probes = 5

# reboot if we run out of memory
vm.panic_on_oom = 1
kernel.panic = 10

# Kernel parameters set as part of Zram config
vm.vfs_cache_pressure=500
vm.swappiness=100
vm.dirty_background_ratio=1
vm.dirty_ratio=50

# Use Google's congestion control algorithm
net.core.default_qdisc = fq
net.ipv4.tcp_congestion_control = bbr
```

In order to ensure that these changes are enforced at every boot, we also need to edit the `rc.local` file. To do this first open the file:

```bash
sudo nano /etc/rc.localconfig
```

Then edit your file to look like this:

```bash
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
  printf "My IP address is %s\n" "$_IP"
fi
# Give CPU startup routines time to settle.
sleep 120

sysctl -p /etc/sysctl.conf

exit 0
```

This will ensure that the correct config is loaded.

### Increase the open file limit

The `cardano-node` process is quite memory intensive and will open a lot of files. This step ensures that you do not encounter a max file limit.

This is accomplished by adding two lines to the `limits.conf` file in `/etc/security/`. This can be accomplished with the following inline Bash command:

```bash
sudo bash -c "echo -e '${USER} soft nofile 800000\n${USER} hard nofile 1048576\n' >> /etc/security/limits.conf"
```

This will add the following lines to the end of the file:

```
${YOUR USERNAME} soft nofile 800000
${YOUR USERNAME} hard nofile 1048576
```

## Install Chrony

Time synchronization is extremely important for a functioning node. So to ensure that our synchronization is as accurate as possible, we will install and configure Chrony. Chrony is a package that syncs up the time with various reference clocks using the Network Time Protocol.

First we need to install the package:

```
sudo apt install chrony
```

Next we need to configure chrony and tell it where it should sync time to. First open the config file:

```
sudo nano /etc/chrony/chrony.conf
```

Then copy and past the following into the config file:

```bash
pool time.google.com       iburst minpoll 2 maxpoll 2 maxsources 3 maxdelay 0.3
pool time.euro.apple.com   iburst minpoll 2 maxpoll 2 maxsources 3 maxdelay 0.3
pool time.apple.com        iburst minpoll 2 maxpoll 2 maxsources 3 maxdelay 0.3
pool ntp.ubuntu.com        iburst minpoll 2 maxpoll 2 maxsources 3 maxdelay 0.3

# This directive specify the location of the file containing ID/key pairs for
# NTP authentication.
keyfile /etc/chrony/chrony.keys

# This directive specify the file into which chronyd will store the rate
# information.
driftfile /var/lib/chrony/chrony.drift

# Uncomment the following line to turn logging on.
#log tracking measurements statistics

# Log files location.
logdir /var/log/chrony

# Stop bad estimates upsetting machine clock.
maxupdateskew 5.0

# This directive enables kernel synchronisation (every 11 minutes) of the
# real-time clock. Note that it can’t be used along with the 'rtcfile' directive.
rtcsync

# Step the system clock instead of slewing it if the adjustment is larger than
# one second, but only in the first three clock updates.
makestep 0.1 -1

# Get TAI-UTC offset and leap seconds from the system tz database
leapsectz right/UTC

# Serve time even if not synchronized to a time source.
local stratum 10
```

The restart the service to load the new config:

```
sudo service chrony restart
```

## Install and Configure ZRAM

In order for cardano-node to run properly we need to add more RAM. Even 8GB won't be enough. So to add this RAM, we use ZRAM to do some clever memory magic to effectively boost 8GB to 20GB. [Here is a better explanation](https://haydenjames.io/linux-performance-almost-always-add-swap-part2-zram/) of what this magic is.

First we disable the standard SWAP on the Pi:

```
sudo systemctl disable dphys-swapfile.service
```

Next, install ZRAM:

```
sudo apt install zram-tools
```

Once completed, we need to edit the config file to achieve the appropriate boost:

```
sudo nano /etc/default/zramswap
```

Then change the file to look as follows:

```bash
# Compression algorithm selection
# speed: lz4 > zstd > lzo
# compression: zstd > lzo > lz4
# This is not inclusive of all that is available in latest kernels
# See /sys/block/zram0/comp_algorithm (when zram module is loaded) to see
# what is currently set and available for your kernel[1]
# [1]  https://github.com/torvalds/linux/blob/master/Documentation/blockdev/zram.txt#L86
#ALGO=lz4

# Specifies the amount of RAM that should be used for zram
# based on a percentage the total amount of available memory
# This takes precedence and overrides SIZE below
PERCENT=150

# Specifies a static amount of RAM that should be used for
# the ZRAM devices, this is in MiB
#SIZE=256

# Specifies the priority for the swap devices, see swapon(2)
# for more details. Higher number = higher priority
# This should probably be higher than hdd/ssd swaps.
#PRIORITY=100
```

### Reboot

Once you have done all of the above, REBOOT.

```
sudo reboot
```

### Confirm ZRAM

It is crucial that ZRAM be functional before installing and syncing the `cardano-node`

Once you have rebooted, open an terminal verify ZRAM:

```
sudo cat /proc/swaps
```

Your output should look something like this:

```bash
Filename			Type		Size		Used	Priority
/dev/zram0                      partition	11999228	0	100
```

You can also verify using `htop:`

```
htop
```

You should see a Swp of aboput 11.4GB.

![Screenshot taken from HTOP](https://1118704653-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fh653FoCkRemt469c0Kt3%2Fuploads%2F0ChZ5gDjYEm4UD7kb29x%2F2022-03-15-123454_1920x1080_scrot%20\(2\).png?alt=media\&token=9d589cea-f4ea-4ac0-9b99-060fd2dc22db)

## Cardano Node Setup

Finally, we have arrived at the main event, installing and syncing a Cardano node. Be ye forewarned though, this step involves a lot of waiting as we will be building and installing a node using Cabal.

When I created this guide, I specifically wanted to go through the process of building as I wanted to know what it looked like and what it entailed, as I'm sure other devs would want to do as well.

### Install Dependencies

First though we need to install the dependencies&#x20;

#### Packages

The first chunk of dependicies that need to be installed are standard Linux packages that can be installed via `apt`.&#x20;

```
sudo apt-get install autoconf automake build-essential curl g++ git jq libffi-dev libffi7 libgmp-dev libgmp10 libncurses-dev libncurses5 libncursesw5 libssl-dev libsystemd-dev libtinfo-dev libtinfo5 libtool make pkg-config tmux wget zlib1g-dev -y
```

#### Cabal & GHC

The next requirement is to install Cabal and GHC. We found that using `ghcup` is the quickest way to do this.

To start, we run the following:

```
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
```

This will start a guided installer for Haskell, Cabal, and GHC.

1. When asked if you want `ghcup` to auto-add the required PATH variable, say yes
2. Since this is a development machine, you can say yes for the Haskell language server as invariably you might end up using it
3. You do not need to install stack
4. You should not need to install any more packages as we have already done that

Now you just need to wait for the installation process to complete. Once the installation has completed, you need to restart.

```
sudo reboot
```

Once the reboot completes, open a terminal and test the install using GHCi. From the terminal just type `ghci`. If the GHCi interface opens then the install has been completed successfully.

You also need to verify that cabal has been installed correctly:

```
cabal --version
```

#### Set the correct Cabal and GHC versions

After the install, we need to tell ghcup to use specific versions of Cabal and GHC. Dependancies and packages in Haskell can get iffy so always stick to the recommended versions.

```
ghcup set ghc 8.10.7
ghcup set cabal 3.6.2.0
```

### Configure Environment

#### Create the Directories

The following commands will build the directories.

```bash
# Create the directories in which to store everything
mkdir -p ${HOME}/.local/bin
mkdir -p ${HOME}/cardano/files
mkdir -p ${HOME}/cardano/scripts
mkdir -p ${HOME}/cardano/logs
mkdir ${HOME}/git
mkdir ${HOME}/tmp
mkdir ${HOME}/cardano/src
```

#### Initialize the environment file

Having all the configuration and environment variables stored in a file makes things a little easier to manage. Below are the commands needed to initialize a `.env` file. You can choose either mainnet or testnet.

{% tabs %}
{% tab title="mainnet" %}
Initialize the `.env` file that will be used to store all our environment variables.

```bash
echo -e NODE_CONFIG=mainnet >> ${HOME}/.env; source ${HOME}/.env
```

{% endtab %}

{% tab title="testnet" %}
Initialize the `.env` file that will be used to store all our environment variables.

```bash
echo -e NODE_CONFIG=testnet >> ${HOME}/.env; source ${HOME}/.env
```

{% endtab %}
{% endtabs %}

#### Populate the environment file

Now that environment file has been created, we can populate it with all the variables we want it to contain.

```bash
echo export NODE_HOME=${HOME}/cardano >> ${HOME}/.env
echo export NODE_PORT=3003 >> ${HOME}/.env
echo export NODE_FILES=${HOME}/cardano/files >> ${HOME}/.env
echo export TOPOLOGY='${NODE_FILES}'/'${NODE_CONFIG}'-topology.json >> ${HOME}/.env
echo export DB_PATH='${NODE_HOME}'/db >> ${HOME}/.env
echo export CONFIG='${NODE_FILES}'/'${NODE_CONFIG}'-config.json >> ${HOME}/.env
echo export NODE_BUILD_NUM=$(curl https://hydra.iohk.io/job/Cardano/iohk-nix/cardano-deployment/latest-finished/download/1/index.html | grep -e "build" | sed 's/.*build\/\([0-9]*\)\/download.*/\1/g') >> ${HOME}/.env
echo export CARDANO_NODE_SOCKET_PATH="${HOME}/cardano/db/socket" >> ${HOME}/.env
source ${HOME}/.bashrc; source ${HOME}/.env
```

#### Install Libsodium

Libsodium is required to build the `cardano-node`. The following commands will build the libsodium environment.&#x20;

```bash
cd; cd git/
git clone https://github.com/input-output-hk/libsodium
cd libsodium
git checkout 66f017f1
./autogen.sh
./configure
make
sudo make install
```

Once installed add the necessary values to the bash file and update the link cache:

```bash
echo "export LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH"" >> ~/.bashrc
echo "export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH"" >> ~/.bashrc
. ~/.bashrc
sudo ldconfig; ldconfig -p | grep libsodium
```

#### Retrieve the node topology files

This will retrieve the topology files needed to build the node. We will grab the `NODE_CONFIG` variable from our `.env` file. This will download the topology files corresponding to either the testnet or the mainnet.

```bash
cd $NODE_FILES
wget -N https://hydra.iohk.io/build/${NODE_BUILD_NUM}/download/1/${NODE_CONFIG}-config.json
wget -N https://hydra.iohk.io/build/${NODE_BUILD_NUM}/download/1/${NODE_CONFIG}-byron-genesis.json
wget -N https://hydra.iohk.io/build/${NODE_BUILD_NUM}/download/1/${NODE_CONFIG}-shelley-genesis.json
wget -N https://hydra.iohk.io/build/${NODE_BUILD_NUM}/download/1/${NODE_CONFIG}-alonzo-genesis.json
wget -N https://hydra.iohk.io/build/${NODE_BUILD_NUM}/download/1/${NODE_CONFIG}-topology.json
wget -N https://raw.githubusercontent.com/input-output-hk/cardano-node/master/cardano-submit-api/config/tx-submit-mainnet-config.yaml
```

#### Get the Source Code for Cardano Node

Navigate to the folder for the source code we previously created and clone the source code repository.

```bash
cd ${HOME}/cardano/src
git clone https://github.com/input-output-hk/cardano-node.git
```

Once cloned, we need to check out the latest version of the `cardano-node`. Scroll through the output of `git tag` and make sure you get the latest version of the cardano node. At the time of writing the latest is `1.34.0.`

```bash
cd cardano-node/
git fetch --all --recurse-submodules --tags
git tag
git checkout tags/<TAGGED VERSION>
```

#### Install LLVM

The following steps need to be performed if you are building from source-code (which we are doing). The build process requires an LLVM installation, however just installing an LLVM does not work. The following solution is the same solution as used on the Mac-M1 `cardano-node` build.&#x20;

```
sudo apt install llvm-9
sudo apt install clang-9 libnuma-dev
sudo ln -s /usr/bin/llvm-config-9 /usr/bin/llvm-config
sudo ln -s /usr/bin/opt-9 /usr/bin/opt
sudo ln -s /usr/bin/llc-9 /usr/bin/llc
sudo ln -s /usr/bin/clang-9 /usr/bin/clang
```

#### Begin build

This process can take up to a couple hours so don't be surprised if it takes very long

{% hint style="warning" %}
The build process can take a long time (about 2 hours). So just be patient until it is done.
{% endhint %}

First we need to tell Cabal which version it has to use to build the node. This tells Cabal to use the version we installed earlier. This step takes bout 3 minutes to complete.

```bash
cabal configure --with-compiler=ghc-8.10.7
```

Now we start the build process. This step will take a couple hours. Our build times varied between 2 and 6 hours.

```bash
cabal build cardano-node cardano-cli
```

Once the build is done, we need to copy the commands into the bin file and add that to bash

```bash
cp -p "$(./scripts/bin-path.sh cardano-node)" $HOME/.local/bin/
cp -p "$(./scripts/bin-path.sh cardano-cli)" $HOME/.local/bin/
echo "export PATH="$HOME/.local/bin/:$PATH"" >> ~/.bashrc
. ~/.bashrc
```

## Syncing the Cardano Node

### Start the Sync

This process is the long one. It can take up to 48 hours to fully sync with the tip of the blockchain.&#x20;

For convenience's sake we will put the node command into a bash script.

```
cd ${HOME}/cardano/
sudo nano cardanoNodeRun.sh
```

Next copy the following into the script file:

```bash
#!/bin/bash
. /home/pi/.env

## +RTS -N4 -RTS = Multicore(4)
cardano-node run +RTS -N4 -RTS \
  --topology ${TOPOLOGY} \
  --database-path ${DB_PATH} \
  --socket-path ${CARDANO_NODE_SOCKET_PATH} \
  --port ${NODE_PORT} \
  --config ${CONFIG}
```

Save and close the file. Then we need to make sure we can execute the script, this is done with the following command.

```
chmod +c cardanoNodeRun.sh
```

Now you can start the sync

```
./cardanoNodeRun.sh
```

## Start the Node

This process is the real time consumer, here we are going to start the node which will start the syncing process.

To make this easier, we will put the cardano-node command inside a bash script. First we need to create a script file and make it executable.

```bash
cd ${HOME}/cardano/
touch runCardanoNode.sh
chmod +x runCardanoNode.sh 
nano runCardanoNode.sh
```

Copy the following command into the file. Remember to copy in your username in the second line.&#x20;

```bash
#!/bin/bash
. /home/{YOUR USERNAME}/.env

## +RTS -N4 -RTS = Multicore(4)
cardano-node run +RTS -N4 -RTS \
  --topology ${TOPOLOGY} \
  --database-path ${DB_PATH} \
  --socket-path ${CARDANO_NODE_SOCKET_PATH} \
  --port ${NODE_PORT} \
  --config ${CONFIG}
```

Save and exit the text editor. To run the script in your terminal we use the following command:

```bash
./runCardanoNode.sh
```

## Setup Visualization

The [guild operators github](https://github.com/cardano-community/guild-operators/tree/master/scripts/cnode-helper-scripts) repository contains a number of helper scripts developed for stake pool operators. In our case, we are interested in only one of these scripts, the live viewer.

This script provides us with some visualization of what our cardano node is doing, or how far along in the process it is.&#x20;

First we are going to clone it into our directory structure and make it executable.

```bash
cd ${HOME}/cardano/scripts
wget https://raw.githubusercontent.com/cardano-community/guild-operators/master/scripts/cnode-helper-scripts/env
wget https://raw.githubusercontent.com/cardano-community/guild-operators/master/scripts/cnode-helper-scripts/gLiveView.sh
chmod +x gLiveView.sh
```

Once that is done, we need to edit the `env` file that the gLiveView uses to tell it where all our data i&#x73;*.*

Open the env we copied in your preferred text editor:

```
nano env
```

Next, edit the top (just below the User Variables heading) of the file to look like the following:

```bash
. /home/{YOUR USERNAME}/.env
CNODEBIN="${HOME}/.local/bin/cardano-node"
CCLI="${HOME}/.local/bin/cardano-cli"
CNODE_HOME="${NODE_HOME}/cardano"
CNODE_PORT="${NODE_PORT}"
CONFIG="${NODE_FILES}/${NODE_CONFIG}-config.json"
SOCKET="${NODE_HOME}/db/socket"
TOPOLOGY="${NODE_FILES}/${NODE_CONFIG}-topology.json"
```

Then run the script:

```
./gLiveView.sh
```

## Add A Dashboard

Prometheus is a way to setup a data stream to export metrics from the device to an HTTP endpoint. From here you can use Grafana to build a dashboard of data from a remote system. In this guide we will only construct a localhost version of the dashboard.&#x20;

If you want to access the dashboard remotely, you need to set up a proxy to route external traffic to the IP address of the Grafana localhost. This can be done using Nginx as a reverse proxy, an example of which is given in the [Nginx docs](https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/). Armada Alliance also have a section in their [Raspi-node guide](https://docs.armada-alliance.com/learn/stake-pool-guides/raspberry-pi-os#install-packages) that gives another way to do this (Armada Alliance's way is a lot less tedious and includes encryption).

### Installation of Prometheus

First we need to install Prometheus and the [Prometheus node-exporter](https://prometheus.io/docs/guides/node-exporter/#monitoring-linux-host-metrics-with-the-node-exporter). The latter of the two provides metrics about the state of the hardware and the kernel of the system. Once installed we are also going to disable both, so that we can update their configs.

```bash
sudo apt install prometheus prometheus-node-exporter -y
sudo systemctl disable prometheus.service
sudo systemctl disable prometheus-node-exporter.service
```

### Configuration

Prometheus by default scrapes the `localhost:9100` endpoint. We want to add the port location for our cardano-node as well. T~~h~~is port is `12978`, so we are going to add that to the config file:

```yaml
global:
  scrape_interval: 15s # By default, scrape targets every 15 seconds.

  # Attach these labels to any time series or alerts when communicating with
  # external systems (federation, remote storage, Alertmanager).
  external_labels:
    monitor: "codelab-monitor"

# A scrape configuration containing exactly one endpoint to scrape:
# Here it's Prometheus itself.
scrape_configs:
  # The job name is added as a label job=<job_name> to any timeseries scraped from this config.
  - job_name: "Prometheus" # To scrape data from Prometheus Node Exporter
    scrape_interval: 5s
    static_configs:
  # This is the address where the cardano node metrics can be found
      - targets: ["localhost:12798"]
        labels:
          alias: "N1"
          type: "cardano-node"
 # This is the address where the node-exporter metrics are located
      - targets: ["localhost:9100"]
        labels:
          alias: "N1"
          type: "node"
```

Lastly, we want to restart the service so that Prometheus is reactivated with the new config.

```bash
sudo systemctl restart prometheus
```

You can test your data exporting by using a web browser to navigate to the following endpoints:

```
http://localhost:9100/metrics
http://localhost:12798/metrics
```

These two endpoints should show a text list of parameters and their respective values.

### Installing Grafana

Before you can install Grafana, you need to add the repository to Raspbian.

{% hint style="info" %}
We encountered issues with the standard Chromium browser on Raspbian and Grafana. If you find the standard browser to be slow or unresponsive try installing Firefox.
{% endhint %}

```bash
wget -q -O - https://packages.grafana.com/gpg.key | sudo apt-key add -
echo "deb https://packages.grafana.com/oss/deb stable main" | sudo tee -a /etc/apt/sources.list.d/grafana.list
```

Next we can install Grafana:

```bash
sudo apt update && sudo apt install grafana
```

### Build a dashboard

To get started with Grafana, first open the config file and ensure that the port Grafana is working on, is different from any of the other ports used to operate the Cardano node or Prometheus:

```
sudo nano /etc/grafana/grafana.ini
```

Navigate to the `http_port`line and pick a port that is unused. We chose port 5000.

Next, use a browser and navigate to <http://localhost:5000>

The first time you open Grafana, you will be prompted to enter a username and password. The default is `admin` for both.

#### Add Datasource

Once you make it to the home page of Grafana, you first need to add Prometheus as a datasource. To do this, navigate to the Gear icon on the left, click on the Data Sources tab, and choose the Add data source option.

&#x20;At the top of the list, Prometheus will be listed. Click on it to navigate to the config page.

On the config page, make sure to type in the URL as <http://localhost:9090>

Once configured, you can start by building your first dashboard!&#x20;

Armada Alliance maintains a repo with a number of [example dashboards](https://github.com/armada-alliance/dashboards) that can be imported and reconfigured. Their example dashbopards are designed for stake pool operatos so you would need to reconfigure them to remove the non-relevant parts.&#x20;

Grafana Labs also has very good documentation on [how to create dashboards](https://grafana.com/docs/grafana/latest/dashboards/), should you choose to create your own dashboards from scratch.&#x20;

## Sources and Attributions

This guide was based off a lot of good material contained in a number of [Armada Alliance](https://armada-alliance.com/) tutorials, specifically the following two:

1. [Raspi-Node Guide](https://docs.armada-alliance.com/learn/stake-pool-guides/raspberry-pi-os#install-packages)
2. [Pi-Pool Guide](https://docs.armada-alliance.com/learn/stake-pool-guides/pi-pool-tutorial)

Both of these guides served as the base upon which we built our own node cluster, and subsequently greatly influenced how we wrote this guide. We burned through a number of tutorials and we always ended up coming back to the Armada Alliance tutorials.&#x20;

We also used the official [IOHK Cabal Build Guide](https://github.com/input-output-hk/cardano-node/blob/master/doc/getting-started/install.md/) and the [Cardano.org Guide](https://developers.cardano.org/docs/get-started/installing-cardano-node#linux) to help us figure out how to build the required code from source.


# 🍻  Catalyst Closeout Report

Revelar's Catalyst Closeout for easy Cardano Node Deployments. Click here for more resources.

{% embed url="<https://share.descript.com/view/e6Z2ijDy9t2>" %}
Video Closeout - ( Also Ben's Face 😂 )
{% endembed %}

{% embed url="<https://docs.google.com/document/d/1glrFmBzSRd59BsvP_37-iRlizgze38ESbF4Hct9qxcw/edit>" %}
Final Google Doc
{% endembed %}


