Oddbean new post about | logout
 How do I use Amber with NAK? 
 Does NAK have an option for you to input a bunker connection string?  Does it have an option to output a bunker connection request string? 
 I have no idea. The instructions are a wall of inscrutable text and I can't figure out how to install it, anyway. I downloaded it with go install, and now it's wherever and I have no clue how to start it.

I haven't been able to get any go program to run, on this laptop. No idea, why. Spent easily 9 hours on it, already. And, no, there are no instructions anywhere on the internet. 😅  
 Don't Go apps come with installer scripts?  Smh my head. 
 I downloaded a binary and made it executable, but when I double-click it, it just sits there and doesn't do anything. 
 NAK is a command line app, isn't it? 
 yes. 
 You can probably run it by opening your terminal, navigating to the directory that contains the binary, and doing `./nak --help`.

If you're on Linux, you can copy the binary into the /bin directory to make it runnable from anywhere in your terminal.

A good install script would do all that setup automatically, but I'm not sure if NAK has that. 
 Does ANY of these projects have a good install script?

I low-key think they make using their stuff difficult on purpose, to keep people like me out.
After all, if we could figure out how to install it, we might want to use it, too, and don't nobody want that. 
 I think it's just solo devs, and install scripts are a low priority when you're first working on an app.

IMO by v1.0 you should have no-code setup, but most Nostr apps are still on v0.x. 
 36 releases and still no v1.0. 🙃  
 truthfully I don't built install scripts for end users, it tends to be OS specific and has the power to do a bunch of shady stuff for the user without their control. I refuse to use install scripts generally so I don't normalize it. 

I do however use Taskfile.dev heavily for internal and external scripting. It better allows you to be OS agnostic, it prints step-by-step tasks, its easy to read yaml, and you can write descriptions for individual tasks and users can do a command-by-command dry run to see if I'm installing a virus.  
 I set the env and it worked, but when I typed in "./nak event -c "Sent from NAK" wss://nos.lol" for my Testerin npub, it was signed by the test npub or something. 🤔  Did I forget something?

https://njump.me/nevent1qqsfan3eg7f7x09q6wav5rq3g22dmretqw0gl22aqe8sxm942nd3qyspp4mhxue69uhkummn9ekx7mqpz3mhxue69uhhyetvv9ujuerpd46hxtnfdupzq7d7vel0nh9m4326qc54e6rskpczn07dktww9rv4nu5ptvt0s9ucaaggzz 
 ./nak event -c "content" -k 1 wss://theforest.nostr1.com --auth

connecting to wss://theforest.nostr1.com... ok.
{"kind":1,"id":"299a28b4f9df835d3f2b57aec91b4c4ad00d3ff118aee5f4c4fd4446134ca18d","pubkey":"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","created_at":1724365019,"tags":[],"content":"content","sig":"57ccf5a0c7a7896211a8675bb747692ba6ef96a4f9a3b7efa3bd29be75960cd549a10d2ce35d07d804665c4c04921a9fcfc1ae4e7a4c00f29095d5b6edf559b4"}
publishing to wss://theforest.nostr1.com... performing auth as 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798... auth error: msg: auth-required: invalid auth received. failed: msg: auth-required: you must auth
 
 Hmm. Do I have to tell it to use the env var somehow? 
 Keeps reverting to the test account. 
 Keeps reverting to the test account.