Monday, September 27, 2021

Recent Questions - Ask Different

Recent Questions - Ask Different


How to mount internal disk that is not visible in terminal

Posted: 27 Sep 2021 12:04 AM PDT

I have somehow deleted/unmounted an internal disk drive from my macbook while wanted to freshly install macOS. I had bootcamp with windows before and then I deleted that partition.

I boot from USB key with macOS install file to get to terminal. When I list the drives I get following (the same happened when I tried with internet recovery):

/dev/disk0 (external, physical):     #:                       TYPE NAME                    SIZE       IDENTIFIER     0:      FDisk_partition_scheme                       *15.7 GB    disk0     1:                   Apple_HFS Install macOS Big Sur  15.7 GB    disk0s1    /dev/disk1 (disk image):     #:                       TYPE NAME                    SIZE       IDENTIFIER     0:      GUID_partition_scheme                        +1.8 GB     disk1     1:                 Apple_APFS Container disk2         1.8 GB     disk1s1    /dev/disk2 (synthesized):     #:                       TYPE NAME                    SIZE       IDENTIFIER     0:      APFS Container Scheme -                      +1.8 GB     disk2                                   Physical Store disk1s1     1:                APFS Volume macOS Base system       1.6 GB     disk2s1     2:                APFS Volume Preboot                 77.8 MB    disk2s2  

The internal drive is missing. Also in disk utility there is no internal storage disk. This disk should have size of 1TB.

If I do not use USB key with macOS install file or internet recovery there is just black screen.

Is there something that I could do to mount the disk drive?

How can I stop DropBox from being automatically added to the top of the sidebar in Finder?

Posted: 26 Sep 2021 11:59 PM PDT

What it says on the tin. No matter whether I reorder my sidebar items or remove DropBox from my sidebar outright, it always reappears at the top of the sidebar upon login. I haven't found anything in the DropBox settings related to this, and neither have I found anything on Google. How can I stop this unwanted and intrusive behaviour without uninstalling DropBox, which I use for work?

Running macOS 10.15.7, if that matters.

How to tell if M1 Mac has Rosetta installed?

Posted: 26 Sep 2021 11:55 PM PDT

➥ On an Apple Silicon based Mac, how does one tell if Rosetta 2 has been installed/activated?

I am trying to run only native software. So I would like to be able to monitor whether Rosetta is in use or not.

I know I can sort on the Kind column of the process list seen in the Activity Monitor app to find a process currently running through Rosetta 2 or running natively ("Apple"). But I want to know if the Rosetta capability in general has been installed/activated in general on my Mac, even if no app is currently running that way.

Unable to install openssl in m1 machine and failed with Can't create update lock

Posted: 26 Sep 2021 09:08 PM PDT

Unable to install openssl in m1 machine and failed with Can't create update lock in /usr/local/var/homebrew/locks! and failed with Cannot install in Homebrew on ARM processor in Intel default prefix (/usr/local)!.

uname -a  Darwin zurich.local 20.6.0 Darwin Kernel Version 20.6.0: Wed Jun 23 00:26:27 PDT 2021; root:xnu-7195.141.2~5/RELEASE_ARM64_T8101 arm64  

Error:

Warning: your HOMEBREW_PREFIX is set to /usr/local but HOMEBREW_CELLAR is set  to /opt/homebrew/Cellar. Your current HOMEBREW_CELLAR location will stop  you being able to use all the binary packages (bottles) Homebrew provides. We  recommend you move your HOMEBREW_CELLAR to /usr/local/Cellar which will get you  access to all bottles."  Warning: your HOMEBREW_PREFIX is set to /usr/local but HOMEBREW_CELLAR is set  to /opt/homebrew/Cellar. Your current HOMEBREW_CELLAR location will stop  you being able to use all the binary packages (bottles) Homebrew provides. We  recommend you move your HOMEBREW_CELLAR to /usr/local/Cellar which will get you  access to all bottles."  mkdir: /usr/local/var/homebrew/locks: Permission denied  Error: Can't create update lock in /usr/local/var/homebrew/locks!  Fix permissions by running:    sudo chown -R $(whoami) /usr/local/var/homebrew  Warning: your HOMEBREW_PREFIX is set to /usr/local but HOMEBREW_CELLAR is set  to /opt/homebrew/Cellar. Your current HOMEBREW_CELLAR location will stop  you being able to use all the binary packages (bottles) Homebrew provides. We  recommend you move your HOMEBREW_CELLAR to /usr/local/Cellar which will get you  access to all bottles."  Error: Cannot install in Homebrew on ARM processor in Intel default prefix (/usr/local)!  Please create a new installation in /opt/homebrew using one of the  "Alternative Installs" from:    https://docs.brew.sh/Installation  You can migrate your previously installed formula list with:    brew bundle dump  

Mutliple spaces/desktops: Disable switching to other spaces when opening an app?

Posted: 27 Sep 2021 12:35 AM PDT

Not sure if I explained it well but you know when you have multiple spaces, you will still see the opened app on that other space on the app drawer on the bottom. I hate how it makes my desktop cluttered. There's a reason why I separated that space.

I work multiple jobs so I assign different spaces for it. I want that space to act as its own desktop. Like if I open Finder, it will open a new Finder window on that space and not take me to the space where there's an opened finder app :(

Creating a "virtual" dir that wraps two (external) drives

Posted: 26 Sep 2021 03:46 PM PDT

I was wondering if MacOS Mojave (the most recent version I can be on due to some very expensive 32 bit applications) has a way to set up a "virtual" dir, or even virtual drive, that combines two or more external drives and surfaces them as if they're one directory/drive.

E.g. something that lets me say "create a virtual dir/drive called audio data" (that isn't JBOD/RAID0) and then specify two (or more) external SSDs such that the content of that dir/drive is the combined content of the solid state drives. If one has dirs Pro Logic and Cubase and the other has dirs Kontakt and Samples, then I'd like a single virtual dir/drive that shows:

--- data   |--- Pro Logic   |--- Cubase   |--- Kontakt   |--- Samples  

When both SSD are connected, or if one of them's not connected, show

--- data   |--- Pro Logic   |--- Cubase  

or

--- data   |--- Kontakt   |--- Samples  

depending on which drive's still accessible. Or a flatout empty dir/drive if nothing's connected.

With the explicit intent that is the SSDs that house dirs that some applications rely on, then yes: those will throw errors. That's fine, and expected. I just want something that lets me surface a ton of data spread over multiple drives as a single dir/drive when they're all connected, with each SSD being "just a drive" that can also be connected to any random other computer that knows how to read/write the SSD's filesystem.

Big Sur, sleep and networking

Posted: 26 Sep 2021 05:26 PM PDT

M1 MacBook Air, Big Sur 11.6 ...

Back on Sierra I could stop network connections from being torn down when I closed the lid; is there a way to achieve this for the current iteration of hardware and OS?

I couldn't find anything in the system settings to that effect.

Extracting calendar .ics file from iPad backup

Posted: 26 Sep 2021 05:31 PM PDT

I used Finder on my Mac to back up an iPad (iPadOS 15) using USB-cable. Now I would like to get from that backup all the calendar events that are stored in a *.ics file. Is there a way to extract this soort of data from the local backup and without using iCloud services, Apple data request or third-party apps?

Safari 15 : Failed to load resource: Frame load interrupted [closed]

Posted: 26 Sep 2021 02:16 PM PDT

When I am trying to redirect an URL using document.location.href the safari 15 browser is giving Failed to load resource: Frame load interrupted issue I am stuck up with this issue the same thing used to work fine in safari 14 version i have already tried using multiple methods like window.location, document.location.assign, as well I have also used using anchor button click to do the same but hard luck. Please provide any solution for this.

unable to unmount disk to reset fusion

Posted: 26 Sep 2021 09:35 PM PDT

I have a 2012 Macbook pro with a split fusion drive. I tried: diskutil resetFusion

couldn't unmount the SSD    couldn't unmount the HDD    fails with error 69877 couldn't open device  

I am in terminal in recovery mode.

diskutil unmountDisk also fails

diskutil cs list says:

no CoreStorage logical volume groups found  

If I leave terminal and enter recover disk utility it just hangs on the wheel trying to load drives.

diskutil list: (continues to disk image 22)

diskutil list

Launching a video via VLC directly from MacOS command line without any playlist interaction

Posted: 26 Sep 2021 03:29 PM PDT

I posted this originally in Super User, and it was suggested that I post this question here, instead ...

I'm using VLC media player 3.0.16 Vetinari under MacOS 11.6.

I want to run VLC from the command line in order to play videoname.mp4.

I know I can do the following:

/Applications/VLC.app/Contents/MacOS/VLC videoname.mp4  

However, when I do so, VLC does not start playing the video. Rather, it just displays the VLC playlist GUI window with a videoname.mp4 line, and I have to click on videoname.mp4 in this playlist GUI in order to start playing the video.

If I add --no-playlist-autostart and --play-and-exit command-line options, I get the same behavior.

If I run under Linux, I can use VLC to view the videoname.mp4 video by running the following command. No playlist GUI window pops up, and the video immediately starts playing:

/usr/bin/vlc videoname.mp4  

Is there a way with the MacOS VLC program to immediately launch a video directly via the command line, without the VLC playlist GUI popping up at all? I want to launch videos from the command line under MacOS in the same manner that I can do it under Linux.

Thank you in advance for any suggestions.

Safari 15.0 error message: "A problem repeatedly occurred:" Catalina 10.15.7

Posted: 26 Sep 2021 02:30 PM PDT

I have had no problems with Safari until recently on my home Mac. The identical Mac at the office does not suffer this error messageAttempts to visit certain websites ( banks, etc.) produce the error:

enter image description here

Home Depot:

enter image description here

Google returns articles and videos that suggest toggling settings or clearing caches (this does not work, nor did I expect it to), however, they do not provide for diagnosing the root cause of the problem with a procedure and a "litmus test" (observable evidence confirming root cause). An example:

https://www.youtube.com/watch?v=vAiBIbl66mc

Is there a procedure to diagnose confirm that there is not a problem with the version of Safari and that there is something I did to put Safari in its current state?

How to install OSX-Mavericks + Recovery + OSX-Catalina + Windows7/10 and make them all bootable on MacBook Pro 5,5

Posted: 26 Sep 2021 02:05 PM PDT

  1. Info: I was running OSX-Catalina and Windows-10 on my MacBook Pro 5,5 with 8 GB RAM and 250 GB SSD. Due to a RAM problem I had to format the hard disk and re-install OS's again. Currently, I have replaced the 250 GB SSD with a 500 GB HDD

  2. Info: I have tried multiple times to install OSX-Mavericks + Recovery + OSX-Catalina + Windows-7/10 on to the MacBook but only 2 of the 3 OS's can be made bootable as the other OS partition becomes non bootable. As of now, OSX-Mavericks + Recovery + OSX-Catalina are working fine while Windows-7 says "No Bootable Device - Insert Boot Disk and Press Any Key". Windows-7 was installed through BootCamp on OSX-Mavericks

  3. Info: Windows-7 was bootable until installing OSX-Catalina. Windows-7 shows up in "Start-up Disk" on OSX-Mavericks but does not show up while pressing "Option" key during start-up. This happened immediately after installing OSX-Catalina

  4. Info: The output of "diskutil list" from OSX-Mavericks is as follows

/dev/disk0     #:                       TYPE NAME                    SIZE       IDENTIFIER     0:      GUID_partition_scheme                        *500.1 GB   disk0     1:                        EFI EFI                     209.7 MB   disk0s1     2:                  Apple_HFS Mavericks               43.9 GB    disk0s2     3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3     4: 7C3457EF-0000-11AA-AA11-00306543ECAC               379.4 GB   disk0s4     5:       Microsoft Basic Data BOOTCAMP                76.0 GB    disk0s5    
  1. Info: The output of "diskutil list" from OSX-Catalina is as follows
/dev/disk0 (internal, physical):     #:                       TYPE NAME                    SIZE       IDENTIFIER     0:      GUID_partition_scheme                        *500.1 GB   disk0     1:                        EFI EFI                     209.7 MB   disk0s1     2:                  Apple_HFS Mavericks               43.9 GB    disk0s2     3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3     4:                 Apple_APFS Container disk1         379.4 GB   disk0s4     5:       Microsoft Basic Data BOOTCAMP                76.0 GB    disk0s5    /dev/disk1 (synthesized):     #:                       TYPE NAME                    SIZE       IDENTIFIER     0:      APFS Container Scheme -                      +379.4 GB   disk1                                   Physical Store disk0s4     1:                APFS Volume Catalina - Data         3.9 GB     disk1s1     2:                APFS Volume Preboot                 83.7 MB    disk1s2     3:                APFS Volume Recovery                731.7 MB   disk1s3     4:                APFS Volume VM                      3.2 GB     disk1s4     5:                APFS Volume Catalina                11.4 GB    disk1s5    
  1. Info: The output of "sudo fdisk /dev/disk0" is as follows
Disk: /dev/disk0    geometry: 60801/255/63 [976773168 sectors]  Signature: 0xAA55           Starting       Ending   #: id  cyl  hd sec -  cyl  hd sec [     start -       size]  ------------------------------------------------------------------------   1: EE 1023 254  63 - 1023 254  63 [         1 -  976773167] <Unknown ID>   2: 00    0   0   0 -    0   0   0 [         0 -          0] unused         3: 00    0   0   0 -    0   0   0 [         0 -          0] unused         4: 00    0   0   0 -    0   0   0 [         0 -          0] unused          
  1. Info: The output of "sudo gpt -r show /dev/disk0" is as follows
      start       size  index  contents            0          1         PMBR            1          1         Pri GPT header            2         32         Pri GPT table           34          6                    40     409600      1  GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B       409640   85738984      2  GPT part - 48465300-0000-11AA-AA11-00306543ECAC     86148624    1269536      3  GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC     87418160  740917968      4  GPT part - 7C3457EF-0000-11AA-AA11-00306543ECAC    828336128  148436992      5  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7    976773120         15             976773135         32         Sec GPT table    976773167          1         Sec GPT header    
  1. Question-1: Why is Windows-7 partition not bootable after I installed OSX-Catalina ?

  2. Question-2: How do I flag the Windows-7 partition as bootable using fdisk or gdisk or any other utility ? (Tried using gdisk, but it only provides option to work with "One to Three" partitions, while I have 5)

  3. Question-3: If the answer to "Question-2" is "Not Possible", then what are the steps to install OSX-Mavericks + Recovery + OSX-Catalina + Windows-10 on MacBook Pro 5,5 (Mid 2009)

Thank you for helping, in advance

How to force macOS to open https://t..me/ links with correct Telegram client

Posted: 26 Sep 2021 10:50 PM PDT

I have 2 Telegram clients on my MacBook

enter image description here

^ /Applications/Telegram.app/Contents/MacOS/Telegram

enter image description here

^ /Applications/Telegram.localized/Telegram.app/Contents/MacOS

Currently when I click a link, the first one opens. How to have the second one open instead?

EDIT: By removing the .app for the first one (Telegram Desktop) from my /Applications folder, links now correctly open in the second one.

However as soon as I restore it, links again open in it. Even changing the filename and moving it from /Applications to ~/Desktop, macOS still manages to find it when I hit ENTER on a link in Chrome.

enter image description here

How to prevent this behaviour?

Moreover can anyone shed some light on how macOS is able to track the movement of an app to any location on my filesystem in this manner?

Cloudflare warp de-routes 127.0.0.1 How to return it?

Posted: 26 Sep 2021 09:40 PM PDT

I'm a web dev and pretty regularly use localhost/127.0.0.1 As you do. The problem is recently I started getting a problem where Cloudflares warp (Its a privacy VPN of sort, with caveats) causes 127.0.01 to stop responding. Even pinging doesn't work.

    ping localhost  PING localhost (127.0.0.1): 56 data bytes  ping: sendto: Can't assign requested address  ping: sendto: Can't assign requested address  Request timeout for icmp_seq 0  ping: sendto: Can't assign requested address  Request timeout for icmp_seq 1  xping: sendto: Can't assign requested address  Request timeout for icmp_seq 2  ping: sendto: Can't assign requested address  

I've tried the route -n flush thing , thinking that maybe its done something hokey to the routing table but even with multiple consecutive runs of it (as is oft suggested) it just doesnt work, and ends up making the internet flakey.

I'm at a loss. It appears to be a common problem too, I asked on reddit and with no answer there where a lot of "me toos" all noting their problems starting around the same time mine started. No answers given.

The only fix is usually to resetart the machine, which is an ugly solution when you have a nest of docker containers and other things that dont like to simply shut down.

Anyone encountered this and have a possible soluton?

edit: For folks in a hurry, the solution from the comments is

sudo ifconfig lo0 -alias 192.0.2.2  

See the accepted answer for a breakdown of why this works.

Mac OS find out what your IPV4 address is used for

Posted: 26 Sep 2021 08:04 PM PDT

I was looking up my some information with the command

ifconfig  

To my confusion there I had two ipv4 addresses that both look correct.

en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500      options=400<CHANNEL_IO>      ether 3c:22:fb:00:eb:31       inet6 fe80::1cec:b2f:3933:1ecb%en0 prefixlen 64 secured scopeid 0x5       inet 192.168.0.143 netmask 0xffffff00 broadcast 192.168.0.255      nd6 options=201<PERFORMNUD,DAD>      media: autoselect      status: active  en11: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500      options=400<CHANNEL_IO>      ether 72:70:0d:b8:be:07       inet6 fe80::c6c:6cae:cd7f:ad07%en11 prefixlen 64 secured scopeid 0x6       inet 169.254.89.196 netmask 0xffff0000 broadcast 169.254.255.255      nd6 options=201<PERFORMNUD,DAD>      media: autoselect (100baseTX <full-duplex>)      status: active  

At first, I thought one was for my physical line and one was for wifi. But when I connected my physical line a third one that looks similar popped up.

The wifi and the physical one seems to be beginning with 192... so the odd one out is the 169.254.89.196 is there any way I can find out what this is used for? I'm running a mac on Big Sur.

How share folder in QEMU with plan9/virtfs between MacOS host and Linux guest?

Posted: 27 Sep 2021 12:34 AM PDT

I am trying to run a Linux Debian with qemu with MacOS Big Sur host.

Unfortunately virtfs doesn't work on Mac and there is no easy alternative that I have found.

Is there a way to share folders with plan9?

Thanks!!

EDIT:

This is what I need: https://github.com/NixOS/nixpkgs/pull/122420 but it is still in progress !!

Thanks to all!

Vertically accessible 3-finger multi touch windows

Posted: 26 Sep 2021 02:06 PM PDT

MBP 15" user - 95% trackpad - LOVE the 3-finger swipe navigation.

I assume Apple limits the potential of an app like this, but maybe not.

Is it possible to add vertical functionality to the 3-finger swipe?

To clarify: Saying "Swipe left/right/up/down" implies the end result of the movement, not the actual direction of my fingers. Swiping right means go to the window right of my current window. Swiping down displays all your windows/desktop background. Swiping up does nothing.

Really all I want, is to be able to swipe up to Spotify from any window or have a second set of windows on a level above the current, 1-dimensional horizontal window set.

Made a simple mockup as to what I am describing. Is there already an app like this? Would download in a heartbeat!

Row of six desktops labelled DESKTOP 1, PDF, CHROME, WORD, DESKTOP 2, PREMIERE, then atop the middle two, another row of two desktops labelled OUTLOOK and SPOTIFY.

Use 2019 Macbook Pro trackpad with 8th generation iPad

Posted: 26 Sep 2021 05:06 PM PDT

I've seen software to link a MBP's keyboard to other devices, but is this possible for MBP's trackpad? I want to be able to use my MBP trackpad with my iPad. Even if I have to develop the software myself, where would I start?

How can I best configure this hard drive?

Posted: 26 Sep 2021 07:08 PM PDT

I have a Mac Mini with two hard drives inside. The 1st one has an OS installed, and the files I work from. But I wanted to have the second one be used partly for storage, and partly have an OS installed in case the first HD crashes.

I'm imagining that if my main drive fails one day, I will be able to keep working uninterrupted by updating drive 2 with Time Machine.

However in the meanwhile, I'd like to use Drive 2 for storage (while booting from drive 1). I found this article, but it doesn't really say if this scenario would let the user use the rest of the partition for storage if the computer is booted from another drive.

Does this sound like a logical plan, and how would I format and instal the second drive?

Kernel task takes about 500% CPU after connecting external monitor

Posted: 26 Sep 2021 10:04 PM PDT

I work with macBook Pro (15 Inch 2019, Catalina OS). I can't work with external monitor. 3-5 minutes after pluging in I have kernel_task that takes something about 500-900% CPU. I know there are some similar topics - the main suspect is overheating in such case. I have some changes in temperature, but it's hard to say for me if temperatures are still in ok spot. I have highlighted the biggest changes. temperatures

Entire "Users" folder is missing when booted into Recovery Mode

Posted: 26 Sep 2021 05:53 PM PDT

I posted this in the Apple Discussions forums, but have yet to get an answer that applies to the depth of which this situation currently exists.

My Mac's hard drive (running Mojave) suffered some corruption recently, and I found myself unable to boot into the system. I am able to boot into Recovery Mode, and my intent was to rescue the important data sitting in /Users/(my username), but to my surprise, the entire /Users/ folder is just not there when I try to access it via Terminal.

Steps taken:

  1. Boot into Recovery Mode.
  2. Open up Terminal.
  3. Navigate to /Volumes/(my OS drive name)/
  4. Type ls to see directory tree. I see every other folder I am expecting to see (I think), except for /Users/. It simply is not there.

What I have tried:

  1. Navigating to literally every partition and folder I can think of to find where /Users/ might be instead.
  2. Doing "chflags nohidden" on the drive does nothing.
  3. I don't believe I have FileVault on, so I don't think anything in that category would apply to my situation.

I can only come up with two possible conclusions:

  1. The hard drive corruption annihilated ONLY the /Users/ directory (unlikely, I assume???)
  2. Recovery Mode is hiding /Users/ in a way that I cannot figure out, and this is apparently not documented anywhere on the internet. I have seen other sites/posts talking about /Users/ being hidden, but they were not referring to situations similar to mine, and were resolved with simple (somewhat obvious) steps. They were not like what I am experiencing.

In the meantime, preparing for the worst, I have ordered an external drive enclosure so that I can pull the drive out of my computer and view its contents on another computer.

I am very hesitant to reinstall MacOS right now, because IF /Users/ has been compromised in the corruption, I don't want to do anything further that will prevent it from being recovered somehow. In other words, I am trying not to write any new data to the drive at all.

Thanks for any help or suggestions in advance.

Trying to set a F8 pause/play dictation command

Posted: 26 Sep 2021 11:06 PM PDT

So I'm what one would describe as ridiculously disabled. I've recently taken a liking to using the dictation functionality due to only having the use of one hand and often having to lie on my back.

I'd like to add the F8 play/pause key to the list of dictation commands, but unfortunately the dictation custom commands don't take single keypresses. It seems the solution is to create a workflow. However, upon trying automator to record the keypress I seem to have discovered that it doesn't recognise that key for some reason.

Just as a note, I use this play/pause functionality for iTunes AND Chrome Youtube videos at the same time. For example, I'll start iTunes playing, then start the Youtube video. Since the Youtube video was the last to be interacted with the play/pause affects Youtube, and not iTunes. That functionality I would like to keep if possible. So I guess if you can't just do a simple keypress it'd need to check if Youtube or iTunes is the current/last interacted with active app and act accordingly.

Does anyone have a possible solution or workaround they can think of?

Thank-you

Create new Apple ID solely linked to new @icloud.com email?

Posted: 26 Sep 2021 06:09 PM PDT

I am attempting to create a new Apple ID for use with an Organization Apple Developer Account.

I want this new Apple ID to have a new ____@icloud.com email address.

I do not want to use any existing email address for this account. The Apple ID should be entirely new, with no links to any 3rd party email address.


When I go to Create Apple ID via the Mac App Store, it prompts me to provide an email address that will "become your Apple ID".

It seems to want an existing email address; it's not creating a new email address for me.

Create Apple ID

Email - This email address will become your Apple ID.

This email address will become your Apple ID

If I attempt to type a new @icloud.com email address into this field, I'm given the error:

You cannot create a new Apple ID using an existing iCloud email address. If you have an iCloud account you can cancel and Sign In using your iCloud account information.


Is there a way to create a new Apple ID with a new @icloud.com email address, without signing up with an existing 3rd party email address?

How to override DNS resolver ordering while connected to L2TP VPN

Posted: 26 Sep 2021 09:05 PM PDT

OS: macOS Mojave 10.14 (18A389)

Current network setup:

  • Local domain: home.rossipedia.com
  • Subnet: 172.16.10.0/24
  • Gateway / DHCP server / DNS server: 172.16.10.1

Output of scutil --dns:

DNS configuration    resolver #1    search domain[0] : home.rossipedia.com    nameserver[0] : 172.16.10.1    if_index : 21 (en8)    flags    : Request A records    reach    : 0x00020002 (Reachable,Directly Reachable Address)    resolver #2    domain   : local    options  : mdns    timeout  : 5    flags    : Request A records    reach    : 0x00000000 (Not Reachable)    order    : 300000    ... (mdns common stuff)...    DNS configuration (for scoped queries)    resolver #1    search domain[0] : home.rossipedia.com    nameserver[0] : 172.16.10.1    if_index : 21 (en8)    flags    : Scoped, Request A records    reach    : 0x00020002 (Reachable,Directly Reachable Address)  

This works fine. I can find *.home.rossipedia.com hosts without issue.

However, the moment I connect to a L2TP VPN, my system gets reconfigured to use the VPN DNS servers to resolve hosts on my home search domain.

$ scutil --dns  DNS configuration    resolver #1    search domain[0] : home.rossipedia.com    nameserver[0] : x.x.x.x  <- VPN DNS SERVER 1    nameserver[1] : x.x.x.x  <- VPN DNS SERVER 2    if_index : 23 (ppp0)    flags    : Supplemental, Request A records    reach    : 0x00000003 (Reachable,Transient Connection)    order    : 100000    resolver #2    nameserver[0] : 172.16.10.1    if_index : 21 (en8)    flags    : Request A records    reach    : 0x00020002 (Reachable,Directly Reachable Address)    order    : 200000    ... (mdns common stuff)...  

The scoped queries configuration looks right, though:

DNS configuration (for scoped queries)    resolver #1    search domain[0] : home.rossipedia.com    nameserver[0] : 172.16.10.1    if_index : 21 (en8)    flags    : Scoped, Request A records    reach    : 0x00020002 (Reachable,Directly Reachable Address)    resolver #2    search domain[0] : first.vpn.domain    search domain[1] : second.vpn.domain    nameserver[0] : x.x.x.x    nameserver[1] : x.x.x.x    if_index : 23 (ppp0)    flags    : Scoped, Request A records    reach    : 0x00000003 (Reachable,Transient Connection)  

In my Network System Preferences, I have the VPN connection last in the Service Order dialog. If I move the VPN connection to before my ethernet connection, then my local DNS server doesn't show up in the resolver list at all (while connected to the VPN):

$ scutil --dns  DNS configuration    resolver #1    search domain[0] : first.vpn.domain    search domain[1] : second.vpn.domain    nameserver[0] : x.x.x.x    nameserver[1] : x.x.x.x    if_index : 23 (ppp0)    flags    : Supplemental, Request A records    reach    : 0x00000003 (Reachable,Transient Connection)    order    : 100000    resolver #2    nameserver[0] : x.x.x.x <- these are the same as above    nameserver[1] : x.x.x.x    if_index : 23 (ppp0)    flags    : Request A records    reach    : 0x00000003 (Reachable,Transient Connection)    order    : 200000    ... (mdns common stuff)...  

What I want:

Ideally, what I'd like to see when connection to a VPN is something like:

$ scutil --dns  DNS configuration    resolver #1    search domain[0] : home.rossipedia.com    nameserver[0] : 172.16.10.1    if_index : 21 (en8)    flags    : Request A records    reach    : 0x00020002 (Reachable,Directly Reachable Address)    resolver #2    search domain[0] : first.vpn.domain    search domain[1] : second.vpn.domain    nameserver[0] : x.x.x.x    nameserver[1] : x.x.x.x    if_index : 23 (ppp0)    flags    : Supplemental, Request A records    reach    : 0x00000003 (Reachable,Transient Connection)    order    : 100000      ... (mdns common stuff)...  

This way I could resolve all *.home.rossipedia.com hosts via my local DNS server at 172.16.10.1, and any hosts on my VPN domain would be resolved using the VPN DNS servers.

I've tried changing the order of services in the Network pref pane, changing the local domain on the DNS/DHCP server, deleting and re-creating the VPN connection, nothing has worked so far.

Is this possible? Or am I misunderstanding how this all works?

How to use Macbook pro in clamshell mode with lid open on macos mojave?

Posted: 26 Sep 2021 02:10 PM PDT

Due to heating issues, I would like to use macbook in clamshell mode with lid open, but all the commands mentioned on the web are for older versions of OS X

enter image description here

close all the instances of google chrome except first

Posted: 26 Sep 2021 07:40 PM PDT

I can close google chrome with following bash command:

kill -9 $(ps -x | grep "Google Chrome" | awk "{print $1}")  

It closes all instances of google chrome. But I need command that close all the instances of google chrome except first, because music is playing there and I don't want to stop it.

I use word instance to express new google chrome window which opens after I press super N.

Replace Text Edit as the default text editor

Posted: 26 Sep 2021 09:59 PM PDT

I've seen questions like this which don't quite solve my problem.

I'd like to make Sublime Text 3 the default file viewer/editor for all files that currently use textedit.

Most of these files can be command+i'd, but the ones that have no extension cannot. They give all sorts of permissions errors such as the ones in this image not enough information is available

Is there any way to just never use textedit, and instead set sublime as the default editor for all files?

What orthodox file manager for OS X could I use?

Posted: 26 Sep 2021 09:36 PM PDT

I'm looking for a graphical file manager fro OS X, for console Midnight Commander is ok.

I need two panels, function keys operations and preferably FTP and SCP support.

Also, it would be great to be free.

No comments:

Post a Comment