Sunday, April 25, 2021

Recent Questions - Ask Different

Recent Questions - Ask Different


Not able to understand the instructions for building a symlink

Posted: 25 Apr 2021 12:15 AM PDT

I am not able to solve my problem using these instructions.

Change the default Quicktime screen recording cache in OSX Mojave to be on an external flash drive instead?

I'm trying to change where Quicktime save its temporary recordings. I'm pretty sure I have the symlinks set up correctly and still when I do a screen recording the space on my harddrive decreases quickly and the space on my external harddrive stays the same. When I do these commands

$ cd ~/Library/Containers/com.apple.QuickTimePlayerX/Data/  $ ls -alF   

I get

drwx------  12 kylefoley  staff   384 Apr 24 21:30 ./  drwx------   5 kylefoley  staff   160 Apr 24 21:27 ../  lrwxr-xr-x   1 kylefoley  staff    31 Dec 24  2014 .CFUserTextEncoding@ -> ../../../../.CFUserTextEncoding  -rw-r--r--@  1 kylefoley  staff  6148 Apr 24 21:30 .DS_Store  drwxr-xr-x   4 kylefoley  staff   128 May 20  2015 CloudKit/  lrwxr-xr-x   1 kylefoley  staff    19 Dec 24  2014 Desktop@ -> ../../../../Desktop  drwx------   3 kylefoley  staff    96 Dec 24  2014 Documents/  lrwxr-xr-x   1 kylefoley  staff    21 Dec 24  2014 Downloads@ -> ../../../../Downloads  drwx------  30 kylefoley  staff   960 Apr 24 21:31 Library/  lrwxr-xr-x   1 kylefoley  staff    18 Dec 24  2014 Movies@ -> ../../../../Movies  lrwxr-xr-x   1 kylefoley  staff    17 Dec 24  2014 Music@ -> ../../../../Music  lrwxr-xr-x   1 kylefoley  staff    20 Dec 24  2014 Pictures@ -> ../../../../Pictures  

I should also add that I know I have the final recording going to my external harddrive, I'm sure of that. What I really want to know is how can I find out for certain that where my temporary quicktime files are going? Also, I was successful in building a symlink that automatically put my screenshots on my harddrive so I sort of know what I'm doing.

desktop desktop2

Can I write Latex in Notes?

Posted: 24 Apr 2021 11:48 PM PDT

I am using my iPad (with pencil) and my MacBook to write a document. I type using my mac and draw some drawings in between texts. However, I want to add some Latex formulas too. Is it possible to write Latex in notes or more generally, is there any software that lets me type (on mac), draw (on iPad), and use Latex formulas (on mac) simultaneously?

Cannot copy directory in MacOS with terminal

Posted: 24 Apr 2021 11:06 PM PDT

Input

$ pwd /Users/kylefoley/library/containers/com.apple.QuickTimePlayerX/data/library/Autosave Information    $cp /Users/kylefoley/library/containers/com.apple.QuickTimePlayerX/data/library/Autosave\ Information /Volumes/old/QT_screen_recs  

Output

/Users/kylefoley/library/containers/com.apple.QuickTimePlayerX/data/library/Autosave Information is a directory (not copied).  

I don't understand why this is not working. I've also tried:

$cp /Users/kylefoley/library/containers/com.apple.QuickTimePlayerX/data/library/Autosave\ Information/* /Volumes/old/QT_screen_recs  

Which yields:

/Users/kylefoley/library/containers/com.apple.QuickTimePlayerX/data/library/Autosave Information/*: No such file or directory  

improving battery life for macBook Air M1

Posted: 24 Apr 2021 10:28 PM PDT

Given that:

  1. My MacBook Air M1 chip has more than 70% battery
  2. The charging port is nearby and charging my Macbook Air while working does no bother me.

So in order to have prolonged battery life what should be done:

  1. While working with MacBook Air M1 chip, continue charging it whenever possible irrespective of battery level.

OR

  1. Charge battery only when below some threshold say 10%.

How do I diagnose a slow Mac from command line? (OS X El Capitain)

Posted: 24 Apr 2021 08:55 PM PDT

I have a very old (I think circa 2009) Mac Mini, which effectively just acts as a NAS for our TimeMachine backups these days. It was working fine until about 2 days ago, when all of a sudden those backups stopped working. I also couldn't attach to it via Share Screen. When I tried ssh, I realized that it was running very slowly. It takes 3-5 minutes to ssh in. Mostly, those time out, but if I can actually get a connection to open, it stays open ... it's just very slow. Even figuring out that I was running El Capitain took almost 6 minutes:

Krotos:~ cwr$ time uname -a  Darwin Krotos.local 15.6.0 Darwin Kernel Version 15.6.0: Thu Jun 21 20:07:40 PDT 2018; root:xnu-3248.73.11~1/RELEASE_X86_64 x86_64    real    5m58.602s  user    0m0.007s  sys 0m0.007s  

running top takes easily 1-2 minutes before output starts (but then output seems to update at the normal pace).

I assume it's doing something, but ... I can't tell what. top, when it gets up and running, looks something like this:

Processes: 90 total, 2 running, 17 stuck, 71 sleeping, 365 threads     09:49:05  Load Avg: 1.07, 1.10, 1.07  CPU usage: 0.97% user, 0.48% sys, 98.54% idle  SharedLibs: 100M resident, 6980K data, 45M linkedit.  MemRegions: 30832 total, 775M resident, 53M private, 153M shared.  PhysMem: 2098M used (1007M wired), 6350M unused.  VM: 286G vsize, 535M framework vsize, 0(0) swapins, 0(0) swapouts.  Networks: packets: 8361/986K in, 1770/314K out.  Disks: 11164/837M read, 2740/43M written.    PID  COMMAND      %CPU TIME     #TH   #WQ  #POR MEM    PURG   CMPR PGRP PPID  281  AppleFileSer 0.0  00:00.20 8     0    78   13M    8192B  0B   281  1  280  top          1.2  00:02.98 1/1   0    22   3044K  0B     0B   280  222  278- fpsaud       0.0  00:00.13 1     0    2    80K    0B     0B   278  1  270  ocspd        0.0  00:00.22 2     0    30   7376K  0B     0B   270  1  269  makewhatis   0.0  00:00.03 1     0    12   584K   0B     0B   245  267  267  sh           0.0  00:00.01 1     0    17   652K   0B     0B   245  2  ...  

which, to me, looks like all is well with the world.

Whatever is happening, it appears to be above the network layer, because, for example, I ran continuous ping while trying to which grep. I stopped after 100 packets, but it was both fast and didn't drop any:

64 bytes from 192.168.1.10: icmp_seq=101 ttl=64 time=1.315 ms  ^C  --- krotos.local ping statistics ---  102 packets transmitted, 102 packets received, 0.0% packet loss  round-trip min/avg/max/stddev = 1.096/1.927/3.488/0.472 ms  

The which command, on the other hand ...

Krotos:~ cwr$ time which grep  /usr/bin/grep    real    1m10.675s  user    0m0.007s  sys 0m0.005s  

Disk space also seems fine, though it takes forever to figure that out:

Krotos:~ cwr$ time df  Filesystem    512-blocks      Used Available Capacity  iused    ifree %iused  Mounted on  /dev/disk0s2   232762432 119458488 112791944    52% 14996309 14098993   52%   /  devfs                383       383         0   100%      664        0  100%   /dev  map -hosts             0         0         0   100%        0        0  100%   /net  map auto_home          0         0         0   100%        0        0  100%   /home    real    3m4.875s  user    0m0.007s  sys 0m0.007s  

I suppose I could go borrow a monitor from someone and plug it in, but, I'd really like to be able to diagnose this from the command line. I've tried rebooting, and the problem persists. Maybe it's just doing one of those mysterious MacOS things, like re-indexing the spotlight database or something, and it'll be fine in a few days when it finishes doing whatever it's doing, but ... I'd like to know what (and whether that's true and I should just wait a few days, or if it's some bigger problem that won't just go away).

What else can I look at to figure out why simple commands take multiple minutes when the CPU seems to be almost entirely idle and there's plenty of memory and plenty of disk space?

How to activate iPhone12 and import original phone data?

Posted: 24 Apr 2021 08:17 PM PDT

My original phone is iPhone7 and the new phone is iPhone12, how do I import the original phone data into the new phone?

macos: change default "zoom in" for any application?

Posted: 25 Apr 2021 12:17 AM PDT

Many applications I use, like Vim, Safari, and Chrome, support "Zoom In" and "Zoom Out" to magnify the size of the screen, or return it to standard size.

Every time I start some applications, I zoom them "in" a bunch of times, and would like to set a default zoom level for them, so I don't have to do this all the time.

Is there a way to do this? I'm ok with using 3rd party tools!

Cannot reduce size of apple backup for iphone in ios 14.3

Posted: 24 Apr 2021 03:59 PM PDT

I have deleted backups, included only a very few aps (and not What's App) in the backup, no photos, no music, but still APple says my iphone needs 3.7 G to back up. Even when it says the next backup is 190 M. I saw that @chip had a solution but I don't understand it. Several folks suggest getting rid of the Apple iphone photo library, but that cannot be found on the menu.

Can anyone help me force apple to reduce the size of the iphone backup? THanks in advance.

Cell being edited vanishes when screen keyboard activates on Google Sheets on iphone

Posted: 24 Apr 2021 03:13 PM PDT

Top 3 rows are frozen. Touch cell in row 4. Cell slides out of view while screen keyboard comes up.

Q: Is there any way to keep the edited cell in view when the on-screen keyboard becomes active?

(Note: Google-sheets isn't an active tag here. Should this be asked on webapps even though it's an apple specific problem?

Inserted sd-card not showing up on macbook pro, cant find or see it anywhere

Posted: 24 Apr 2021 04:54 PM PDT

i inserted an sd card from a dash cam because it was full, first time i inserted the card, it showed up and i deleted all the files on it, i went to plug it back in the dashcam and it still showed "storage full". I plugged it back into my mac and it will not show up anymore. not sure whats going on here. any help is appreciated.

How do I use the `security` command-line tool to change Access Control of a private key?

Posted: 24 Apr 2021 01:44 PM PDT

How do I use the security command-line tool to add an application to allow access to the private key or key chain? or change it to Allow all application to access this item? ›››››››enter image description here

(I am trying to do this to my CI machines which I don't have GUI access)

Big Sur SMB File Sharing won't work - "There was a problem connecting to the server"

Posted: 24 Apr 2021 01:18 PM PDT

My goal is to share files on Machine A (my MacBook Pro running Big Sur version 11.2.3) with other Macs on my home network. My understanding is that I must/should do this via SMB, but if it's possible/preferred to do using AFP or some other Finder-accessible approach (as opposed to command-line tools like scp), I'm open to suggestions.

At this point, I can't even access the files via SMB from Machine A itself.

Here are the variations I've tried so far to set up sharing. Use the Sharing pane in System Preferences to:

  • Simply turn File Sharing on with nothing listed under Shared Folders and no accounts checked under Options...->Windows File Sharing
  • Turn File Sharing on with a single folder owned by an admin account listed under Shared Folders (with 644 permissions selected) but no accounts checked for Windows File Sharing
  • Turn File Sharing on with nothing listed under Shared Folders and an admin account checked for Windows File Sharing
  • Turn File Sharing on with a single folder owned by an admin account listed under Shared Folders (with 644 permissions selected) and an admin account checked for Windows File Sharing

Here's what I've tried so far on the client side:

  • In the Finder, use Cmd-K (Connect to Server) to connect to smb://[Machine] or smb://[Machine]/[ShareName] or [Machine], where [Machine] is 127.0.0.1, an IP address for Machine A, localhost, the name of Machine A, or the name of Machine A with ".local" appended.
    • I am never prompted to enter a password.
    • This results in an error dialog with the message "There was a problem connecting to the server ... The server may not exist or it is unavailable at this time. Check the server name or IP address, check your network connection, and then try again."
  • In Terminal, run mount_smbfs //[Machine]/[ShareName]/ /Volumes/[NameOfEmptyFolder] or mount -t smbfs '//[Machine]/[ShareName]' /Volumes/[NameOfEmptyFolder].
    • I am prompted to enter a password in each case.
    • This results in the error message mount_smbfs: server rejected the connection: Authentication error (and also mount: //Machine]/[ShareName] failed with 77 in the case of the mount -t command).

I've even tried rebooting once and repeating all of the variations above, with the same results. I've gotten file sharing to work on this computer in the past, but this is my first time in quite a few months I've needed to do that again. Upgrading to Big Sur is the most obvious difference from before, but there are probably other differences I'm not thinking of.

Does anyone have suggestions for how I can get file sharing to work?

How can I make my Mac hard drive read-only and write-protected for other volumes? [closed]

Posted: 24 Apr 2021 04:04 PM PDT

If I start from another external removable medium, which is a startup volume, e.g. Windows, I want Windows to have no access to the internal hard drive on which macOS is installed.

In one post I could see that as soon as you start from another startup volume that is not macOS, the SIP no longer protects the macOS operating system. This means that you can add privileged code to the main operating system (macOS). If you try to say that other operating systems that cannot come from Apple cannot read macOS either, because it contains the APFS file system. Yes, that is true, but there are applications that allow APFS to be read.

Even if you say yes, then just encrypt it with FileVault, then the volume cannot be ejected anyway. Yes, that is correct, but Windows can also easily delete the macOS volume and then all data is gone. My concern is not that I am careless with other operating systems and that such damage could occur, but that there are a large number of malware programs on Windows that have these intentions, among other things

So I would like that if I start from another operating system that this operating system cannot work on another operating system.

Big Sur Bootcamp stuck partitioning

Posted: 24 Apr 2021 11:01 PM PDT

I have a 2016 MBP with Big Sur and 170GB of internal drive space free and when trying to use Bootcamp to partition the drive with an 80GB disc for Windows 10 and it is stuck in the partitioning phase at ~40%...

enter image description here

What can I do to complete the process?

Attempting to quit the app complains that the process hasn't been completed so it can't quit. My only choice has been to close the MBP until later.

Here is the output of diskutil list:

$ diskutil list  /dev/disk0 (internal, physical):     #:                       TYPE NAME                    SIZE       IDENTIFIER     0:      GUID_partition_scheme                        *500.3 GB   disk0     1:                        EFI ⁨EFI⁩                     314.6 MB   disk0s1     2:                 Apple_APFS ⁨Container disk1⁩         500.0 GB   disk0s2    /dev/disk1 (synthesized):     #:                       TYPE NAME                    SIZE       IDENTIFIER     0:      APFS Container Scheme -                      +500.0 GB   disk1                                   Physical Store disk0s2     1:                APFS Volume ⁨Macintosh HD - Data⁩     313.4 GB   disk1s1     2:                APFS Volume ⁨Preboot⁩                 292.7 MB   disk1s2     3:                APFS Volume ⁨Recovery⁩                611.0 MB   disk1s3     4:                APFS Volume ⁨VM⁩                      6.4 GB     disk1s4     5:                APFS Volume ⁨Macintosh HD⁩            15.1 GB    disk1s5     6:              APFS Snapshot ⁨com.apple.os.update-...⁩ 15.1 GB    disk1s5s1    /dev/disk2 (disk image):     #:                       TYPE NAME                    SIZE       IDENTIFIER     0:                            CCCOMA_X64FRE_EN-GB... +5.4 GB     disk2  

After what amounts to 2.5hrs (the MBP was closed for about a day, but went to sleep and awoke just fine) I see "Your disk could not be partitioned":

enter image description here

I then ran the First Aid in Disk Utility which claimed to be successful:

enter image description here

However, upon running Bootcamp and going through the disk partitioning again, I had the same result as first seen above ("Your disk could not be partitioned.")

Is there a way to make a 2009 MacBook (A1342) boot from USB?

Posted: 24 Apr 2021 04:21 PM PDT

I have a 2009 MacBook which I'm trying to factory reset/re-install. I have a USB bootdisk but sadly holding option to boot from USB doesn't work - I don't believe these models support it (A1342). It is definitely Intel (MacBook7,1, boot rom version MB71.0039.B0B). The Mac currently has Snow Leopard (OS X 10.6.8) installed.

Is there a way to load up and use the USB drive in an alternative manner? For instance from within singe user mode, or using a third party DVD bootdisk that will then, in effect, retro-fit the USB boot?

Or alternatively, is it possible to partition the main drive to create a recovery drive in some way?

iPhone Shortcut to change app location services preferences

Posted: 24 Apr 2021 02:52 PM PDT

My motorcycle GPS is connected to an App that must allow location services to "Always" to work correctly ("While using the app" does not work).

As I'd like to turn the location services off when I'm not riding, is there any way I can quickly access the setting with a shortcut? The path would be the following: Settings->Motorcycle App->Location->Always (or "Never" when I stop using my bike).

Many thanks!

How do I prevent truncation of my Mac browser history and sync history between devices?

Posted: 24 Apr 2021 02:45 PM PDT

Before this happened, I had history

  • through 2020-01-12 on my MacBook, and
  • through 2021-04-15 on my iPhone.

After this happened, I now have history

  • through 2021-04-15 on my MacBook, and
  • through 2021-04-15 on my iPhone.

though these two histories aren't the same: Each appears to contain only local browsing, with no (or incomplete) syncing between devices, though in some cases I think recent items from the iPhone are synced to the MacBook, while none are synced from the MacBook to the iPhone.

I don't know why the history on the iPhone ends on 2021-04-15, but it shouldn't (I didn't erase history there).

In an effort to recover from this I have repeatedly tried restoring a backup of my History.db through 2020-01-12 on my MacBook (after deleting all …History… files from ~/Library/Safari), but eventually (some time after browsing to a new site on my iPhone?) the process repeats.

I have also tried toggling Safari use of iCloud on both devices, even deleting all iCloud info on the iPhone when I turn iCloud off there, but this has no effect.

How do I prevent my MacBook browser history from being truncated in this way? Better: how do I get the histories on both devices to sync fully through 2020-01-12 (or whatever the history file size limit dictates)?


If I can get this solved, I'd then like to recover the history that has been lost from various backups of days where this occurred, but that's really a separate follow-on question.


iOS 14.4.2; macOS 11.2.3; Safari 14.0.3

2 SSDs to one partition

Posted: 24 Apr 2021 12:59 PM PDT

I have the same external SSD twice. I would like to save the macOS operating system on these two SSDs so that the operating system recognizes the 2 SSDs as one SSD.

About the same as with a FusionDrive, only the difference is not 1x HDD and 1x SSD but 2x SSD. But this should be a startup volume. So what I can start with.

How do I get it that way?

Thanks

Disconnect removable media from power

Posted: 24 Apr 2021 01:03 PM PDT

I connected peripherals to my Mac via USB. When I put my Mac to sleep, the external microphone, for example, is still supplied with power.

Is there any way that once the Mac goes to sleep, that it will remove power from attached devices?

How do I import my iPhone Mail imap account settings to my Macbook Mail client?

Posted: 24 Apr 2021 06:06 PM PDT

How do I import my iPhone Mail IMAP account settings to my Macbook Mail client? Do I have to enter them manually?

Closing Macbook lid changes external screen to primary

Posted: 24 Apr 2021 05:40 PM PDT

I've recently got a new Macbook with Big Sur and I'm observing some different behaviour compared to my old Macbook with Catalina.

I have an external monitor connected as a secondary display and I have a video player streaming on full-screen on it. When I close the lid, on Catalina my video keeps playing on the external secondary display, however on my new laptop when I close the lid the external display turns into primary, and I'm seeing my laptop's windows rather than the video.

Any ideas what might be causing this?

Upgrading High Sierra to Catalina on 2016 MBP using local webserver

Posted: 24 Apr 2021 04:04 PM PDT

In the past colleagues (and I) believed it was often a bad idea to install newer OSs on older Macs. I get the feeling that has changed, and that putting Catalina on my 2016 MacBook Pro shouldn't be a problem.

What I'm wondering about is whether my local webserver will survive the upgrade. I have Apache/MySQL/PHP set up in the same approximate manner as we were told to do this years ago - sites running in /Library/WebServer/Documents, custom hosts and httpd-vhosts.conf files in /private/etc and so on. In past os upgrades and moves to new machines it's been necessary to re-set-up all that, which isn't a huge problem but also not a lot of fun.

In the past it helped that I was migrating to a new machine, so I had access to my whole old setup and could do things like export MySQL databases from the old and import into the new. This time I'm thinking about upgrading my existing machine so I won't have easy access to a backup while I'm doing this.

I hate the thought of buying a new machine just so I can upgrade the OS. On the other hand this is my work machine and it's 4 years old (and has a dead speaker) so perhaps it's time to bite the bullet.

Any of you experienced migrators have an opinion about which way I should go?

Cannot change login wallpaper in 11.x Big Sur?

Posted: 25 Apr 2021 12:00 AM PDT

Similar to the question here, is there a way to change the login background wallpaper in Big Sur? During the beta, I was able to do it via a combination of the procedures in Catalina and the bless command described at https://eclecticlight.co/2020/06/25/big-surs-signed-system-volume-added-security-protection/

This doesn't seem to work with 11.0.1 (20B29). It keeps reverting to the com.apple.os.update-779B* snapshot. Note that I am using FileVault.

Thanks

Credit card purchases no longer shown in Wallet

Posted: 24 Apr 2021 11:02 PM PDT

In the past, purchases I made with my American Express card would show up in the iPhone's Wallet. But now the transaction history is empty, even though I've made a number of purchases in the past few days.

I updated to iOS 14 last week. I don't know if this is when the problem started, as I don't check Wallet very often. Today is probably the first time I looked at it in a couple of weeks.

For some of the cards in my Wallet, Settings->Transactions says

Transactions shown are purchases made with this iPhone.

But it doesn't say that for the AmEx card. It just says "No transactions are available". I haven't made any purchases with the phone in a week or so, so I can't tell if they would show up or not.

I do have "Show History" enabled.

UPDATE:

I made an Apple Pay purchase today, and it shows up in the Wallet. So it seems that AmEx is like the other cards, only showing purchases made with the phone instead of all purchases.

Is this a recent change to the Wallet app?

Internet sharing from Macbook to iPad Pro via usb cable (Tethered caching) not working on Catalia 10.15.6

Posted: 24 Apr 2021 09:28 PM PDT

I would like to share the internet connection on my MacBook Pro (a wifi connection) with my iPad Pro 4th generation via usb-c cable. The MacBook Pro is running Catalina 10.15.6.

I followed the instructions in this post:

System Preferences -> Content Sharing -> Switch ON and check "Internet connection".

However, nothing happens on the iPad. I can't load any page. Any help with this? Is there anything I should do on the iPad side?

Thank you very much!

ps: if you wonder why I would do that: the iPad Pro 4th generation (brand new) has a horrible wifi reception...

How to add/remove applications from "File and Folders" inside "Security and Privacy" -> Privacy Tab

Posted: 24 Apr 2021 02:39 PM PDT

enter image description here

How to remove these bunch of files from here. I use VS code, when I debug a program it asks for this permission that a file that is created while debugging wants to access your Document folder. And every time I have to allow it and then those files end up in Privacy -> "Files and Folders".

enter image description here

Remove unwanted email address associated with Apple ID

Posted: 24 Apr 2021 08:30 PM PDT

I noticed that I have an unwanted email address in the following panel:

System Preferences → iCloud → Account Details → Contact

What does that mean and how can I remove it?

enter image description here

Update:

I have tried to log on Apple ID settings but it doesn't work:

There is NO x besides that email but a ? saying:

This is an alias of your Apple ID email address.

enter image description here

Updated 2: It seems there is no way to remove it: It seems there is no way to remove it

Problem with creating hotspot on macOS

Posted: 24 Apr 2021 07:35 PM PDT

I have a question regarding the setup of a hotspot on my Mac. I have a wired ethernet connection, which I connect to the computer. I would then like to be able to connect to that same connection (and the LAN) on my iPhone over wifi. I followed the steps here (https://www.maketecheasier.com/create-wifi-hotspot-using-mac-os-x/) which worked, however, there is a problem. Whenever I do this, the Macbook acts as a router, not allowing me to access any devices on the original LAN the Mac is connected to. I would instead prefer if it acted more like an AP, allowing communication to flow between my iPhone and everything on the LAN.

Thanks in advance!

EDIT: To clarify, the important thing here is that I can't access any devices that are already present on my LAN. I have an IKEA Tradfri hub connected via ethernet to my router. Also connected to my router is a powerline adapter. The second powerline adapter is connected to the Macbook I was talking about. So now, when I connect to the Macbook's wifi, I can't access the hub. (This is, however, possible from the Macbook - I checked via a ping request, there is no app available for mac as far as I know.) My Macbook is therefore acting as a router, where the ethernet cable is plugged in to the port which says Internet. I need it to act like an AP or a router where the ethernet cable is plugged in to a normal LAN port. I hope this clarifies the difference. Thanks again!

No comments:

Post a Comment