Questions tagged [darwin]

Darwin is the open source POSIX/UNIX operating system on which OSX is built

Filter by
Sorted by
Tagged with
1 vote
0 answers
39 views

g++ setting proper @rpath when building SFML

I'm trying to build an SFML sample without xcode (for reasons :-)). The prebuilt samples comes with: pong> otool -L pong pong: @rpath/sfml-audio.framework/Versions/2.5.1/sfml-audio (...
Jeffrey's user avatar
  • 111
0 votes
0 answers
49 views

open() fails on some files with sudo permission

Running on Darwin Kernel Version 22.1.0. I have a program which goes through the devices in /dev/ directory to send an nvme command to them to get their ID information. On Linux the files I look for ...
pointnotfoe's user avatar
0 votes
0 answers
84 views

How to route traffic from one Mac through VPN that's only available on another Mac via the underlying Unix OS?

Network 1 has 2 computers, Mac1 and Mac2. Mac1 has access to a VPN. Mac2 does not. For Mac2, how can I route its traffic through Mac1 so that it also has to pass through the VPN? Note, with newer Macs,...
user658182's user avatar
0 votes
1 answer
246 views

What is the user 'mobile' for on iPad?

I just sshed to a jailbroken iPad(Pro 3, iOS 14.2), and found other than root and daemon, there's an existing user mobile, which seems to come with the system. I was wondering what the user is for? ...
user avatar
1 vote
2 answers
323 views

Is there a way to export aliases in macOS in the Korn Shell (ksh)?

Earlier versions of the Korn shell (ksh) allowed aliases to be exported to subshells by using the -x option, for example: alias -x dog=cat With the current version of macOS the ksh man page says: &...
KS_on_StackExchange's user avatar
2 votes
1 answer
948 views

darwinup: command not found

I need to use darwinup on my macOS (11.5) and it is just not founded by system. It seems to be default binary in OS X but somehow I don't have it. Do you know how could I get it? I didn't found any ...
Przemekeke's user avatar
11 votes
1 answer
14k views

What does the time command do on zsh Mac terminal? And what is the output of "children"?

This is what I got from the terminal command "time". shell 0.32s user 0.08s system 0% cpu 6:09.64 total children 0.10s user 0.16s system 0% cpu 6:09.64 total What is children?
ExIgnorantiaAdSapientiam's user avatar
-1 votes
1 answer
245 views

What are the benefits of XNU using Mach features compared to a full FreeBSD kernel? [closed]

The Darwin kernel is a hybrid of Mach and FreeBSD. What are the benefits of using such a hybrid architecture compared to a full FreeBSD kernel? I'm not looking for subjective opinions of why this ...
Wilbert's user avatar
  • 217
-3 votes
2 answers
4k views

Run the macOS desktop environment on Linux [closed]

As I know, macOS is using Darwin kernel and Darwin is a distribution of BSD. So macOS is in the UNIX family and can run most Linux / BSD / Solaris software on it. Maybe there is a way to install ...
maDeveloper's user avatar
71 votes
5 answers
38k views

Why is macOS often referred to as 'Darwin'?

In several languages, instead of returning something like "macOS", the command to view the operating system instead returns Darwin I see this in languages like R, and node. Why is macOS ...
stevec's user avatar
  • 4,617
0 votes
1 answer
1k views

What's the `darwin` in Mac? [duplicate]

In my Mac I execute the code: import sys print(sys.platform) then get darwin, why it is not OSX. I don't know where to look for documentation on python sys module. What's the darwin ?
aircraft's user avatar
  • 1,755
2 votes
0 answers
91 views

Unkillable process: what does this PS command output mean?

This process couldn't be killed. I tried kill -9 and it's still hanging on by the skin of it's teeth: What does ?E mean in the status column? I think I have a systemic problem with this on my Mac ...
user10550's user avatar
  • 121
1 vote
1 answer
503 views

Installing GNU compilers on PureDarwin/Darwin?

I hope this is not off-topic, because there is no better place to ask this sort of questions on SO/SE. I have Downloaded and ran PureDarwin on QEMU using instructions here: Now ...
Foad's user avatar
  • 153
1 vote
1 answer
415 views

Is the source code for xnu-6153.60.66~39 available? (iOS 13.3 Kernel)

I cannot find xnu-6153.60.66~39 at https://opensource.apple.com/tarballs/xnu/ ! Does apple still open source the XNU Kernel?
Lucas's user avatar
  • 152
3 votes
1 answer
7k views

How to make a bootable partition from scratch?

What I want to achieve is to make a new bootable partition on my MacBook's SSD, so it should be possible to press Option key on startup and choose this partition to boot from. Why do I need that? I ...
Alexander Perechnev's user avatar
0 votes
1 answer
331 views

How to generate list of Homebrew formulas/packages sorted by "most recently updated" (by package provider)?

How can one generate a list of Homebrew all formulas/packages sorted by "most recently updated" (by package provider)? I see no such sort/report at https://formulae.brew.sh/analytics. Maybe I missed ...
Johnny Utahh's user avatar
  • 1,239
2 votes
1 answer
11k views

Do terminal TTYs for iOS and macOS exist?

Seeing that multiple TTYs exist on FreeBSD and Darwin, and they provide the core of macOS and iOS, how would I access such TTYs? And would they be multiple instances of GUIs or would they involve ...
user avatar
3 votes
1 answer
329 views

stat command not respecting time format options (High Sierra 10.13.6)

My goal is to retrieve the birth time of a file formatted to "2019-07-03" so I'm using the following which yields the following epoch time instead of the specific date format I requested: $ stat -f "%...
Gautam Joshi's user avatar
46 votes
2 answers
84k views

Does macOS have a command to retrieve detailed CPU information like /proc/cpuinfo on Linux? [duplicate]

Linux has a command to retrieve detailed CPU information using cat /proc/cpuinfo. Using this command, users can get CPU and CPU's core information like below. processor : 0 vendor_id : ...
mznet07's user avatar
  • 583
2 votes
1 answer
593 views

What is the purpose of speculative memory?

Recently, I've found out that Darwin has speculative memory metric. But, I don't know what the purpose of speculative memory. The memory metric can be checked using vm_stat command on terminal. Mach ...
mznet07's user avatar
  • 583
13 votes
1 answer
3k views

Fake ethernet interfaces (feth / if_fake)? Anyone ever seen this? [closed]

I've been digging into Darwin source to try to find some way to create virtual Ethernet interfaces on Mac/Darwin without adding a kernel extension like tuntaposx. In doing so I've found something ...
Adam Ierymenko's user avatar
2 votes
1 answer
859 views

Can't get past login screen

I have a Mac that I bought from work during a hardware refresh, which was previously joined to a domain. Booted using cmd-R and reset the Admin password. Logged in, started deleting the old work ...
Matt G's user avatar
  • 123
2 votes
1 answer
145 views

extract by terminal the Darwin version

I want to know how extract by terminal the Darwin version. https://en.wikipedia.org/wiki/MacOS_Sierra#Releases For macOS Sierra 10.12.3 is 16.4.0 for 10.12.6 is 16.7.0. Now, I want to create: --...
joseluisbz's user avatar
2 votes
1 answer
1k views

Is /usr/local a per user folder?

Is /usr/local a per user folder? homebrew says /usr/local/bin /usr/local/etc /usr/local/include /usr/local/lib/pkgconfig This can happen if you "sudo make install" software that isn't managed by ...
gman's user avatar
  • 2,651
2 votes
1 answer
2k views

What is the correct ownership for subdirectories in /usr/local

After a few reckless uses of chomod (and some history I don't recall, apparently) I currently have the following ownership in my /usr/local: drwxr-xr-x 13 Rax admin Caskroom/ drwxr-xr-x 87 ...
orome's user avatar
  • 11.8k
2 votes
0 answers
555 views

Kernel Extension Not Loaded

I built a self-made kernel extension (named KAuthTest.kext) and would like to test it out. So in a VM running macOS 10.12.3, I did the followings: disable SIP by running csrutil disable in recovery ...
hklel's user avatar
  • 241
2 votes
1 answer
2k views

df hide ifree, iused, 512 blocks (customize column format, don't show inode info)

My default df invocation prints way too much information for my needs. I can't find a way to hide this in the man page. It says use the -i flag to include it. But when I execute /usr/local/bin/df I ...
Sridhar Sarnobat's user avatar
10 votes
1 answer
7k views

How do I install sudo insults on Mac?

How do I install sudo insults† on Mac terminal? Apparently Apple has cleaned it up from Darwin, so adding Defaults insults through sudo visudo does not help. † The insulting things sudo command says ...
displayName's user avatar
  • 2,625
21 votes
1 answer
17k views

Is there a `watch` command native to Darwin/OS X?

I have a script that I'm trying to port from Linux to Darwin/OS X. The Linux version currently depends on the watch command, which doesn't appear to be installed on Darwin/OS X by default. What's the ...
voices's user avatar
  • 2,159
2 votes
2 answers
482 views

What is the most OSX or Darwin-like command-line experience available (without buying an expensive Mac or hauling my production machines home)?

I want to emulate the command-line experience from OSX with a small netbook and practice my skills with the comfort of this small machine. Surely Apple offers actual Darwin Links for developers or ...
forgotstackxpassword's user avatar
2 votes
1 answer
509 views

DIY patching of OS X system binaries?

So since nobody on Apple.SE, Unix.SE or other sites was able to help me with my little WWAN problem, I've taken a look at the configd source and I was wondering... suppose I'd want to give patching ...
Sora.'s user avatar
  • 141
0 votes
1 answer
166 views

System Integrity Protection — Is it implemented in Darwin? Or is it OS X only?

The question should be clear from the title. If System Integrity Protection, aka Rootless, is part of Darwin, then I might be interested in inspecting how it is implemented. I would be grateful if ...
4ae1e1's user avatar
  • 841
1 vote
0 answers
444 views

updating two identical machines results in two different Darwin kernel versions reported

I have two identical Mac Minis and I updated each with all available updates. This caused both machines to go from OS X 10.9.2 to OS X 10.9.4. However, uname -a reports different kernel versions for ...
Dan Tenenbaum's user avatar
2 votes
1 answer
20k views

How to download and install Darwin 13 OS in x86?

I've conducted a research on UNIX operating systems and found out that an experimental OS (Darwin) is used for development of the OSX; just like Fedora on Red Hat Enterprise Linux. Darwin OS has a ...
marion-jeff's user avatar
5 votes
4 answers
4k views

Run GUI Applications from Terminal with root privilege

So it has been well documented that GUI applications (like gedit or textedit) should NOT be run with sudo. Ubuntu et al get gksu and gksudo (and the like) so question: what do WE (Mac users) get? ...
agentroadkill's user avatar
14 votes
4 answers
12k views

Why is 'xattr' not working?

When I attempt to execute xattr in Terminal, I get Traceback (most recent call last): File "/usr/bin/xattr-2.7", line 33, in <module> import xattr ImportError: No module named xattr What'...
orome's user avatar
  • 11.8k
4 votes
1 answer
1k views

How do I install Darwin 13 on OS X 10.9.1?

I've recently bought a MacBook with OS X 10.9 and I've just updated it to 10.9.1 (x86_64-apple-darwin10.8.0 64-bit). I'd like to install the version 13 of Darwin. I've done everything proposed by ...
Tetraodienne's user avatar
12 votes
2 answers
35k views

How to install and use The open source Darwin OS

Is it possible to install and use the Darwin OS from Apples open source download area, and if so on what hardware would I need? I'm not even sure if the OS is complete, all I can tell is there are a ...
stuffe's user avatar
  • 25.7k