Live data from Hacker News

Virtualize OS X on Linux

grodola.blogspot.com

31–40 of 143 posts

Re: Virtualize OS X on Linux

#31

Earlier quoted context omitted.

You should just upgrade your desktop machine to a retina iMac; they're the best machine out there for writing software.

Why so?

You get all the Unix goodness you would get from Linux combined with the commercial polish you're used to from Windows (even more so).

Re: Virtualize OS X on Linux

#32
post #20

It's really sad that the only way to get macOS running in a virtual machine is with hacks and tweaks. I'm working on a cross platform desktop app written in Qt and while it should theoretically work on macOS I haven't had a chance to actually try it, because I don't own any Apple computers. Apple is shooting themselves in the foot.

Honest question: do you need Apple hardware? Or Apple OS? Nowadays linux can certainly run on Apple hardware without any extra effort

Not everyone wants UNIX clones and there are toons of goodies on the OS X stack for doing desktop development for people willing to pay for it.

Re: Virtualize OS X on Linux

#33

I wish Apple would port their DE/WM to Linux and Free it with a license that says something along the lines of "you can install this if you paid for it". I'd easily pay 100$ for the Apple DE/WM suite sitting over my distro. I guess this is the closest you can get (aside from using Elementary OS).

I really hope not.

Mac OS X has a much more saner architecture than just being yet another UNIX clone.

Re: Virtualize OS X on Linux

#34
post #30
post #27

Earlier quoted context omitted.

So I'm one of those developers that got forced into buying a Mac Mini in order to test my software on MacOS. On one hand, you're correct that Apple "won" because I was pushed into spending $500 on their hardware. On the other hand, the parent is very much correct. Candidly, I'm still angry at Apple for making their ecosystem a pain in the ass to work with. Hell, I would have paid good money to buy a MacOS virtualizat…

Mac OS X is mainly a desktop OS and those of us that know Apple since the Mac Classic days don't have any issue with their desktop culture, which wasn't any different from the Atari and Amiga ones. I never sshed into them.

That's the point. I don't want to have to ssh into it. However, since I can't legally virtualize MacOS on my laptop I'm forced to in order to make sure that my software works fine on MacOS. That's why I'm resentful toward Apple. They make it really difficult for people to develop cross platform applications that work on MacOS and the only response I tend to get is a smug, "Eh, just buy a Mac Book."

Re: Virtualize OS X on Linux

#35
post #22

Earlier quoted context omitted.

"hack" is a bit strong. You can install MacOS on current virtual box on Windows with only a text file modification. The issue is that the MacOS license only grants permission to use it in VMs on Apple hardware.

Can a vanilla OS X DMG / ISO be installed with this text file modification? (last time I looked, you had to replace one of VirtualBox's DLLs on Windows, for example)

I'd like to know how to do this too.

Re: Virtualize OS X on Linux

#36

Earlier quoted context omitted.

Why so?

You get all the Unix goodness you would get from Linux combined with the commercial polish you're used to from Windows (even more so).

Paradoxically, I find it easier to port applications to Windows than MacOS. Due to the efforts from the Cygwin and MSYS groups, just about every build script ports naturally to Windows. As long as I use MinGW, the resulting application is native and can be distributed.

On MacOS, there's a bunch of quirks that make it harder to port. Environment variables are different enough to require duplication in scripts (DYLD_LIBRARY_PATH instead of LD_LIBRARY_PATH, unless we need DYLD_FALLBACK_LIBRARY_PATH.) Certain utilities like gdb will not run because System Integrity Protection disallows them. In theory, we can sign gdb through a somewhat circuitous series of steps, except that this doesn't work if we want to ssh into the box. This requires turning off SIP, modifying some files, and then turning SIP back on. Technically, it's all possible, but it's one series of aggravations after another. Developing on a platform should not be this difficult.

Re: Virtualize OS X on Linux

#37
post #34
post #30

Earlier quoted context omitted.

Mac OS X is mainly a desktop OS and those of us that know Apple since the Mac Classic days don't have any issue with their desktop culture, which wasn't any different from the Atari and Amiga ones. I never sshed into them.

That's the point. I don't want to have to ssh into it. However, since I can't legally virtualize MacOS on my laptop I'm forced to in order to make sure that my software works fine on MacOS. That's why I'm resentful toward Apple. They make it really difficult for people to develop cross platform applications that work on MacOS and the only response I tend to get is a smug, "Eh, just buy a Mac Book."

I'm just guessing here, but I don't think that Apple is all that interested in making it easier to develop cross-platform applications. From their point of view, the best applications are OS-specific ones. So if you want a Mac application, you're best coding on a Mac, with Mac tools, and within that hardware eco-system. From this point of view, the same argument applies with Windows, Linux, etc... (albeit with the caveat that hardware is more varied).

Apple isn't trying to make that way of working easier... they are trying to make life easier for macOS-specific devs. Apple is looking for well integrated applications, and as I'm sure you know, that's really hard to do well cross-platform as you often end up coding to the lowest-common interface.

Again, that's from the Apple point of view...

Re: Virtualize OS X on Linux

#38

Don't Apple EULAs forbid emulating OSX on non-Apple hardware? I might be mistaken, of course, but I think I recall something like that.

IIRC, it's even worse than that, the EULA forbids running OSX as a guest OS under a host OS that is not OSX.

Re: Virtualize OS X on Linux

#40

I wish Apple would port their DE/WM to Linux and Free it with a license that says something along the lines of "you can install this if you paid for it". I'd easily pay 100$ for the Apple DE/WM suite sitting over my distro. I guess this is the closest you can get (aside from using Elementary OS).

God, I wish the opposite! After years of using AwesomeWM [1], now that I'm stuck in OS X for work I feel like I'm tied down and handicapped. While I'm around, anyone know the keyboard shortcut to UNminimize a window? [1] https://awesome.naquadah.org/

Another method is to ⌘-tab to the minimized app, and while still pressing ⌘, hold down the Option key and release ⌘.

Not very elegant and it won't work if the app has a mix of minimized and non-minimized windows, but I usually don't have a mix. If that's the case, you can still use notyourwork's method above.

Post reply on HN