Code Monkey home page Code Monkey logo

Comments (11)

bacongravy avatar bacongravy commented on July 22, 2024 1

You could try adding this to your user script:

/usr/libexec/PlistBuddy -c 'Add :com.apple.screensharing bool False' "${CHROOT}/private/var/db/com.apple.xpc.launchd/disabled.plist"

If you confirm that that still works in Mojave I could add an --enable-screen-sharing option that did that for you.

from macinbox.

egandro avatar egandro commented on July 22, 2024 1

I'll try this :) I love scripted VMs :)))

from macinbox.

egandro avatar egandro commented on July 22, 2024

Ok I found it: https://support.apple.com/en-en/HT209161

But I have no idea how to translate this into a start script.

from macinbox.

bacongravy avatar bacongravy commented on July 22, 2024

Do you need ARD in particular or just VNC in general?

from macinbox.

egandro avatar egandro commented on July 22, 2024

Both would be cool.

I would prefere the Config as Json file, since this has 10+ buttons.

from macinbox.

egandro avatar egandro commented on July 22, 2024

Maybe
Maybe 2 short cuts

  • --enable-vnc (do the most compatible thing with the same vagrant passwort)
  • --vnc-rw-password (specify a rw password)
  • --ard-config-file
  • --vnc-config-file ? duno if this is neccesarray

from macinbox.

egandro avatar egandro commented on July 22, 2024

I can confirm this works.

from macinbox.

egandro avatar egandro commented on July 22, 2024

Well - there is a problem :(

I have no idea how to fix this. I fooled around for a view days.

'Add :com.apple.screensharing bool False'

This will enable the screen sharing. However I can only connect via closed source VNC tools, since no open source tool offers the apple authentication protocols.

I like to do some extra provisioning using vncdotool (https://github.com/sibson/vncdotool) - but this does not support the Apple protocols.

However using the --legacy option or a screen sharing password - that's no problem.

Do you know a user script way to do this?

from macinbox.

bacongravy avatar bacongravy commented on July 22, 2024

You could try running your own VNC server, for example https://github.com/TigerVNC/tigervnc.

I suspect that you’re going to have an easier time if you do this kind of setup in a vagrant provisioning step, after the box boots for the first time, rather than in a macinbox user script.

Or, you could try taking advantage of the VNC sever built into VMware/esxi: https://www.virtuallyghetto.com/2012/01/using-vnc-client-to-connect-to-vms-in.html

If you’re using VMware Fusion it’s even easier: I think you can enable the hypervisor VNC in the advanced settings UI for the VM.

from macinbox.

egandro avatar egandro commented on July 22, 2024

Well :( I have a solution.

This is so sick.

I connect to VMWare Fusion VNC - and run a Vncdotool in a Shell script & OCR via https://github.com/tesseract-ocr/tesseract

Apple decided to go with random Y values. The X are always the same...

After two days a macinbox Mac can create a macinbox mac...

"Security" the Apple way :(

Why didn't they chose to implement their own remote framebuffer protocol as Microsoft did?

VNC was unsecure at the first place. They notice the flaws after 10+ years - and now they do obfuscation - not fixing.

Thread can be closed?

from macinbox.

bacongravy avatar bacongravy commented on July 22, 2024

Wow, that sounds like a hassle! I'm glad you were able to find a solution.

I will close this issue now, but if someone else wants to make the case for needing a --enable-screen-sharing, I'm open to hearing it!

from macinbox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.