Page 1 of 1

Mac WiFi + Update Script + File Editing Help

Posted: Fri May 29, 2020 2:44 pm
by replic_ant
Hi guys,

I successfully created (I hope) my SD card on my iMac yesterday. I can’t test it yet, as I’m still waiting for my boards etc to arrive, but hope some of you MiSTer gods can help answer some questions! I’m a total noob and just can’t find any definitive answers elsewhere.

1. For Mac, the final stage of setup is putting the SD card in the MiSTer and connecting it to Ethernet. Then running the update script to pull in all the latest menus and cores etc. Unfortunately, the TV I will be using is nowhere near my router to connect via Ethernet. So can I use a WiFi adapter and run the update script that way for the initial and future updates?

2. If yes, that nicely leads me to setting up the WiFi. I understand on PC it’s a simple case of opening a particular file and updating my WiFi details with Notepad++. However, there’s no such program for Macs to edit these files with. We have a program called TextEdit, which is used for basic html coding. Will that do? Or I’ve heard of another free program called Brackets which might work? What do other Mac users use to open, edit and save their MiSTer files?

Hopefully, if I can connect to WiFi first and then run the update script, I should be fine.

Just have to locate and setup ROMs next... lol

Any help is much appreciated!! :)

Re: Mac WiFi + Update Script + File Editing Help

Posted: Fri May 29, 2020 3:20 pm
by Locutus73
You can use Wi-Fi or any possible network connection... if you can ping GitHub, you can update.
I suggest using BBEdit (free mode, https://www.barebones.com/products/bbedit/) to edit the wpa_supplicant.conf file following these instructions
https://github.com/MiSTer-devel/Main_Mi ... WiFi-setup

Regards.

Locutus73

Re: Mac WiFi + Update Script + File Editing Help

Posted: Fri May 29, 2020 3:54 pm
by Kirschsuppe
Or use SublimeText, Textmate or VSCode.
https://www.sublimetext.com/3
https://macromates.com/
https://code.visualstudio.com/

What I did is not as elegant as putting a wifi dongle into the mister. I configured a leftover router to become a wifi client that provides it services via ethernet cable.

But as a follow-up question: is it possible to update the sd-card off-device? Meaning having it in a Windows-PC or Mac and let a script run? Is it just a git pull in every directory?

Re: Mac WiFi + Update Script + File Editing Help

Posted: Fri May 29, 2020 4:38 pm
by Locutus73
Kirschsuppe wrote: Fri May 29, 2020 3:54 pm What I did is not as elegant as putting a wifi dongle into the mister. I configured a leftover router to become a wifi client that provides it services via ethernet cable.
Just like I do: I use an Apple Airport Express in bridge mode.
Kirschsuppe wrote: Fri May 29, 2020 3:54 pm But as a follow-up question: is it possible to update the sd-card off-device? Meaning having it in a Windows-PC or Mac and let a script run? Is it just a git pull in every directory?
It’s not a git pull in various directories, but on Windows and Linux you can use this:
https://github.com/MiSTer-devel/Updater ... updater-pc
It didn’t work on macOS Mojave because of Bash < 4.0... I didn’t test it on Catalina which uses Zsh.

Regards.

Locutus73

Re: Mac WiFi + Update Script + File Editing Help

Posted: Fri May 29, 2020 5:23 pm
by replic_ant
Many thanks for the help all!

Re: Mac WiFi + Update Script + File Editing Help

Posted: Fri May 29, 2020 5:53 pm
by Washac
replic_ant wrote: Fri May 29, 2020 5:23 pm Many thanks for the help all!
There you go glad you got it sorted out.

Re: Mac WiFi + Update Script + File Editing Help

Posted: Fri May 29, 2020 6:04 pm
by Kirschsuppe
Thanks for the pointer to the repo.