Questions about the command line and other Unix-like aspects of Mac OS X, including the Mach/BSD-based kernel and FreeBSD-based userland. You may want to consider using Ask Different instead.

learn more… | top users | synonyms (1)

5
votes
0answers
937 views

A real non-“better touch tools” solution for select-to-copy on Mac OS X

I recently moved to Mac. I am missing my X11 copy-paste style. I can't find a way to exactly emulate X11 behavior "select-to-copy", "middle-click-to-paste" globally on Mac OS X. I am aware that this ...
4
votes
0answers
54 views

rm -rf ~/.Trash/* doesn't work, Mail Attachment.eml:OECustomProperty unable remove

I'm on OSX10.10.3, I've had a file in my trash for about 6 months or so. I have a file in my trash, 2 actually. That are from my mail cache that I dumped since I don't have the space on my SSD for my ...
4
votes
0answers
71 views

Disable networking only inside of a single terminal

I want to run a command in the terminal to disable networking, just in that terminal. How can that be accomplished? I'm running OSX. Note: I only want to disable the networking in that terminal. ...
4
votes
0answers
1k views

Can't figure out why ssh_exchange_identification: Connection closed by remote host appear

At home, I have setup a Raspberry Pi with the latest version of Raspbian and with ssh enabled. I also use a Mac Book Pro with OS X 10.9.3. I use ssh pi@192.168.0.22 to do some work on the Raspberry ...
4
votes
0answers
73 views

OS X-like deadkeys behavior on Linux

I'm on Debian (actually Crunchbang), and my notebook has a default US layout keyboard. My native language is Brazilian Portuguese (pt-BR), so I've changed my layout with setxkbmap -layout us -variant ...
3
votes
0answers
13 views

Cocoa API implementation for Linux?

Is there any Wine-like project for running OS X apps on Linux? I mean an implementation of Cocoa API for standard Linux machine, as it is done with Wine.
3
votes
0answers
39 views

Deleting ghost files with non-ASCII characters

I have some weird files and folders in my trash on Mac OS X. After I "empty" the trash, the files still remain. I attempted to manually delete the files: $ cd ...
3
votes
0answers
36 views

Content of root's home directory in OSX

What is stored in root's home directory on OSX? What happens if you delete it on accident? Heres whats in my current root home folder. OSX:~ root# ls -lash total 8 0 drwxr-x--- 5 root wheel ...
3
votes
0answers
177 views

Can I get WCHAN from ps on Mac OS X 10.7.4?

From the manual it seems that ps -AO wchan should tell me what everything is sleeping on, but everything comes up as -. (And nwchan as 0). Did they do away with the old sleep()/tsleep() interface in ...
3
votes
0answers
618 views

WPA pre-shared key format in linux and macintosh

I'm temporarily in a situation where the wifi network I need to use is implemented using Macintosh equipment. They have encoded their network using WPA and TKIP. I can't seem to get onto their network ...
2
votes
0answers
30 views

Identify process

Every couple of minutes my Mac OSX machine starts running a process that consumes 10% of the CPU. It runs for a couple of seconds and then stops. I can see the process coming up in 'Top', but the name ...
2
votes
0answers
43 views

Why can't Adobe Flash for Mac run on Linux?

As we know, Adobe no longer develops new Flash versions for Linux (except for Google Chrome, i know). It does, however, develop actively Flash for Windows and Mac. Linux can run native Windows ...
2
votes
0answers
50 views

Catch/diagnose user process being killed - Inexplicably logged out automatically

Context: I'm using bash in Mac OSX Yosemite. Problem: I'm executing a (python) script that I expect to use alot of resources and take a few hours to run, redirecting stdout and stderr to a log file. ...
2
votes
0answers
79 views

Where does BPF packet capture read its data from?

I am interested in the low-level interfacing with network packets. From what I read, tools like tcpdump and libpcap use the BPF packet filter device /dev/bpf* to read link-layer network packets (on ...
2
votes
0answers
215 views

How to convert the qemu parameters for an osx guest for libvirtd

I managed to have an osx guest running in qemu with the following commands: // create the virtual image $ qemu-img create -f qcow2 mac_hdd.img 35G // .. install osx ... // start the guest $ ...
2
votes
0answers
32 views

Reliable method to determine system language in OS X

I was hoping to do something like defaults read -g AppleLanguages | awk -F, '/[^(]/{print $1;exit}' but if only one language is listed in "Preferred Languages", then defaults read -g ...
2
votes
0answers
24 views

Exporting the Safari (OSX) window to a remote Linux box

I have network access to a headless Mac mini running "OS X Server" (10.6.8 Snow Leopard). Sitting on my Linux desktop (Fedora) I can execute something like: ssh myuser@imachost xeyes and get the ...
2
votes
0answers
120 views

Increase SSH ConnectTimeout greater than 60 seconds

I don't seem to be able to increase the SSH connection timeout much beyond a minute: $ date; ssh home-qnap -o ConnectTimeout=7200; date Wed 14 Jan 2015 15:23:32 AEDT ssh: connect to host home-qnap ...
2
votes
0answers
57 views

X forwarding from a mac to Linux fails

I have been having problems recently while trying to ssh into linux servers (Ubuntu 14.04) from my mac (OSX Yosemite 10.10). This used to work fine until my latest update, where I systematically get a ...
2
votes
0answers
127 views

Tmux hangs on first start

I am running Tmux on a OSX (brewed tmux), and everytime I boot my computer, the first time I start tmux, it hangs. Doing a CTRL + T to check it's SIGINFO, gives me "waiting..". To fix this, I need to ...
2
votes
0answers
58 views

“login -qf” as root results in “Login incorrect” error

I'm trying to install pow on an OS X machine.* Some of pow's components have to run as root, so part of the setup process involves running an installation script with sudo. The problem is, this setup ...
2
votes
0answers
91 views

SSH SOCKS5 proxy, is my traffic being kept safe?

So I've been running everything on my system through my SSH SOCKS5 proxy. All the network commands I type in the terminal, I use proxy chains, and I have my system set to use my SOCKS5 proxy globally ...
2
votes
0answers
93 views

Open a program (VLC) and move it to the foreground

On a Mac, specifically, when I use the VLC command line to open a video file, it opens in the background by default. How can I instead move it to the foreground whenever I run the command to open a ...
2
votes
0answers
22 views

OS X: destroyfvkeyonstandby question

This is a very OS X specific question. I don't know if it applies to the rest of the Unix family. Sorry if this isn't the best forum for it, but the users here appear to be more knowledgeable in ...
2
votes
0answers
33 views

How to identify process accesing usb port (scale)?

I'd like to identify through terminal which processes are using the scale connected to my mac, I need to kill those processes or clean the port to be used only by my app. Thanks a lot in advance.
2
votes
0answers
705 views

Can't get rEFIt to boot after install (Ubuntu + OSX on macbook pro)

I'm trying to dual boot Ubuntu and OSX on my macbook (MacBookPro8,2). As per the usual guide, I downloaded rEFIt (the .dmg) and installed it. Then I rebooted about 12 times and still always just get ...
2
votes
0answers
400 views

Add a user for Postgres on Mac

I've had a very difficult time trying to set up a postgres database. I am using Mac OS X 10.9.2. I am using this tutorial: http://tutorials.jumpstartlab.com/topics/environment/environment.html The ...
2
votes
0answers
456 views

Installing Arch Linux alongside OS X - Bootloader issues

I have installed Arch Linux alongside my OS X install on my MBP 11,1 using the guide found here, however on the last three commands of the boot loader section I get the error /usr/sbin/grub2-probe: ...
2
votes
0answers
165 views

Shorter timeout on I/O errors MacOS X

How do you set a shorter timeout value for read/write I/O errors on MacOSX? We tend to get a few semicrashed disks and want to rsync the contents to a secure location, but when the file subsystem ...
2
votes
0answers
52 views

How do I detect a copy event in Finder?

I am trying to strip formatting from text copied from my Illustrator docs. Someone accurately pointed out to me that running pbpaste | pbcopy via command-line will perform this action on text in the ...
2
votes
0answers
244 views

Boot linux bootloader from Mac OSX

Recently I was running Fedora 17 on my computer which was an HP windows based machine. Unfortunately my computer has a malfunctioning motherboard and will no longer turn on. I removed the hard drive ...
2
votes
0answers
2k views

IPSec VPN Debian Squeeze Server for Mac OS X

I'm trying to get an IPSec VPN set up on my Debian home server, so that I can access my home network and browse without having my internet filtered by my college network, and so that I can perform ...
2
votes
0answers
718 views

Finding/Mounting USB Device in Mac OS X 10.8

I've looked all over and found similar questions and answers and none seem to work for me or match what I see. I should add I'm new to UNIX and the OS X command line but have got a basic overview to ...
2
votes
0answers
220 views

Does HylaFax server run in OS X?

From their FAQ: HylaFAX is intended to run on any UNIX system that supports a particular set of features: FIFO special files, BSD-style sockets and the TCP/IP communication protocols, BSD-style ...
2
votes
0answers
499 views

How to fix link error under CMake for class QX11Info on Mac OS X

I'm trying to build kxstitch, which is designed for Linux, on OS X. I've gotten most of the way there by installing MacPorts, XCode, KDE, etc. and making minor changes to the build file, but am ...
2
votes
0answers
355 views

Dual boot Fedora 16 with OS X refit

Having trouble with installing Fedora 16 on my Macbook Pro. While the installation itself completes without and issues, the bootloader doesn't install correctly. I have rEFIt, which I already have ...
1
vote
0answers
10 views

partprobe equivalent on OS X

After I manually edited a partition table on a device in OS X, the corresponding devices don't get created automatically under /dev. How to I tell the OS X kernel to reread partition tables as I ...
1
vote
0answers
37 views

does vi have a bug which changes spaces in unedited lines, or is there an option to turn this “feature” off?

I changed a file by just adding a few lines, then ran a git diff and found changes strewn throughout the file resembling as shown in the image above: an extra space at the end of a line in the ...
1
vote
0answers
25 views

Installing homebrew - dangerous permission changes?

I'd like to install homebrew, but when I start it up, I get this message: ==> The following directories will have their group set to admin: /usr/local/. /usr/local/include /usr/local/lib Seems ...
1
vote
0answers
25 views

To plot 7x10 pictures for review in video

Assume you have 77777 pictures. You want to review them and their differences: have 7x10 pictures without margins to have an image viewer where the minimum browse time can be less than 1.0 s such ...
1
vote
0answers
38 views

OS X: Apply inheritable ACL permissions to pre-existing subfolders and files

I have a folder with numerous ACL permissions set. Most of these include file_inherit and directory_inherit permissions and therefore should be, and are, automatically propagated to any new ...
1
vote
0answers
36 views

need help with vf project in fish shell

Hi I am using virtual fish on fish shell, so while trying to do vf project projectName it throws the below error: vf project pytube fish: Unknown command 'virtualenv' ...
1
vote
0answers
54 views

OS X Yosemite is SUS - Single Unix Specification 3 certified. But what posix standard is it compliant to? the latest one is 2008

I'm confused. Is SUS compliance the same as POSIX compliance? Is yosemite compliant to the latest standards, what years exactly?
1
vote
0answers
63 views

Ubuntu Grub recognises MacOS but cannot boot up

I tried a little experiment on installing MacOS on a non Mac Hardware Laptop... Got this far as to put the MacOS Install ISO on to an HFS+ partition but the machine needs to boot this up for the ...
1
vote
0answers
112 views

Unable to create a configuration directory for [FishShell] Please set the $XDG_CONFIG_HOME variable

I'm getting this error when starting fishshell: melanie:~ melanie$ fish fish: Unable to create a configuration directory for fish. Your personal settings will not be saved. Please set the ...
1
vote
0answers
26 views

Bandwidth stats on wifi for each network?

Is it posible to have the bandwidth usage of the wifi connection for each network I use? Currently I have vnstat instaled on my MacBook Pro retina runing Yosemite. It works well but I have the usage ...
1
vote
0answers
120 views

Mount FileVault encrypted drive in OS X 10.9 in Recovery Mode without unlocking it; Passware brute-force

I encrypted my internal hard drive with FileVault a while ago on Lion such that it prompts for the disk password when I restart the computer and recently upgraded to Mavericks on my MBPro Retina. It ...
1
vote
0answers
39 views

Get path of currently marked file

Im running OS X and I'm wondering if there is a way to get the path of the currently marked file in Finder. Like, can UNIX determine what file i have clicked on? Reasons for this would be for ...
1
vote
0answers
98 views

Re-access NFS volume from OS X Mavericks client after server reboot?

My home server, running FreeBSD 10-RELEASE p7, exports NFS volumes to my MacBook Pro, running current OS X Mavericks. The MacBook mounts these via automount as /net/servername/volume without any ...
1
vote
0answers
378 views

Unable to boot into Mac OS after installing Fedora[Dual Boot]

I installed Fedora on my Mac and now when I boot, it says "booting in insecure mode" an then see a typical Linux "choose what to boot" screen. The List goes like: Fedora Fedora Recovery Mac OSX ...