Oddbean new post about | logout
 Anyone willing to walk me through the steps for running a nostr relay on a cloud VM?

#asknostr 
 I could, but honestly, it's cheaper and easier to be your own cloud with Start9 and run a relay with a couple clicks. You can use the cloudflare tunnel to get on the clearnet. 
 I started running a #Haven relay on a Pi. The steps for a VM would be pretty much the same as a local machine afaik  
 Link to do this? Or just you know how to install/run software  
 I used the instructions here
https://github.com/bitvora/haven
I did have to build with an extra flag it told me to use.

Basically I installed Ubuntu 22.04
Installed the build tools in the instructions, installed snap go - -classic 
Pulled the repo and built the code

Then once it's running. Stop the service and run the import script. Then reboot. 

Then you can use it locally, or then set up a reverse proxy so it can be accessed via a domain  
 Thank you 
 Let me try to do this.
So I start by flashing ubuntu 22.04 on a pi? 
 Yes. I'd say use Raspberry Pi Imager to make the SD card. Set the hostname as haven, add an ssh user, in the settings to make setup easy. 
I use the Server version of Ubuntu so I need to ssh in to do everything. 

Then once you boot up, use something to find the Pi on the network, like Port Authority app and look for the hostname. That IP is what you want to ssh into. I'll usually go into my router now too and assign it a Static IP so it's not bouncing around the network if I reboot or something. 

Then start the install process. If you run a desktop you can ignore most of the ssh stuff since you can just boot right in without looking for the IP and all that  
 I am unable to access pi.local seems like ubuntu isn't picking up my wifi dongle. 

I'll just see if I can do it on cloud vm first. ill figure out Pi later. 
 Those .local IPs never work for me, I always use a traditional ipv4. 

Good luck with the VM ❤️ 
 I install #Haven this evening on Ubuntu Server 24.04 VM via Unraid. Very smooth install.
  
 Welcome to the #Haven club! 
 I'm running one of each of the most popular implementations of nostr relays (stryfry, nostream, nostr-rs-relay).
Happy to give any pointers.

I'd recommend using any used hardware you have lying around, as it's cheaper than a VPS, especially if you already have a domain (if not, there's also tor). 
I also recommend you install these via docker - Super easy (couple commands) and quick.

Lastly, if you're willing to dish out some sats for an easy setup, check out https://relay.tools/