When you’ve been ready to run your favourite Mac command-line apps on Linux, you’ll be completely happy to know that progress is being made. Thanks to the Darling undertaking, it’s now potential to run macOS command-line apps on Linux. Right here’s how to get it working.

Why no GUI apps?

Darling as a undertaking is working very exhausting to carry graphical Mac app assist to Linux, nonetheless, since macOS is a unique know-how than Linux, it’s tough and time-consuming, and it’ll take a while to implement totally. So, for now, hold an eye fixed on the Darling undertaking, as a result of GUI Mac app assist for Linux will occur quickly sufficient.

Set up Darling on Linux

Earlier than going into how to run command-line Mac functions on Linux, the Darling software wants to be put in. Unfourutnaly, Darling should be constructed from supply, because the undertaking doesn’t distribute simple to set up binary information for Ubuntu, Fedora, and others.

To begin the set up, open up a terminal window by urgent Ctrl + Alt + T or Ctrl + Shift + T on the keyboard. Then, observe the command-line directions outlined under to get Darling constructed on your Linux working system.

Ubuntu

sudo apt-get set up git cmake clang bison flex xz-utils libfuse-dev libudev-dev pkg-config libc6-dev:i386 linux-headers-generic gcc-multilib libcap2-bin libcairo2-dev libgl1-mesa-dev libtiff5-dev libfreetype6-dev libfreetype6-dev:i386 git libelf-dev libxml2-dev libegl1-mesa-dev libfontconfig1-dev libbsd-dev

Debian

sudo apt set up gitcmake clang-6.0 bison flex xz-utils libfuse-dev libudev-dev pkg-config libc6-dev-i386 linux-headers-amd64 libcap2-bin git libcairo2-dev libgl1-mesa-dev libtiff5-dev libfreetype6-dev libxml2-dev libegl1-mesa-dev libfontconfig1-dev libbsd-dev

Arch Linux

sudo pacman -S --needed git make cmake clang flex bison icu fuse linux-headers gcc-multilib lib32-gcc-libs pkg-config fontconfig cairo libtiff python2 mesa llvm

Fedora

sudo dnf set up git make cmake clang bison flex python2 glibc-devel.i686 fuse-devel systemd-devel kernel-devel elfutils-libelf-devel cairo-devel freetype-devel.{x86_64,i686} libjpeg-turbo-devel.{x86_64,i686} libtiff-devel.{x86_64,i686} fontconfig-devel.{x86_64,i686} libglvnd-devel.{x86_64,i686} mesa-libGL-devel.{x86_64,i686} mesa-libEGL-devel.{x86_64,i686} libxml2-devel libbsd-devel

OpenSUSE

Sadly, there are not any dependencies listed on the Darling web site for OpenSUSE. To get the software program working, verify the dependencies listed for Fedora and take a look at them. In any other case, take into account switching to one other Linux working system on this listing should you plan to use this software program.

Constructing Darling

Now that the dependencies are put in, it’s time to obtain the supply code from the web with the git clone app.

git clone --recursive 

Downloading the Darling supply code from the web takes a very long time, and there are numerous information to seize. Anticipate the obtain to end. Then, when the downloading is completed, use the CD command to transfer into the supply code folder.

cd darling

Subsequent, use the mkdir command to create a “build” folder, and transfer into it with the CD command.

mkdir construct
cd construct

Utilizing the cmake command, arrange the construct surroundings.

cmake ..

Compile the supply code on your Linux PC utilizing the make command.

make -j$(nproc)

The code compilation course of will take fairly a very long time to full. When the method is completed, use the make set up command to set up the software program.

sudo make set up

Kernel module

Darling requires a kernel module to use Mac command-line software program. To begin the constructing course of for the Darling kernel module, run the make command, with “lkm” on the finish.

make lkm

Constructing the Linux kernel module for Darling won’t take almost so long as it does to set up the software program. Nonetheless, should you assume it’s taking too lengthy on your Linux PC, take into account calling the make command with “$nproc” as an alternative to make it end sooner.

make -j$(nproc) lkm

As soon as the Darling kernel module is compiled from the supply code, you’ll be able to set up it on the system with lkm_install.

sudo make lkm_install

With the kernel module arrange, every little thing is prepared to go, and Darling can be utilized. Nevertheless, understand that on methods utilizing SELinux, it’s possible you’ll run into points. For extra data, learn here.

Operating Mac command-line apps on Linux

2Q==

Software program in Darling could be put in in two methods: with DMG information or PKG information. To begin putting in software program, enter the Darling shell with the command under.

darling shell

Now that your Linux terminal has loaded up the Darling shell observe the step-by-step directions under to get your command-line apps working in Darling.

Set up from DMG

Step 1: Utilizing the hdutil software in Darling, mount the DMG file to the system as a quantity. Be certain to exchange “app.dmg” and “/Volumes/app” with the title of your command-line software.

hdutil connect Downloads/app.dmg  /Volumes/app

Step 2: Copy the app file into the “Applications” folder utilizing the cp command.

cp -r /Volumes/app/app.app /Purposes/

Set up from PKG

Step 1: utilizing the installer command, load the PKG file into the system. Be certain to exchange “program.pkg” with the precise title of your PKG file.

installer -pkg program.pkg -target /



Source link

Share.
Leave A Reply

Exit mobile version