Slow mac when Terminal have been open for some time When I have Terminal.app open for some time (mostly after 2-3 hours), everything starts getting slow. When I type there is a delay for each character, and all applications lag when I scroll. If I restart Terminal, it goes away and my mac is quick and snappy again. But the problems comes back after some hours. It's especially bad when I have a ssh connection open to one of my servers.
I use Terminal a lot (I'm a developer), so it bothers me to have to restart it.
Do you have any idea how to find the problem? I can't find anything about this when googling.
I'll attach some screenshots from Activity Monitor, taken while it happens, just incase it helps.
My machine: Retina MacBook Pro, 2.6 GHz Intel Core i7, 16 GB RAM.

UPDATE 1
Content of my bash startup files:
/etc/profile:
# System-wide .profile for sh(1)

if [ -x /usr/libexec/path_helper ]; then
    eval `/usr/libexec/path_helper -s`
fi

if [ "${BASH-no}" != "no" ]; then
    [ -r /etc/bashrc ] && . /etc/bashrc
fi

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

/etc/bashrc:
# System-wide .bashrc file for interactive bash(1) shells.
if [ -z "$PS1" ]; then
   return
fi

PS1='\h:\W \u\$ '
# Make bash check its window size after a process completes
shopt -s checkwinsize
# Tell the terminal about the working directory at each prompt.
if [ "$TERM_PROGRAM" == "Apple_Terminal" ] && [ -z "$INSIDE_EMACS" ]; then
    update_terminal_cwd() {
        # Identify the directory using a "file:" scheme URL,
        # including the host name to disambiguate local vs.
        # remote connections. Percent-escape spaces.
    local SEARCH=' '
    local REPLACE='%20'
    local PWD_URL="file://$HOSTNAME${PWD//$SEARCH/$REPLACE}"
    printf '\e]7;%s\a' "$PWD_URL"
    }
    PROMPT_COMMAND="update_terminal_cwd; $PROMPT_COMMAND"
fi

~/.bash_profile:
export PATH=/usr/local/bin:$PATH
export JAVA_HOME=`/usr/libexec/java_home -v 1.7`

if [ -f ~/.bashrc ]; then . ~/.bashrc; fi

~/.bash_login: I don't have this file
~/.profile:
export JAVA_HOME=/Library/Java/Home

export CLICOLOR=1
export LSCOLORS=exfxcxdxbxegedabagacad

# MacPorts Installer addition on 2012-10-02_at_22:35:07: adding an appropriate PATH variable for use with MacPorts.
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
# Finished adapting your PATH environment variable for use with MacPorts.

homebrew=/usr/local/bin:/usr/local/sbin
export PATH=$homebrew:$PATH

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

~/.bashrc:
mygrants() {
  mysql -B -N $@ -e "SELECT DISTINCT CONCAT(
    'SHOW GRANTS FOR \'', user, '\'@\'', host, '\';'
    ) AS query FROM mysql.user" | \
  mysql $@ | \
  sed 's/\(GRANT .*\)/\1;/;s/^\(Grants for .*\)/## \1 ##/;/##/{x;p;x;}'
}

You're going to have to broaden your search. There's nothing in your screenshots that points to Terminal. Nor anything in my experience—I let Terminal run for days with no ill effect.

It's possible that you're starting some task that's running away with the processor. You could set Activity Monitor to show all processes hierarchically, and give the tasks running directly under Terminal closer scrutiny, but I'd be more inclined to think that whatever it is is something you've spawned off as a separate process (using & at the end of a command).

Does quitting Terminal give you your performance back right away? That would indicate that the process is still running as a subtask of Terminal.

Either way, set Activity Monitor to show All Processes, and sort the list by % CPU. See what floats to the top.

Is there anything unusual about your $PROMPT_COMMAND? This is a command that gets run by the shell just before it displays the prompt. Seems to me to be a place where a time-waster could hide.

ADDENDUM: I just noticed your comment "...when I have an ssh session open to one of my servers". Do you also accept incoming ssh sessions? It's possible that you're under attack. Someone is trying to open an ssh session back to you, and is guessing passwords. If they're guessing very fast, they can bring your machine to its knees.

I thought of that earlier, because I've seen that happen when I enable Remote Login and have a publicly visible IP address. Once the bad guys notice that your port 22 is open from the WAN (and they will, within hours), they'll slam it with login attempts. The (temporary) fix is to disable Remote Login for a few minutes. They'll get bored and turn their attention elsewhere, and you have a respite of a few hours until another bad guy notices the open port.

But you say the problem goes away as soon as you quit Terminal, which sounds like a different problem. UNLESS you have some watchdog on your system that automatically opens port 22 (i.e., enables Remote Login) only while Terminal is running, and automatically closes it when Terminal quits. Or I imagine it could be possible to configure a firewall so that it allows incoming connections to port 22 only while there is currently an outgoing connection to port 22. Or only from remote addresses that you have an outgoing connection to, and the server you're connecting to is infected. Quitting Terminal closes all your ssh sessions, which would make the firewall stop accepting ssh incoming sessions, breaking the attack. Just a guess.

To see if you're under this kind of attack, open Activity Monitor and filter the process list for "sshd". If you see lots of very short-lived sshd processes, someone is trying to guess your password. Even if you don't allow password access, they don't know that and will try anyway.


AppStore looks too slow. Is there any way to download El Capitan without AppStore? I am downloading OSX El Capitan through AppStore and it runs already 10 hours. I have downloaded 1,5 GB so far. I fear I can't work next week because of this slow download process. I need it because of the new XCode.

I already tried to download a torrent with this OS, which took me only 30 mins from a Windows System. But I had problems installing it, because it seems to be corrupt.

Is there another way to upgrade without using the AppStore ? I think about the dmg, which could be simply downloaded.
Or how can someone upgrade an Apple OS in one day ?

I added a new speedtest herer, because it seems not to be clear enough.

The short answer is no - Apple does not provide any alternative method. A short analysis is something is massively wrong with your network or your computer since 10 hours to download 6 GB of data is something that would bring Apple's iTunes / App Store / software update service to a crashing halt if it affected everyone.

Now - the answer is also yes. Once you or someone you know has downloaded the Application to install El Capitan, you can install it to USB stick and share it, but this is also how many malware get distributed when people find some random site on the internet and download El Capitan from a site and don't verify checksum.

Apple does allow people to operate a caching server so that when the first person on a network segment downloads a specific app or book , it gets cached locally. If you can VPN to a better network - or one with caching server, you might get a far better download speed to your Mac.

Look in /var/log/commerce.log for an entry like:

May 29 07:54:07 mac storedownloadd[37414]: ProgressObserver: Created a placeholder at /Applications/OS X El Capitan.appdownload to represent download progress
May 29 07:54:08 mac storedownloadd[37414]: sending status (OS X El Capitan): 0.000000% (-1.000000)
May 29 07:54:09 mac storedownloadd[37414]: sending status (OS X El Capitan): 0.002089% (-1.000000)
May 29 07:54:11 mac storedownloadd[37414]: sending status (OS X El Capitan): 0.004216% (1505.469385)
May 29 07:54:13 mac storedownloadd[37414]: sending status (OS X El Capitan): 0.006556% (1382.851770)
May 29 07:54:14 mac storedownloadd[37414]: sending status (OS X El Capitan): 0.009006% (1307.710558)

After a while, if you have good network (this is a MacBook using AirPort WiFi in the US):

May 29 08:00:17 mac storedownloadd[37414]: sending status (OS X El Capitan): 0.548568% (814.645701)
May 29 08:00:18 mac storedownloadd[37414]: sending status (OS X El Capitan): 0.550823% (812.247625)
May 29 08:00:20 mac storedownloadd[37414]: sending status (OS X El Capitan): 0.553163% (809.416475)

At nearly the end, an installClient process runs to finish the installation and the time estimates usually are conservative in that you finish before they predict at that point.

May 29 08:03:19 mac storedownloadd[37414]: installClientDidFinish
May 29 08:03:19 mac storedownloadd[37414]: sending status (OS X El Capitan): 0.967742% (3.000000)
May 29 08:03:19 mac storeassetd[37257]: SoftwareMap: No app was found with bundle ID com.apple.InstallAssistant.ElCapitan to upgrade to 1.7.46
May 29 08:03:19 mac storedownloadd[37414]: sending status (OS X El Capitan): 0.967742% (3.000000)
May 29 08:03:20 mac storedownloadd[37414]: sending status (OS X El Capitan): 1.000000% (0.000000)

So, for this computer it was 9m 13s to download and install. I suspect the download was already cached on my OS X server.app running on a Mac Mini - so you might watch your log with a terminal command tail -F /var/log/commerce.log and maybe try a different network or see if a friend you trust has already downloaded the file?

Lastly, be sure you are looking at the correct file. Others have mistaken the name or requirements and had not the issue you report. From your details, you really have a bad service on this one file and not something you could fix yourself.


Update Apple ID to iCloud @me address I previously had an Apple ID account, and I logged in using my gmail address. Now I have a @me.com address and I'd like to use that to log in.

How can I change the address I log into my Apple ID account (e.g. when downloading apps) to my new @me address?

Does this help?

How to change the name you use for your Apple ID

At My Apple ID, click "Manage your account."
Sign in using your current Apple ID and password.
With the Name, ID, and Email Address drawer selected, click Edit next to your Apple ID.
Enter your new Apple ID in the Apple ID field. You should use your primary email address as your Apple ID.

You can change a non-me.com address, but you cannot change a me.com address to something else.

Do you want to change what ID you use for iTunes and AppStore purchases?

Open iTunes
Click Store
On the menu, you will see View My Account, followed by the account which is signed in.  If the account is your .me account, you are done.
You are signed in with something other than your .me account.  So, sign out.
Sign in with the .me account you want to use.  You are done.
Repeat as appropriate on the AppStore and on all your other devices.


Mobile safari won't login to websites on iPad My wife's iPad 1 will no longer log into website accounts e.g. Amazon when using mobile safari, it just refreshes back to the log in page. She can get into these sites through the google app though and I can get into her accounts on mobile safari my iPad 2.

It sounds like some sort of safari file corruption so all I can think of, and have tried without success, is to do a complete restore from iTunes.

Anyone have any ideas ?

Have you tried clearing the safari cache and cookies from the settings app -> safari section?


How does the Eurovision app know where I am from? I’m originally from Germany but I’ve been living in the UK for a few years. Yesterday I downloaded the Eurovision app and to my surprise the app greyed out the Germany option for the vote. I am not really interested in the music content but I was curious about the way in which they managed to tell where I was originally from.
At the beginning I thought it was the App Store country I downloaded the app from (the German one). So I uninstalled the app, changed store (logging in with a different Apple ID registered on a different country store). Same thing.
Then I tried VPNning to other counties, still the same.
Does anyone know what they are using to determine the country of the phone owner?
Can they access the IMEI? EAP-SIM authentication? This really caught my eye as I would be surprised if apps were allowed to access these kind of information.

As a Chinese living in strict censorship, I use proxy and apple id from various countries. And I often use MITM to capture packets to see the restrictions in the packet. I have to say, Apple’s Privacy Policy is doing a good job.

1、The app doesn't know which store you purchased and downloaded it from.
2、They can't access the IMEI and UUID directly from the system.
3、They may get your EAP-SIM authentication data from your isp. And your mac address is fixed every time you link wifi. Android is better in this case, you can generate a random mac address.

The most common situation I have experienced is that the app will get your carrier, which is the API provided in iOS. Tiktok Line Apple News even Apple Watch's ECG feature uses this method to identify the user's location. When your sim card is in the phone, whether you use data or Wi-Fi or even in flight mode, the app can get your carrier information.

Another possibility is that your device language is German, and your app will bring Accept-Language: XX-de in your HTTP request header.

And if you use a device for a long time, companies with various apps on your phone may sell information to each other. Large advertising companies such as Google facebook they have enough information to generate a UUID for you.


Safari doesn't detect font installed on system When using Safari, I thought the font it was using in Google search pages looked different. Sure enough, Google was using the Roboto font in a Chromium-based browser, but Safari's Google still used Helvetica or something similar. What's even stranger is that I looked into the loaded webpage's CSS, and it seemed like Roboto was loaded preferentially above all other fonts.
Why would it be the case that Safari can't display Roboto, but Chrome can?

I believe that the reason for its being shown only in Chrome is most likely due to Safari's anti-fingerprinting techniques, which obfuscates currently installed system fonts from websites. However, as a by-product this prevents websites from displaying webpages from using a custom font that the user installed on the system (source).
Bear in mind that websites can still display custom fonts as long as they are loaded from a source external to your local filesystem, which is why a website like Google Fonts can still function.
Note: I am unsure why it's not possible for Safari to simply display the Roboto after the website has loaded. Surely that wouldn't reveal to the webpage host that Roboto was used, and thus installed on the system?


Can two 500 GB external hard drives be used like a single 1 TB hard drive to use for Time Machine? My new internal hard drive is 1 TB.

Depending on your system there are several methods to "concatenate" two or more external drives.

RAID0: diskutil createRAID stripe TMRAID JHFS+ disk1 disk2
JBOD: diskutil createRAID concat TMRAID JHFS+ disk1 disk2
CoreStorage: diskutil cs create disk1s2 disk2s2. A CoreStorage Logical Volume has to be created addtionally.
ZFS: This requires the additional installation of software. Link to Time Machine setup.
MHDDFS: This requires the additional installation of software. ~Setup link (I didn't test this solution as a Time Machine destination).

At the time of writing the new APFS (available in Sierra) apparently doesn't support Time Machine backups.

None of these solutions is recommended as Time Machine destination volume.

The survival probability of the 500 GB drives (I assume they are at least 3 years old) is low compared to a new single drive.
Since both drives are attached externally (via USB, FW etc.) the mechanical handling is error prone. If you detach any of the two drives accidentally while in use, you may loose the whole content because the volume usually is not recoverable afterwards.

I recommend to get a new single external drive (2 TB - 4 TB) which also provides some additional space to "breathe".


canon mg5520 can't connect to my MacBook pro no scan ability I can print just fine,  I can not scan from mg5520

I've even tried to go through image garden and the "scan" area is greyed out.
I’ve removed some software that I didn’t make note of
I reloaded my Mac with all updated drivers

I can think of nothing else to try except throw this thing away.

I has worked just fine for the last few years.

Canon doesn’t have drivers for that past 10.14 and full functionality is only specified for 10.4 through 10.6.

https://www.usa.canon.com/internet/portal/us/home/support/details/printers/support-inkjet-printer/mg-series/pixma-mg5220?tab=technicalspecifications

Unless someone with more experience has an answer, donating that to someone running a compatible OS would be my best use of that gear for scanning. Many canon scanners work with macOS Catalina due to updated drivers, so you could also wait for the vendor to work on your scanner or request support from them. I wouldn’t rule out a community driver if someone decides to take that task on and then releases a third party driver.


Does Apple Watch 3 support Noise app? I cannot find any reference on web that this app is only supported on new watches like 4 or 5.

No, the Noise app requires Apple Watch Series 4 or later:

https://support.apple.com/guide/watch/noise-apd00a43a9cb/6.0/watchos/6.0


Homepod Mini "no peer to peer" warning Seeking some resolution with a Homepod Mini. Recently replaced our 11+ year old router with a Linksys WRT3200 ACM dual-band model, running OpenWRT. After initial setup everything on the network connected immediately, including the Homepod. Unfortunately this didn't last long. Homepod is now showing as unavailable in AirPlay from any iOS device. It shows in the Home app and if touched there will display comnnectivity, settings, etc. but lists "controls are unavailable". The device is clearly on network - it shows as connected from the router interface, responds immediately to ping, and appears as an available AirPlay option from my MacBook - if and only if I am connected to ethernet. Over wifi, it is unavailable.
What's especially maddening is that the two Ikea-branded SONOS speakers we had prior to the Homepod show in AirPlay all the time and work immediately from all our devices. I can stream to our Roku devices via AirPlay as well. I simply can't use the Apple-branded speaker. I can't figure out what the issue might be.
I've tried completely resetting the Homepod. I received a warning on setup that peer-to-peer communication was not available. I'm unclear why, as there's no setting in the router wifi config that makes me think mDNS is unavailable, and I have ensured the mDNSresponder package is installed on the router. The ONLY thing I can think might be an issue is that the Homepod is connected to the 5ghz radio (radio0) whereas the other AirPlay devices are on the 2.5ghz radio (radio1). Signal to noise ratio is consistently solid, it does not appear to be related to weak signal or interference. I've read that AirPlay can have issues crossing between radios in a dual-band setup, but my iPhone is on radio0 and plays through the SONOS speakers on radio1 just fine - and can communicate but can't PLAY to the Homepod also on radio0. If it's a cross-band issue I'd think the reverse would be true.
I don't know if it is an OpenWRT issue or an Apple issue. I'm new to OpenWRT (was running TomatoUSB for years). It's frustrating that this single device seems to be the only one giving me any real trouble. Any suggestions would be appreciated.

...and just like that I found a solution. IGMP snooping wasn't enabled in the LAN bridge, so AirPlay packets were not being routed correctly between wired/wireless devices. I didn't even consider that the LAN settings would be part of the problem, as all devices involved were wireless. Unclear to me whether the mDNSresponder package is required for the router to make this work, but it's working now.


iPhoto library was deleted, had me create a new library. Went into Finder & don't have the "Masters" folder. Where are my original photos? I did a little research, & I found numerous websites directing me to go to iPhoto on Finder, right click, & click on "Show Package Contents". When I click on it, I am directed to a folder that says "Contents".

However, when I open that folder, I was promised there would be a folder called "Masters", but I found 8 folders and 4 other items- none with the name "Masters" & none of the folders had my original pictures.

To be more specific, the names of the folders I have are: _CodeSignature, _MASReceipt, Frameworks, MacOS, Library, PlugIns, Resources, and XCPServices.

Are my photos gone forever?

I think ...

That's a bad beginning. You need to know what you did.

  I hit create library, and all my photos were deleted and I was redirected to iPhoto's introduction page

When you entered a name, did it ask "___ exists. Replace?"

  ...go to iPhoto on Finder...  the names of the folders I have are: _CodeSignature, _MASReceipt, Frameworks, MacOS, Library, PlugIns, Resources, and XCPServices.

That's the iPhoto application. Not the iPhoto Library. Look in Home -> Pictures for something like "Theresa's iPhoto Library" and double-click on it.


iOS 12 tapping on notification to open app not working I've been looking online and I haven't found any articles about changing this on the new iOS update. Ever since I updated, it has the cool new feature of grouping notifications.

My biggest issue is that I can't tap on an expanded notification to open that app. As in, if I get a text, I can't tap on it to open the messaging app to that text message. I have to either go open the app and then the text or use the mini-preview of the message, but this isn't an option for every app. I have continued to play with the notification settings and I can't find a solution for this. Does anybody have an idea?

I had the same issue and then realized that after I’d reset my settings my Face ID wasn’t set up. After I set up Face ID, tap to open notifications started working again. Hopefully this helps.


How to display iPhone/iOS device on Projector? I want to display my iPod screen in my PowerPoint slide show, or on a projector through WiFi.

How can I do that?

I mean something like what TeamViewer can do.

Three possibilities:

Use AppleTV.
Use an appropriate adapter, such as an Apple Digital AV adapater or Apple VGA adapter. (Works only if you have a 4th generation iPod Touch.)
Use a document camera to record and project your device's screen. For demos where you want to show interaction with the device, this is a common setup.


What's a normal value for kernel_task RAM usage? Just bought a new MacBook Pro 12.1, early 2015 (Yosemite 10.10.4). I'm observing memory usage from kernel_task varying between 0.8-2.0 GB. Is it normal? Couldn't find a question referring to normal values.

Thanks

Yes, that amount is normal.

As kernel_task performs a lot of tasks on behalf of user-space processes (i.e. the ordinary programs you're running on your computer), the actual memory usage of kernel_task will vary a lot according to which programs you're currently running, and what you're doing with them.


How to get colors from 'ls' command on macOS I have tried both
 ls --color=auto

and
 ls -G

The first gives ls: illegal option -- -  and the second simply has no effect.  So then what is the way to get color for ls on macOS?  I am using the default bash on catalina
I am using the standard Terminal.app
$echo $TERM
vt100

You'll want to open the Preferences window in Terminal.app. Turn to the Profiles tab, and then the Advanced tab. You'll see that it says "Declare terminal as", which you would have set to vt100. Change this to xterm-256color.
Now you can run ls -G to see a coloured ls output.


best free desktop gadget to get exchange rates I am new to Mac OS X. Is there any good desktop app or dashboard widget which displays latest exchange rates like Windows 7 gadgets on right side.

Calculator.app doesn't display the exchange rates, but it does allow you to convert between them.  You can do this by entering a number in the calculator, and then going to the Convert > Currency... menu and choosing the appropriate currencies.

If you're looking for a Dashboard widget to show exchange rates, I'd suggest this one:  http://www.apple.com/downloads/dashboard/calculate_convert/currencyconverter_palplesoftware.html


Suggestions for a batch audio converter? Any suggestions for a good, free audio converter for Mac?
I used to use Max.app but it has long become abandonware and is now super buggy and crashy. I just need something I drop a couple (or 20 thousand) Apple Lossless files into and let it crank away making me some AAC compressed files or some MP3 or whatever.

FFMPEG and a simple bash script will get the job done.  FFMPEG is the same set of libraries that are included with products like Handbrake.

The basic syntax is very simple:

ffmpeg -i inputfile outputfile

If you wanted to convert a FLAC to MP4, you would simply enter

ffmpeg -i inputfile.FLAC to outputfile.MP4

To convert a number of files a simple bash script like the one below will convert

for file in /foo/bar/*.mp3
do
    fullfilename=$(basename "${file}")
    filename="${fullfilename%.*}"
    ffmpeg -i "$file" "/foo/bar/converted/$filename.mp4"
done

This basic script parses through a directory, takes the original filename, then removes the extension so a new extension can be added during output.


Can I jailbreak my way out of a passcode request? My father owns an iPad 1. He forgot his numerical access code and tried enough times that the device now reads "Connect with iTunes."

Apple assumes you sync your device frequently with a computer  but the only time I recall him doing that is when he upgraded to iOS 5. iTunes on that computer, however, says "no can do, put in the code first."

Apparently the only way out is to boot in recovery mode and flash the device clean, which means losing permanently access to all apps ever, backwards and forwards in time. (We have been unable to install any new app at all for a year or so.) This means being stuck with a version of Safari that, as you well know, runs out of memory and crashes and burns on most websites.

Hooray.

Can I jailbreak the device now? Would that help me get out of this situation?

No.
You will need to restore using iTunes. The iPad will completely be factory reset (meaning like it's fresh out of the box). Your personal data on the device will be lost but you can redownload all apps for free using the same Apple ID you bought them with.

However you might run into some issues since the iPad 1 only runs iOS 5 and most apps require iOS 6 nowadays. Some might still be downloadable since Apple added a feature to support old iOS versions parallel (see http://9to5mac.com/2013/09/17/ios-app-store-now-allows-legacy-app-downloads-to-support-older-hardware-and-software/). However this will depend on the App Developer, so you might run into trouble getting some (probably a lot) of Apps back if they are not backed up to your computer.

Safari isn't an App that can be updated by itself, it comes with iOS, and the version depends on the iOS version.


Two Identical Monitors Plugged in with USB-C I have two identical Lenovo P24h-10 monitors plugged into my Macbook.  Each one has it's own USB-C cord.  I thought about using a single Display Port cord and then daisy-chaining them together, but each monitor has USB outlets that I'm using to connect my peripherals so I don't need a separate hub.  I've noticed there is a 50% chance that the display arrangement will be flipped every time my computer wakes from sleep.  I think this is because there is no way for my computer to differentiate between the two.  Is there a way to set a name on my monitors?
In the Display Preferences, each monitor is listed as P24h-10 (1) and P24h-10 (2), and they can change.
This seems like a really silly problem to have.  I'm hoping there is an easy fix, but I've been scouring the internet for weeks now looking for some help.  Any thoughts?

I've experienced this as well, and there are a few fixes that I've found.
Solution One
This fix involves involve running macros on startup. Here's a link to the "Keyboard Maestro" method which includes using a utility called displayplacer on github.
Solution Two
It's possible this is related to spaces/mission control behavior. One easy thing I would suggest is going into System Preferences -> Mission Control and uncheck "Automatically rearrange Spaces based on most recent use," assuming that is checked. This may solve your problem, maybe not.

Solution 3
I'm a bit dubious about this one, but it's easy and worth a shot. Basically, you need to remove the Caches folder in your User Library folder. You can try to do this with finder, but I suggest opening terminal and entering
sudo rm -rf /Library/Caches/ColorSync
rm -rf ~/Library/Caches

And then restarting your computer. Please note that you may clear your user-specific caches with that second command, which include caches from other Applications and things like iCloud. These are caches, so you shouldn't experience any real data loss, but certainly be a bit cautious with this one.
I wish there was an easy fix. Hopefully the mission control solution works for you, but this seems like it's been a problem for several years.


Securely remove personal information, without reinstall on Yosemite? Scenario:

I have a work provided Macbook on Yosemite that I've used for 2 years. All company files are stored in cloud drives, and all company programs are similarly cloud based.

The company does not wipe machines before re-assignment. That is their decision and I will comply by not reformatting.

I will be leaving the company and would like to remove any of my sensitive personal data from the machine.

(I've searched other questions which are either out of date or point to complete reformat. This is not an option. This question is the most analogous, but is for a different operating system version and is almost 2 years old. The upvoted answer references FileVault, which I don't think covers the personal data areas I am concerned with.)

I will follow the above mentioned question and complete these steps:

Move out all important data
Delete my old account (and entire home directory)
Create a new account for the new owner
Delete unused space in Disk Utility
Delete Spotlight index
Delete/var/db/locate.db

I will also follow the deauthorization steps mentioned in this answer.

However, I am concerned about other areas of data (like dropbox settings, synced drives, saved wifi/network information, saved network computers, keychains, saved cellphone mac address from Adobe Edge Inspect etc). That might be stored elsewhere.

My question:

What additional areas of the machine should I be sure to clear, and how can I do so?

Also, is there an Apple-updated guide for this sort of thing, that might stay relevant when AskDifferent questions fall out of usefulness?

You are on the right track. With modern storage, the value of secure wipe is so little, I prefer to just write files over the free space.

Make a new account - do this before deleting yours.
Download Rick Astley movies to the new user until space fills.
Delete your user account - choose to delete the files
Perform "paranoid" log cleaning and purging of system keychain items you feel are personal
Use Disk Utility to securely wipe free space. (Optional)
Continue to download videos and then hand in the Mac as ordered.

If you need help with http://brew.sh to download Rick Astley, please (pretty please) ask that and I'm sure someone can provide a nice script to get some youtube-dl going and then copy the files again and again to fill up space nicely.

Spotlight won't contain anything at that point you care about. If you are paranoid:

sudo periodic daily weekly monthly
sudo rm /var/vm/*

Inspect the /var/log folder and srm or truncate / delete everything you find.

An alternate method would be to use Time Machine to only back up the files you choose to restore and not mess with filling space. For every file you wish to check:

tmutil isexcluded /path/to/SystemKeychain.key

You can build up exclusions to your satisfaction and then make one backup once you've normal deleted all private files that are not excluded by rule. They you're free to wipe everything / fill up everything and then install a totally clean OS and use the migration assistant to migrate back just the company files that you've backed up.

Unless you're going to do this multiple times, it's probably not a big difference in the amount of effort it would require you to implement either of these choices. Pick the strategy that makes more sense to you.


Possible to use Applescript or Automator to authenticate iPhone 5s with my Macbook Pro without entering lockcode on iPhone? Is it possible to utilize Automator/Applescript or similiar on my 2012 MacBook Pro Laptop running 10.13.3 (High Sierra) to automatically pair with my iPhone 5s when I plug it in to my computer. Thereby removing the request to tap in my lockcode on the phone sceen to have my computer recognise my phone?

My phone is currently in 'iPhone is disabled' mode. I do know my passcode, the iPhone jumped straight to iPhone disabled mode after 'hanging' during my last OS update.

I am holding off doing a restore (via iTunes) as I am a believer that there is always a workaround. I just need to find the person who knows the workaround.

I would like to retrieve my recent iphone data (5 months since last back up) before I do a total factory reset (via iTunes) to regain access to my phone.

Any help very much appreciated.

No this is not possible. iOS 11 requires a pincode or password before allowing a computer access to your iPhone.

  With iOS 11, you are required to enter your device passcode before a
  connection with a computer is made, even when the phone is unlocked.
  This is a very nice improvement over the previous "Trust" pop-up.

  Now, even if the phone is unlocked with Touch-ID or the new Face-ID,
  connecting to an unknown computer will still require your 4 or 6 digit
  pin code, or the alphanumeric password if you have one set up.

Source


All usb c ports are working flawlessly but charging keeps flickering on and off in irregular basis This is a macbook pro 2018. All the usb ports are working with all other peripherals and the charger works also, but sometimes it keeps turning on and off (it keeps chiming to say it's charging, randomly, every minute or so) and sometimes it charges normally.
I tried to reset SCM and NVRAM. I'm thinking that this is a big sur thing and downgrade to catalina or the adapter is malfunctioning or maybe it is a logic board thing. What do you think?

It turned out that the circuity of the power adaptor has some defects. Changed it and everything is working perfectly now.


How to add space between cells' borders in Mac Pages (without removing the borders)? See image attached I would like to create a table that looks like this:

Is that even possible in Pages?

There is no simple way to do what you want. You could make each cell a new 1x1 table and space then apart. But this takes a while and is difficult to work with. I was able to make tables that looks like the images below. Not what you wanted but similar I think. The spacing can be increased on these tables.


Screen Sharing on iOS devices Can I share the screen of one iOS device with another iOS device from app? Is it possible to implement above functionality using iOS SDK? Does Apple allow this type of app? If anyone know about this, kindly let me know. Thanks in adavance.

Some short answers to your questions:

There is no such app available in the App Store. Things may be different in the jailbreak universe
Up until last weeks I would have said "no, probably not". But Apple now has approved a screen recording app for iOS so it seems to be possible.
Nobody will know for sure until somebody writes such an app and sends it to Apple for verification


Screen Artifacts at Shut Down when using scaled display on 15" rMBP mid 2015 running Sierra 10.12.5 I am having an issue on a week old rMBP 15" mid-2015 running Sierra 10.12.5. I use the scaled display option and have noticed that there is a concerning screen artifact that occurs when I shut down the system. Other than that, it works perfectly. Does anyone have any idea how I should approach this? I have not reinstalled the macOS, but is that the only viable solution?

What shutdown looks like with normal scaling

What happens when I shut down with screen scaling

macOS has gotten a lot more quirky over the past few years. I've noticed many graphical glitches, myself. This is especially visible before the OS is fully loaded and also when it shuts down or sleep/wake events are in transition.

I wouldn't worry about it, personally.


Birthdays a day early in Calendar on Mountain Lion On my Macbook Pro running Mac OS X 10.8.2 (Mountain Lion) all the birthdays from the "Birthdays" calendar are showing a day early in Calendar. E.g. When I browse to contact Joe Bloggs in Contacts it shows his birthday as 12/03/1987. When I go into Calendar, there is a full day event for Joe Bloggs' birthday on 11/03/1987.

In Calendar I have selected the correct timezone (New Zealand Time) and have also enabled "Turn on time zone support" in the preferences. On my iPhone, I have the same settings and the birthdays display on the correct date.

Is there anything I can do to get the birthdays to display on the correct date in Calendar on my Macbook Pro?

Edit: Just clarifying, the date format used here is dd/mm/yyyy.

I was having a similar issue for a while using the native Birthday calendar. It's not exactly the same as only the notifications came in one day early.

To fix this, in macOS El Capitan with Calendar v8.0 (2092.3), I found the following:

Open the Calendar app on macOS
Select Preferences > Alerts
Here change the notification for Birthdays to your choice (in my case "On day of event")

I looked for this option a while ago but was unable to find it earlier. But now with this, I'm neatly notified on the day of a birthday. Perhaps it helps others as well.


download iCloud photo to mac OS X Yosemite 10.10.3 My phone is iOS 8.3 and my computer is OS X Yosemite 10.10.3 (iPhoto doesn't works anymore, instead there is another application called Photos)

I have 3.2G of photos are automatically saved in iCloud photo library, now I would like to download all those photos and release my iCloud space and no longer use iCloud.

I tried as following:

on iPhone: iCloud-> Photos-> iCloud Photo Library : it says this iPhone was not able to download full-resolution photos and videos. If you continue, the low-resolution will be removed (but i dont want it happen)
on Mac: System preference-> iCloud-> Photos-> iCloud photo library : it says this library exceed your available iCloud storage.
on Mac: Photos-> Preference-> iCloud -> iCloud Photo library : it comes out a window says upgrade iCloud storage.
on the webpage icloud.com : Photos: I could download the photo but its too miserable to manage iCloud in this way! coz I have to click the photos thousands of time to select it and then download it individually.

How can I do??

You can simply drag single Photos from the Photos app into the desired folder or there is an Export option for albums in the File menu. Select album on the top bar (cmd+3) and mark the desired album and go to File -> Export (shift+cmd+E).


SSH connection hangs out at SSH2_MSG_SERVICE_ACCEPT recieved I tried to connect to a server with ssh, but it failed. I tried UseDNS no, update OpenSSH with MacPorts. But it didn't work.

Using user@ip -v I get the following output

OpenSSH_5.9p1, OpenSSL 0.9.8r 8 Feb 2011
debug1: Reading configuration data /etc/ssh_config
debug1: /etc/ssh_config line 20: Applying options for *
debug1: Connecting to 50.63.25.99 [50.63.25.99] port 22.
debug1: Connection established.
debug1: identity file /Users/can/.ssh/id_rsa type -1
debug1: identity file /Users/can/.ssh/id_rsa-cert type -1
debug1: identity file /Users/can/.ssh/id_dsa type -1
debug1: identity file /Users/can/.ssh/id_dsa-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3
debug1: match: OpenSSH_4.3 pat OpenSSH_4*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.9
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Server host key: RSA 46:ef:da:91:a3:6d:60:54:ed:cf:d2:87:b2:85:b4:1d
debug1: Host '50.63.25.99' is known and matches the RSA host key.
debug1: Found key in /Users/can/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received

My MAC OS version is 10.8.2.

Does anyone have a idea ?

Thanks.

From the log trace and from your screenshot one can see that ssh-agent is not running.  That is what is causing your ssh session to hang and not respond.

There might be multiple reasons for your ssh-agent not running, including misconfiguration or conflict between different versions of ssh binaries installed (Apple original one, macports or brew installed).  The best and easier, unless you're sure what you're doing and you have a reason to do it, is to stick with Apple's original.

Try to revert to a backup installation or re-install OSX properly.

This other question on ServerFault (and my answer) may help you further.


How do I force my MacBook Air into "hibernation" mode? I have a MacBookAir3,2 (late 2010) running 10.9.3.

I want to be able to force the machine to immediately go into "hibernation" mode, but it seems impossible.

The usual answer that I have seen is sudo pmset -a destroyfvkeyonstandby 1 hibernatemode 25 but when I sleep/wake my Mac with those settings, I am not asked for my FileVault password.

Additional Info:

Power Nap is disabled for Battery and A/C power
Fast User Switching is disabled
Preferences » Security & Privacy » General » Require Password is set to “immediately”

I have run sudo pmset -a destroyfvkeyonstandby 1 hibernatemode 25 autopoweroff 1 autopoweroffdelay 14400 standby 1  but note that 'autopoweroff' and 'autopoweroffdelay' are both absent from my pmset settings:

System-wide power settings:
 DestroyFVKeyOnStandby      1
Active Profiles:
Battery Power       -1
AC Power        -1*
Currently in use:
 standbydelay         0
 standby              1
 womp                 1
 halfdim              1
 hibernatefile        /var/vm/sleepimage
 darkwakes            0
 networkoversleep     0
 disksleep            10
 sleep                180
 hibernatemode        25
 ttyskeepawake        1
 displaysleep         10
 acwake               0
 lidwake              1

Putting the computer to sleep, either by closing the lid or sudo shutdown -s now and then waking it back up within a minutes or two does not require me to enter my FileVault password, just my regular account password.

Is there a way for me to force the Mac to hibernate?

I had simmilar issue and it was because my Macbook Air was connected to charger. When I disconnected it before closing lid - Mac went to hibernation as supposed.

Then I've read on somewhere ( forgot source ) that Mac won't go into hibernation mode until you plug out all external devices ( USB etc. ) and disconnect power adaptor. When it's connected to power it won't go to hibernate under any circumstantes ( so it's better to shut it down if you have to charge it ).


Is it possible to use USB output and audio port output at the same time? I want to use two headphones simultaneously; one USB and another through the audio port listening to the same audio source (i.e iTunes, Spotify, or Netflix) at the same time. Is it possible?

Info about my device,

MacBook Pro (Retina, 13-inch, Early 2015)
2.9 GHz Intel Core i5
OSX El Capitan 10.11.6

The short answer is YES.

What you are asking is called "aggregating your device."  This is done through MIDI Audio Setup found in Applications -> Utilities

In the image below, MIDI Audio Devices is opened up.  I have highlighed the two output audio devices I want to aggregate; notice both of them are outputs (0 in/ 2 out).

When you click the "+", select "Create Aggregate Device"

When you create your device, just select the devices from the right you want to aggregate into one.  In my example, I have selected the Built in Audio and my USB Codec from the previous example.

Close MIDI Audio Setup.  When you open Sound Preferences, you will see the new output device.  Select your new aggregated device to have sound output on all devices.


Server App Version 5.3.1 won't take password My server app (OS X Sierra) will not take the admin password despite confirming that the password is correct when doing other administrative tasks. I have read that the Server App can 'just die' after the first install and I also read that you can enter sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.servermgrd.plist in Terminal to load it, but that file is no longer located there (It moved in version 4)

I can't administer the server (I need to set up multiple share points) because it won't allow me in.

Any ideas/suggestions would be appreciated.

Make sure you are using the latest version of Server that can run on your OS. You can try to repromote Server, by closing the app, moving it (the Server.app in /Applications) to the trash and waiting for the "Server Removal Detected" dialog to come up. After that you move it back to /Applications and launch it. It should ask you if you want to update Server on this machine. Update and see if that solves your problem.


How can I diagnose my iPhone 4-Time Capsule wifi connection problems? My CDMA iPhone 4 (model MC677LL) running iOS 5.0.1 (9A405) doesn't have any problems connecting to my Time Capsule's Wifi Network (firmware: 7.6.1), but most of the time, the connection doesn't seem to be of any use. The phone shows good signal strength, but attempts to use that connection- Mobile Safari, Tweetbot, syncing OmniFocus- mostly time out. Note: the connection will still work for laptops/desktops running OS X while the phone is having problems.

This used to happen before updating to iOS 5, fwiw.

The only other thing that might be of any use in diagnosing this is knowing that I also have an Airport Express (firmware 7.6.1) in the living room which joins the Time Capsule's network so I can AirPlay right to the stereo.

To fix this, I've tried:

switching the connection's DNS server(s) between the Time Capsule (10.0.1.1) and Google's DNS (8.8.8.8, 8.8.4.4), plus switching the Time Capsule's DNS server(s) between the default for my ISP and Google.
Forgetting the network on the phone
Doing a hard reset on the phone
Hitting "Renew Lease" on the connection through the Settings panel on the phone
Switching the Time Capsule's wireless settings from a specific radio channel to automatic and back again
Turning interference robustness on and off

Like I said, though, the problem isn't that I can't connect. The problem seems to be a level or two up from connecting, but I can't think of any way to diagnose that. I guess the next time I catch it happening, I can try opening a site in Mobile Safari using a known IP address, but where could I go from there?

I'd love to get some good recommendations for diagnosing this on a deep technical level, including suggestions for specific tools, or links to helpful walkthroughs.

Have you tried testing the connection coming straight from the modem? The only good way to really test this is by connecting a computer directly to the modem over ethernet and seeing what kind of connection you have.

Does Airplay work for you? If so, another reason why I think there's nothing wrong with the router. Have you done a hard restart of your modem. Try that first as it's the resist thing to do.


Unable to change desktop background in Macbook Air I recently got a MacBook Air at work and since I've never used Mac OS before, I googled how to change the desktop background and the login screen from the preloaded awful looking company background pic. However, going into System Preferences and changing it from there didn't work. I even tried to take a random pic and change that to the desktop background by right clicking and clicking Share. There was no option for changing desktop background.

If the change desktop background option has been disabled by the IT admin, is there any way around it?

To change Desktop go to System Preferences and select Desktop and Screen Saver. When that panel opens select the Desktop Tab. This will bring up many options for a Desktop. You can scroll down on the left and goto Folders. You can select an image file to use as your desktop. Or is you go to the Apple selection there are many images to choose from.

The internet is also quite littered with images sized for mac desktop. A google search on mac desktop images will give you plenty oh hits.


How to resize finder icons in 10.7 Lion How do I resize icons in Lion's finder. So for example if I wanted to resize the icons in the application folder. In Snow leopard, there used to be a slider at the bottom of the finder page, but thats gone in Lion.

In the menu bar click View -> Show Status Bar

The status bar will appear at the bottom of the Finder window with the icon size slider on the right hand side.


Fix hard disk not detected after force eject I got an HDD on my Mid 2012 Macbook Pro 13 inch. I decided to upgrade to SSD and I want a clean install of El Capitan. After the SSD ugprade and OS installation I connect my old HDD as an external storage thru USB. After copying the files from the old HDD, I want to eject the HDD but it won't allow and the system shows a message that something is using the HDD and give me an option to force eject. So I force eject the HDD. After a while, I need to connect again the HDD to copy some files, but this time around the HDD is not anymore detected. I'm sure the external closure is fine because it can detect other HDD when I try to replace it.
When execute the diskutil list, I got the results below. But HDD is not listed on the Disk Utility window. I read that the HDD maybe corrupted (External hard disk not showing up on finder and can't be verified in Disk Utility). Is there still a way to fix the HDD?

/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_CoreStorage SSDCrucial01            499.2 GB   disk0s2
   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3
/dev/disk1 (internal, virtual):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                  Apple_HFS SSDCrucial01           +498.9 GB   disk1
                                 Logical Volume on disk0s2
                                 D54522C3-5817-4D10-A1C8-C35193CA2F78
                                 Unencrypted
/dev/disk2 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *500.1 GB   disk2
   1:                        EFI EFI                     209.7 MB   disk2s1
   2:                  Apple_HFS Macintosh HD            499.2 GB   disk2s2
   3:                 Apple_Boot Recovery HD             650.0 MB   disk2s3

The only i way i Fixed my HDD when i forced ejected is to do as Pelang said. PRAM reset and wait 3 sounds. It really important to plug your HDD while doing that PRAM reset, after 3 sounds its going to fix it.


It is 2013. Is it feasible to purchase an iPhone 3GS for telephony and skype? I'm thinking about getting an iPhone for a friend whose vision is decaying because of the possibility of making it display large text.

However, the budget is very tight, buying a new iPhone is out of the question. She needs only basic services: telephony, the occasional text message, and Skype.

Would a used iPhone 3GS make sense for this? According to GSMArena, the 3GS is still supported by iOS up to version 6, which (so I understand) makes Skype compatibility no problem. Is there anything else that might speak against getting her this 4-years-old model?

If you are thinking of doing video Skype then you better go with the iPhone 4 as the 3GS doesn't have a forward facing second camera.

The iPhone 3GS will likely be somewhat sluggish (depending on what you are used to), but it does go to iOS 6, and is a great phone - especially for calling and texting (although I have seen the keyboard be sluggish, which wouldn't be a problem if they were typing slow).


When downloading in Safari there is significant upstream data, why? Most of the time (all of the time?) when I download a large file using Safari from any website I see 1/3 as much data being uploaded. So if I'm seeing 3MB/s downloading I'll see about 1MB/s uploading. I'm not doing anything else.

What is being uploaded?

To be clear, when the App Store is downloading updates this doesn't happen. 3MB/s downloading in the App Store will show about 80KB/s uploading, which is commensurate with my vague memory of how TCP/IP verifies packets received.

Is Safari automatically doing something like Bit Torrent?

No, Safari is not automatically doing anything like BitTorrent. No need to worry about that.

When downloading a file over HTTP/HTTPS (normally the case with Safari), the system needs to upload as well in order to facilitate the transfer of the file. This cannot be avoided no matter which browser is used.

Normally the internal "house keeping" that is uploaded is small compared to the amount of downloaded data. However, it can vary depending on configuration settings, network circumstances, etc. I.e. for example if you choose to have a low MTU settings, if you have lots of network errors (failures and retransmits), etc. - the amount of upload overhead can be larger than normal.

However 1 MB/s compared to 3 MB/s seems quite excessive. I would investigate further if the upload really stems from Safari or not. Try:

(a) downloading from other sites to see if the effect persists,

(b) download with a different browser than Safari to see if the effect persists,

(c) ensure that you haven't got other programs running that might be uploading, for example a continouus backup program (like Crashplan, Backblaze or similar, or even Time Machine) that simultaneously uploads the downloaded file to your cloud backup or NAS,

(d) if all else fails, create a dump of your network traffic and examine with Wireshark or similar to see what exactly is transferred over the network.


Switching to Russian keyboard from Japanese still types in English I feel like this (bug?) started happening after one of the latest OS updates applied.

I'm currently using Mac OS X High Sierra (10.13.2).

Steps to reproduce:

Start OS
Switch language to Russian
Able to type in Russian
Switch language to English

Result:

Still types in English, even though it shows Russian as selected language....

There is a known bug with 10.13.2: Switching from Japanese (or Chinese or Korean) to Cyrillic, Arabic, Hebrew, or Greek will not work, you must first switch to US (or some other Latin layout) in between.

Ask Apple to fix this via their feedback page.


Cannot uninstall third party softwares in mac I installed software which was downloaded from net

But when i tried to uninstall this app in mac, i searched in finder but nothing shows to uninstall.

But this app is in installation list

How to uninstall this software from MAC

Contact Mobile Stream

Contact the developers of Easy Tether USB, Mobile Stream. They are best placed to help you remove the software.

By contacting the developers, you will help prompt them to provide better uninstall support.

Manually Removing Easy Tether's KEXT

If Mobile Stream are unable to help, you can manually unload the kernel extension using the following command:

sudo kextunload /System/Library/Extensions/EasyTetherUSBEthernet.kext

Next, find and remove the following file. You will need administrator rights to delete this file:

/System/Library/Extensions/EasyTetherUSBEthernet.kext

This assumes you installed the EasyTether - Android Tether Solution driver.


SSH to VirtualBox Mac Host Linux Guest using NAT How to configure ssh OS X host with Linux guest, so I can access my guest OS through SSH. I've tried:

But when I tried to ssh from host, it failed:

> ssh localhost
ssh: connect to host localhost port 22: Connection refused

I've tried to set the ip (host 10.0.0.10, guest 10.0.2.15) on the port forwarding, it gives the same output.
I've tried to bind the host to higher address (2222), but got no luck, the host still doesn't listen on port forwarding port.
It doesn't work like this answer: VirtualBox Host ssh to Guest

I could not even ping the guest from the host:

PING 10.0.2.15 (10.0.2.15): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
Request timeout for icmp_seq 2
^C
--- 10.0.2.15 ping statistics ---
4 packets transmitted, 0 packets received, 100.0% packet loss

But ping works fine from guest to host, ssh from guest to localhost is also ok, the PermitRootLogin is yes, the netstat result is ok:

EDIT after switching to bridged mode, it works fine.

After adding a port-forwarding rule (e.g. SSH TCP 10.0.0.10 2222 10.0.2.15 22) enter in the host's Terminal.app:

 ssh user_name@host-ip -p forwarded_port

Example with the rule above:

 ssh user_name@10.0.0.10 -p 2222

Don't use identical ports in the rule (host's port ≠ guest's port) like in your screenshot. user_name has to be the name of a remote access enabled account on the guest OS.

You may even skip the IP addresses (10.0.0.10 and 10.0.2.15) in the rule and either use:

 ssh user_name@10.0.0.10 -p 2222

or

 ssh user_name@127.0.0.1 -p 2222

or even

 ssh user_name@localhost -p 2222


How do I view emoji in Google Chrome in Lion? This question is an extension of Daniel L.'s question and my own question. I upgraded to Lion after asking my question. I'd like to be able to view emoji in Chrome when using Lion.
So stuff like this:    I'd like to be able to see in Chrome. How do I do this? If possible, I'd like to use the system font that's already included on OS X Lion.

This isn't exactly what you're looking for, but it should actually work, which is an advantage.

Create a service in Automator. The service takes no input.

Two actions.

First action:

Run AppleScript
Here's the script:

on run {input, parameters}
    tell application "Google Chrome" to activate
    tell application "System Events" to tell application process "Google Chrome" to set myvar to value of text field 1 of tool bar 1 of window 1
    if myvar contains "://" then
        -- do nothing
    else
        set myvar to "http://" & myvar
    end if
    return myvar

end run

Second action:

Website Popup

Assign it a keystroke and you're good to go.


Creating an Automator app I would like to have a clickable app that will open a terminal window, run the script:

defaults write com.apple.finder AppleShowAllFiles YES

and then close the terminal app. (and another to turn off the show all, same script with No at end). Automator seems to have a lot of potential, with not enough documentation that's easily found.

not enough documentation

Umm...Welcome to Automator - Apple Support

This is also a great link

There is so many different ways of doing what you want.

Option A: Shell Script (Does in background)

Option B: Open Terminal Window

A

Option 1: Pure AppleScript (Using /Applications/Utilities/Script Editor.app)

do shell script "defaults write com.apple.finder AppleShowAllFiles YES"

Option 2: Pure Automator

Option 3: Automator + AppleScript

B

Option 1: Pure AppleScript

tell application "Terminal"
    activate
    do script "defaults write com.apple.finder AppleShowAllFiles YES"
end tell

Option 2: Automator + AppleScript

(A3 with the in B1)

For the toggle hears the AppleScript Code to be used in any option of your choosing:

set a to (do shell script "defaults read com.apple.finder AppleShowAllFiles")
if a is "YES" then
    do shell script "defaults write com.apple.finder AppleShowAllFiles NO"
else
    do shell script "defaults write com.apple.finder AppleShowAllFiles YES"
end if

Export Options

Script Editor:

File>Export

File Format: Application

Automator:

Choose Application when creating a new document


macOS - Difference between /Library/Preferences/ & /Library/Managed\ Preferences Just for my learning and knowledge purpose why some .plist files are saved inside of /Library/Preferences/ and some others are saved inside of /Library/Managed\ Preferences?
Basically what is the purpose of differentiate the location of .plist among these two specific directories?
Side Note: the macOS system is managed by an MDM solution.
Thanks

Managed Preferences were used by Casper Suite (now Jamf Pro).
According to the Casper Suite Administrator's Guide v9.97:

Managed Preferences are manifest files that define preferences for computers and users. You can use the JAMF Software Server (JSS) to create Managed Preference profiles, which contain groups of Managed Preferences. You can also specify the users and computers for which a profile should be applied (called “scope”).

But Managed Preferences has been removed since Jamf Pro 10.0.0:

The following functionality has been removed:
[...]

Managed Preferences—Support for managed preferences has been removed. It is recommended that you use macOS configuration profiles to define settings and restrictions for computers and users.

[...]

They were based on the now deprecated Managed Client for OS X (MCX).


How to make Mail not to open it's window automatically? I always keep the Mail application running in the background (there is a dot below the Mail icon in the Dock but a Mail window is not open) to get notifications about new messages. When I finish work, I don't turn my MacBook off, I make it sleep by shutting the screen pane down. Every time I awake the MacBook in the morning, a Mail window opens as soon as an Internet connection is established. It is very annoying. How to prevent Mail from opening the window on the day first login?

The «Open at Login» option is not turned off in the Mail context menu in the Dock. The Mail application is not listed in «System Preferences» – «Users & Groups» – «Login items».

Environment:

MacBook Pro 13" 2012, MacBook Pro 15" 2015
macOS 10.13.4, 10.15.2
Mail 11.3, 13.0

Update. Starting from macOS 10.14 Mail opens not only on login but occasionally with no apparent reason (it is very annoying when I'm using a fullscreen application).

This has been an ongoing issue since I got my first Mac way back in 2014. There are a lot of window related issues with mail, but they haven't been resolved for years and probably never will be. Sorry to tell you you're going to have to get used to it. Another annoying problem I've experienced with every Mac I've ever used now is if you have a Mail message open in its' own window but not the main window and you click the Mail icon in the dock it'll open the main window on top of the message window. Intuitive!


Is it possible to control the Apple TV with the LG Magic Remote? The LG Magic Remote is a strange beast, because by default, the signals it sends to LG TVs tend not to be picked up by other IR controls (I don't know if that means it's communicating some other way, or whether the IR frequency it uses is really unusual). As a result, the Apple TV's "Learn Remote" functionality does not work straight away when operating the LG Magic Remote.

Nevertheless, there is a feature of the LG TV to configure its remote to serve as the universal remote of various inputs (i.e. select DVD player on HDMI 2, pick a make, verify it works, and then the remote will start sending IR signals whenever HDMI 2 is active).

The Apple TV is officially not supported by LG (per their phone support) and Apple does appear as a valid make when selecting a remote type. So I figured based on googling, that if I picked any nonsense DVD player, the remote would at least start sending IR signals that could be learned using the Apple TV "Learn Remote" feature.

Those linked threads report success, but in fact their advice of "rapidly mash buttons" for the Apple TV to learn the IR signal didn't work in my case, and I suspect it's a function of the newest 2017 version of the remote (I'm testing on an LG OLED65C7P). I've tried a dozen different "set top box" and "dvd/blu ray" device types, and in each case the IR signal for the arrow buttons is not strong enough for the Apple TV to register them at all.

Any ideas on how to overcome this?

I found a really gross workaround.

Buy a learning universal remote. I used this old thing
After selecting any "DVD/Bluray" make from the LG TV UI, have the learning remote learn the keys you want to use for ⬆
With both remotes, sit by the Apple TV and hold and/or mash that key. After a dozen or so tries the Apple TV should eventually fill its progress bar and accept it.
Repeat for ,⬇,⬅,➡, OK, and Menu. Note that the button in the center of the magic remote and most settings buttons around it are not programmable, so I had to settle for "O" to mean "OK" and "8" to mean "Menu"

Not ideal, but better than nothing. LG Magic Remote now works fine for navigating the Apple TV


I upgraded an app on my iPhone 4, but this new version doesn't work. How do I replace for the older version? I did the stupidity of upgrading the newest version of AM 880 KIXI radio, a retro radio station in Seattle. The version I had was the previous one, the 2.8 and I held off upgrading for a long time, but in a moment of insanity, decided to do it and deleted the app and downloaded again on the AppStore, thus downloading the 3.6 version, the next one after the 2.8- i tried uploading directly, but I kept being redirectioned to the app itself, that's why I deleted before downloading again.
The thing is my internet connection isn't that good, but the app always worked fine, but now with this version it keeps buffering at lot and it doesn't even show the music that's playing anymore, even when my connection is speedy. Is there any way to undo this? I have an iPhone 4 that hasn't been backed up to a computer, so I don't have the previous version saved as a .ipa file. I have iOS 7.0.4.  Seriously, what do I do? I know I sound desperate, but I listen to this station very single day, specially during work(I'm a translator) and it's essential for me to help concentrate. Is there any way I can retrieve the previous version of the app I was using? I also tried clicking on app support, next to the reviews on the AppStore to try and get in touch with the developer, but I keep getting 404 error. Seriously, I really need the 2.8 version back on my phone- I beg for help.
If it's necessary, I will jailbrake my phone, but as long as it's guaranteed I can have the 2.8 version of that app and download it.

Do you have a backup? Time Machine or otherwise? If so you can restore the file from a backup.

The iPhone apps are located in ~/Music/iTunes/Mobile Applications and end with the ".ipa" extension.

It has been a while since I tried this but I think you just have to place the restored file in the proper folder and sync your phone.


mdfind and the apostrophe In terminal if I type

mdfind -onlyin ~/"Desktop/Shows I Watch" "Bob"

I get the output

  /Users/brendans/Desktop/Shows I Watch/Bob's Burgers

As I would expect. But if I try

mdfind -onlyin ~/"Desktop/Shows I Watch" "Bob's Burgers"

I get nothing. I've tried lots of different escape keys for the apostrophe, but they all return nothing.

Here's a list of everything I've tried:

mdfind -onlyin ~/"Desktop/Shows I Watch" "Bob\'s Burgers"
mdfind -onlyin ~/"Desktop/Shows I Watch" "Bob\''s Burgers"
mdfind -onlyin ~/"Desktop/Shows I Watch" "Bob''s Burgers"
mdfind -onlyin ~/"Desktop/Shows I Watch" "Bob\\'s Burgers"
mdfind -onlyin ~/"Desktop/Shows I Watch" "'Bob'\\''s Burgers'"

What am I missing here?!?

You need to escape the single apostrophe with a single backslash and do not quote the show name if it has an apostrophe, just escape any spaces with a single backslash too, as in the examples below:

$ mdfind -onlyin ~/Desktop/"Shows I Watch" Bob\'s\ Burgers
/Users/name/Desktop/Shows I Watch/Bob's Burgers
$ mdfind -onlyin ~/Desktop/Shows\ I\ Watch Bob\'s\ Burgers
/Users/name/Desktop/Shows I Watch/Bob's Burgers
$

It should actually work with the show name in quotes as in the first example you have under "Here's a list of everything I've tried:", it worked on my system.

$ mdfind -onlyin ~/"Desktop/Shows I Watch" "Bob\'s Burgers"
/Users/name/Desktop/Shows I Watch/Bob's Burgers
$


Looking for a voice recording software with visualizer I am looking for a software that will let me record my voice and create a video with visualizer (correct me if my choice of words is wrong) that is sensitive to my voice like TV professionals show on screen when they do not have a video footage to go with it. A wave that moves up and down when the person is speaking and comes to rest when there's no audio activity.

Here's an example of what I want as the end product (see how it's jumps only when the music is playing):

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

but a lot more formal and preferably in a wave format ().

Did you tried to use Quick Time Player to record your voice? note that the visual could you wnat is up to you and it could be done by VLC player.


Use AppleScript to raise and focus on window I'm new to AppleScript. I'd like to write a piece of AppleScript that will raise and give focus to a particular Chrome window given a string that appears in the window name. After poking around a bit, I found the following:

tell application "Chrome"
    activate
    set index of first window whose name contains "mail" to 1
end tell

That makes Chrome the current application and puts the right window on top, but that window doesn't have the focus. Is there something I can add to this to direct the focus to that window (or is there a better way of doing this)?

In case it matters, I'm running Mojave.

I ended up doing this by clicking on the desired window in the Window menu:

tell application "System Events"
    tell process "Google Chrome"
        set frontmost to true
        click (first menu item whose name contains "mail") of menu "Window" of menu bar 1
    end tell
end tell


Can you scan a document directly, instead of an overview scan first? It honestly really annoys me that every time I have to scan a document it requires me to do an overview scan. Isn't there a way to skip that part if you just want to scan A4 color/B&W using Image Capture on OS X.

I've got a Canon MG5300 printer, although this is irrelevant as an overview scan is required on every printer.

If this can't be accomplished natively, a (great) third party app would be sufficient.

You may be able to configure the scanner so that pressing the button on the console automatically sends the image data to a folder on your computer, without going through Image Capture.

Another option, since you asked about third-party apps, is Vue Scan which is well-supported, and can scan without first doing a preview.

(edit to add) yet another third-party app would be Paperless, which while technically is more of an archiving solution, it also will scan directly to its library without a preview.


How to find arguments to an application on macOS X? I am looking for a way of finding out undocumented command arguments to a application on macOS.

For example, I can run something like this:

/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome  --remote-debugging-port=xxxx

Where --remote-debugging-port is a command-line argument to the Chrome app. I would like to know more undocumented arguments for such apps, say /Applications/Safari.app/Contents/MacOS/Safari.

PS: My question is something similar to this one: https://stackoverflow.com/questions/8869219/how-can-i-find-out-if-an-exe-has-command-line-options - which is for Windows.

Argument handling is part of the application code so there is no easy way to find these options from the outside. Besides searching on the Internet you can run

strings ANY-BINARY | grep '^--'

to search for them within an application. If you do so you will need to look both in .../MacOS/* and in any frameworks included in .../Frameworks.


Transferring from Time Machine shows "MacPorts". What is this and should I transfer it? I am restoring from a Time Machine backup. Along with Applications, my user directory, and a few other expected things, I see an item called "MacPorts", which has a size of Zero KB.

I have no idea what this is or if I did anything over the 8 years I've had my old Mac that would have created it. What is it and should I transfer it?

MacPorts (a package manager similar to homebrew or Fink) creates an additional user with the name MacPorts/macports and a group with the name macports. Usually the UID(MacPorts) is the last regular user's UID+1 and the GID=UID(MacPorts).

After a normal OS X install this is 502/502 (if only one user is configured = admin) or 503/503 (if two users are present = admin and standard user).

Though the user has a non-system-user UID (>500), the account isn't visible in the Users & Groups System Preferences because it is marked as disabled. Time Machine/Migration Assistant still recognizes it.

If you don't use MacPorts anymore, you can safely ignore the account and uncheck the checkmark.


repeat actionscript in Sierra? Could you help me fix the following script?

I have an actionscript which I use within Automator to pad any size image thrown at it into a square canvas. In other words, you need not feed it the literal dimensions of the longest side and then tell it to match the other dimension with the same pixels. (For 3000 images that would take up as much time as exporting each one manually.)

Up until Sierra, this script would work for any number of images that I threw at it, whether I told Automator to act upon selected images, images within a folder, or if I specified the images from within Automator. Now when the script begins, it opens a Finder window requesting for me to select a single item.  (And choosing multiples from within this window will not solve the issue, as the script is looking to process one item per iteration.) In other words, the script runs once then ends. I'd like to know how to get it to run for number of items need, and I'd like to know how to make the script work without requesting items from a Finder window, particularly if I already used Get from within Automator to choose the items in question.

So it is clear that the script is behaving differently now, not the workflow in Automator. And to further test this, the script could just as easily be run from the AppleScript Editor, but it does the same thing.

Here's the script in question:

set this_file to choose file without invisibles
-- indicate the proportions for the pad area
set H_proportion to 1
set V_proportion to 1
try
    tell application "Image Events"
        -- start the Image Events application
        launch
        -- open the image file
        set this_image to open this_file
        -- get dimensions of the image
        copy dimensions of this_image to {W, H}
        -- calculate pad dimensions
        if H_proportion is greater than V_proportion then
            set the new_W to (H * H_proportion) / V_proportion
            set pad_dimensions to {new_W, H}
        else
            set the new_H to (W * V_proportion) / H_proportion
            set pad_dimensions to {W, new_H}
        end if
        -- perform action
        pad this_image to dimensions pad_dimensions with pad color {65535, 65535, 65535}
        -- save the changes
        save this_image with icon
        -- purge the open image data
        close this_image
    end tell
on error error_message
    display dialog error_message
end try

If I understood your question, you do not want it prompting for the files to act upon and you want it to act upon all specified files, the following will do that.

In Automator, create a new Workflow. (Automator > File > New > Workflow)
Add a Get Specified Finder Items action.

Add the items you want to be in the Get Specified Finder Items action. The items can be files and or folders.

Add a Get Folder Contents action.

This is to handle if an item in the Get Specified Finder Items action is a Folder.

Add a Run AppleScript action.

Add the following AppleScript code to replace the default code.

on run {input, parameters}
    set list_of_files to input
    repeat with this_file in list_of_files
        -- indicate the proportions for the pad area
        set H_proportion to 1
        set V_proportion to 1
        try
            tell application "Image Events"
                -- start the Image Events application
                launch
                -- open the image file
                set this_image to open this_file
                -- get dimensions of the image
                copy dimensions of this_image to {W, H}
                -- calculate pad dimensions
                if H_proportion is greater than V_proportion then
                    set the new_W to (H * H_proportion) / V_proportion
                    set pad_dimensions to {new_W, H}
                else
                    set the new_H to (W * V_proportion) / H_proportion
                    set pad_dimensions to {W, new_H}
                end if
                -- perform action
                pad this_image to dimensions pad_dimensions with pad color {65535, 65535, 65535}
                -- save the changes
                save this_image with icon
                -- purge the open image data
                close this_image
            end tell
        on error error_message
            display dialog error_message
        end try
    end repeat
    return input
end run


MacBook Pro won’t sleep automatically — no process preventing sleep according to pmset. What’s going on? i noticed the following problem with my MBP 8,1 running 10.7.2 — automatic sleep just doesn’t happen. Since I usually put my Macbook to sleep manually before leaving the desk etc. I just noticed this issue and can’t really pinpoint it to specific updates.

What happens automatically is display sleep. Computer sleep just doesn’t occur.

Closing the lid works, selecting “sleep” from the Apple menu works. The only way to put my MBP to sleep automatically is currently PleaseSleep, which works fine.

Here’s pmset -g:

pmset -g
Active Profiles:
Battery Power       1
AC Power        -1*
Currently in use:
 standbydelay   4200
 standby    0
 womp       1
 halfdim    1
 panicrestart   157680000
 hibernatefile  /var/vm/sleepimage
 sms        1
 networkoversleep   0
 disksleep  10
 sleep      10
 hibernatemode  3
 ttyskeepawake  1
 displaysleep   3
 acwake     0
 lidwake    1

As you can see, no process is preventing sleep.

Here’s pmset -g assertions:

pmset -g assertions
25.12.11 03:05:34 MEZ
Assertion status system-wide:
   ChargeInhibit                           0
   PreventUserIdleDisplaySleep             0
   PreventUserIdleSystemSleep              0
   NoRealPowerSources_debug                0
   CPUBoundAssertion                       0
   EnableIdleSleep                         1
   PreventSystemSleep                      0
   DisableInflow                           0
   DisableLowPowerBatteryWarnings          0
   ExternalMedia                           0

Kernel Assertions: 0x0004
 * Kernel Assertion ID = 500
   Created At = 01.01.70 01:03:17 MEZ
   Modified At = 25.12.11 02:46:14 MEZ
   Owner ID = 0xffffff800b664000
   Level = 255
   Assertions Set = None (4)

 * Kernel Assertion ID = 501
   Created At = 01.01.70 01:03:21 MEZ
   Modified At = 01.01.70 01:00:00 MEZ
   Owner ID = 0xffffff800b674000
   Level = 0
   Assertions Set = None (4)

 * Kernel Assertion ID = 502
   Created At = 01.01.70 01:05:31 MEZ
   Modified At = 25.12.11 02:38:13 MEZ
   Owner ID = 0xffffff800b704200
   Level = 0
   Assertions Set = None (32)

Any ideas? I tried resetting the SMC, to no avail.

Bluetooth is off, Sharing is off. Automatic sleep doesn’t occur both on power adapter and battery power. Unplugging USB hub with things like keyboard/mouse connected makes no difference.

Thanks in advance!

EDIT Just booted into safe mode, and automatic sleep definitely works then.

EDIT 2 After removing Google Software Update, automatic sleep miraculously started working again.

Do you have Bluetooth turned on and if so, in the advanced tab of the bluetooth preference panel to you have the checkbox checked that allows bluetooth devices to wake your computer?

I had a similar problem and found that my magic mouse was preventing hibernation with the lid open.


Install backup of my old Mac on my new one I got a new MacBook Pro with Catalina on it. I made a APFS formatted Copy of my old Mac and want to install it on a separate Partition on my new MacBook Pro so that when I start the new MacBook I can switch between the new one and the old one but I can't figure out how to do that.

You could use the Disk Utility to create a new APFS volume in your current APFS container. Next, download macOS Catalina from Apple App Store which will appear as the Install macOS Catalina application. Run this application and install Catalina in the new volume. Boot to the new volume and run the Migration Assistant application to transfer applications and data from the old Mac. This transfer is in the form of a copy. In other words, nothing is removed from the old Mac.


Can I connect any Thunderbolt 1/2 device to a Thunderbolt 3 adapter? I have a few Thunderbolt 1/2 devices (eSata connectors, DVI/HDMI connectors, etc.) I still have an older device that uses these connectors. Now I'm using a new MacBook Pro with Thunderbolt 3. I noticed that there is a Thunderbolt 2 to Thunderbolt 3 adapter at the Apple store.

Will it work with any devices?

I don't want to spend money on a adapter that may not fit my needs, and I don't want to buy all the adapters again for the new format USB-C / Thunderbolt 3. ☺

Yes, you can use the Thunderbolt 3 (USB-C) to Thunderbolt 2 Adapter to connect your Thunderbolt 2/1 devices to your new MacBook Pro.

From Apple's webpage:

  The Thunderbolt 3 (USB-C) to Thunderbolt 2 Adapter lets you connect
  Thunderbolt and Thunderbolt 2 devices — such as external hard drives
  and Thunderbolt docks — to any of the Thunderbolt 3 (USB-C) ports on
  your MacBook Pro.


how can I search for folders ending in certain characters in Finder? Executing a Finder search for folders seems limited to searching for folder names beginning with the search term. I can't search for folder names only using a characters in the middle or end. I'm having to resort to using the find command from Terminal. Any way around this? Below is a sample folder and multiple search attempts:

This is my first post here so I can only post two images, apparently. I have an additional screen shot showing a search for "jo" which indeed reveals every subfolder beginning with "jo". I have a fourth screen shot showing that a search for "bert" fails to return "robertson" "colbertson" etc. Those searches were both name-based searches with the same "kind" restriction to folders only.

What's up with this?

I haven't found a way to get variables in spotlight, but I must be misinformed since that seems so useful to not implement.

That being said, I use terminal and mdfind to parse spotlight like you have all the time.

mdfind "kMDItemFSName == '*son' && kMDItemKind == 'Folder'"

That will show you all folders ending in son and you might want to grep for the "sample names" folder name to replicate the search you have illustrated or use the -onlyin command:

mdfind -onlyin dir "kMDItemFSName == '*son' && kMDItemKind == 'Folder'"

You can drag the folder into terminal to get a properly escaped name with spaces encoded and then paste that in place of dir


How do I prevent iPhoto from opening every time I plug in my iPhone Possible Duplicate:
  How can I prevent iPhoto to open everytime I plug my iPad?

Every time I plug in my iPhone to my MacBook Air iPhoto pops open, how do I make it stop?

You might want to look at this question: How can I prevent iPhoto from opening everytime I plug my iPad/iPhone?

The summary is that Image Capture has an option to change what happens when a camera is attached to the computer.


Can Resorcerer work in Snow Leopard in VMWare Fusion 6? Since Resorcerer (2.4.1) won't work at all in 10.7 and later, I tried it in a virtual machine running Snow Leopard Server 10.6.8 in VMWare Fusion 6.0.6.  But when I select a resource and click the Hex button, nothing happens. No error message, nothing in the Console log.  I tried nuking the Resorcerer preference file and increasing the RAM assigned to the VM.  Is there any way to get it to work?

Since Apple discourages the use of resource forks in new Mac OS X applications and prefers the application bundles instead, I doubt you will find that much "classical" resource forks anymore.

If you still need a similar app try Rezilla instead. It works natively at least in 10.7-10.9.


How can you change the iCloud account name on iOS 10? Is there any way to change the iCloud account name (not the actual email address, just the name of the account as in System Preferences/Internet Accounts on macOS) on iOS?

I know this had been possible in the past, but I can't find the setting anymore.

Settings → Apple ID → Name, Phone Numbers, Email → Name


MDS Error: /var/folders/lM I've been getting this error coming up in my system log.  Having looked around for an answer, two things came up commonly: a problem with the spotlight database(s), and permissions on those folders.

Well, I played with permissions and even deleted some of the folders in question to see if they would be re-created properly.  I think that was a mistake, there were odd side effects, so I tried my best to restore the folders to the way they had been previously.

Also, resetting MDS didn't help much.  Most recently the error comes up when Outlook refuses to get my mail properly.

It's also always followed by Quicklook-related errors as well.

From Apple Support Communities, with some correction:

Command-S at startup for Single User Mode
Repair the files ystem as indicated on screen using fsck (took three runs)
Mount the file system as indicated on screen, /sbin/mount -uw /
Go to /Library/Caches and do rm -rf *
Go to my home folder /Users/.../Library/Caches and do rm -rf *
Remove a Spotlight folder, rm -rf /.Spotlight-V100
Go to /var/folders and do rm -rf *
Start normally using exit or reboot command as indicated on screen

Be extremely careful with the rm -rf commands! To double-check that you're in the correct directory:

pwd

I hope that helps!


2008/9 Mac Pro wont turn on, front pannel LED is constant white My mac pro doesn't want to start up.

I purchased some new memory installed it (and cleaned up some of the dust on the inside of the box) and now the machine won't boot up.  I get a constant white LED on the front, no fans, no chimes, no other lights light up (RAM riser boards)?

I have removed the new RAM and replaced it with the old, in an attempt to just get the machine to boot.  No luck.

So now the box is back in its OEM state, but still wont boot.  I've tried the 15sec unplug / hold the power button down for 5 sec rest and  that didn't seem to work.

Any idea what might be going on?

I also swapped out a known working RAM riser from another box and still can't get it to boot up?

Sadly, the most likely cause is that you zapped your system board. If you used a household vacuum cleaner to remove the dust, this is highly likely.


How do I sync my iPhone to my new Windows computer? (My iPhone syncs fine with a bunch of other computers.)

iTunes won't run after installation.

I Download 64 bit iTunes from https://www.apple.com/itunes/download/

The installation on Windows 7 Enterprise goes without a glitch.

When I run it it says "Apple Application Support was not found. Apple Application Support is required to run iTuners. Please uninstall iTunes, then install iTunes again. Error 2 (Windows error 2)" (I get this message twice, with one minor variation. The advice does not help.)

I found articles on the net (https://discussions.apple.com/thread/2151777?start=0&tstart=0) which says to use WinRAR to unpack the installer and then install the components one by one.

Download and install WinRAR.
Right-click the iTunesSetup.exe icon and choose "Open with WinRAR".
Once the EXE is opened in WinRAR, double-click AppleApplicationSupport.msi and when the installer window is open choose "Repair".

iTunes now starts fine.

I connect my iPhone 4S. Nothing happens. It is not charging. iTunes does not discover it.

There is a message about "USB Hub Power exceeded." This happens regardless if I connect it directly or through any of my three (3) different externally powered USB hubs.

I had this before for USB Memory sticks as well, but re-installing drivers helped.

What do I do now?

I removed Citrix which was installed on my computer. See this link here: http://www.techsupportforum.com/forums/f10/solved-usb-hub-power-exceeded-767570.html

It now works.


Can I make my apple store app free with ads and give previous buyers ad free add-on? I am planning to make my app free with ads but include an option to remove ads. Can I automatically give the add-on to all the previous buyers?

Yes and there's a few different ways to do it.  The path I followed was to release a small update that use NSUserDefaults to write a bool property when the app was installed.  Then, when I distributed the app update with the ads, I'd read if the user had that bool value.  If they did, they were a previous owner and I wouldn't show the ads.  If not, they were a new owner and got the ads.

You can do the same thing by having the app set a value on your own server (the app would call your server upon installation with a user-specific string).  This would do the same as using NSUserDefaults except the value is stored on your server and not the user's device.

There's a few examples online including how to store the bool value that will stay with the user even if they delete and reinstall the app.


Why do some websites have weird scrolling mechanics? I'm not sure if this issue is specific to macs, but I'm guessing it is because mac has its own special scrolling features.

Almost every website and app on a mac has a specific feel to its scrolling. You get familiar with it after a while, and your fingers adjust to it so that you feel comfortable scrolling through webpages, apps, etc.

But then once in a while, I come across a website where the scrolling feels totally different. It starts slow, and then suddenly accelerates mid-scroll and doesn't slow down at the rate I'd expect. It's hard to describe what's so jarring about it, but it's really annoying given that any mac user has probably adjusted to the typical mac scrolling mechanics.

Here's an example of what I'm talking about.

Is there a way to disable this, or are we at the mercy of the website designer?

EDIT: Better (or worse) example

Your first example scrolls fine for me, however in both Safari and Chrome https://dlinkers.com/ scrolls abnormally (too) fast.

This has nothing to do with you, your browser, or with Macs in general. The blame is the website/web developer. There is JS somewhere telling it to scroll weird. I am too lazy to find it but its definitely there. If you want to test, disable JS on your browser and while to content won't load (again, more crappy design by the web devs) it will scroll properly.

TBH there's no solution to the problem other than contacting the company. When I come about sites with crappy design, unless I really need it, I will click off and find an alternative site. You don't deserve my business if you can't get basic things correct on your site.

One other solution is manually scrolling with the scroll bar on the right. Permanent viewing of the scroll bars can be enabled in System Preferences > General.


How do I ensure that users can run only applications that have been installed in /Applications? With managed (parental control) accounts and "Allow apps downloaded from Mac App Store and identified developers" enabled, users are still able to download and run other applications.

I want to prevent this.

You can easily do this by managing apps for that user in Parental Controls.

See this screen shot to limit apps. It is a per-app setting, so you need to maintain the list of allowed apps. The setting you posted in your question is for managing the code signing status of apps and not for restricting certain apps and certain user accounts.


Windows stopped working on Macbook I was able to install Windows 7 32-bit on my Macbook 2,1 and it functioned well. Not longer than a week later, Windows Boot Manager hanged, it was stuck on countdown and I couldn't select any other option, using the arrow keys didn't do anything, so I couldn't boot in safe mode, if somehow I was able to select an option (it would give me 1-2 seconds before it hangs), I would be greeted with a black screen and that's it.

I decided to just delete the Windows partition and install it again but it didn't appear to have solved the problem, the installation would also hang 1-2 seconds after the blinking underscore, the same that happened before I deleted the original Windows partition.

I noticed that if I wait a little longer, the progress bar for "Windows is loading files" is actually progressing, albeit at a very slow pace. When it finished, it would give me the Starting Windows screen, but no logo.

Again, I waited longer and then I saw the actual Windows installation, no longer hanging, I could move the cursor and install Windows 7. However, right after the first reboot and I would be greeted again by the Starting Windows screen, it no longer progresses, tried waiting for it overnight and woke up to the same Starting Windows screen.

Please help me, I've tried using a different Windows 7 ISO file and even tried Windows 10, and the same problem persists.

Any help would be very appreciated.

Basically, the answer to your question can be found at this link: "Installing Windows 7 or 10 Pro 64 bit without DVD or Flash Drive".

The Boot Camp Support Software (BCSS) for your model Mac is for a 32 bit install of Windows 7. However, I used the same BCSS to successfully install 64 bit Windows 7 and Windows 10 on a 2007 iMac. Since you have 64 bit processors and 4 GB of RAM, you may want to try a 64 bit version of Windows. If you do, then you will want to read this question/answer: "Using Boot Camp Support Software 4.0.4033 to install 64 bit Windows 7 or 8".

  Note: Your MacBook2,1 uses the same BCSS regardless of whether you are installing 32 Windows 7, 64 bit Windows 7, 32 bit Windows 10 or 64 bit Windows 10. For a MacBook2,1 the BCSS can be found at "Boot Camp Support Software 4.0.4033".


What is OS X alternative to Windows/Ubuntu hotkeys ⌘+1, ⌘+2 etc to start apps from the Dock? On Windows and Ubuntu I can use ⌘+1 to start the first app in the Dock, ⌘+2 to start the second app in the Dock, etc. How can I achieve same effect in OS X? Is it some built-in functionality or third-party extension?

You could save scripts like this somewhere in AppleScript Editor and give them shortcuts with for example Alfred or FastScripts.

tell application "System Events" to tell process "Dock"
    perform action "AXPress" of UI element 5 of list 1
end tell

(Just assigning fixed shortcuts for each application would probably be a better option though.)


Which iPhone 5 model sold in the US should I buy for use in Spain? I am buying an iPhone 5 in the US to use in Spain. Should I go for the AT&T's A1428 GSM model or the Verizon's A1429 CDMA one?

Spain does not currently have LTE band, so the only concern is whether the CDMA works in Spain's GSM and 3G networks.

Thanks!

Verizon ships its iPhone 5 unlocked, and it operates on the LTE bands that are typically used in Europe. The "GSM" model sold in North America is restricted to LTE bands that are currently only used in Canada and the US. Both models can operate fine on 3G GSM networks.

As far as I can tell, while there was an LTE spectrum auction in Spain last year, the precise bands to be used haven't been published yet, but the Verizon (CDMA) seems to be more useful currently, and may be more likely to work on future LTE networks in Spain (but this is far from guaranteed, unless someone can find the exact bands to be used).


Can I use a Carbon Copy Cloner with a source disk that's larger than the target disk? Carbon Copy Cloner is a great utility that's saved me a few times over the years. I've always used a much larger target drive than the source so I've never run into this problem before.

Now I have a 1 TB source and a 750 GB target drive. Only ~300 GB of the source drive is actually used?

Will this work?

Yes - CCC copies by file and so will manage.

This was my original setup and worked. It is now more complex as I now have more data on the source than can fit on the target, I manage this by choosing the files in CCC and deselecting ~/Downloads /tmp etc.


Is there a way to search by partial phone number in iOS 7? I'm trying to search my contacts to match a partial number (four digits) to a name. Is this possible?

You can search your contacts by partial phone number using Spotlight.


Data on file exchange partition is owned by 1000 and locked. How can I unlock this in OS X? I have created a file exchange permission that both OS X Lion and Ubuntu 12.04 can write to and read from. This partition is formatted as...

Apple_HFS Exchange

...with journaling disabled.
I have copied a folder from Ubuntu onto that partition. This folder appears as locked in OS X and I am not able to unlock this folder. The option is greyed out.

The permission of this folder are:

drwxr-xr-x   4 1000      1000      136 11 Mai 14:43 Bilder

How can I unlock this file in OS X?
How can I prevent this from happening in the future?

Unlocking the file
You can unlock files from within the terminal using the chflags command with nouchg:
sudo chflags -R nouchg Bilder

According to the man page for chflags:

uchg is the user immutable flag
no in front of a flag removes the flag: nouchg

Preventing this from happening in the future
A general solution would probably be to avoid handling permission altogether and using NTFS or FAT for an exchange partition.
However, I specifically voided such a solution (FAT32) this time, because I encountered serious errors the last time.