First: the name "rootless" is misleading, since there's still a root account, and you can still access it (the official name, "System Integrity Protection", is more accurate). What it really does is limit the power of the root account, so that even if you become root, you don't have full control over the system. Essentially, the idea is that it's too easy ...
This adds symlinks for GNU utilities with g prefix to /usr/local/bin/:
brew install coreutils findutils gnu-tar gnu-sed gawk gnutls gnu-indent gnu-getopt grep
See brew search gnu for other packages. If you want to use the commands without a g prefix add for example /usr/local/opt/coreutils/libexec/gnubin before other directories on your PATH.
$ brew info ...
IMHO the easiest way is in terminal:
First run diskutil list
then insert your usb stick
and run diskutil list again to see the disk node (e.g. /dev/disk2).
Now run diskutil unmountDisk /dev/diskN
and do sudo dd if=/path-to.iso of=/dev/rdiskN bs=1m (or bs=1M with homebrew)
When finished diskutil eject /dev/diskN
I installed ffmpeg via MacPorts, although it also available via Homebrew (brew install ffmpeg) or download the binary.
To convert something like that, (without worrying about audio quality, which I know nothing about), I just use:
ffmpeg -i input.mp4 output.mp3
Here is an example of how you would convert a .wav file to .mp3 from their website:
ffmpeg -i ...
For me, it means DTrace no longer works.
DTrace is similar to ptrace/strace in Linux, in that it allows you to see what a process is saying to the kernel. Every time a process wants to open a file, write a file, or open a port, etc, it needs to ask the kernel.
In Linux, this monitoring process happens outside of the kernel in "userland", and thus ...
For people stumbling upon this in an OS X 10.11+ era (El Capitan or newer): Apple has added a whole new layer of security in OS X. They have taken away some privileges from root. The file you are trying to modify has a restricted flag. Only restricted processes which are signed by Apple will be able to modify these files. However, you can disable this ...
This is the so called "rootless" mode in the new version of OS X. It effectively makes certain system directories read-only (even for admins). "/usr" is one of those protected directories (the only subdirectory that is excluded from this rule is "/usr/local")
One can disable this rootless mode with the following commands:
$ sudo nvram boot-args="rootless=0"...
The answer depends on you willingness to invest in commercial software:
If you don’t mind spending some money on a commercial product, Paragon’s extFS for Mac will give you read and write access to ext2 / ext3 / ext4 file systems. The current version supports all versions of OS X / macOS from 10.10 upwards.
If you are looking for a free solution, you can ...
Besides brew install coreutils, you may also need to install some other packages, such as gnu-sed, grep:
brew install findutils
brew install gnu-indent
brew install gnu-sed
brew install gnutls
brew install grep
brew install gnu-tar
brew install gawk
Note that the --with-default-names option is removed since January 2019, so each binary has to be added to ...
System Integrity Protection (SIP) is an overall security policy with the goal of preventing system files and processes from being modified by third parties. To achieve this, it has the following concepts:
File system protection
Kernel extension protection
File system protection
SIP prevents parties other than Apple from adding, deleting ...
Is there a manual or guide to what all of the built-in directories should be used for? Like what is /home/, or /net/?
Take a look at the File System Programming Guide for the most up-to-date information and at man hier in Terminal, which provides a "historical sketch" of the filesystem hierarchy (it's included at the end of this answer for reference).
That ls/ directory is not standard on Mac, so its something you or another user on the Mac have created (either directly, or indirectly by being created by some third party program).
It hasn't got anything to do with the ls command. However, it could reasonably have been made by someone in the middle of a mkdir command thinking that they should just list ...
Building on Ken's answer: I used fuse4x and fuse-ext2 successfully, and I recommend fuse-ext2 over ext4fuse.
ext4fuse was a hassle for me, because it requires manual compilation and has no support for fuse4x options that would allow me to set access control. fuse-ext2 provides downloadable packages, and the 0.0.7 version worked just fine. I copied a few ...
OS X does not ship with any MP3 encoder apart from the one in iTunes. For converting to mpeg4 audio you can use the CLI command afconvert (afconvert -h for available options). For example:
afconvert track.aiff -o track.m4a -q 127 -b 128000 -f m4af -d aac
Help for this tool can be found by running "afconvert --help" as "man afconvert" doesn't point to a ...
ifconfig gives information about all interfaces, including WLAN. The WLAN interface is usually en1.
$ ifconfig en1
en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet6 fe80::22c9:d0ff:fe97:22e9%en1 prefixlen 64 scopeid 0x5
inet 192.168.1.137 netmask 0xffffff00 broadcast 192.168....
Sounds like the file is locked to me, which is why the uchg attribute is appearing. You should be able to use the following command to remove the locked attribute:
chflags nouchg file
or right-click the file in the Finder, click "Get Info" then uncheck the "Locked" checkbox
Follow these steps to create an .img file from the .iso file you have, and then copy to the USB stick. This will also change the filesystem that is on the USB to make it bootable.
Open the Terminal Application.
Type command to convert the .iso file to .img using the convert option.
hdiutil convert -format UDRW -o /path/to/target.img /path/to/ubuntu.iso
I don't think Single User Mode is really what you want.
A better idea is to use a console login.
To do this, first you have the login window set to show “Name and Password”:
Then you can login as ">console" as the username (no password) and get a terminal prompt.
It's not very pretty, but it's handy if you need it.
Depending on your Mac Pro the following OSs should run (or not). I didn't include every Mac Pro ever sold, but I tried to list major development steps ( e.g different EFI-architectures 32bit->64 bit):
MacPro1,1 MacPro3,1 MacPro5,1* MacPro6,1
1. FreeDOS +/- uc uc uc
2. Windows 95 - ...
You can also can try this. It works for me. This is a rather "raw" copy and will typically not work for a bootable USB, but will work for other cases.
Here is a transcription of the commands from the screen shot for your copy/paste pleasure.
diskutil list # shows ...
One can also install OSXFUSE completely via the brew command line package manager:
brew install homebrew/fuse/ext4fuse
Note that the installation tells certain commands need to be run as 'sudo' in addition to this.
With Yosemite better have a look at this. And then make sure the directory is readable by your user by doing this. For it to work I had to ...
To add an answer exactly fitting to your case I slightly modified my answer in the linked "duplicate" and posted it here again.
The second as well as the third partition of your internal disk got the wrong partition type, your data probably won't be lost.
A bootable OS X partition (except the Recovery HD) either has the GUID 48465300-0000-11AA-AA11-...
You'll do just fine with a MacBook Air, at least, that's what I'd go for (and I'm in love with the Air as well :))
I will miss the DVD drive, and upgrade ability if I am choosing a
Macbook Air over Macbook Pro or a Thinkpad Machine?
Who uses a drive more then 2 times a year these days? I don't and I think most of the Mac users don't. And if you really ...
That's my answer! I did it manually, but used PressAndHold.app (built into macOS) to speed up entering the box drawing characters. The text was abridged from the man page manually.
By customising PressAndHold.app keys, basically editing /System/L*/Inp*/Pr*/*/P*/*/*/R*/ to add box drawing characters, I can type the characters directly into the text field ...
The below small perl script I've called 'treeps' that should do exactly that; works on linux (Sci Linux 6) + OSX (10.6, 10.9)
|_ 1 /sbin/launchd
|_ 10 /usr/libexec/kextd
|_ 11 /usr/sbin/DirectoryService
|_ 12 /usr/sbin/notifyd
|_ 118 /usr/sbin/coreaudiod
I've figured out how to do this. In short, you must send a "Feature Report" consisting of the bytes 0x9, 0x0, 0x0, 0x0 to the appropriate hidraw device as root.
You can find the right hidraw device with this command:
dmesg | grep Apple | grep Keyboard | grep input0 | tail -1 | sed -e 's/.*hidraw\([[:digit:]]\+\).*/\/dev\/hidraw\1/'
The code to send the ...
Enabling the three finger "drag" is a bit different on El-Capitan and above:
Go to System Preferences > Accessibility
Choose Mouse & Trackpad from the left options list
Click Trackpad Options
Tick "enable dragging" and select “three finger drag” from the drop-down menu next to it
Note: These instruction have been updated for use with Ubuntu 18.
This answer installs Ubuntu on your computer without the use of third parity tools for either the installation of booting of Ubuntu. The Ubuntu file I downloaded was named ubuntu-16.10-desktop-amd64.iso. I assume you have created a bootable Ubuntu USB flash drive installer and have verified ...
OS X handles sudo and su identically to Linux.
sudo is a command that, without any additional options, will run a command as root. For example:
% touch /newfile
touch: /newfile: Permission denied
% ls -l /newfile
ls: /newfile: No such file or directory
% sudo touch /newfile
% ls -l /newfile
-rw-r--r-- 1 root wheel 0 Apr 27 11:45 /newfile
su on the ...