Good looking out. Been lurking in the shadows this long… what’s a few more days?

:blush:

FINALLY getting around to updating tonight.

For Coda 2 as my IDE, I’m just using /home/we/dust in the ‘site’ settings here:

Connecting with SFTP:

And here’s the slick ssh settings:

I’ve never had a ton of luck with the source control (git) stuff, but I’m more comfortable with the command line with git.

1 Like

Yes. Coda’s Terminal window makes it pretty convenient.

Did you ever get it to resolve correctly to the appropriate root folder? My answer may have been overkill for your initial question. I just got excited to help!

1 Like

Thanks. Yes, got it all sorted. :metal:

Is there a way to side-step maiden and get the same repl & run functionality from the command line? I would love to be able to edit using my vim config and have the repl/log going in another terminal…

This seems to handle the repl part of the equation… Unfortunately sounds like it might not be easy:

As it goes, I can edit the file on my norns box using vim, with the repl in another window this way, then just re-load the script from norns directly, seems to be an OK compromise for now, I wish I understood golang a bit better maybe I could write a simple interface to the maiden backend from the command line. Looked over the code for about an hour and couldn’t figure it out…

3 Likes

Assuming that you have ssh working, in terminal A:

ssh norns.local
cd dust/code
vim hello.lua

…in a second terminal B:

ssh norns.local
# shutdown the existing wrapped copy of matron
systemctl stop norns-matron
# run the raw matron command directly
norns/build/matron/matron
# while there is no prompt this is the lua repl
norns.script.load("code/hello.lua")
# to exit
^C
# to restore normal operation reboot norns or
systemctl start norns-matron

The play button in maiden is simply saving the current file to disk and then calling norns.script.load(<relative_path_under_dust_dir>) for you. The raw lua repl in matron doesn’t have any command history or line editing like the maiden repl does (that is done in the browser)

I have thought about a simple extension to the maiden backend (running on norns) which exposes the repl for either matron or sc by tapping into the existing sockets which the browser client uses thus allowing both to work side by side.

Hopefully that helps.

10 Likes

That’s awesome thank you! I was missing the norns.script.load() part of things. And indeed that would be an excellent upgrade to give developers access to the repl outside of the browser. Thanks for your work on this project!

Hi just got a new Norns and i just wanted to share that Maiden is very nice and was quite a joy to install patches/projects with
very enjoyable

3 Likes

An awesome feature for Maiden would be the ability to programmatically make the Norns sleep.

Periodically when I’m developing scripts I’ll jack up the menu system on the Norns or make it so I can’t load new scripts, and it would be nice to not have to twiddle around on the device trying to get it to navigate to sleep.

Or is there a way to do this from the REPL?

(A way bigger ask would be to have code in our scripts sandboxed, so it couldn’t mess up system level stuff like the menu)

os.execute(“sudo shutdown now”)

But this is kinda harsh and norns won’t save state, etc.

The quickest way to recover from lockup’s in the menu system due to script problems is generally to run ;restart in the matron REPL. That should get you a functioning menu system (and REPL) again.

2 Likes

Oh excellent, ;restart sounds like a great place to start.

pardon the basic question just wondering how i get maiden up and running on my mac?

i downloaded maiden 1.0 and can’t seem to figure out how to open the program

maiden is designed to be run from norns and is part of the base software install. If you’ve updated your norns software to the latest version you should have maiden 1.0 already installed.

Under normal circumstances one would enable wifi on norns then open up a web browser and use the http://norns.local URL to access maiden.

The binary downloads on GitHub are compiled to run on an ARM based linux machine like norns. The only time one would really want to run the maiden server directly on their desktop machine is when making modification to maiden itself.

ahh i see, i have a fates and i’m trying to wrap my head around accessing maiden on it

With fates accessing maiden should be similar. Just get the machine on your network, determine the IP address of the machine and then navigate there in a browser.

If the current fates image doesn’t include the latest version of maiden I’m not sure how to advise since I don’t know how the fates image is setup.

It’s the same as norns.

FWIW zeroconf is not installed on windows machines by default, so if you’re on windows, the you would need to access via the IP address instead of norns.local

fwiw, some in-depth info about maiden can be found here :slight_smile:

I do realize that this page should specify that maiden is already bundled with the norns software and require no additional downloads, thank you for posting about this!

2 Likes

Hi, new fates user here, trying to wrap my head round the whole ecosystem. I’ve been enjoying adding repos from github over SSH, but discovering/installing them through maiden seems so much easier. However, even though I’m pretty sure I’m on the latest norns, I’m not seeing the books icon. How can I check the version of maiden I’m running, and how would I update to 1.0 from SSH or SFTP if I have an older version? Thanks.