<issue_start>username_0: Due to the [new license of OracleJDK8](https://www.aspera.com/en/blog/oracle-will-charge-for-java-starting-in-2019/), I have to use OpenJDK8.
I have installed [AdoptOpenJDK8](https://adoptopenjdk.net/) from Homebrew and it works well.

The problem is that I have to launch a Java application from a JNLP link, what is called [Java Web start](https://docs.oracle.com/javase/tutorial/deployment/webstart/index.html). The problem is that this feature is not included in the OpenJDK8.

Java Web Start is implemented in the project [IcedTea-Web](https://icedtea.classpath.org/wiki/IcedTea-Web) but I cannot find any binaries for macOS and find I try to build it, I obtain the message:

```
configure: error: "OS darwin18.2.0 is not supported"

```

My question is : How can I run a JNLP file with OpenJDK 8? Do I need to use IcedTea-Web and if yes how to build it?<issue_comment>username_1: [IcedTea-Web](https://icedtea.classpath.org/wiki/IcedTea-Web) is a project that:

>
> provides a Free Software web browser plugin running applets written in the Java programming language and an implementation of Java Web Start, originally based on the NetX project.
>
>
>

but there is no build for macOS. However the important part of this application is written in Java so we can run it directly on macOS. Here is how:

Get the Debian build from the stable release:

```
wget http://ftp.us.debian.org/debian/pool/main/i/icedtea-web/icedtea-netx-common_1.6.2-3.1_all.deb

```

Extract the deb file:

```
tar xzvf icedtea-netx-common_1.6.2-3.1_all.deb

```

Extract the archive `data.tar.xz` which is inside the deb file:

```
tar xzvf data.tar.xz

```

Go to the directory where the main jar file is:

```
cd usr/share/icedtea-web/

```

and just run your jnlp file:

```
java -cp netx.jar net.sourceforge.jnlp.runtime.Boot -Xnofork -jnlp my_application.jnlp

```

Depending on your application you could have to change options. You can list them with:

```
java -cp netx.jar net.sourceforge.jnlp.runtime.Boot

```

which result in:

```
SYNOPSIS
    javaws [-run-options] jnlp file
    javaws [-control-options]

OPTIONS
    When specifying options, the name of the jnlp file can be after the command, the -jnlp option, an option with no arguments, or after an argument with an option that takes one argument. A html file that launches a jnlp can be specified after the -html option.
    The jnlp-file can either be a url or a local path.
    The JNLP file should only be specified once, whether as a main argument, after -jnlp or through an html file.
    Control options:
    -about               - Shows a sample application.(No argument expected)
    -help                - Prints out information about supported command and basic usage.(No argument expected)
    -license             - Display the GPL license and exit.(No argument expected)
    -viewer              - Shows the trusted certificate viewer.(No argument expected)
    -Xclearcache         - Clean the JNLP application cache.(No argument expected)
    Run options:
    -allowredirect       - Follows HTTP redirects.(No argument expected)
    -arg arg             - Adds an application argument before launching.(Expected one or more arguments)
    -headless            - Disables download window, other UIs.(No argument expected)
    -html                - Location of HTML file to launch (url or file). You can use parameter ALL  or numbers (like 1 2 5) to select applets on page. However experimental, this switch should keep you still in safety.(Expected one or more arguments)
    -jnlp                - Location of JNLP file to launch (url or file).(Exactly one argument expected)
    -nosecurity          - Disables the secure runtime environment.(No argument expected)
    -noupdate            - Disables checking for updates.(No argument expected)
    -param name=value    - Adds an applet parameter before launching.(Expected one or more arguments)
    -property name=value - Sets a system property before launching.(Expected one or more arguments)
    -strict              - Enables strict checking of JNLP file format.(No argument expected)
    -update seconds      - Check for updates.(Exactly one argument expected)
    -verbose             - Enable verbose output.(No argument expected)
    -version             - Print the IcedTea-Web version and exit.(No argument expected)
    -Xignoreheaders      - Skip jar header verification.(No argument expected)
    -xml                 - Uses a strict XML parser to parse the JNLP file.(No argument expected)
    -Xnofork             - Do not create another JVM.(No argument expected)
    -Xoffline            - Prevent ITW network connection. Only cache will be used. Application can still connect.(No argument expected)
    -Xtrustnone          - Instead of asking user, will foretold all answers as no.(No argument expected)

```

**Update**

In the future, you should be able to use [Open Web Start](https://openwebstart.com/) which is an open source reimplementation of the Java Web Start technology. But for now the macOS installation is not ready. Check the corresponding [GitHub issue](https://github.com/karakun/OpenWebStart/issues/146) for details.
Upvotes: 3 <issue_comment>username_2: Looks like a recent option for running webstart .jnlp files with Corretto (or OpenJDK) is to [download](https://adoptopenjdk.net/icedtea-web.html) the IcedTea-Web "portable" option, then unzip it, then inside that there is a bin/javaws.sh file.

Open a console, cd to the bin, then you can run the .sh (or .bat file for windows).

```
bin $ ./javaws.sh /full/path/to/downloaded.file.jnlp

```

If you get

```
warning, using portable itw from /Users/packrd/Downloads/188/icedtea-web-image: -Xbootclasspath/a:/Users/packrd/Downloads/188/icedtea-web-image/share/icedtea-web/javaws.jar:/Users/packrd/Downloads/188/icedtea-web-image/share/icedtea-web/plugin.jar:/Users/packrd/Downloads/188/icedtea-web-image/share/icedtea-web/jsobject.jar:/Users/packrd/Downloads/188/icedtea-web-image/linux-deps-runtime/tagsoup.jar:/Users/packrd/Downloads/188/icedtea-web-image/linux-deps-runtime/js.jar /Users/packrd/Downloads/188/icedtea-web-image/bin/javaws.sh /Users/packrd/Downloads/188/icedtea-web-image/share/icedtea-web/javaws_splash.png
./javaws.sh: line 101: [: : integer expression expected
./javaws.sh: line 104: [: : integer expression expected
./javaws.sh: line 200: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.302.b08-0.el7_9.x86_64/jre/bin/java: No such file or directory
./javaws.sh: line 200: exec: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.302.b08-0.el7_9.x86_64/jre/bin/java: cannot execute: No such file or directory

```

This meant "set your JAVA\_HOME env var"
Upvotes: 2


<issue_start>username_0: My user name does not appear on the login screen. There are two users and only one is shown.

Is there any way to see the other user or some user name input box instead of selection?<issue_comment>username_1: Migration Assistant is built for situations just like this. It will give you the option to transfer over just one specific user. [Here's](https://support.apple.com/en-us/HT204350) Apple's article on it which is fairly comprehensive.

Migration Assistant probably won't give you the option to rename your username though. Fortunately it's not too hard - [here's](https://support.apple.com/en-us/HT201548) a guide on it.. Make sure that you're logged out when you do these steps & that you change **both** the username & the home folder. If you only change one there's a good chance you won't be able to log into that account again.
Upvotes: 0 <issue_comment>username_2: I have done the same thing a number of time for the same reasons.

In what follows I assume you are running macOS High Sierra or later. If that were not the case, some paths and preference pane options might be different.

What I have found is that using the same Apple ID on both the old and the new machine/install already goes a long way. Just make sure to select *Mail*, *Contacts*, *Calendars*, *Reminders*, *Safari*, *Notes* and especially *Keychains* in *System Preferences/iCloud* on both machines. If desired you can enable the other items as well like iCLoud Drive, Photos etc.

This way you will be able to migrate your passwords, Safari bookmarks & history etc. Using the same Apple ID you will be able to re-download all apps you bought from the App Store as well.

If you are using Dropbox or similar, install those as well on the new machine/install. This way any file stored there will be available on the new box as well.

What's still missing is:

* Documents (the ones not in iCloud Drive, Dropbox etc.)
* Preferences
* SSH keys
* Any app not bought from the App Store
* Any system-wide extension, VPN profile and the like.

To bring those over, what I suggest is the following. Log onto your old machine/install and backup (to an external drive or USB stick):

* Your home directory (*/Users/"username"*)
* */Library*
* */Users/Shared* (if not empty)

A Time Machine backup would be more complete and definitely preferable.

On the new machine/install, under your new account:

* Re-install your old apps (re-download them if necessary).
* Copy the directories *Application Support*, *Fonts* and *Preferences* from *"your old home directory"/Library/* to *"your new home directory"/Library/*
* Do the same with any app-specific directory you find there.
* Display hidden files in your old home directory using the Finder (`Command` + `Shift` + `.`) and copy *.ssh*, *.local* and any app specific files and directories over (e.g. *.vim/* and *.vimrc*).
* Copy the content of the old */Users/Shared* to the new machine.
* Copy any file or directory over from the old */Library* folder to the new one. This typically involves looking inside *Application Support*, *Extensions* and *Fonts* in there.

Application-secific configs are typically stored in your home directory, inside `Library/Preferences` and/or `Library/Application Support`. To copy those over you have two choices:

* Copy the whole `Library/Preferences` and `Library/Application Support` directories from your old home to the new account.
* Selectively copy the files and directories from those two locations over to the new account.

My preferences is for the latter option as I like to keep things clean.

Some notes and warnings: messing with */Users/Shared* and especially */Library/Extensions* is not usually necessary. Please do it only if you know what you are doing as you could mess up your new machine.

For the next time, you might want to look into automating the setup of a new macOS machine. There are a number of ways to do that. One I use if having your own [dotfiles](https://github.com/mathiasbynens/dotfiles).

Most of the files you will be copying over using the procedure outlined above are not tied to your username. There are a handful of exceptions however (mostly your shell config and history).

If you are familiar with the Terminal you can use `grep` to find them (e.g. `find $HOME -exec grep $USER {} \; -print` on the old machine when logged in as your old account).

Finally, the list above is probably not complete. However you should be able to adapt it to cover your needs.

Good luck!
Upvotes: 1


<issue_start>username_0: I have a MacMini with my music collection on the hard drive. I'd like to play that through my iPad when I'm at home. But I have one major issue: **I'm on satellite internet with a limited bandwidth.** One month I got hit with an extra $200 bill because I left iTunes running and it wasted gigabytes of bandwidth "updating" the music on my iMac from the iCloud. (I don't store my music on my iMac - it's all on a shared drive on my MacMini.)

So I don't want to go through iTunes to do this (and, after that experience, I never run iTunes on my iMac or MacMinis), since that means I'm streaming my collection from the iCloud servers and using bandwidth.

I want to be able to make up playlists on my iPad (I'm okay with a 3rd party app) of the music files on the shared drive of my MacMini and play it back through my iPad, using wifi, but not using any internet bandwidth.

How can I make up playlists on my iPad for music on a shared drive on my LAN so I can use the playlists like I would normally use them? (In other words, being able to pick out a playlist, shuffle play it, repeat it, and so on.)<issue_comment>username_1: That's only a suggestion, but have a look at [MusicStreamer](https://itunes.apple.com/us/app/musicstreamer/id979888370). There may be alternatives to that app, but that's pretty much what you are looking for, I think.
Upvotes: 1 <issue_comment>username_2: Here are a few possible solutions:

[Plex](https://www.plex.tv/)
----------------------------

I haven't used this but it appears to do exactly what you ask for. Install the free server on the Mac and the (paid) app on the iPad. You don't need to sign up for a subscription and it says you don't even need to sign in to stream from a local server, which should help assure you that no streaming from the internet will take place.

Rogue Amoeba's [Airfoil](https://rogueamoeba.com/airfoil/)
----------------------------------------------------------

Install **Airfoil for Mac** on the Mac Mini where your music is and **Airfoil Satellite for iOS** on the iPad.

Airfoil is not free, but you can try it before you buy and it should work reliably and is well supported. It routes **any audio source(s) you choose on the Mac** to play simultaneously on one or more compatible destinations - so you can use any Mac audio player you like, including but not limited to iTunes. Airfoil Satellite has basic remote control capabilities for some applications such as iTunes and Spotify, but you would need something else to create and edit playlists - I'm pretty sure Apple's **iTunes Remote** can do this, for example, or if you use VLC on the Mac there's [VLC Mobile Remote](https://vlcmobileremote.com/) for the iPad.

[Logitech Media Server](https://en.wikipedia.org/wiki/Logitech_Media_Server)
----------------------------------------------------------------------------

The server you run on the Mac is free, on the iPad you would need the [SqueezePad](http://squeezepad.com/) client app (paid).

DLNA
----

Install a UPnP/DLNA media server such as [Kodi](https://kodi.tv/about) (free) on the Mac and use a DLNA client app for iOS - I don't know which to recommend, but there are [lots to choose from](https://duckduckgo.com/?q=dlna+ios+app) including some free ones.

iTunes
------

You say you don't want to use iTunes and iOS Music because of the risk of it using too much data. I'm not sure whether you're talking about iTunes on the Mac Mini downloading purchased or matched (if you have iTunes Match) tracks, or Music on the iPad streaming these tracks or playing from Apple Music (if you have Apple Music), but there are two ways you should be able to use Music on the iPad without this happening:

* Sync the music from iTunes on the Mac to the iPad via USB. You will need enough storage on the iPad to fit it! In **Music** on the iPad, make sure you only play from within the **Downloaded Music** section of your library.
* Turn on [Home Sharing](https://support.apple.com/en-us/HT202190) on iTunes and only play from within the **Home Sharing** section of your library. I (and others) have never found Home Sharing to work reliably but feel free to try it.

The only problem with these two is if you accidentally play music from outside the Home Sharing or Downloaded sections of the library.

Block streaming traffic on your router
--------------------------------------

A final suggestion, depending on what router and/or other equipment for the satellite internet connection you have: is there a setting you can make to block or throttle streaming audio traffic, and/or iTunes downloads? I don't know what servers, protocols or ports you would need to block but you might be able to get that answered with another question here.
Upvotes: 3 [selected_answer]<issue_comment>username_3: I do this using iTunes (I do not have apple music so there is no syncing to the cloud)

In iTunes on the Mac or pc turn on sharing in Preferences -> sharing -> Share library on my local network. (So the option for sharing will not use the cloud)

On your iPad go to Settings->Music At the bottom is Home sharing - you need the same Apple Id that you use in iTunes (which does not have to be the same as that for iCloud)

On the ipad the mac's play lists appear in the submenu shared libraries at the bottom of the iPad library entries and choose the name of the shared library.

See Apple's documentation <https://support.apple.com/en-gb/HT202190>
Upvotes: 2


<issue_start>username_0: For some reason, my Mac won't let me reset my PRAM in the usual way (by holding the relevant keys down when restarting), simply nothing happens when I try it and my Mac just boots up normally every time.

I'm suspecting this may be due to the fact I'm using a PC keyboard after I broke my Apple one a while back.

I read that I can reset my PRAM through Terminal with the following command:

```
sudo nvram boot-args=”-p -r”

```

But all I get is this error:

>
> nvram: Error setting variable - 'boot-args': (iokit/common) general error
>
>
>

I'm running High Sierra on a late 2009 iMac if that helps<issue_comment>username_1: Sounds like a [SIP](https://en.wikipedia.org/wiki/System_Integrity_Protection) restriction rather than a keyboard issue. Read through the linked article to get an idea of what SIP is, and then try this:

* Ensure you have an up-to-date backup, in case of emergency.
* Power off your Map as normal.
* Hold down Cmd-R and press the Power button. Windows keyboard should be Win-R instead. Keep holding the keys down until the Apple logo appears, then release.
* Wait for macOS to boot into the recovery utilities window.
* From the Utilities menu, choose Terminal. Then: `csrutil disable`, then `exit`, then reboot into High Sierra as normal.

I'm not sure where you're getting `-p -r` as boot args to reset NVRAM, but `sudo nvram -c` should do the trick on High Sierra, as [Tetsujin](https://apple.stackexchange.com/users/85275/tetsujin) states [here](https://apple.stackexchange.com/questions/354627/resetting-pram-through-terminal#comment467690_354627).

When you're done, reboot into recovery mode once more, open Terminal and then re-enable SIP with `csrutil enable`, and reboot into High Sierra.
Upvotes: 1 <issue_comment>username_2: According to an Apple Support page called "[Prepare your institution for iOS 10 and macOS Sierra](https://support.apple.com/en-us/HT206871)":

>
> ...you must use the nvram command to properly set boot-args NVRAM variable. Starting with macOS Sierra, you must be booted to the recovery partition to run this command.
>
>
>

But now you can clear the NVRAM with

```
sudo nvram -c

```

Then restart for the reset to take effect.

I also have a PC keyboard that doesn't seem able to reset the NVRAM on startup, but I think the real problem is that it's wireless. But this command is easier and more reliable anyway.
Upvotes: 2


<issue_start>username_0: I'm running macOS 10.14.4 with iCloud keychain. Safari is asking me to use touch ID or password every time I want to fill-in credentials. That wasn't the behavior since lately.

I saw some articles which advice to resent login keychain password, but that option is not available in the current version of macOS.

Is that behavior is by design or something is wrong with my security configuration?

Thanks,

Gil<issue_comment>username_1: These changes are by design, introduced in Safari Technology Preview Release 66 and promoted to Safari in macOS 10.14.4.

>
> ### Password AutoFill
>
>
> * Automatically submit login forms when filling credentials with Password AutoFill
> * On MacBook Pro with Touch Bar, require authentication with Touch ID to fill passwords into web pages; this can be changed in Safari’s AutoFill preferences
>
>
>

<https://developer.apple.com/safari/technology-preview/release-notes/>
Upvotes: 2 [selected_answer]<issue_comment>username_2: On Mac OS 10.14.4, go to system preferences, select Touch ID. Uncheck using Touch ID for Safari AutoFill.

It will no longer require Touch ID to autofill passwords and reverts back to earlier behavior.
Upvotes: 4


<issue_start>username_0: How do I remove Safari from my Mac, OS 10.14.3? Is this at all possible?

I have tried to drag it to the trash bin and it does say Safari is required by the OS but I wondered whether there was a way round this at all.

I've also tried `sudo rm -rf Safari.app/` but it says operation not permitted<issue_comment>username_1: On macOS, there are restrictions for root user to prevent crashing your Mac integrity and stability. Removing Safari is risky and useless, that’s why macOS prevents that. Not to mention you don't really save much disk space doing this.

You need to disable System Integrity Protection (SIP). Do this with `csrutil disable` command. You can only use it in macOS recovery mode using Terminal.

Do that by rebooting your Mac with `Command`+`R` keys held down. there will be a utilities menu, select Terminal and type that command in. When it is done reboot normally.

Do not forget to re-enable SIP with `csrutil enable` again in macOS recovery mode once you have deleted the safari.app.
Upvotes: 0 <issue_comment>username_2: The correct answer in this case is "Don't do that; you're asking for trouble." Safari is heavily integrated into the OS. Removing/disabling Safari is bound to eventually get you into a situation where an API malfunctions and you'll drive the poor person trying to help you insane.

I dare ask why you would want to remove Safari given that there is no advantage in doing so. You can remove IE from Windows or bash from a Linux distro, but the 26 MB you'll save won't be worth the anguish of having macOS eat its tail at some point down the road.
Upvotes: 3 [selected_answer]


<issue_start>username_0: Whenever I encounter a password field in Safari which it wants to auto-fill using my keychain, it freezes up for a few minutes and shows nothing but the beach ball. I presume it has to do with a corrupted keychain.

In previous versions of macOS, there was the option to repair a keychain. In Mojave, there is no such thing. When I "reset my default keychains", it fixes the problem and everything works as usual. However I lose all my passwords and notes.

What I've tried that didn't work:

* Run first aid from the Disk Manager
* Restored my keychain (contents of `~/Library/Keychains`) from a Time Machine backup
* Moved everything but `login.keychain` to the trash

I know that you could theoretically create a new keychain and copy items from the original keychain, but it keeps prompting for a password for each item which would not be feasible with the amount of items I have stored.<issue_comment>username_1: The repair tool was removed over security concerns where it could be use to export your keychain without your permissions. what we're left with are guidances you'll find throughout various blog articles explaining some specific problems with workarounds to "fix" specific issues related to the keychain.

* [How to Resolve Mac OS X Keychain Problems](https://help.queens.edu/hc/en-us/articles/205937040-How-to-Resolve-Mac-OS-X-Keychain-Problems)
* [5 Common Keychain Problems on Mac and How to Fix Them](https://www.makeuseof.com/tag/keychain-problems-mac/)
* [Keychain Access Mojave](https://discussions.apple.com/thread/8565491)

Most of these solutions involve deleting specific offending keys or toggling "Show Summary" or other aspects of a problematic key.
Upvotes: 2 <issue_comment>username_2: A corrupt Keychain can prevent multiple services from loggin in, including iCloud. Here is a way to figure out if your Keychain is the cause of not being able to login to iCloud.

1. Open your Console app (under Utilities)
2. In the Search field, type "Login"
3. Press the Clear button.
4. Try to login to your iCloud.
5. Note the error messages. They may look something like this"

**Error Domain=com.apple.accounts Code=13 UserInfo={NSLocalizedDescription=, NSUnderlyingError=0x7f\*\*\*\*\*\*\*c10 {Error Domain=com.apple.accounts.keychain Code=-25295}}}}**

Break down the error codes:

**Error Domain=com.apple.accounts Code=13**

This code can be linked to Keychain errors with a simple Google search

**Error Domain=com.apple.accounts.keychain Code=-25295**

This error code (and many others) can be nterpreted at this link:

```
           https://krypted.com/lists/comprehensive-list-of-mac-os-x-error-codes/

```

In this case, 25295 is interpreted by pressing Command F and searcing "25295". The search locates the following code:

**Keychain Manager error codes**

errKCInvalidKeychain = -25295

All indications are that the Keychain is corrupt, blocking services from logging in. In fact, by searching your own Apple ID in the keychain to locate login keys, you might try deleting Public keys. In doing so, MacOS will fail to delete any key that is corrupt.

SOLUTION:
---------

The solution is at this link:
How to back up your iCloud Keychain

<https://eclecticlight.co/2019/09/05/how-to-back-up-your-icloud-keychain/>

If you backup your MacOS device, your Keychain is also backed up. The article describes how to ensure your iCloud keychain items are also included in any local backup, and in doing so, it also describes how to restore your Keychain. Your Keychain is located in a file within your Library at ~/Library/Keychains. In finder, you need to select GO at the top menu (there's a way to unhide the "Go" tab... I don't remember offhand, but it is easy to find). Library is under the GO tab. This being said, this folder is also backed up to Time Machine or any duplicate of your MacOS device. Follow the instructions in the link to restore the ~/Library/Keychains folder to your MacOS device. I restarted my MacBook Pro, at this point, and for the first time in a couple of weeks, was able to login to all services. Problem solved!
Upvotes: 1


<issue_start>username_0: I downloaded the zip file of iterm, unzipped it and copied the iterm.app folder to /Applications **from terminal**. When I open the iterm file in applications, I still get the prompt to move it to Applications folder. Tried moving it to Users applications folder too. How do I avoid this error?<issue_comment>username_1: Although 5 months ago - did you ensure that there is no other iTerm2 application stored at your local machine except for the one in the application folder?

For example, if a different copy is still in the Download folder, then it might be called from there. Later the prompt appears to move it in the application folder.
Upvotes: 0 <issue_comment>username_2: Although this is hard to check, it seems like Gatekeeper was being overly-protective, but has since been adjusted.

When using macOS Sierra (10.12) or later, if an app is in /Applications/ but prompts to be moved to /Applications/ when run, then chances are very high that the app has recognized that it has been subjected to Gatekeeper’s “app translocation”. If you’re interested in the details you can find them online, but the practical effect is that if you went into Terminal (or iTerm) and ran

`ps auxwww | fgrep -i YourAppHere`

You would see a path that is *not* `/Applications/YourAppHere.app` but more like `/private/var/folders/[something-random-looking]/AppTranslocation/YourAppHere.app`.

The *preferred* way of moving apps around (according to Apple) is with the Finder. If you drag an app from the ~/Downloads/ folder to /Applications then it will not be 'translocated'.

If you insist on not doing things Apple’s preferred way, your only option is to remove the quarantine flag from the app. This will remove all of Gatekeeper’s protections, so use at your own risk. You can remove the quarantine flag using this command:

```
find "/Applications/iTerm.app" -exec xattr -r -d com.apple.quarantine {} \;

```

*Replace `"/Applications/iTerm.app"` with the appropriate app name as needed, obviously.*

You will need to re-launch the app for the app translocation to go away.
Upvotes: 2


<issue_start>username_0: This may be a simple question, but for a long time now Safari has not registered when my mouse is hovering over something (e.g. hover over a youtube video to show the progress bar, hover over a link to highlight it, hover over the FaceBook like button to show different reactions, etc.).

Does anyone have any insight into a solution? I've restarted multiple times since this started occuring.<issue_comment>username_1: I restored my Logitech settings from a backup and the problem went away.

Something must have gotten corrupted.

I have an M720 Triathlon Multi-device Mouse and a K780 Multi-device keyboard.
Upvotes: 1 <issue_comment>username_2: As Anyas Marshal stated in a comment, the issue truly did happen when I opened a website from my Favorites list in a new tab. I stopped doing that and I never experienced the issue again.
Upvotes: 1 [selected_answer]


<issue_start>username_0: Hope someone can help.

I have my touch configured like the following. This is basically the same setting that you got with the Mac Book Pros 2012 - 2015 as default.

[![enter image description here](https://i.stack.imgur.com/u6G0v.png)](https://i.stack.imgur.com/u6G0v.png)

I am a developer and use code editors so it's very important to me that my function keys are the first class citizens on my keyboard. I also want access to the control strip for screen and volume control using the fn keys (How else can I easily get to these?).

Great!

So now how do I access the "App Controls" as well? Surly I should be able to configure say fn+option to give me these?

Finding this very frustrating, makes the touch bar seem even more pointless if I can only have the settings I was used to with a "Real" keyboard. Seems I have to give something up to use the touch bar's app specific controls.<issue_comment>username_1: "Use Selection for Find" and "Use Selection for Replace" are right there in the Search menu.
Upvotes: 3 [selected_answer]<issue_comment>username_2: From page 183 of [the manual for v14.0](https://www.barebones.com/support/bbedit/manual.html):

>
> Replace All in Selection
>
> This command is enabled only when there is a selection in the frontmost text document (or in the text document immediately behind the Find window). Choosing it will perform a Replace All upon the selected range of text, i.e. it has the same effect as enabling the Selected Text Only option in the Find window.
>
>
>

It's there in v14, v13 and v12.

Also, I contacted the developers of BBEdit and they gave [this answer](https://groups.google.com/g/bbedit/c/TnrPgc3-adE/m/8bXU4B0dAAAJ) in response to the ***exact*** question the OP gave:

>
> * make the desired selection, then
> * bring up the Find window (Command-F),
> * enter the desired search & replace strings (or patterns),
> * turn on the "Selected text only" option, and
> * click "Replace All".
>
>
>

and to underline what was already stated above from the manual:

>
> i.e. it has the same effect as enabling the Selected Text Only option in the Find window.
>
>
>
Upvotes: 2


<issue_start>username_0: The model number of an iPad/iPhone can be determined by going to:

Settings app → General → About → Model Number

How to use this value (the one in `ML2I2KN/A` format) to determine the device type? It is an official model identifier from Apple, but how can one use it to identify their device? I didn't find any service of the kind at Apple's website.

If you tap on *Model Number* it will show another value - in format like `A1652`, and this value can help to find a general model at [Identify your iPad model](https://support.apple.com/kb/HT201471) page (or [similar for iPhone](https://support.apple.com/kb/HT201296)), but unlike `ML2I2KN/A` it cannot be used to determine color and storage capacity of the device.

There is 3-rd party service [Everyi](https://everymac.com/ultimate-mac-lookup/), but quite often it doesn't find anything. For example, searching for `ML2I2KN/A` gives nothing (*I know it's iPad Pro 12.9 from 2015, but that's not the point*).

Simply googling this value will highly likely result in some store's website with the correct item specification, and there is also this [wiki page](https://www.theiphonewiki.com/wiki/Models) with quite an impressive table of models.

But is there any **Apple official** resource for this purpose?<issue_comment>username_1: Apple documents model numbers in their “how to identify” knowledge base / support web pages.

* <https://support.apple.com/en-us/HT201296>

Vendors and partners have more detailed / concise / complete documentation as well, but any recent phone should be readily searchable.

I’m not aware of any crowd sourcing resource that documents this better than your example but a Wikipedia list or developer or just an enthusiast might surely have done work to catalog these if you need a more complete / concise listing than what Apple provides publicly. (especially if you’re looking for a database that crosses product lines and geographies - there are many variants of devices when sold internationally with different software features / legal requirements around GPS chips and volume limits for example.
Upvotes: 0 <issue_comment>username_2: You can check this site, some products can be found here. Hover mouse over the model, capacity and color will be displayed like this. It seems that Apple only wants to distribute this information within the company, there is no more public information.

[![ML2I2 IPAD PRO WI-FI CELL 128GB GRAY](https://i.stack.imgur.com/bI2L4.png)](https://i.stack.imgur.com/bI2L4.png)`http://salesdownload.apple.com/public/sites/asw/common/compliance/Other_iPad.htm`
Upvotes: 2


<issue_start>username_0: My browser works perfectly using the using Internet, however, when I tried to use this command in bash:

```
ping -q -w1 -c1 google.com &>/dev/null && echo online || echo offline

```

It gives me "offline" results. I have also tried another one in a different network:

```
ping -c 3 www.google.com

```

It returns:

```
PING www.google.com (172.16.58.3): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1

--- www.google.com ping statistics ---
3 packets transmitted, 0 packets received, 100.0% packet loss

```

All of these seem to point out that the terminal couldn't reach to the internet. I have tried using wifi and lan cable, the outcomes are the same.

I need to run a program which requires connection to a server, I wonder if you have any solutions to switch it back to online. I'm on macOS 10.13 and am looking to determine from the command line if a network connection is viable.

Is this possible?<issue_comment>username_1: Your problem is that you're using invalid options for the ping command. It seems likely that you have copied a command line intended for use on Linux, and tried to use it unmodified on macOS.

The specific problem here is that Linux uses "-w" to specify timeouts, whereas macOS uses "-t". This means that your command line should instead be this:

```
ping -q -t1 -c1 google.com &>/dev/null && echo online || echo offline

```
Upvotes: 2 <issue_comment>username_2: I prefer to use the system configuration utility tool to test for reachability instead of using ping / host / nslookup or another proxy for determining if a network entity is or is not reachable.

```
scutil -r google.com
Reachable

```

The benefits of this are that if you have VPN connections, dial up, modem, or a routing conflict, this will actually test that you can reach the device and not just resolve the cached host name, etc... in my experience. (also, it's a lot harder to mess up the indirection, files, logic and you get a direct answer back in English)

Like all good command line tools, it returns 0 to let you know the answer it provides is confident and an error if you have problems testing reachability.

>
>
> ```
>  -r [-W] { nodename | address | local-address remote-address }
>      Check the network reachability of the specified host name, IP
>      address, or a pair of local and remote IP addresses.  One or more of
>      the following strings will be reported to standard output.
>
>      Not Reachable         The specified nodename/address cannot be
>                            reached using the current network configura-
>                            tion.
>
>      Reachable             The specified nodename/address can be reached
>                            using the current network configuration.
>
>      Transient Connection  The specified nodename/address can be reached
>                            via a transient (e.g. PPP) connection.
>
>      Connection Required   The specified nodename/address can be reached
>                            using the current network configuration but a
>                            connection must first be established.  As an
>                            example, this status would be returned for a
>                            dialup connection that was not currently active
>                            but could handle network traffic for the target
>                            system.
>
>      Connection Automatic  The specified nodename/address can be reached
>                            using the current network configuration but a
>                            connection must first be established.  Any
>                            traffic directed to the specified name/address
>                            will initiate the connection.
>
>      Local Address         The specified nodename/address is one associ-
>                            ated with a network interface on the system.
>
>      Directly Reachable Addresss
>                            Network traffic to the specified node-
>                            name/address will not go through a gateway but
>                            is routed directly to one of the interfaces on
>                            the system.
>
>      The reachability can also be monitored by specifying the -W (watch)
>      option.  This will result in the current status being reported as
>      well as the status when/if the network configuration changes.
>
>      A zero exit status will be returned when the reachability status is
>      reported correctly.  A non-zero exit status will be returned if
>      errors are detected with an error reported to standard error.
>
> ```
>
>

Since Apple's index of manual pages is a PITA to use, here's a hopefully more stable link to the entire manual page online: <https://ss64.com/osx/scutil.html>

As a bonus - here is another decent Q&A relating to scutil and checking resolution:
[nslookup & dig fail; ping, traceroute, and scutil -r work](https://apple.stackexchange.com/questions/76557/nslookup-dig-fail-ping-traceroute-and-scutil-r-work)
Upvotes: 3 <issue_comment>username_3: Your command `ping -c 3 www.google.com` should have produced 3 internet response packets of the type ICMP ECHO REPLY. The ping command sends ECHO packets using the ICMP protocol, and the responses (if any) are ECHO REPLY packets. The curl command on the other hand, sends HTTP packets using the TCP protocol. Since the latter works and the former doesn't, there is probably something between your machine and www.google.com that blocks the ICMP protocol. A lot of misconfigured firewalls do this, so that is where I would start looking for the cause.

Blocking ICMP is bad practice since it stops things like Path MTU Discovery from working (MTU = Maximum Transmission Unit size). This stops most traffic from working if the remote MTU is smaller than the local MTU. So it's an extremely bad idea to block ICMP in the firewall.
Upvotes: 0


<issue_start>username_0: I've deleted some big folders yesterday while on a shoot, to free up some space to be able to shoot tethered into the Mac. The folders where from past shoots and I've marked the folders to know which I had backed up in several places - just to be able to be on shoots and delete if necessary.

But, yesterday things went quick and I'm not sure if one folder got mixed with the others. So today I'm looking for a way to just see which folder/items I deleted/emptied from the Trash.

Logs, Terminal commands etc.?

Every Google search gets me to recovery posts.<issue_comment>username_1: To the best of my knowledge macOS does **NOT** log what files were deleted so there is no way to see what was done.

Your best bet now is to *stop using your Mac until you get this issue resolved.*

Why? Because any time you use your Mac files are written to the drive. And when you delete something the location on the hard drive that the file(s) occupied is marked as free (rather than used/occupied). So anything you save to the disk subsequently could overwrite those files, including just opening a web page. As web pages are cached (or saved to) the drive.

If you have a backup of those files go get them from a backup. If you don't and the files are no longer in the trash get yourself some file recovery software, install it on *another* Mac and put the Mac in question into target disk mode (so you are not writing anything to the disk) and look for deleted files.
Upvotes: 2 <issue_comment>username_2: This following solution will not help you retrieve the filenames which were already removed from the trash, before implementing my solution. However you can use this solution to retrieve the filenames removed from the trash, in the future if you need to.

This AppleScript code works for me using the latest version of macOS Mojave.

You can attach a "Removing Items From" folder action to the /Users/YOUR SHORT NAME/.Trash folder that will write to file, the names of the files that were removed from the trash.

Create a new Script Editor document and insert this following AppleScript code.

```
on removing folder items from theFolder after losing removedItemNames
    writeToTheFile(removedItemNames)
end removing folder items from

on writeToTheFile(removedItemNames)
    set theFile to POSIX path of (((path to desktop as text) & "Removed From Trash.txt") as text)
    set text item delimiters to linefeed
    set theText to (removedItemNames as text)
    try
        set writeToFile to open for access theFile with write permission
        write theText & linefeed to writeToFile as text starting at eof
        close access theFile
    on error errMsg number errNum
        close access theFile
        set writeToFile to open for access theFile with write permission
        write theText & linefeed to writeToFile as text starting at eof
        close access theFile
    end try
end writeToTheFile

```

Next, save your new Script Editor document as "Removed From Trash Folder Action.scpt" to the folder... "/Users/YOUR SHORT NAME/Library/Workflows/Applications/Folder Actions/". Saving it to that location will add it to the list of scripts you can attach to folders in the Folder Actions Setup, which can be accessed when right clicking a folder in Finder, in the Services contextual menu.

[![enter image description here](https://i.stack.imgur.com/MVR00.gif)](https://i.stack.imgur.com/MVR00.gif)

Before you will be able to attach a folder action to the Trash folder, because the Trash folder is "hidden", you will first need to run this following AppleScript code to unhide all hidden files.

```
do shell script "defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder"

```

After all is said and done, if you want to re-hide all originally hidden files, just run this following AppleScript code to hide all hidden files.

```
do shell script "defaults write com.apple.finder AppleShowAllFiles FALSE
killall Finder"

```

Here is a look at the Folder Action creating the text file with the names of removed files from the trash

[![enter image description here](https://i.stack.imgur.com/iXU22.gif)](https://i.stack.imgur.com/iXU22.gif)
Upvotes: 2 <issue_comment>username_3: If you happen to be using Time Machine to backup your computer, you may compare your current state with one of your snapshots to list down the files that were deleted.

Backup the current state as snapshot first so we can do a snapshot-to-snapshot comparison with the path `/Users/Joe` appended:

```
tmutil compare "/Volumes/Backup/Backups.backupdb/Comp/2021-11-11-190343/Macintosh HD - Data/Users/Joe" "/Volumes/Backup/Backups.backupdb/Comp/2021-11-11-174640/Macintosh HD - Data/Users/Joe/" | grep -E ^-

```

The `| grep -E ^-` limits only to the files that were deleted in the left-hand-side (new) versus the RHS (old). The two params are the snapshot paths based on `tmutil listbackups`.
Upvotes: 0


<issue_start>username_0: I have this file (see attached);
[![Troublesome file](https://i.stack.imgur.com/ndmAj.png)](https://i.stack.imgur.com/ndmAj.png)

And I cannot delete it. it doesn't exist...

I have tried typing `rm` in the prompt then dragging the file on to it, I have gone to the actual location of the file and it's not there, I have deleted .Trash folders left right and center and I still can't find it... I have just run First Aid on ALL the volumes I have and the file still mocks me. Does anyone else have any suggestions?<issue_comment>username_1: Assuming that the file `tunnelBlick.tblk` is in `~/.Trash`, then one sure way of deleting this file is to boot to **Recovery Mode**, (**⌘R** when restarting the **Mac**), and then in **Terminal** (on the **Utilities** menu)... use the following *command*, e.g.:

```
rm -f /Volumes/Macintosh\ HD/Users/Your_Short_Name/.Trash/tunnelBlick.tblk

```

* The example *command* above assumes the main **Startup** volume is **Macintosh HD**, change as needed.
* The **Your\_Short\_Name** is that which you normally see in **Finder** as the name on your **Home** folder.

Then type `reboot` and press **enter** to restart the **Mac** back to normal mode boot.

**NOTE:** The `rm` *command*, especially with the `-f` *option* is potentially destructive if the *target* is not properly typed. Make sure the *command* is properly typed before executing. You can also first try without the `-f` *option* and the see if e.g.:

```
ls /Volumes/Macintosh\ HD/Users/Your_Short_Name/.Trash/tunnelBlick.tblk

```

Returns anything, and is so, then use the `-f` *option*.

---

**Update:** Based on the answer to the question I asked in the comment under your question, you would use the following *command* from **Recovery Mode**, (**⌘R** when restarting the **Mac**):

```
rm -f /Volumes/Macintosh\ HD/Users/Your_Short_Name/Library/CloudStorage/iCloud\ Drive/.Trash/tunnelBlick.tblk

```

With the same caveats applying:

* The example *command* above assumes the main **Startup** volume is **Macintosh HD**, change as needed.
* The **Your\_Short\_Name** is that which you normally see in **Finder** as the name on your **Home** folder.

---

Note: You can first try from normal mode:

```
rm -f /Users/Your_Short_Name/Library/CloudStorage/iCloud\ Drive/.Trash/tunnelBlick.tblk

```

If that doesn't work you can also try prefacing the command with `sudo`; however. if it will not delete from normal mode then boot to recovery mode.
Upvotes: 2 <issue_comment>username_2: First thing I would try is running this following command in Terminal

```
killall 'Finder'

```

Then once Finder quits, in a second or two, Finder should automatically restart. Then try going back to empty the trash.

If that does not work then I would attempt this...

Try restarting the computer in Safe Mode.

>
> 1. Start or restart your Mac, then immediately press and hold the Shift key. The Apple logo appears on your display. If you don't see
>  the Apple logo, [learn what to do](https://support.apple.com/kb/HT204267).
> 2. Release the Shift key when you see the login window. If your startup disk is encrypted with [FileVault](https://support.apple.com/kb/HT204837), you might be asked to log in
>  twice: once to unlock the startup disk, and again to log in to the
>  Finder.
>
>
> To leave safe mode, restart your Mac without pressing any keys during
>  startup.
>
>
> Safe mode (sometimes called safe boot) is a way to start up your Mac
>  so that it performs certain checks and prevents some software from
>  automatically loading or opening. Starting your Mac in safe mode does
>  the following:
>
>
> * Verifies your startup disk and attempts to repair directory issues, if needed
> * Loads only required kernel extensions
> * Prevents startup items and login items from opening automatically
> * Disables user-installed fonts
> * Deletes font caches, kernel cache, and other system cache files
>
>
>

Source: [Use safe mode to isolate issues with your Mac](https://support.apple.com/en-us/HT201262)

Once your computer has rebooted into Safe Mode, then go ahead and try to empty your trash.
Upvotes: 1 <issue_comment>username_3: Rather than putting in the trash, try putting it into the /tmp/ folder, like so:

```
mv -fv /Users/SHORT-NAME/Library/CloudStorage/iCloud\ Drive/.Trash/tunnelBlick.tblk /tmp/

```

The /tmp/ folder is cleared out on reboot, so that might do it.
Upvotes: 1 <issue_comment>username_4: You can use `rm -rf folder name with wild card(the path of the file)` not in the root folder. Or write a python script using `glob` library to execute this process. You can add your paths you want to delete whenever you want.
Upvotes: 0


<issue_start>username_0: Finally managed to get my partition to work, but now when installing Windows 10 Home, Windows 10 Home N, or Windows 8.1, none will work and I am prompted with the error code 0xc0000001 loop. Please help. Here is the diskutil list of my drive.[![Drives after partition and install failure](https://i.stack.imgur.com/IAfxe.png)](https://i.stack.imgur.com/IAfxe.png)<issue_comment>username_1: The partition looks right. Did you go through the BootCamp creator to create the installation media? Drivers for the Disk Controller are added to the installation media by BootCamp.

See <https://discussions.apple.com/thread/8276897> for an explanation.
See <https://support.apple.com/en-us/HT201468> for Apple's official instructions.
Upvotes: 1 <issue_comment>username_2: As it turns out I was using a OWC SSD that was not compatible with bootcamp. Got a full refund but not worth the amount of trouble I went through trying to troubleshoot this issue.
Upvotes: 0


<issue_start>username_0: Ok, it may sounds weird but I just found my iPad in the **trash** (yeah you've read it right haha). So the last thing I remember that I connected it to the charge cable. After I arrived home I've found it in the trash disconnected from the cable. I thought I may can find more information from some **history of logs** or something.

It's a **mystery**.

* Was it my girlfriend?
* Or our cats?

Can you help me figure this out?<issue_comment>username_1: Would logging out after 5(minimum) minutes of activity work? This can be done in Security and Privacy-> Advanced.

Since both are single toggle methods, disable power nap in energy saver preferences.
Upvotes: 0 <issue_comment>username_2: You could install [blueutil](http://braumeister.org/formula/blueutil) and [SleepWatcher](https://www.bernhard-baehr.de/) via [homebrew](http://brew.sh/) and set a .sleep code to call blueutil in order to disable bluetooth and call `"networksetup -setairportpower en0 off"` to disable wifi when going to sleep mode or closing the lid.

Blueutil comands are `"/usr/local/bin/blueutil -p 0"` to disable bluetooth and `blueutil -p 1` to enable it.

To use SleepWatcher, make a shell script in your home directory named .sleep and give it permission with the chmod command.

You also can do a .wake code to enable back connections when waking up the mac.

You can find out how to use sleepwatcher [here](https://www.kodiakskorner.com/log/258)
Upvotes: 2 <issue_comment>username_3: See what I was saying above in [comments](https://apple.stackexchange.com/questions/366243/how-to-turn-off-connections-when-macbook-lid-is-closed/367236#comment490971_366263). I don't have a Mac and do not know if they have it, but I have an HP laptop with airplane mode button on it. When I want to disconnect before I close the lid, I just hit that. Done, no connections. When I come back I open the lid and hit the button again to reconnect and thats it. Maybe the Mac has a simple airplane mode button? You could check and look for it. On the laptop, it is an arrow icon on F12 key.
Upvotes: 0 <issue_comment>username_4: <https://github.com/ppkantorski/Airplane-Sleep>

I wrote this script after reading the comments here. Hope it helps someone!
Upvotes: 2


<issue_start>username_0: After upgrading to MacOS Catalina, I have a Relocated Items folder on my Desktop. Inside this folder is a PDF explaining what these items are.

Inside the folder are two sub-folders - `Configuration` and `Security`. These folders contain items that were in locations which are no longer compatible with the new macOS configuration. You are advised to review the items in these directories and take appropriate action.

The problem is that within the `Security/usr` folder is a symbolic link called `X11` pointing to `/opt/X11`. The `/opt/X11` directory does not exist and I cannot remove the `X11` link with either `unlink` or `rm` *(as sudo and have tried after sudo su to get a root shell)*. When I try to remove the file, I get "Operation not permitted". I can move the link to the Trash, but when I do, trying to empty Trash results in an error saying it cannot be emptied because `X11` is a file required by macOS. So, how do I get rid of this link?

**Update:** I also noted that `xattr` shows nothing.<issue_comment>username_1: As this question has had over 1k views, it seems it is a common issue. Therefore, I thought I would outline what I did to get it resolved in case others find it useful.

When I first tried to remove the link, I was told the operation was not permitted. Looking at the link, I could see it was owned by `root` and in the `wheel` group. I therefore then tried to remove it with `sudo` i.e.

```
sudo unlink X11

```

This failed with the same error. I also tried

```
sudo rm -rf X11

```

but this also failed with the same error. I then posted here asking for help and @Danijel-JamesW added a comment with a link to a useful article that provided some background on the new security features initially introduced in the previous version of macOS, but extended in Catalina. One of the things this article highlights is that some applications, like terminals and editors (in my case Emacs), need to have the full disk access privilege. Without this privilege, you will often get operation not permitted errors in unexpected locations/situations. Unfortunately, this was not the issue in my case. My terminal app (iTerm2.app) had the necessary permissions. However, the article did indicate that you could also get around the operation not permitted error by disabling SIP (System Integrity Protection). This was going to be my next move. However, in the end, it was not necessary.

Thanks to a comment from @user3439694 I found out that you can boot into Recovery Mode and use the terminal to delete the file. This is what I did:

1. Boot holding down `Cmd`+`R`
2. Click on **Utilities** and select **Terminal** from the top menu
3. Enter `rm -rf /path/to/file/to/remove`
4. Reboot

This solved my issue. One important thing to note is that working in the recovery terminal is powerful and potentially dangerous. You need to make sure you are deleting what you mean to delete. To be extra safe, instead of immediately issuing the `rm` command, you can use `ls -l` to make sure you have the correct file or directory and then hit the up arrow to bring back the command from the history, move to the beginning of the line, remove the `ls -l` and type `rm -rf`, leaving the path unmodified following the `rm -rf`. Note also that the `-r` means recursive and `-f` means force - very powerful and dangerous. It will essentially remove everything from the point specified in the path downwards i.e. all sub-directories and files. So, if you get that path wrong, you may end up deleting much more than you expected. In my case, the path I needed was:

```
/Volumes/Macintosh\ HD\ -\ Data/Users/tim/Desktop/Relocated\ Items

```

My login account is `tim`. The `\` are needed to escape the spaces in the path. Most systems will have the path starting with `/Volumes`, but the drive name may differ (i.e. Macintosh HD). The `- Data` is fairly standard.

Anyway, this fixed the issue, and those irritating files are now gone and my Desktop folder is clean (for now!).
Upvotes: 7 [selected_answer]<issue_comment>username_2: I used the procedure found at [MacReports.com](https://macreports.com/relocated-items-folder-macos-catalina/):

* boot into Recovery Mode,
* disable csrutil,
* reboot,
* delete the folder (in either the Finder or Terminal),
* reboot into Recovery Mode,
* re-enable csrutil; and,
* reboot.

Four reboots (!), yes -- but so far, so good.
Upvotes: 3 <issue_comment>username_3: The issue is caused by X11 symlink which is setup by XQuartz and this points to X11 folder which is protected by Mac OSX. At some point you might have installed XQuartz and the original procedure is to uninstall XQuartz and reinstall XQuartz after Catalina upgrade.

In my case, I had installed XQuartz via homebrew cask and had already upgraded to catalina. So firstly, uninstall XQuartz.

```
$ brew cask ls
$ brew cask remove xquartz

```

* now restart your mac
* hold "cmd + r" (you can release the keys after a few seconds just after apple logo appears with the progress bar)
* now you are in recovery mode
* select from the top menu utilities > terminal
* enter the following to disable apple secure integrity

```
$ csrutil disable       # this disables apple secure integrity tool

```

* close the terminal
* select from the top menu restart and wait for normal boot into your account
* now you can delete the files which are stuck and bin them as usual
* for completness, reboot into the recovery mode as above steps and in the terminal enter

```
$ csrutil enable       # this reenables apple secure integrity tool

```

* restart and login as usual

if you are freaking out as you are being warned of deleting/binning a protected folder, you can opt to use "unlink X11" command instead to remove the symlink. this worked for me and hope it helps.

to understand or test the issue you can try the following which in the case of trying to disable system integrity results in an error

```
$ csrutil status
System Integrity Protection status: enabled.
$ csrutil disable
csrutil: failed to modify system integrity configuration. This tool needs to be executed from the Recovery OS.

```
Upvotes: 2 <issue_comment>username_4: username_1's solution worked for me. The tl;dr is

1. Recovery mode: command + R
2. Utilities -> Terminal
3. rm -r /path/to/file/or/dir/to/remove (The -r alone worked for me -- Tim used rm -rf force mode)
4. Reboot
Upvotes: 2 <issue_comment>username_5: Having struggled with all the advice, and sudos, suddenly I had this idea....: what if...? And yes!
I just moved everything from the Trash bin to my Dropbox folder (which apparently was allowed, nothing protested) and subsequently deleted the whole bunch of stubborn files via Dropbox' online interface. And they were gone!
Have a nice day,
Paul
Upvotes: 1 <issue_comment>username_6: I personally don't like to turn off SIP/security features, if I can help it.

The way I do this is as follows:

1. Reboot and immediately hold down cmd+r (booting into recovery mode)
2. Open Disk Utility (you likely have to select your admin user and login first)
3. Mount your data volume (e.g. Macintosh HD - Data)
4. Quit Disk Utility
5. In the toolbar, open Terminal (Utilities->Terminal)
6. `rm -rf /Volumes/Macintosh\ HD\ -\ Data/Users/[your-user]/[path-to-relocated-items]`
7. reboot

You should not have to disable SIP/csrutil.
Upvotes: 2


<issue_start>username_0: I've had the (mis)fortune to get a new work laptop with the O' so great Touch Bar which I so immensely hate and have changed the Touch Bar to display F-keys.

However one thing I do miss is my global Media Keys. I'm primarily listen to Spotify and I know it has shortcuts but that requires me to make the Spotify window active which it rarely is.

I've looked into both Google and the shortcut options Apple provides me and I have yet to find a way to set up a *global shortcut for the Media Keys (Next, Prev. Play/Pause)*

Any help or suggestions would be greatly appreciated.<issue_comment>username_1: This solution is a bit of a workaround, but I think that it should work for you.

First, you can write some AppleScripts that will perform the actions Next, Prev., and Play/Pause. I found some examples [here](https://gist.github.com/NoobsArePeople2/5121597). If you are on macOS Catalina, you will need to replace "iTunes" with "Music", unless you only use Spotify and don't want to check for other open applications.

Next, you can create a Quick Action (also known as a service) in Automator. I found some instructions to do that [here](https://appleinsider.com/articles/18/03/14/how-to-create-keyboard-shortcuts-to-launch-apps-in-macos-using-automator).

For each AppleScript (Next, Prev, Play/Pause), you can either save it as an application, and set the service to open that application, or you can have your service run the AppleScript directly by using the Run AppleScript variable in Automator.

When you save each service, give it a name (like next, prev, and play), as that will be what shows up in the shortcuts menu.

Now that you have 3 services, you can go to System Preferences -> Keyboard -> Shortcuts -> Services. You can now set a keyboard shortcut to run each service, which in turn should run the AppleScript to perform the Media Action you want. The services you just made should be in the General section, which is at the very bottom of the list for me.
Upvotes: 3 [selected_answer]<issue_comment>username_2: I had a similar problem, using a basic, non-apple, USB keyboard pressing F8 wouldn't pause my music whether or not I checked the "Use F1, F2, etc. keys as standard function keys" option.

I spent a while trying to get Applescripts to control Chrome but it was more complicated than controlling Spotify.

What ended up working was installing [Karabiner-Elements](https://karabiner-elements.pqrs.org/). Without any extra configuration, now pressing i.e. F8 works to `play_or_pause`, and other keys work as expected for next/prev and volume controls.

See the default Function Keys configuration:

[![See keys F7 through F12 shortcuts](https://i.stack.imgur.com/hVzyl.png)](https://i.stack.imgur.com/hVzyl.png)
Upvotes: 2 <issue_comment>username_3: Everything in @username_1's answer worked for me. The only thing I had trouble with was that when setting the keyboard shortcut for the services I created, it had to include the command key for the service to be run by the shortcut.

Maybe that was your issue @Mestika?
Upvotes: 1 <issue_comment>username_4: With the advent of Shortcuts on macOS Monterey, you don't need so many steps now.

You need to just create a shortcut which runs the macOS Play/Pause action and then make it a Quick Action, check Finder, and set your keyboard shortcut.

Here is an example shortcut I created: <https://www.icloud.com/shortcuts/aa8c4a50ec5d4960a6e05893cda51ccf>

On Ventura, you can do this all within the Shortcuts app. Launch it, then search for "pause", and assign the "Run with" keyboard shortcut you want. You also won't need to select Finder anymore; you can instead leave Services Menu as the default checked item. Here's what it looks like when you're done in Shortcuts:

[![screenshot of the setup in MacOS Ventura](https://i.stack.imgur.com/CeOtp.png)](https://i.stack.imgur.com/CeOtp.png)
Upvotes: 3


<issue_start>username_0: So recently my MacBook Pro 2018 Touchbar (4 USB-C and Intel I5 Quadcore) has been having a really weird problem after waking up from Sleep. Every time I open the Lid and log in, the screen wakes up like normal and sometimes I can see new notifications from Firefox.

However, my Mouse and Keyboard stay completely unresponsive.

I see the mouse cursor, but it just won't move. `CTRL` + `Arrow` key also won't change screens. It's exactly as in [this](https://apple.stackexchange.com/questions/41809/macbook-pro-13-mouse-freezes-after-wake-up) post here from *7 years* ago and sadly no fix.

* It occurs from only for a few seconds to up to 30 seconds sometimes.
* It also happens always for at least a few seconds, no matter where I
am or what state I closed the lid in.

What could remove or resolve these post sleep freezes?<issue_comment>username_1: You could run an Exchange Server which includes Email, Notes, Calendar and Reminders
Upvotes: 0 <issue_comment>username_2: So it looks like this is impossible.

Yes, Notes does support IMAP and this can be set up by adding an Email account to iOS (or macOS) and checking "Notes" there.

However those kind of Notes are handicapped: you can't draw there with Apple Pencil, can't use any markdown like tables/bullets. Basically it is just Text and (image) attachments, making this app nearly useless (most of the notes I am making are made with Apple Pencil).

What I like about internal Notes.app is that it is automatically launched upon an apple pencil tap on the locked screen - this is why I prefer it over 3rd party apps. But, when I tap on an IMAP-connected note, I am getting an Alert "Apple Pencil is supported only on iCloud notes". Damn.
Upvotes: 2


<issue_start>username_0: Preview defaults to saving as PNG. I can change PNG to JPEG, but I have to do it every time.

Is there a way to change the default behaviour?

[Is there a way to change the default save/export format in Preview?](https://apple.stackexchange.com/questions/363674/is-there-a-way-to-change-the-default-save-export-format-in-preview) basically doesn't answer the question, but says that Preview saves it in the form it came in. Well, sort of. If I'm browsing google images, and right-click copy image, even though it's a jpeg image originally, when you past as new selection, it will default to save as PNG.

[How can the default save format be changed for OS X Preview app?](https://apple.stackexchange.com/questions/373409/how-can-the-default-save-format-be-changed-for-os-x-preview-app) gives two solutions for someone who wants to save as PDF -- one using a python script, and two using a shortcut key mapped to export as PDF.

Neither of these solutions is workable.

A: In many cases I have a bunch of intermediate steps, editing the image in Preview. Most images will have a crop, a resize, and an annotate. I suppose in principle the python script could be modified to save the current buffer in preview as a jpeg after I've done the others, but I don't yet speak python.

B: The command shortcut doesn't work, as there is no menu command for "Save as JPEG" Instead the Save menu item opens a modal dialog that requires the input of a name (since New->From Clipboard makes a file with the name "untitled-N") and every time a click on the ribbon control at the bottom of the dialog box to move to JPEG<issue_comment>username_1: No easy preference or key is known to change the defaults. Barring a new discovery, plan to use a different app or script image conversion with automation.

You probably already know you could make a keyboard shortcut if an Apple menu to save as JPEG existed, but that’s the crux here. Other questions here have useful details on automation and using python to process the clipboard instead of preview.

* [Is there a way to change the default save/export format in Preview?](https://apple.stackexchange.com/questions/363674/is-there-a-way-to-change-the-default-save-export-format-in-preview)
* [How can the default save format be changed for OS X Preview app?](https://apple.stackexchange.com/questions/373409/how-can-the-default-save-format-be-changed-for-os-x-preview-app)
Upvotes: 2 <issue_comment>username_2: As a workaround, the following *example* **AppleScript** *code*, shown further below, will do a **Save As…** and select **JPEG** and can be used in an **Automator** *Service* with a **Run AppleScript** *action* and a *keyboard shortcut* assigned to it in: **System Preferences** > **Keyboard** > **Shortcuts** > **Services**

For testing purposes, in **macOS High Sierra**, I used: **⇧⌘J**

**NOTE:** This may also require giving **Preview** [accessibility privileges](https://developer.apple.com/library/archive/documentation/LanguagesUtilities/Conceptual/MacAutomationScriptingGuide/AutomatetheUserInterface.html#/apple_ref/doc/uid/TP40016239-CH69-SW1) for this to work properly.

```
tell application "Preview" to activate

tell application "System Events" to tell application process "Preview"
    click menu item "Save As…" of menu "File" of menu bar item "File" of menu bar 1
    click pop up button 2 of sheet 1 of window 1
    click menu item "JPEG" of menu 1 of pop up button 2 of sheet 1 of window 1
    set value of value indicator 1 of slider 1 of sheet 1 of window 1 to 0.9
    click button "Save" of sheet 1 of window 1
end tell

```

• The `value` of `value indicator 1` is a *decimal value* from `0.0` to `1.0`.

• You may need to use some `delay` *commands*, e.g. `delay 0.2` between lines as needed.

[![enter image description here](https://i.stack.imgur.com/Z68Yv.png)](https://i.stack.imgur.com/Z68Yv.png)

---

Note: The *example* **AppleScript** *code* is just that and does not contain any *error handling* as may be appropriate. The onus is upon the user to add any *error handling* as may be appropriate, needed or wanted. Have a look at the [**try**](https://i.stack.imgur.com/Z68Yv.png) *statement* and [**error**](https://developer.apple.com/library/archive/documentation/AppleScript/Conceptual/AppleScriptLangGuide/reference/ASLR_control_statements.html#//apple_ref/doc/uid/TP40000983-CH6g-129657) *statement* in the [**AppleScript Language Guide**](https://developer.apple.com/library/archive/documentation/AppleScript/Conceptual/AppleScriptLangGuide/introduction/ASLR_intro.html). See also, [**Working with Errors**](https://developer.apple.com/library/archive/documentation/AppleScript/Conceptual/AppleScriptLangGuide/reference/ASLR_error_xmpls.html#//apple_ref/doc/uid/TP40000983-CH221-SW1).
Upvotes: 1 <issue_comment>username_3: 1. If you're using Chrome, there's a natty little extension called ***Save Image As Type*** – you can select .png or .webp or whatever every single time. You don't even have to click the extension as it appears as a context menu option when you right-click:

[![eg Delphiniums – 'Saving image as type'](https://i.stack.imgur.com/okyxN.jpg)](https://i.stack.imgur.com/okyxN.jpg)

2. If you've got a load of *existing* photos that are .png that you want to change to .jpg, you can also batch 'Export as .png in Finder after the fact, so you could feasibly do this at the end of day/week/project, without the faffage of doing it for each image singly.
3. For *screenshots*, you can also make your Mac change default to saving as .jpg

To save all screenshots as .jpg by default, enter this script into Terminal.

>
> defaults write com.apple.screencapture type jpg;killall SystemUIServer
>
>
>

If you ever change your mind and want to revert *back* to saving all screenshots as .png then this is the script for that:

>
> defaults write com.apple.screencapture type png;killall SystemUIServer
>
>
>

You are now back to the original file format.

As a matter of interest, is this about image quality for space-saving, eg for webpage load times?

I ask as I always seek the *opposite* of what you're looking for! I actively *want* my images saved as .pngs and not .jpg or .webp. png being better quality without getting to crazy .tiff levels.

There are of course other ways of ensuring your web images load quickly, rather than feeling you have to make them a .jpg
Upvotes: -1


<issue_start>username_0: In the MacBook [technical specifications documentation](https://support.apple.com/kb/SP754?locale=da_DK&viewlocale=en_US), I read that it supports up to 2 monitors (or 1, it depends on display parameters).

On Apple’s [Thunderbolt 3 page](https://www.apple.com/thunderbolt/), I read the same info but about a single Thunderbolt 3 port (of which I have 2).

What is the number of monitors I can connect to my MacBook Pro?<issue_comment>username_1: **You can plug in a maximum of two monitors**

The technical specifications gives you detailed info about what your specific model’s capabilities are. In this case, your model MacBook - 2017 13 inch MacBook Pro - has enough bandwidth to support two monitors at 4K or less or just one monitor at 5K.

The Thunderbolt information page gives you a generalized perspective of Thunderbolt’s capabilities.
Upvotes: 3 [selected_answer]<issue_comment>username_2: According to the [technical specification](https://support.apple.com/kb/SP754?locale=da_DK&viewlocale=en_US) of your model:

>
> **Video Support**
>
>
> Simultaneously supports full native resolution on the built-in display at millions of colors and:
>
>
> * One display with 5120-by-2880 resolution at 60Hz at over a billion colors
> * Up to two displays with 4096-by-2304 resolution at 60Hz at millions of colors
> * Up to two displays with 3840-by-2160 resolution at 60Hz at over a billion colors
>
>
> Thunderbolt 3 digital video output
>
>
> * Native DisplayPort output over USB‑C
> * VGA, HDMI, DVI, and Thunderbolt 2 output supported using adapters (sold separately)
>
>
>

therefore you can have 3 active screens including the screen of your MacBook.

The 2 connected monitor can have a resolution up to 4K.

If you wish to connect a monitor with higher resolution than 4K (e.g. 5K), you will be able to connect only 1 additional monitor (i.e. 2 active screen configuration).

In general, to be able to connect even more monitors you need to have a dedicated GPU. A similar question was addressed [here](https://apple.stackexchange.com/a/191287/50712).
Upvotes: 0 <issue_comment>username_3: I have tried plugging in an Apple thunderbolt display using Apple's own USB-C to thunderbolt adapter (purchased from the apple store) - works great. - I can also connect a Dell 1080p, USB-C monitor -- but not both at the same time. - I am considering trying with a diff monitor.
Upvotes: -1


<issue_start>username_0: I just recently published my first iOS app to the App Store, but I want it to support devices with older iOS versions, and would like to confirm how to add that support before I do something that might mess things up.

On testing downloading from the App Store, I discovered that having left the iOS Deployment Target setting to the latest iOS version (currently 13.2), seems to mean that only users with the latest version of iOS on their devices are allowed to actually download the app.

* I have a version 1.0.1 targeting iOS 13.2 on the store.

**I think what I need to do is:**

1. Build another archive targeting iOS 12.0 with a higher version number (required to upload after the previous one) and post it to the store.
2. And if I also want to support iOS 11.0, add another archive built for that with a higher version number, and upload that too.
3. Then make sure they're all listed as available under App Store Connect -> my app -> Pricing and Availability -> Last-Compatible Version Settings.

**Is that all I have to do?** Is it going to mess something up that the older iOS targets will have higher version numbers of my App?<issue_comment>username_1: It doesn't mess something up that you have newer version numbers that support older iOS targets than older version numbers. That's perfectly alright.

Remember that the Deployment Target is the *minimum* version of iOS that user's need to have.

The optimal way to do what you want is to set the deployment target to iOS 11, and then in your app conditionally use features for iOS 12 and iOS 13 depending on their availability.

This means that you can compile one single archive that contains a single app that will install on iOS 11, iOS 12 and iOS 13, and will offer different functionality depending on the iOS version on the user's device.

If you're using Swift for example, it could look something like this:

```
if #available(iOS 13, *) {
  // new stuff
} else {
  // old stuff
}

```
Upvotes: 3 [selected_answer]<issue_comment>username_2: If you build and upload with bytecode enabled Apple can generate the various IPA files for all the target devices and operating system versions.
Upvotes: -1


<issue_start>username_0: My mac is in a weird state without particular reason.
It is awake, but mouse clicks don't work, so I can't open any menus or apps.
If I shut the lid, it locks after a while, but not immediately. When it gets to the locked state, it allows me to log into my account, by typing password, but it won't let me switch user or get to the screen, where I can restart it.

Keyboard is even more weird. It react to all feature buttons (brightness, sound, keyboard brightness), except power button and "app buttons" (f3-f4). It doesn't react to holding power button for 10+ seconds, nor cmd+option+power button shortcut.

I'm able to call "force quit apps" menu via cmd+alt+esc and close all apps and restart finder, but it doesn't help.

Any ideas what should I do?

I can't detach battery, since it 2015 retina model and I don't have correct screwdriver on me.

UPDATE: External mouse and keyboard react the same way<issue_comment>username_1: Some processes may be active behind the typical "force quit apps" menu.

Open the activity monitor, click on "Memory" and see what's commanding most of the resources. For most macs, anything over 1GB of memory will result in too much memory pressure and slow performance. A short term solution is to "quit" or "force quit" using the X button in the upper left hand corner.
Upvotes: 0 <issue_comment>username_2: After a while, I've noticed that all shortcuts work in Finder. Here are my steps, how I fixed the problem:

1. Try to launch finder, by killing rest of the apps via "force quit apps" menu (`Command+Alt+Esc`)
2. Go to utilities folder (`Shift+Command+U`)
3. Use arrows to select Terminal
4. Open terminal (`Command+Down Arrow`)
5. Issue command `sudo shutdhown -r now`. I decided to use `-r` flag to reboot my mac, in case power button is dead and I won't be able to load it.

Now everything works fine. It was just a software bug.
Upvotes: 1 <issue_comment>username_3: Try to reboot your computer.

* Hold down the power button for at least 5 seconds (in your case, hold it down for about 30 seconds) if that doesn't work, try the other options below
* Open Terminal and issue the following command to *restart* your computer

```
$ sudo shutdown -r now

```
* Also try shutting it down completely, then powering back up with the power button:

```
$ sudo shutdown -h now

```

If you can get things back up and running, I highly suggest resetting the [SMC](https://support.apple.com/en-us/HT201295) as it appears to be a power issue. There are different methods depending on your Mac model so be sure to read the steps carefully.
Upvotes: 0


<issue_start>username_0: Ever since upgrading to Catalina, my MacBook Pro 2018 randomly freezes up completely. The screen will be completely frozen and the trackpad won't click anymore. After a minute or so, the fans blow very loud for a second and the system reboots. After rebooting the "Your computer restarted because of a problem" prompt appears and the trace shows this:

```
panic(cpu 2 caller 0xffffff7f869a0a8d): watchdog timeout: no checkins from watchdogd in 96 seconds (321 total checkins since monitoring last enabled)
Backtrace (CPU 2), Frame : Return Address
0xffffff81f5bf3c40 : 0xffffff8005f215cd
0xffffff81f5bf3c90 : 0xffffff800605a3c5
0xffffff81f5bf3cd0 : 0xffffff800604bf7e
0xffffff81f5bf3d20 : 0xffffff8005ec7a40
0xffffff81f5bf3d40 : 0xffffff8005f20c97
0xffffff81f5bf3e40 : 0xffffff8005f21087
0xffffff81f5bf3e90 : 0xffffff80066c2ce8
0xffffff81f5bf3f00 : 0xffffff7f869a0a8d
0xffffff81f5bf3f10 : 0xffffff7f869a047b
0xffffff81f5bf3f50 : 0xffffff7f869b5d9c
0xffffff81f5bf3fa0 : 0xffffff8005ec713e
      Kernel Extensions in backtrace:
         com.apple.driver.watchdog(1.0)[99A75EFF-7734-31A0-80BF-FF8288E30D9B]@0xffffff7f8699f000->0xffffff7f869a7fff
         com.apple.driver.AppleSMC(3.1.9)[601E041E-0A5C-3B6A-A4E6-45ECC7F48A2B]@0xffffff7f869a8000->0xffffff7f869c6fff
            dependency: com.apple.driver.watchdog(1)[99A75EFF-7734-31A0-80BF-FF8288E30D9B]@0xffffff7f8699f000
            dependency: com.apple.iokit.IOACPIFamily(1.4)[9D1FF279-C4A2-3344-902F-E0B22B508689]@0xffffff7f86908000
            dependency: com.apple.iokit.IOPCIFamily(2.9)[1B1F3BBB-9212-3CF9-94F8-8FEF0D3ACEC4]@0xffffff7f86911000

BSD process name corresponding to current thread: kernel_task
Boot args: chunklist-security-epoch=0 -chunklist-no-rev2-dev

Mac OS version:
19E287

Kernel version:
Darwin Kernel Version 19.4.0: Wed Mar  4 22:28:40 PST 2020; root:xnu-6153.101.6~15/RELEASE_X86_64
Kernel UUID: AB0AA7EE-3D03-3C21-91AD-5719D79D7AF6
Kernel slide:     0x0000000005c00000
Kernel text base: 0xffffff8005e00000
__HIB  text base: 0xffffff8005d00000
System model name: MacBookPro15,3 (Mac-1E7E29AD0135F9BC)
System shutdown begun: NO

System uptime in nanoseconds: 5160964214617
last loaded kext at 946537554400: >usb.IOUSBHostHIDDevice   1.2 (addr 0xffffff7f89bb1000, size 45056)
last unloaded kext at 2243812240911: >!UAudio   322.2 (addr 0xffffff7f8ced0000, size 434176)
loaded kexts:
com.google.drivefs.filesystems.dfsfuse  38.0.16
com.bitdefender.TMProtection    5.0.0
com.bitdefender.FileProtect 1
com.bitdefender.SelfProtect 1.2.16
@kext.AMDFramebuffer    3.0.8
@kext.AMDRadeonX5000    3.0.8
@kext.AMDRadeonServiceManager   3.0.8
>!AGraphicsDevicePolicy 5.1.16
@fileutil   20.036.15
@AGDCPluginDisplayMetrics   5.1.16
>!AHV   1
|IOUserEthernet 1.0.1
|IO!BSerialManager  7.0.4f6
>!AUpstreamUserClient   3.6.8
>pmtelemetry    1
>AGPM   111.4.4
>X86PlatformShim    1.0.0
>!APlatformEnabler  2.7.0d0
>!A!IKBLGraphics    14.0.5
@Dont_Steal_Mac_OS_X    7.0.0
>AGDCBacklightControl   5.1.16
>BridgeAudioCommunication   6.70.3
@kext.AMD10000!C    3.0.8
>!AThunderboltIP    3.1.4
>!ATopCaseHIDEventDriver    3430.1
>!AAVEBridge    6.1
>!AMuxControl2  5.1.16
>!AHIDALSService    1
>!ABridgeAudio!C    6.70.3
>!AGFXHDA   100.1.426
>!A!IPCHPMC 2.0.1
>!A!ICFLGraphicsFramebuffer 14.0.5
>!A!ISlowAdaptiveClocking   4.0.0
>!AMCCSControl  1.11
@filesystems.autofs 3.0
>BCMWLANFirmware4355.Hashstore  1
>BCMWLANFirmware4364.Hashstore  1
>BCMWLANFirmware4377.Hashstore  1
@filesystems.hfs.kext   522.100.5
@BootCache  40
@!AFSCompression.!AFSCompressionTypeDataless    1.0.0d1
@!AFSCompression.!AFSCompressionTypeZlib    1.0.0
>!AVirtIO   1.0
>!ABCMWLANBusInterfacePCIe  1
@filesystems.apfs   1412.101.1
@private.KextAudit  1.0
>!ASmartBatteryManager  161.0.0
>!AACPIButtons  6.1
>!ASMBIOS   2.1
>!AACPIEC   6.1
>!AAPIC 1.7
$!AImage4   1
@nke.applicationfirewall    303
$TMSafetyNet    8
@!ASystemPolicy 2.0.0
|EndpointSecurity   1
@kext.AMDRadeonX5000HWLibs  1.0
@kext.AMDRadeonX5000HWServices  3.0.8
|IOAVB!F    840.3
>!ASSE  1.0
@!AGPUWrangler  5.1.16
>!ABacklightExpert  1.1.0
>!AHIDKeyboard  209
>!AHS!BDriver   3430.1
>IO!BHIDDriver  7.0.4f6
>!AGraphicsControl  5.1.16
>!AActuatorDriver   3440.1
>!AMultitouchDriver 3440.1
>!AInputDeviceSupport   3440.8
|IONDRVSupport  575.1
|IO!BHost!CUARTTransport    7.0.4f6
|IO!BHost!CTransport    7.0.4f6
>!A!ILpssUARTv1 3.0.60
>!A!ILpssUARTCommon 3.0.60
>!AOnboardSerial    1.0
@kext.AMDSupport    3.0.8
@!AGraphicsDeviceControl    5.1.16
|IOAccelerator!F2   438.4.5
|IOSlowAdaptiveClocking!F   1.0.0
>!ASMBus!C  1.0.18d1
|IOGraphics!F   575.1
>X86PlatformPlugin  1.0.0
>IOPlatformPlugin!F 6.0.0d8
@plugin.IOgPTPPlugin    840.3
|IOEthernetAVB!C    1.1.0
@kext.triggers  1.0
>usb.cdc.ncm    5.0.0
>usb.cdc    5.0.0
>usb.networking 5.0.0
>usb.!UHostCompositeDevice  1.2
|IOSurface  269.11
@filesystems.hfs.encodings.kext 1
|IOAudio!F  300.2
@vecLib.kext    1.2.0
>!ABCMWLANCore  1.0.0
>mDNSOffloadUserClient  1.0.1b8
>IOImageLoader  1.0.0
|IOSerial!F 11
|IO80211!FV2    1200.12.2b1
>corecapture    1.0.4
|IOSkywalk!F    1
>!AThunderboltPCIDownAdapter    2.5.4
>!AThunderboltDPInAdapter   6.2.6
>!AThunderboltDPAdapter!F   6.2.6
>!AHPM  3.4.4
>!A!ILpssI2C!C  3.0.60
>!A!ILpssDmac   3.0.60
>!A!ILpssI2C    3.0.60
>!AThunderboltNHI   5.8.6
|IOThunderbolt!F    7.6.0
>usb.!UVHCIBCE  1.2
>usb.!UVHCI 1.2
>usb.!UVHCICommonBCE    1.0
>usb.!UVHCICommon   1.0
>!AEffaceableNOR    1.0
|IOBufferCopy!C 1.1.0
|IOBufferCopyEngine!F   1
|IONVMe!F   2.1.0
>usb.!UXHCIPCI  1.2
>usb.!UXHCI 1.2
|IOUSB!F    900.4.2
>!AEFINVRAM 2.1
>!AEFIRuntime   2.1
>!ASMCRTC   1.0
|IOSMBus!F  1.1
|IOHID!F    2.0.0
$quarantine 4
$sandbox    300.0
@kext.!AMatch   1.0.0d1
>!AKeyStore 2
>!UTDM  489.101.1
|IOSCSIBlockCommandsDevice  422.101.1
>!ACredentialManager    1.0
>KernelRelayHost    1
>!ASEPManager   1.0.1
>IOSlaveProcessor   1
>!AFDEKeyStore  28.30
>!AEffaceable!S 1.0
>!AMobileFileIntegrity  1.0.5
@kext.CoreTrust 1
|CoreAnalytics!F    1
|IOTimeSync!F   840.3
|IONetworking!F 3.4
>DiskImages 493.0.0
|IO!B!F 7.0.4f6
|IO!BPacketLogger   7.0.4f6
|IOUSBMass!SDriver  157.101.3
|IOSCSIArchitectureModel!F  422.101.1
|IO!S!F 2.1
|IOUSBHost!F    1.2
>usb.!UCommon   1.0
>!UHostMergeProperties  1.2
>!ABusPower!C   1.0
|IOReport!F 47
>!AACPIPlatform 6.1
>!ASMC  3.1.9
>watchdog   1
|IOPCI!F    2.9
|IOACPI!F   1.4
@kec.pthread    1
@kec.corecrypto 1.0
@kec.Libm   1

```

I've tried virtually everything. Resetting the PRAM, resetting the SCM, running the Mac in diagnostic mode. Even completely reinstalling the OS hasn't worked. I'm starting to suspect this has something to do with a hardware failure.<issue_comment>username_1: I've tried safe-booting which actually fixed the problem which let me to believe there was something about my standard suite of applications that was causing the kernel panics. Low and behold, I've identified the root cause to be Google Drive File Sync (`com.google.drivefs.filesystems.dfsfuse 38.0.16`). I found [this post](https://support.google.com/drive/thread/21470662?hl=en) on the support forums of Google which suggested to turn Spotlight indexing off for Google Drive. This didn't quite fix the problem for me, only reduced the frequency of crashes somewhat. I ended up completely removing Google Drive File Sync.
Upvotes: 4 [selected_answer]<issue_comment>username_2: In my case, I reinstalled Catalina but didn't restore the TimeMachine backup. After Catalina was installed I created my user session and restored my personal files with iCloud (200GB subscription); the lager files were copied from the TimeMachine using Finder.

Now I can leave the iMac in suspend mode all the day waking up it several times and no BSD.
Upvotes: 0


<issue_start>username_0: I get a black screen with blinking cursor when Boot Camp reboots after creating the partition. I have been trying to install Windows 10 1909 on an iMac 13,1 (late 2012) running High Sierra (and now Catalina). The first issue I had was creating the USB - I ran into the issue that boot camp could not create the USB because there is a file greater than 4 GB, and so I circumvented this issue by re-formatting the USB to exFAT and then copying the contents of the Windows software support and the Windows 10 ISO onto the drive. I also read some reports that you need a USB 2.0, and so I've attempted that as well with the same result.

I then run boot camp and create a partition, and the system reboots, but just has a black screen with blinking cursor, so I cannot not run the Windows installer at all. If I manual shutdown and then reboot holding option, I have a USB option "Windows" and "EFI Boot" (or at least that was the way it was with High Sierra). When I run EFI Boot, I can enter the Windows installer, but an EFI windows install is not possible because the partition scheme is MBR, not GPT (and I've heard the drivers for this generation Mac do not cooperate with EFI boot anyway). When I run "Windows" option, I get the same result - black screen with blinking cursor. So I am stuck.

I'm not certain if this is relevant, but this machine previously had Windows 10 dual boot with its original Mountain Lion install, however, the Windows install completely crashed and was irreparable. What I did was remove the Windows partition with Boot camp assistant, and then I completely wiped MacOS and re-installed the High Sierra. I did run updates, and it did run a firmware update.

Any help would be much appreciated.<issue_comment>username_1: Your Mac is suppose to EFI boot 64 bit Windows 10. You should not be using hybrid partitioning when installing Windows 10. You should use the Boot Camp Assistant to download the Windows Support Software. If you copied the Window Support Software correctly to the flash drive, then there should be a `$WinPEDriver$` folder in the root folder of the flash drive. You should be able to remove hybrid partitioning by using the Disk Utility application to `Mac OS Extended (Journaled)` format the internal partition where you intend to install Windows. Or, you can use the `diskutil` command to `JHFS+` format. You should EFI boot from the flash drive to install Windows 10.

The Problem
-----------

You view the Boot Camp partition in the Disk Utility and you see the partition contains either a `MS‑DOS (FAT32)` or `ExFAT` volume, as shown below.

[![](https://i.stack.imgur.com/k6Lg0.png)](https://i.stack.imgur.com/k6Lg0.png)

When installing Windows, you will encounter the following error message.

[![](https://i.stack.imgur.com/tiBVN.png)](https://i.stack.imgur.com/tiBVN.png)

This is a indication that the installation drive is hybrid partitioned. You need to remove hybrid partitioning in order to install Windows to UEFI boot.

Solution Method 1
-----------------

If an action by the Disk Utility or `diskutil` command results in no Microsoft specific partitions existing on a drive, then High Sierra and newer versions of macOS will remove hybrid partitioning. Since there is only one Microsoft specific partition on this drive, the drive will be erased and formatted `Mac OS Extended (Journaled)` by the Disk Utility to remove the hybrid partitioning. The result is shown below.

[![](https://i.stack.imgur.com/5VhGX.png)](https://i.stack.imgur.com/5VhGX.png)

When installing Windows you will encounter the following error message.

[![](https://i.stack.imgur.com/lhz19.png)](https://i.stack.imgur.com/lhz19.png)

A solution is to follow the steps given below.

1. Highlight the partition where you were going to install Windows, then select the `Delete` button and the `OK` button.
2. Highlight the unallocated space, then select the `New` button followed by the `Apply` and `OK` buttons. The result is shown below.

[![](https://i.stack.imgur.com/giUGR.png)](https://i.stack.imgur.com/giUGR.png)
3. (Optional) Since the Boot Camp Assistant has always omitted the `MSR (Reserved)` partition when I have installed Windows to UEFI boot, I will delete this partition. Feel free to leave the partition, if you wish.

>
> Note: Microsoft documentation states there should always be an `MSR (Reserved)` partition.
>
>
>
4. Highlight the partition where you wish to install Windows, as shown below.

[![](https://i.stack.imgur.com/YcwCU.png)](https://i.stack.imgur.com/YcwCU.png)
5. Select the `Next` button to install Windows. The installer will automatically `NTFS` format the partition.

Solution Method 2
-----------------

If an action by the Disk Utility or `diskutil` command results in no Microsoft specific partitions existing on a drive, then High Sierra and newer versions of macOS will remove hybrid partitioning. Since there is only one Microsoft specific partition on this drive, the drive will be erased and formatted `Mac OS Extended (Journaled)` by the Disk Utility to remove the hybrid partitioning. The result is shown below.

[![](https://i.stack.imgur.com/5VhGX.png)](https://i.stack.imgur.com/5VhGX.png)

When installing Windows you encounter the following error message.

[![](https://i.stack.imgur.com/lhz19.png)](https://i.stack.imgur.com/lhz19.png)

A solution is to follow the steps given below.

1. Press the `shift`+`F10` key combination to open a Command Prompt window. Enter the commands shown below. If your drive and partition numbers are different, then make the appropriate substitutions. The last `exit` command will close the window.

[![](https://i.stack.imgur.com/hjVMl.png)](https://i.stack.imgur.com/hjVMl.png)
2. Select the `Refresh` button.
3. Highlight the partition where you want to instal Windows, as shown below.

[![](https://i.stack.imgur.com/hcVz0.png)](https://i.stack.imgur.com/hcVz0.png)
4. Select the `Next` button to install Windows. The installer will automatically `NTFS` format the partition.

Solution Method 3
-----------------

If an action by the Disk Utility or `diskutil` command results in no Microsoft specific partitions existing on a drive, then High Sierra and newer versions of macOS will remove hybrid partitioning. Since there is only one Microsoft specific partition on this drive, the drive will be erased and formatted `Mac OS Extended (Journaled)` by the Disk Utility to remove the hybrid partitioning. The result is shown below.

[![](https://i.stack.imgur.com/5VhGX.png)](https://i.stack.imgur.com/5VhGX.png)

To avoid the problems encountered with the first two methods, the partition will be erased and `ExFAT` formatted by the Disk Utility application. The result is shown below. With High Sierra and newer versions of macOS, the drive will not be hybrid partitioned by this action.

[![](https://i.stack.imgur.com/lFbBO.png)](https://i.stack.imgur.com/lFbBO.png)

When installing Windows you encounter the following error message.

[![](https://i.stack.imgur.com/RmvVz.png)](https://i.stack.imgur.com/RmvVz.png)

The solution is to select the `Format` button to `NTFS` format the partition. The result is shown below.

[![](https://i.stack.imgur.com/XuIO5.png)](https://i.stack.imgur.com/XuIO5.png)

You can now select the `Next` button to proceed and install Windows.

A Note About Partitioning
-------------------------

There are two unique partition tables stored on a drive where macOS is installed. The first is a legacy Master Boot Record (MBR) table. This table is ignored by macOS. The second is a GUID Partition Table (GPT). If there are partition entries in the MBR table, then Windows with use this table and ignore the GPT. This is referred to a hybrid partitioning. If a UEFI booted Graphical User Interface (GUI) Windows installer detects partition entries in the MBR partition table on a drive, then the installer will not install Windows on that drive. In your case, hybrid partitioning needs to be removed from the internal drive in order to install a UEFI booting Windows 10.
Upvotes: 2 [selected_answer]<issue_comment>username_2: I had a similar issue, years ago. I solved it by changing the Windows installation DVD (a specific one won't install properly). In other words, if you are in trouble creating a Stick, try burning an Installation DVD or try another Windows-Image.
Upvotes: 0


<issue_start>username_0: I received a FileVault-protected MacBook running macOS Catalina and do not know the administrator login password. How do I perform a factory reset or otherwise prepare the laptop for a new user?

An authorized Apple repair shop told me I was out of luck and that I'd been given a brick.<issue_comment>username_1: Apple customer service stated that macOS Recovery over the Internet does not require the login password, and that someone could erase/reformat the drive using that tool. <https://support.apple.com/en-us/HT201314>
Upvotes: 0 <issue_comment>username_2: Firmware password is something you need the password or Apple’s willing assistance to bypass.

FileVault and data encryption is trivial to erase by booting to another OS (Internet Recovery is often the easiest other OS) to wipe and reinstall.

Firmware password and hardware failures are the only things that interfere with an erase and install in my experience, once you have reviewed a couple support articles.

Here are the relevant references and definitions:

* <https://support.apple.com/en-us/HT204455> Firmware
* <https://support.apple.com/en-us/HT201314> Recovery
* <https://support.apple.com/en-us/HT208496> Erase
* <https://support.apple.com/en-us/HT208987> Activation Lock

Note, if you erase a Mac, you still may be faced with an Activation Lock or a [device management MDM under Apple School Manager or Apple Business Manager](https://support.apple.com/en-us/HT209617).
Upvotes: 2 <issue_comment>username_3: I encountered this same problem and have been able to solve it. Filevault was used to lock the laptop. Previous employee left and we didn't have the password. When we tried recovery mode it still required a password, as did internet recovery mode.

The hint is in one of the other answers on here, which is that 'apple support says internet recovery doesn't require the login password'. This is actually true, it's just not readily apparent what to do after starting in internet recovery mode because the first screen you see is still the login screen. However if you click 'recovery assistant' on the top left, you'll see an option for 'erase mac' which will essentially erase the contents of the laptop allowing you to reinstall the macOS.

After erasing, the computer will restart and you'll see the the typical blinking folder with a question mark (because all the startup files were deleted), but you just follow the regular recovery process again (recovery mode by restarting and holding cmd+r) and you can reinstall the factory setting macOS.

I've run into other issues since restarting such as recovery images not unmounting properly so I'll probably need to use a bootable USB, but at least the HD is wiped and finally unlocked!
Upvotes: 2