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.

Mac OS X consists of a Mach/BSD-based kernel, userland primarily based on FreeBSD, and additional frameworks (written in C, C++ and Objective-C) providing user interface and application-level services.

2425 questions
14
votes
2 answers

What do the OS X authorization mechanisms actually do?

Background  I'm trying to glean a better understanding of the OS X login process, in order to decide the best way for achieving VPN Single Sign On. Please do correct me if I'm wrong, but I believe that— launchd(8) calls gettyent(3) and thus…
eggyal
  • 402
  • 5
  • 16
14
votes
2 answers

How to configure custom DNS server with Docker?

I need to add a few lines to /etc/hosts for my web-app to work inside a Docker container. Docker's /etc/hosts is read-only. I'm trying to use dnsmasq: FROM ubuntu:14.04 # ... RUN apt-get install -y -q dnsmasq RUN echo 'listen-address=127.0.0.1' >>…
Alexander Gladysh
  • 2,423
  • 8
  • 31
  • 49
14
votes
1 answer

Kill process that keeps restarting itself

I need some advice on how to completely kill the Jenkins process. It keeps restarting itself. On Mac OSX. $ps -eaf 216 1143 1 0 0:01.65 ?? 0:04.03 /usr/bin/java -jar /Applications/Jenkins/jenkins.war try to kill the…
serverFaulter
  • 385
  • 2
  • 4
  • 9
14
votes
4 answers

Install Ubuntu truncate command to Mac OS X 10.7

Is there any way to install Ubuntu's truncate command to Mac OS X 10.7 in order to use the command in Terminal shell?
Raptor
  • 1,001
  • 4
  • 19
  • 38
14
votes
3 answers

Where is "/var/log/messages" on mac-osx?

When you read the man pages on Mac OS X, there are references to /var/log/messages, but if you look for the file, it doesn't exist: $ ls -l /var/log/messages ls: /var/log/messages: No such file or directory
benc
  • 683
  • 1
  • 5
  • 13
14
votes
3 answers

How do I launch a process as a specific user at startup on OS X?

I would like to run a script as a particular user on startup (not on login). I thought a launchd LaunchDaemon would do it, but 'man launchd' says: "If you wish your service to run as a certain user, in that user's environment, making it a launchd…
Scott Bonds
  • 141
  • 1
  • 3
14
votes
4 answers

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 trying to accomplish is the following: scp -r…
user7195
14
votes
4 answers

Why is "chroot" never used on Mac OS X?

I've been using Macs for 25 years, and "UNIX" since OS X 10.0.. but I've never really thought much about chroot, nor have I ever really needed or wanted to... It's a simple question, but... under what circumstances would one opt to use "chroot" on a…
mralexgray
  • 1,353
  • 3
  • 12
  • 29
14
votes
6 answers

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 don't seem to exist on Mac OS X server. Any…
14
votes
5 answers

how to get process file name from PID in MacOS?

Is it possible to get a file name of a process using PID? ps displays a lot of useful information about a process, but not a hint about a process executable file location.
grigoryvp
  • 3,655
  • 11
  • 39
  • 59
13
votes
1 answer

Is there a way to get OSX to use more RAM and less swap?

The problem I'm having is on a server (and other OSX boxes as well) we have 4GB of RAM, but we are finding that OSX only uses 40-60% of the available RAM while also having a 6-7GB swap. The server is running Apache and MySQL while the other machines…
Darryl Hein
  • 1,712
  • 2
  • 19
  • 21
13
votes
2 answers

What is the maximum length of a command line in Mac OS X?

I'm generating models in Ruby on Rails, and some of these tables have an awful lot of columns. What's maximum length of a command in Mac OS X?
DGM
  • 287
  • 1
  • 3
  • 11
13
votes
6 answers

Where can I document useful things to know as a Mac sysadmin?

I've recently done some research on the directory service tools on the Mac (dscl, dsimport, dsexport), and would like to be able to document them somewhere for all to benefit (and perhaps where my work can be improved upon). I see no advantage to…
Clinton Blackmore
  • 3,520
  • 6
  • 36
  • 61
13
votes
3 answers

Having Mac OS X on a XEN virtual machine

Is it possible to have Mac OS X guest on a XEN host? If yes, how? There are difference for Mac OS X Server? In particular I'm interested in the installation of a testing Mac OS X Server inside a XEN domU, being the host a Debian linux server in the…
drAlberT
  • 10,949
  • 7
  • 39
  • 52
13
votes
3 answers

Routing WIFI and LAN for specific traffic

I have two network devices aboard my macbook pro: WIFI (en1): Used for general traffic. Connects to an ip of 192.168.19.* via DHCP LAN (en0): Used for specific traffic. Connects to an ip of 192.168.2.10 as a static IP. Does not connect to a router,…
jakebird451
  • 183
  • 1
  • 1
  • 9