Questions tagged [mac-osx]

Mac OS X is an operating system from Apple Inc. It was the successor to Mac OS 9 and here the 'X' means 10. Mac OS X is based upon the NeXTSTEP and OpenStep OSes developed in the 1980s and 1990s by NeXT Inc., which Apple purchased in 1996.

Filter by
Sorted by
Tagged with
78 votes
3 answers
249k views

How to ensure OpenVPN connection uses specific DNS?

I'm using OpenVPN through Tunnelblick on MacOS X Lion. I need to set specific DNS (with local IP, which works only when VPN is up) for the duration of this VPN session only. I do not have access to ...
Stanislav Shabalin's user avatar
76 votes
10 answers
183k views

Can I specify a port in an entry in my /etc/hosts on OS X? [duplicate]

Possible Duplicate: How to use DNS to redirect domain to specific port on my server I want to trick my browser into going to localhost:3000 instead of xyz.com. I went into /etc/hosts on OS X 10....
Tony's user avatar
  • 4,253
31 votes
5 answers
19k views

Converting UTF-8 NFD filenames to UTF-8 NFC, in either rsync or afpd

I have a home file server running FreeNAS 8. A few days ago I used rsync to upload my entire iTunes library from Mac so that I could load my library over the network instead of off a slow USB drive. ...
Twipped's user avatar
  • 653
6 votes
1 answer
2k views

How to add a broadcast address to loopback with ifconfig on a OS/X?

I am trying to use ifconfig to turn on broadcast on my loopback interface. It currently reads: lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 As you can see, no broadcast address! :( ...
chrisapotek's user avatar
74 votes
7 answers
220k views

iptables equivalent for mac os x

I want to forward requests from 192.168.99.100:80 to 127.0.0.1:8000. This is how I'd do it in linux using iptables: iptables -t nat -A OUTPUT -p tcp --dport 80 -d 192.168.99.100 -j DNAT --to-...
nafe's user avatar
  • 1,281
22 votes
7 answers
28k views

Postfix aliases and duplicate e-mails, how to fix?

I have aliases set up in postfix, such as the following: [email protected]: [email protected], [email protected] ... When an email is sent to [email protected], and any of the recipients in that ...
Marcus Stade's user avatar
15 votes
3 answers
40k views

MySQL access denied error when connecting via SSH tunnel

For months I've been connecting to the MySQL instance running on our local test server through an SSH tunnel without any issues. All of sudden though, with no changes I can think of, the server has ...
Adam's user avatar
  • 253
233 votes
19 answers
297k views

In my /etc/hosts/ file on Linux/OSX, how do I do a wildcard subdomain?

I need to test sub-domains on my localhost. How can I effectively have this result of adding *.localhost.com to my /etc/hosts/ file? If it's not possible, how do I work around this problem? I need ...
MikeN's user avatar
  • 8,502
36 votes
3 answers
58k views

How is DNS lookup configured for OSX Mountain Lion?

If I cat my resolv.conf, I see this message: # # Mac OS X Notice # # This file is not used by the host name and address resolution # or the DNS query routing mechanisms used by most processes on # ...
Ben Flynn's user avatar
  • 495
9 votes
2 answers
14k views

Cannot ping over LAN until a ping is received

I have two OSX machines on a local subnet. Pings from Machine A to Machine B consistently timeout until Machine B pings Machine A. After B pings A, A can successfully ping B, but this success is ...
ericsoco's user avatar
  • 193
8 votes
1 answer
12k views

How to add a Mac to Windows Active Directory

I've gone into the Directory Utility on the mac, clicked on the services tab, entered the Active Directory Domain and Computer ID, clicked the Bind button and it showed a little status label which ...
CodeAndCats's user avatar
6 votes
4 answers
7k views

How can I get Apache to not respond to an IP-only request?

I have several web sites, all set up in http-vhosts.conf with their respective ServerName and DocumentRoot, they are working fine and dandy. But when I visit the server's IP address URL, I get back ...
richardtallent's user avatar
5 votes
6 answers
3k views

What are the benefits of XServe hardware and Mac OS X Server?

Are there any distinct benefits to going with Xserve hardware and OS X over standard Dell / IBM servers running Windows Server (2003 or 2008), are there any tasks they are reputed to be better at?
Marko Carter's user avatar
  • 4,122
5 votes
3 answers
13k views

Defining a persistent static route on Mac OS X

How does one define a static route on MacOS X which persists through reboots? The only suggestion I've found on Google advises setting up a launchd service to run at boot, which seems like a horrible ...
Charles Duffy's user avatar
2 votes
4 answers
840 views

Third-Party Mac Admin Tools [closed]

What tools have you found useful for managing Macs that didn't come with the system? I'm interested in both CLI and GUI tools, a synopsis and a link. If binaries aren't provided, are their any ...
2 votes
3 answers
2k views

Monolithic vs Packaged-based Image Creation

The tried-and-true way of making Mac disk images has been to set up your software perfectly on the newest Mac hardware you have, delete some unnecessary files, and create a (monolithic) image of it. ...
Clinton Blackmore's user avatar
2 votes
1 answer
966 views

Using both expanders in HP D2700

I am considering purchasing an HP D2700 for use with SSDs (Samsung Pro 840's), for use in realtime playback of high resolution images. The D2700 has two I/O modules (which I assume are the actual SAS ...
Antoine Durr's user avatar
1 vote
1 answer
2k views

Apache / PHP server delaying for a minute before responding

Am having the strangest issue with an apache/PHP instance (PHP 5.2 in this case), where it will take over a minute to respond to a request. The PHP profiling is saying it's taking less than a second ...
Brian Hogg's user avatar
1 vote
3 answers
252 views

Perhaps not understanding the OS X permissions model

Trying to set up a complex config for the bundled Httpd on MacOSX 10.6. In the log for the httpd: [Wed Mar 23 09:18:07 2011] [error] [client ::1] (13)Permission denied: mod_rewrite: can't access ...
bmargulies's user avatar
  • 2,403
1 vote
4 answers
355 views

Monitoring a one-off service

We do not have any sort of proper server monitoring solution in place (a situation I'd like to rectify this summer), but I've got one service in particular that I'd like to monitor. [Our current ...
Clinton Blackmore's user avatar
1 vote
2 answers
986 views

Deploying DeployStudio

Also see question How do you disable or uninstall NetRestore from a NetBoot server?. Edited to add this link to a great document that I should have been using all along but didn't find until it was ...
Doug Chase's user avatar
94 votes
6 answers
195k views

How do I create user accounts from the Terminal in Mac OS X 10.5?

I would like to be able to create new users in Mac OS X 10.5 remotely after ssh'ing into the machine. How do I do this?
JR Lawhorne's user avatar
  • 1,231
86 votes
12 answers
135k views

Where is my mysql log on OS X?

I checked /var/log and /usr/local/mysql and i can't seem to find the log. I am trying to troubleshoot an error establishing a database connection with a php function.
Tony's user avatar
  • 4,253
64 votes
5 answers
24k views

Equivalent of logrotate on OSX

Is logrotate hiding somewhere on OSX, or is there an equivalent? It's not in /usr/sbin.
Steve Bennett's user avatar
64 votes
4 answers
78k views

How to change sshd port on Mac OS X?

I want to change which port sshd uses on a Mac server. For example, let's say from port 22 to port 32. Editing /etc/sshd_config does not seem to work. Does anyone know how to change it? I'd prefer ...
Alexander Artemenko's user avatar
53 votes
3 answers
56k views

How do I activate launchd logging on OS X?

How do I activate launchd logging on OS X 10.6? I added a new daemon that is not starting properly (status is 1). I want to debug the problem but I was not able to find launchd logs, they are not in ...
sorin's user avatar
  • 8,236
42 votes
5 answers
25k views

How to make the 'less' command handle UTF-8?

On my Mac terminal, printing UTF-8 works in general, but the less doesn't work correctly. So this works correctly: $ echo -e '\xe2\x82\xac' € but piping it into less gives something like this: ...
user9474's user avatar
  • 2,458
40 votes
3 answers
43k views

Can't create symlinks in virtualbox shared folders [closed]

A few days ago I found I can no longer create symlinks from Ubuntu in any directories that are shared with the OS X host. ln: creating symbolic link `foo': Read-only file system I'm able to create ...
rlayte's user avatar
  • 509
32 votes
6 answers
5k views

What are .DS_Store files and why does OSX leave them on Windows shares?

Whenever I access windows shares from OSX 10.5 it leaves .DS_Store files on the remote filesystem. What are they used for, and are they necessary, and can they be prevented from being created?
duckworth's user avatar
  • 700
30 votes
8 answers
27k views

How can I use rsync to duplicate a directory tree, creating hardlinks to files?

From time to time, I have to perform several large migration changes on data files on my server, and I'm looking for a good way to do this. I was thinking about using rsync to duplicate my directory ...
Jean-Philippe Pellet's user avatar
29 votes
7 answers
44k views

Speed up SFTP uploads on high latency network?

I'm trying to transfer a set of large files internationally using SFTP, but I am finding my international partner can't get upload speeds above ~50k despite very good connections on either side. We ...
nick_eu's user avatar
  • 391
27 votes
3 answers
17k views

OpenSSH disable ControlMaster for given hostname

I am using OpenSSH_5.9p1, OpenSSL 0.9.8r 8 Feb 2011 with Mac OS X Snow Leopard. I have ControlMaster feature configured to maintain persistent connections. My ~/.ssh/config have the following: Host * ...
Andrey Chernih's user avatar
26 votes
4 answers
13k views

OSX mojave: "crontab: tmp/tmp.X: Operation not permitted"

After updating my OSX to Mojave, it seems I am no longer able to edit my crontab. Any attempt to do so results in the error message on the title of this question. I tracked crontab to /private/var/at ...
Joao Encarnacao's user avatar
19 votes
10 answers
27k views

DNS Name lookup (was SSH) Not Working After Snow Leopard Upgrade

I think this started with the Snow Leopard update. Cleaned out the .ssh directory, still having the issue. ~: uname -a Darwin california-example-com.local 10.0.0 Darwin Kernel Version 10.0.0: Fri Jul ...
Peter Cardona's user avatar
18 votes
5 answers
73k views

How to check TCP timeout in linux / macos?

I have a network problem on my MacOS that i need to troubleshoot. I know that TCP socket has internal timeout that will close connection if remote party is not responding (but no graceful disconnect ...
grigoryvp's user avatar
  • 3,815
18 votes
5 answers
63k views

Is there an equivalent command for 'init.d/networking restart' in OS X

From time to time, I've encountered issues with OS X clients' network connections (Wired and Wireless, Leopard/Snow Leopard) where nothing will fix the issue, until you reboot. Is there a ...
l0c0b0x's user avatar
  • 12k
18 votes
7 answers
33k views

How to add Postgres support to PHP installed by Homebrew?

I have already installed and configured new version of PHP with Homebrew, including MySQL support and XDebug. That works fine. However, I need to install the support for PostgreSQL as well. How can I ...
Pavel S.'s user avatar
  • 299
17 votes
2 answers
56k views

How to add extended key usage string when generating a self-signed certificate using openssl

I'm using openssl on Mac OS X 10.9 to generate a self-signed certificate for Windows Server Remote Desktop Services. Using the command below I can generate the certificate, openssl req -x509 -...
joshu's user avatar
  • 811
17 votes
10 answers
32k views

ssh hangs without password prompt -- works in root or other accounts

I had ssh key based login working fine. Then, I changed the hostname on my computer, and the key based login stopped working. Seemed to make sense. the keys probably relied on my old hostname. So, I ...
saveraver's user avatar
  • 181
16 votes
4 answers
14k views

How do I copy ACLs on Mac OS X?

Most unix derivates can copy ACLs from one file to another with: getfacl filename1 | setfacl -f - filename2 Unfortunately Mac OS X does not have the getfacl and setfacl commands, as they have rolled ...
MagerValp's user avatar
  • 311
16 votes
7 answers
87k views

How do I change the Software Update server address on a client Mac (to use my own server)?

Now that I have started the Software Update service on my Leopard Server, how do I change my client Macs to check for updates on it?
username's user avatar
  • 4,785
14 votes
6 answers
50k views

Getting CPU information from command line in Mac OS X [server]

Sometimes I need to gather information about the client's server prior to making real work there, i.e. getting info on CPU type and activity. On Linux there is mpstat and /proc/cpuinfo, both of them ...
Alexey Klyukin's user avatar
14 votes
4 answers
6k views

SCP filename tab completion

I use SCP regularly to move files between servers and I've heard rumoured that you can use tab-completion on the remote server if you're using public keys, but so far I have had no luck. What I'm ...
user avatar
11 votes
1 answer
4k views

FreeBSD: periodic(8) is too noisy. How can I control the noise level?

FreeBSD & MacOSX ship with the the periodic(8) utility, which is a neatly organized set of utilities to periodically run system functions like ZFS filesystem checks, security checks, checking for ...
Stefan Lasiewski's user avatar
11 votes
4 answers
68k views

Can't resolve host through VPN connection from Mac OS X [closed]

The Preamble I set up a VPN connection from my Macbook, and it seems to connect successfully. However, I can't access my work computer because hostname doesn't get resolved: $ ping myusername ...
Dan's user avatar
  • 317
9 votes
3 answers
40k views

nginx error_log reports “bind() to 0.0.0.0:80 failed (48: Address already in use)”

I recently installed nginx and PHP-FPM via MacPorts on OS X 10.9 Mavericks and although it works my main error_log continuously says port 80 is in use. 2013/10/25 11:27:36 [emerg] 4510#0: bind() to 0....
J Cobb's user avatar
  • 339
9 votes
1 answer
3k views

SSH passphrase remembered in MacOSX Snow Leopard

I am facing a very strange situation with Snow Leopard. I have a Linux server, configured to accept an ssh connection authenticated only through RSA key. No password. On my laptop I correctly deployed ...
Stefano Borini's user avatar
8 votes
14 answers
11k views

What are some informative and useful shell prompts? (Bash, csh, ksh, etc.)

One of my favorite Mac OS X Terminal tips involves adding the last running process into the terminal title using the following code in your .bashrc. trap 'printf "\033]0; `history 1 | cut -...
8 votes
4 answers
25k views

Disabling Apache on Mac OS X

On my Mac OS X, Web Sharing is disabled in System Preferences -> Sharing -> Services -> "Personal Web Sharing". Still, when I type "localhost" in the browser, I get the "It works!" message, meaning ...
amateur barista's user avatar
7 votes
1 answer
5k views

What needs to be done/added on Apple MacBook Air in order to join domain and be managed?

We are a fully windows active directory company. I now have a MacBook Air (first in company) - that needs to be connected. What are the things I need to install/set in order for me to be able to ...
Saariko's user avatar
  • 1,801