macOS Mojave clean install installer doesn’t start

I wish to perform a clean install of macOS Mojave on my Mid 2013 MacBook Air. I am currently running macOS High Sierra 10.13.6.

I’ve done all the steps, from downloading the installer from the Mac App Store, to creating a bootable USB using the follow command:

sudo /Applications/Install\ macOS\ Mojave.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled -- /Applications/Install\ macOS\ Mojave.app 

Then I rebooted my Mac with the USB flash drive plugged in, holding down the Option key, and got to the select boot media screen.

When I select the USB flash drive to start the installer, I got a black screen with Apple logo and a progress bar. That went well and fill the 100% bar, but then nothing happens.

I’ve already waited for like 4 hours with nothing happening.

Can anybody help me with what’s going wrong?

I just want to format my Mac to have a fresh start without any junk files.

How can I create a new user through terminal macOS 10.14

I am trying to write a script to add a user to a computer. These will not be admin accounts and should be staff accounts. I ran the following script and can login to the account but I can’t access any files, create any files, or save any files to the computer.

Ultimately I would like to run this to remove 5 user accounts and all of their information and then create 5 new accounts (this is in a classroom where I have 36 computers) but I am struggling to create a single user correctly with the following script.

Any help would be much appreciated.

#!/bin/bash  USERNAME=per1 FULLNAME="Period 1" PASSWORD="test" SECONDARY_GROUPS="staff"   # ====  if [[ $  UID -ne 0 ]]; then echo "Please run $  0 as root." && exit 1; fi  # Find out the next available user ID MAXID=$  (dscl . -list /Users UniqueID | awk '{print $  2}' | sort -ug | tail -1) USERID=$  ((MAXID+1))  # Create the user account dscl . -create /Users/$  USERNAME dscl . -create /Users/$  USERNAME UserShell /bin/bash dscl . -create /Users/$  USERNAME RealName "$  FULLNAME" dscl . -create /Users/$  USERNAME UniqueID "$  USERID" dscl . -create /Users/$  USERNAME PrimaryGroupID 20 dscl . -create /Users/$  USERNAME NFSHomeDirectory /Users/$  USERNAME  dscl . -passwd /Users/$  USERNAME $  PASSWORD   # Add use to any specified groups for GROUP in $  SECONDARY_GROUPS ; do     dseditgroup -o edit -t user -a $  USERNAME $  GROUP done  # Create the home directory createhomedir -c > /dev/null  echo "Created user #$  USERID: $  USERNAME ($  FULLNAME)" 

MacOS Sierra cannot access AWS Ubuntu Desktop via RealVNC client and SSH tunneling

I need to access Ubuntu Desktop 18.x on AWS from my Mac. I have used putty and and am able to connect via ssh.

https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-on-ubuntu-18-04

I have added the -i option to include the pem file in addition to the tunneling info above.

When I open RealVNC on the Mac and attempt to connect to Ubuntu on AWS, I get a message with a permission denied message.

I can get it working with Putty (setting tunnel and auth info in the Putty GUI) on Windows 10 with no issues.

Any suggestions? I have spent quite a bit of time searching and also noticed in the comments on the link above that other users had the same problem (no one posted a solution). Not sure what I am doing incorrectly on the Mac that prevents me from accessing the desktop.

How to build a MacOS app with multiple parts

I’m not wondering the details of how to build a MacOS app, which is a broad topic. I would like to know basically the process that happens when you open a .app application in the applications folder, so that I can figure out how to install multiple subapps, as described below.

Say my MacOS “project” will consist of a driver for device x, a driver for device y, a driver for device z, a global daemon that always is available when the system starts up (in the background) and a cli tool my-project. And it has an ~/Applications/MyProject app. So it has:

  1. n drivers: x, y, z… (each as a userland module perhaps, maybe a kernel module here or there)
  2. Daemon (a kernel module perhaps, not sure)
  3. CLI script (a userland application)
  4. Application (a userland application that connects to the kernel modules)

My main question here is how this should be be bundled such that it is just “1 thing to download”. So the user downloads “MyProject.app”. When they install it, they get all of that stuff listed above. I’m not sure (at a high level) how that process of installing these sub-things works.

I currently am at the point of figuring out how to construct a kernel module.

#include <mach/mach_types.h>  kern_return_t my_project_start(kmod_info_t * ki, void * d) {   return KERN_SUCCESS; }  kern_return_t my_project_stop(kmod_info_t * ki, void * d) {   return KERN_SUCCESS; } 

However, in my case I want 3 of these, plus an ~/Applications/MyProject plus a CLI my-project, and the daemon. I would think then I would just have a folder like this:

my_project/   driverx/     index.c     index.kext     Info.plist   drivery/     index.c     index.kext     Info.plist   driverz/     index.c     index.kext     Info.plist   daemon/     index.c   app/     index.c   cli/     index.c   main/     something.c   Makefile   ... 

Where main/something.c would be some sort of aggregator of everything into a single bundle. That’s all I’m really wondering. The sort of thing that I should do (at a very high level) to bundle multiple disparate components into a single thing the user installs. Like a user traditionally does (download, then drag an icon over to the applications folder and opens it, pretty much).

According to Apple’s documentation on “bundle types”, you would just have:

my_project/   Info.plist   index (code to run)   ... 

With this, then, I would just add my code as subfolders:

my_project/   driverx/     index.c     index.kext     Info.plist   drivery/     index.c     index.kext     Info.plist   driverz/     index.c     index.kext     Info.plist   daemon/     index.c   app/     index.c   cli/     index.c   main/     something.c   Info.plist   index (code to run)   Makefile   ... 

This would mean I would need to somehow know when the app is being installed to do something special with all these things, basically like a shell script. Wondering if that’s all I need to do, or if there’s a better way. I feel like there should be some “on-install” callbacks but I haven’t been able to find them.

As parallel, this might be (at some level) similar to installing “Adobe Cloud”, which consists of let’s say a dozen apps. You don’t need to go one-by-one to install them, it installs all at once somehow.

I’ve been searching for things like “How to bundle multiple MacOS apps into one” but it doesn’t lead to much, only showing how to bundle 1 simple app.

Basically I just want to know about how to design/architect a multi-app app on MacOS, just the basic structure.

macOS randomly locks up, forcing a hard reboot

I’ve got a brand new Mac mini 2018 running macOS 10.14.2. At random times, the system locks up completely (except for the mouse). So I can move the mouse around, but all windows and the dock are frozen. The only thing I can do is hold the power button to shut down.

I have no idea how to begin troubleshooting this. Should I look at /var/log/system.log around the time of the lock-up for anything fishy? Or somewhere else? (I’ll update this post as necessary) I already did a reset of the SMC & NVRAM, which didn’t help.

Unable to double tap on the trackpad to highlight multiple words in macOS Mojave

In previous versions of OS X, I was able to “double tap” on the trackpad and then move my finger to the side or down to highlight/select text/multiple text.

I’m unable to duplicate this in the new macOS Mojave. Previously, I’d enable System Preferences > Trackpad > “Tap to click”. Any ideas?

Reporting new USB storage devices on Linux and macOS with Python


Synopsis:

I wanted something for macOS (and Linux; maybe eventually Windows) that would simply wait for the user to connect a storage device and automatically select, or otherwise output the information to be used, read, manipulated, etc.

In its current form, it just prints to the shell, but you could assign the output to a list or variable for read/write operations and so on. It will respond to any new entries in the /dev system directory, including most USB devices, SD Cards, Webcams, and so on. You can test it by running the script in one window, and running something like sudo touch /dev/{x,y,z} in another.

I plan to use it to help people (those of us who are less technically inclined) migrate to Linux by automating the creation of bootable flash drives, but you can do what you like with it.

Open-ended feedback and suggestions are welcome.

Usage:

user@macOS:~$   ./devlisten.py /dev/disk2 /dev/rdisk2 /dev/disk2s1 /dev/rdisk2s1 

Code:

#!/usr/bin/env python3  import os import re import time import difflib  try:     os.mkdir('/tmp/dev') except FileExistsError:     pass except FileNotFoundError:     print('No /tmp directory found.')     exit() except OSError:     print('Read-only file system.')     exit()  file1 = open('/tmp/dev/1', 'w') for x in os.listdir('/dev'):     file1.write(x + '\n') file1.close()  try:      diff = False     while diff == False:         time.sleep(0.25)          file2 = open('/tmp/dev/2', 'w')         for x in os.listdir('/dev'):             file2.write(x + '\n')         file2.close()          text1 = open('/tmp/dev/1').readlines()         text2 = open('/tmp/dev/2').readlines()          for line in difflib.unified_diff(text1, text2):             for line in re.finditer(r'(?<=^\+)\w.*$  ', line, re.MULTILINE):                 print('/dev/' + line.group(0))                 diff = True  except KeyboardInterrupt:      print()     exit() 

Macos reference manual [on hold]

all, I’m looking for a really good, exhaustive book on all the internal workings of macos, along the lines of Amit Singh’s “Mac OS X Internals” book from 2006, but that is a bit more up-to-date. I’ve come across Jonathan Levin’s “MacOS and iOS Internals” series that looks really good — can anyone suggest any other good ones? Thank you!

How to look up by “backward match” in Dictionary.app on macOS

Dictionary.app on macOS can look up words forward match now. Can we look up items by backward match in Dictionary.app?

(If I’m allowed to wish so much, I would like to do that by “middle match”, too.)

The image here is an example of forward match. If you can do backward match, you will get something magical, for example.

here is an example of forward match