Mac WiFi + Update Script + File Editing Help

Kernel, Main, Utilities & Applications, Miscellaneous Devices.
User avatar
replic_ant
Posts: 14
Joined: Thu May 28, 2020 4:14 pm

Mac WiFi + Update Script + File Editing Help

Unread post 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!! :)
Locutus73
Core Developer
Posts: 51
Joined: Mon May 25, 2020 9:55 am
Has thanked: 1 time
Been thanked: 8 times

Re: Mac WiFi + Update Script + File Editing Help

Unread post 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
Kirschsuppe
Posts: 33
Joined: Sun May 24, 2020 10:30 pm
Has thanked: 6 times
Been thanked: 1 time

Re: Mac WiFi + Update Script + File Editing Help

Unread post 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?
Locutus73
Core Developer
Posts: 51
Joined: Mon May 25, 2020 9:55 am
Has thanked: 1 time
Been thanked: 8 times

Re: Mac WiFi + Update Script + File Editing Help

Unread post 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
User avatar
replic_ant
Posts: 14
Joined: Thu May 28, 2020 4:14 pm

Re: Mac WiFi + Update Script + File Editing Help

Unread post by replic_ant »

Many thanks for the help all!
Washac
Posts: 60
Joined: Mon May 25, 2020 5:55 pm
Has thanked: 1 time
Been thanked: 1 time

Re: Mac WiFi + Update Script + File Editing Help

Unread post 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.
Kirschsuppe
Posts: 33
Joined: Sun May 24, 2020 10:30 pm
Has thanked: 6 times
Been thanked: 1 time

Re: Mac WiFi + Update Script + File Editing Help

Unread post by Kirschsuppe »

Thanks for the pointer to the repo.
Post Reply