dfbills.com blog

Repairing More Than Standard “Repair Permissions” On the Mac

The easy way to reset or repair your home folder permissions is to use Apple’s resetpassword utility.  This GUI tool is summoned from the command line when booted from the recovery drive.  To use, reboot into recovery using “command-R,” launch the terminal and type “resetpassword”.

After selecting your user account from the dropdown window, you’ll see “Reset Home Directory Permissions and ACLs.”  Click this button to reset your home permissions to Apple standard.

If you need more control over this process or need to apply to another area of your drive, such as an external iTunes library, here are the equivalent commands used behind the scenes:


sudo chmod -R -N /Users/username
sudo chown -R username:staff /Users/username
sudo chmod -R 660 /Users/username

comment on this | posted in: Mac News Tips Troubleshooting Webdev

Controlling The Time Machine Backup Schedule

The MacOS X Time Machine backup schedule can be controlled manually by using LaunchAgents.  To use a custom schedule, turn off Time Machine in the System Preferences pane, then create your LaunchAgents specifying your desired time schedule.  The terminal command to trigger uses tmutil (as of 10.9):

tmutil startbackup—auto

According to Apple’s man page, this will: “trigger “automatic-like” back-ups similar to automatic backups that are scheduled by the system. While this is not identical to true system-scheduled backups, it provides custom schedulers the ability to achieve some (but not all) behavior normally exhibited when operating in automatic mode.”

This supersedes the previous method which called the backupd-helper: (10.5-10.8)

/System/Library/CoreServices/backupd.bundle/Contents/Resources/backupd-helper -auto

comment on this | posted in: Mac News Tips Unix

Pre-Authenticated Restart with FileVault Enabled

Many modern Macs allow the use of an authenticated restart feature. This function allows you to restart a Mac using Screen Sharing or Remote Login (SSH), even when FileVault is enabled on the remote Mac and to reboot a FileVault-enabled system without requiring an unlock during the next startup.

The following Terminal command restarts a Mac with FileVault enabled:

sudo fdesetup authrestart

More details are available on the Apple website.

comment on this | posted in: Mac News Unix

Controlling Arq Backups by Time

The excellent Arq backup utility can be easily controlled by time of day by utilizing MacOS X LaunchAgents.  For example, I don’t want upload traffic to interfere with my normal Internet activity while I’m normally home during the week.

The LaunchAgents simply call the command line version of Arc and tell it how long to sleep.  For this purpose, I’ve created two LaunchAgents- one for the morning and a second for the evening.

com.dfbills.ArcController-MORNING.plist


<?xml version=“1.0” encoding=“UTF-8”?>
<!DOCTYPE plist PUBLIC “-//Apple//DTD PLIST 1.0//EN” “http://www.apple.com/DTDs/PropertyList-1.0.dtd”>
<plist version=“1.0”>
<dict>
<key>Label</key>
<string>com.dfbills.ArcController-MORNING</string>
<key>ProgramArguments</key>
<array>
<string>/Applications/Arq.app/Contents/MacOS/Arq</string>
<string>pause</string>
<string>120</string>
</array>
<key>RunAtLoad</key>
<false/>
<key>StartCalendarInterval</key>
<dict>
<key>Hour</key>
<integer>7</integer>
<key>Minute</key>
<integer>0</integer>
</dict>
</dict>
</plist>

And here’s the version for the evening:

com.dfbills.ArcController-EVENING.plist


<?xml version=“1.0” encoding=“UTF-8”?>
<!DOCTYPE plist PUBLIC “-//Apple//DTD PLIST 1.0//EN” “http://www.apple.com/DTDs/PropertyList-1.0.dtd”>
<plist version=“1.0”>
<dict>
<key>Label</key>
<string>com.dfbills.ArcController-EVENING</string>
<key>ProgramArguments</key>
<array>
<string>/Applications/Arq.app/Contents/MacOS/Arq</string>
<string>pause</string>
<string>300</string>
</array>
<key>RunAtLoad</key>
<false/>
<key>StartCalendarInterval</key>
<dict>
<key>Hour</key>
<integer>18</integer>
<key>Minute</key>
<integer>0</integer>
</dict>
</dict>
</plist>

I’ve included zipped versions here with the actual files.  To use them, simply download, unzip and place both in your ~/Library/LaunchAgents/ folder.

comment on this | posted in: Mac Tips Unix

Teleport’s Elusive Preference Settings

At long last, I’ve found the elusive preference settings in teleport for controlling the switching behavior.  Previously in the normal settings tab, these options are now available on a per-host basis and only revealed when mousing over the external hosts in the layout pane.

Teleport Options

See the extremely handy preference for limiting the switching by requiring that the Option key be held down.

Teleport Options Revealed

Teleport lets you use a single mouse and keyboard to control several Macs.  When enabled, you move the cursor to the edge of the screen and the mouse “teleports” to a nearby Mac.  After teleportation, this mac is controlled by the same keyboard and mouse. As a bonus, the clipboard can be synchronized and you can drag & drop files between the two Macs.

comment on this | posted in: Mac News Troubleshooting

Awesome settings screen over at Timehop

While reviewing my settings over the at the amazing Timehop service, I came across this gem of a setting: “Cursing Level.”  I think I’ll stay with “a little.”

image

comment on this | posted in: News Webdev

MySpace is down

Way to go Myspace with the old-school messaging.  Love the sad face in the title attribute.

Our site has issues. Literally. W’re working hard to get things back in working order as quickly as possible.
-The Myspace Team.

Thanks to Peter for capturing this one.

comment on this | posted in: 404 News Webdev

Animated 404 Over at Spotify

...and we’re back with an exciting, animated 404 message from Spotify.  Make sure to click through to the actual page to see the little critter swinging from his teeth!

image

comment on this | posted in: 404 News Webdev

Winter in Manhattan

It’s hard to believe this is a photo of the Hudson River Path in December.  What a beautiful day to be out on the bike.

Large Image
comment on this | posted in: Photos from iPhone

How to Expand all Open/Save Dialogs on MacOS X

Here’s another good fix for a MacOS X default-

How to expand all Open/Save Dialogs on MacOS X:


defaults write -g NSNavPanelExpandedStateForSaveMode -bool TRUE

comment on this | posted in: Mac Tips Unix
 1 2 3 >  Last »