Tag Info

Hot answers tagged

288

Using your computer logged in as root all the time is like always carrying around all your keys, your passport, $5,000 in cash, that piece of paper with all your passwords written on it and the only photo you have of Flopsy, the adorable rabbit whose death broke your seven-year-old heart. Oh, and a chainsaw. Which is to say, it's mighty convenient from time ...


26

If you care to read the tea leaves, the initial OS X v10.11 Developer Beta supports the following Macs: iMac (Mid 2007 or newer) MacBook Air (Late 2008 or newer) MacBook (Late 2008 Aluminum, or Early 2009 or newer) Mac mini (Early 2009 or newer) MacBook Pro (Mid/Late 2007 or newer) Mac Pro (Early 2008 or newer) Xserve (Early 2009) Source: OS X v10.11 ...


19

In Mail.app's application's preferences, I deselected "Accounts > Advanced > Automatically Detect and Maintain Account Settings" on two Google accounts, and CPU usage returned to normal.


17

You can, but it's a major security and stability risk. Doing so allows any application full access to your computer. You can't know what they're doing with that access. It's unnecessary, and just really unsafe. For a lot more background information on this, see Why is it bad to login as root Why not run always logged in as root Why it is not recommend to ...


13

Honestly, I agree that there are a lot of risks associated with using the root user as default. But let me just run through them and criticize some of the arguments a bit Defending against applications: Practically the permission system of *nix is not strong enough (by far) to allow running arbitrary programs. A malicious program on *nix is able to do ...


11

It's worth noting that every Mac that supports Mountain Lion (10.8) also supports Mavericks (10.9), Yosemite (10.10), and El Capitan Developer Beta 1 (10.11). System requirements in El Capitan are unlikely to change from those in the developer beta. However, some features might be unavailable on earlier systems. There is informed speculation that Metal, for ...


8

The color variables should be defined before the export PS1. Now, when you call $RS on that line, that variable is empty. Try this way: export CLICOLOR=1 # ANSI color codes RS="\[\033[0m\]" # reset HC="\[\033[1m\]" # hicolor UL="\[\033[4m\]" # underline INV="\[\033[7m\]" # inverse background and foreground FBLK="\[\033[30m\]" # foreground black ...


8

Generally you want to keep ownership of your personal files separate from the root user. This is why you create a account for yourself as an administrator. The accepted way, under OS X, to gain root level access is to use the sudo command from the Terminal application. For example, if you want to see the partitioning of your internal drive the command is ...


7

Two easy options: Move your changes from .bashrc to .bash_profile (and delete .bashrc) Add a line source ~/.bashrc to ~/.bash_profile to make sure .bashrc is read during shell startup


7

First: the name "rootless" is misleading, since there's still a root account, and you can still access it (the official name, "System Integrity Protection", is more accurate). What it really does is limit the power of the root account, so that even if you become root, you don't have full control over the system. Essentially, the idea is that it's too easy ...


7

The filesystem and metadata can change when preview has write access to the file. The precise why is probably complicated, but you can prevent it by removing write access (chmod a-w test.pdf) and then using preview on the file. Note, the chmod updates the ctime as well. My guess is that metadata fields like kMDItemUsedDates and kMDItemLastUsedDate are the ...


7

In the WWDC 2015 video "What's new in Metal, Part 1", Rav Dhiraj from the GPU software division states at 8'40" Metal is supported by all Macs introduced since 2012. (Nvidia, AMD and Intel) This means : Intel HD Graphics 4000, Iris 5000 & 6000 family, nVidia GT 600M, 700M family, AMD R9 M family,


7

For every OS X 'delta' release - 10.10.1/2/3/ ...10.10.4 etc - which App Store will download to each Mac there is a simultaneous 'combo' update release which rolls up all the previous deltas into one single downloadable update. It was for many years considered the 'pro' way to do the update, as it can also correct potential update issues that the delta ...


6

You need iTunes 12.2 - presumably will be out any minute now… Update 07:30 GMT 1st July. OS X 10.10.4 iTunes 12.2 & iOS 8.4 all now available & successfully installed here.


6

Back around 1990 I was working on a project with a guy named Tom. We were using a SUN server running SunOS (a Unix derivative, predecessor to Solaris). This was back in the days before CD drives and flash drives, so if you messed up the OS on your hard drive there was no way to recover. Tom used to routinely log in as root. I told him that was a bad idea, ...


5

man pbcopy pbcopy takes the standard input and places it in the specified pasteboard. If no pasteboard is specified, the general pasteboard will be used by default. The input is placed in the pasteboard as plain text data unless it begins with the Encapsulated PostScript (EPS) file header or the Rich Text Format (RTF) file header, in which case it is ...


5

Ubuntu or Mint are the distros I'd recommend. They're both well-supported. Also, don't pay much attention to Torvalds. The man has an opinion on everything, and he isn't always right... I mean, he made the Linux kernel into a Monolithic kernel, and that has its issues.


5

Emacs can do this. Open Emacs C-x C-f and open the directory. It will open in dired-mode. M-x wdired-change-to-wdired-mode RET You can now edit the filenames just as you asked. Pressing C-c C-c will end wdired-mode and perform the modifications. wdired-change-to-wdired-mode is an interactive autoloaded Lisp function in `wdired.el'. It is ...


5

In iTunes, go to iTunes Menu > Preferences > click the "Devices Preferences" tab, and tick the "Prevent iPods, iPhones, and iPads from syncing automatically" box. This will stop iTunes from opening automatically when you plug in your iPhone. You can also connect your iPhone to iTunes, stop the sync, click the iPhone icon in the upper left corner of the ...


4

Apple Music require iTunes 12.2, which is not included in Yosemite 10.10.4 so, soon, Apple should release another update exclusively for iTunes where there should be a button to play Apple Music. You can get that update from the iTunes menu - select Check for Updates... If that update isn't rolled out or available, you can listen here: ...


4

OS X and iOS use ntp-like software daemons to poll for and periodically adjust internal clocks based on external time sources. A leap second arrives as an external correction similar to how each hardware clock corrects minor (or major) skews and inaccuracies periodically. OS X ships with perl modules to accurately determine if a leap second is coming or ...


4

The rsync command line tool is able to merge two folders. You'll need to open a terminal window. Take a look at the manual pages man rsync There may be a one liner but the following steps are non-destructive since you won't change your source folders. Create a new folder (dest) Sync source1_path to dest Sync source2_path to dest Here the script - ...


4

You can use the full path to the editors ( /usr/bin/emacs /usr/bin/vi or /usr/bin/nano) to edit ~/.bash_profile e.g. /usr/bin/emacs ~/.bash_profile


4

In case the other reasons weren't good enough... Don't forget that you can't use Homebrew as root (which is actually a huge pain). Other programs also don't let you use them as root or run into permissions problems when you do, often times for no apparent reason, because their programmers assume that they won't be run as root. I think Steam is one of them. ...


4

Right-click on the video and select Inspect Element. Click the disclosure triangle next to the video element to reveal the source element. Click the src attribute value to download the video.


4

Notifications appear on your primary display. The primary display is typically the one showing the menu bar; however, you can show the menu bar on every display. To change your primary display: Open System Preferences.app > Displays Select the Arrangement tab Drag the menu bar to the desired display


4

Your internal disk is a Fusion Drive combining an SSD (disk0) and a HDD (disk1). It uses a Core Storage partition scheme. The superior "Macintosh HD" is the name of the Logical Volume Group build by the compound of the two Physical Volumes (disk0s2/disk1s2) of your Fusion Drive. It's used instead of the name of the physical device in a non-Core Storage ...


3

I asked after this while attending WWDC 2015 and was told that the "Encryption Paused" issue was addressed in 10.10.3. The root cause was a problem with resizing the CoreStorage volume during the encryption process. When the CoreStorage volume was unable to grow, the encryption was paused and could not resume until the resize issue was addressed. To fix ...


3

Turn off Autocorrect per Application You can do this in the Applications Edit Menu under Spelling and Grammar and disable ‘Check Spelling While Typing’.


3

OSX 10.7 Lion was not sold on DVD, the first retail OSX version to do so. You can obtain it through three methods: Update your system to 10.6.8 (combo update is best via Apple, or Software Update if you like) and then, using the Mac App Store, purchase a copy of Lion Purchase Lion via the Apple Store website which will email you a download redemption code ...



Only top voted, non community-wiki answers of a minimum length are eligible