And is it practical to run Linux on PowerPC Macs instead of OS X 10.4 Tiger or 10.5 Leopard? For those who have a Power Mac G5 Quad, the last and most powerful PowerPC Mac ever, the answer is a resounding yes. With four cores running at 2.5 GHz, you’ve got comparable power to the earliest 4-core Mac Pro. This is lustworthy hardware. Using applications is the main purpose of a Linux server. Whether your newly installed application runs from a desktop or the command line, this article helps you use your Microsoft Windows experience to quickly understand how to run applications on Linux.
Mac-on-Linux is a linux/ppc program which makes it possible to run Mac OS in parallel with Linux. MOL is primarily intended to be used by those who run linux/ppc as their main operating system but still want to be able to run that occasional Mac OS application. Other possible applications include: development hardware simulation.
There's WineHQ to run Windows applications on Linux (and macOS). But, what about other way around? What if you want to run Linux applications on Windows (and Mac). Docker is the answer but it if you think that Docker only can run terminal applications then you're wrong.
Q: Why would you like to run GUI applications inside Docker?
A: Bad question. I don't know. This tutorial is not about the reason. It could be any reason.
Run Linux App On Mac Os
Q: How can you run GUI applications inside a Docker container on Windows, Linux and Mac hosts?
A: Good question. I know the answer.
I am using a simple Docker image that I have created and uploaded into DockerHub. You can use it directly or make your own. It's as simple as this:
For Windows
- Install VcXsrv Windows X Server using the address below
- Install & start XLaunch with usual Windows setup (a.k.a. next next) until you get to Extra Settings. Check all options as below and finish configuration. It's important to disable access control. Otherwise, the request from Docker will be rejected.
- Get your IP address using ipconfig command (My IP address was 192.168.1.68 yours might be different)
- Run Firefox GUI as below
docker run --rm -it -e DISPLAY=192.168.1.68:0.0 aliustaoglu/firefox
This will create a container and from this container Firefox will run. When you finish with it, the container will be removed (--rm)
Quite easy
For Mac
For macOS we need to install xQuartz. You can use brew:
brew cask install xQuartz
Run Mac Apps On Windows
Or download the dmg file:
After installing xQuartz, run it and check the option 'Allow connections from network clients'. Keep xQuarts running.
Now find your local IP address using
ifconfig
or any other method you know. My address was 192.168.1.76. And run bellow command:xhost + 192.168.1.76
Now we are ready to run the docker image:
docker run --rm -e DISPLAY=192.168.1.76:0 -v /tmp/.X11-unix:/tmp/.X11-unix aliustaoglu/firefox
For Linux
X11 (X Windows System) is the GUI environment in Unix operating systems. Since it's a native Linux platform we don't need to install xQuartz or XLaunch as Linux already has it. We only need to run this command:
Download Linux Apps
docker run --rm -e DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix aliustaoglu/firefox