Questions tagged [macos]

macOS (previously "Mac OS X" and "OS X") is the Unix developed and distributed by Apple Inc. since 2001.

673 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
10 votes
1 answer
335 views

Diacritics do not work in GTK+ applications running on Mac OS X Snow Leopard

I am using some GTK+ applications in Mac OS X Snow Leopard. My MacBook is configured for using the Brazilian layout, which allows it to enter diacritics as dead keys (so I can write á typing ' and ...
  • 2,714
7 votes
1 answer
5k views

SSH Fails at "kex_exchange_identification"

I'm trying to connect over ssh to an Ubuntu 18.04 VM running in VMWare on my local machine. Local machine has openssh server up and running. Apple's default ssh binary fails connecting to VMs in ...
  • 136
6 votes
1 answer
12k views

perl: warning: Setting locale failed

I bought a VPS, Centos 7. However, I was able to understand what was going on with SSH and connected to my WHM. After connecting, I get a list of errors and there is something like this: perl: ...
  • 61
6 votes
0 answers
853 views

Let X11 window open in specific size and position

I installed zathura via homebrew from this github repository. It works well, but the window which zathura creates is an X11 (XQuartz) window which can't be controlled with BetterTouchTool. So I only ...
6 votes
0 answers
2k views

How to change to a different user after SFTP login

The goal: Use local IDE (IntelliJ PHPStorm 9) to browse & edit remote files via SSH The obstacle: My user on the remote machine does not have permissions to read files, which are owned by ...
6 votes
2 answers
7k views

Sound volume control does not work in Ubuntu

My sound volume control does not work when I'm logged in with my regular user, though the sound works correctly. What's weirder is that the sound control works when I'm logged in as guest. With my ...
  • 171
5 votes
0 answers
2k views

nested virtualization (Intel VT-x) with qemu on mac osx versus linux

I know that kvm-qemu supports nested virtualization for Intel (VT-x) on Linux, since I have this working. I don't have this working on my mac with os x as a host though. My Macbook Air with Dual-...
  • 176
5 votes
0 answers
5k views

What's the equivalent to objcopy on macOS?

I would expect llvm-objcopy to be installed on macOS, since its counterpart llvm-objdump is installed toghether with other LLVM tools like clang. What is the llvm-objcopy-equivalent tool to use on ...
  • 3,557
5 votes
1 answer
561 views

How can I properly use an American flag emoji in my bash prompt?

I want to use an American flag emoji in my bash prompt (i.e. PS1 environment variable). However, the American flag emoji causes the terminal cursor to offset an extra character to the right. 🇺🇸 is ...
5 votes
1 answer
1k views

Sending SIGINT to process groups sometimes gets ignored

I start a process group from bash. Then I send SIGINT to the entire process group. Sometimes the SIGINT kills the processes, sometimes does not. Why does SIGINT sometimes gets ignored ? I see ...
5 votes
0 answers
3k views

iowait monitoring in top on OSX/iMac

I'm trying to monitor the performance of a process on OSX 10 (iMac), specifically whether I/O is currently a bottleneck or not. I don't use the machine, hence I need something simple that the user can ...
  • 485
5 votes
1 answer
965 views

Changing the spacing between files in ls

This is more of a cosmetic question but this is really bugging me. On OS X, when I run ls -G (or use CLICOLOR=1) instead of regular ls it changes the spacing of the columns, as you can see in this ...
  • 51
5 votes
3 answers
1k views

Htop sorting CPU% column incorrectly

Sometimes when I'm trying to diagnose what process is hogging all of my laptop's resources, I notice that htop will sort the CPU% column incorrectly. Example below: The “CPU%” column is highlighted ...
  • 445
4 votes
0 answers
133 views

On MacOS, what character does `Esc+` or `+Esc` correspond to in Bash, when using iTerm2 terminal?

I've read that mapping Left Option key to Esc+ should fix many of the issues users of Bash, on MacOS, have with GNU Readline key-bindings. However, I've never encountered Esc+ or +Esc before, so does ...
  • 3,557
4 votes
0 answers
1k views

Access Ubuntu desktop remotely from Mac OS

I would like to be able to access my Ubuntu 18.04 desktop (not just terminal) from Mac OS (Mojave), and have tried a couple solutions, with less-then-desirable results: Installing google chrome ...
  • 41
4 votes
0 answers
545 views

Faketime lib on Mac not always works

Installed libfaketime with brew, latest version 0.9.7, then did following steps as described in README.OSX: export DYLD_FORCE_FLAT_NAMESPACE=1 export DYLD_INSERT_LIBRARIES=/usr/local/Cellar/...
4 votes
0 answers
1k views

VNC to a linux desktop in HiDPI mode won't scale properly

I have a linux mint Cinnamon desktop running in HiDPI. When I try to connect to it with a VNC client from my macbook (retina/hidpi display), the desktop shows up about 4x too big. I tried with mac's ...
  • 768
4 votes
0 answers
1k views

Schedule on boot persistent reverse SSH tunnel on Mac OSX

In attempts to run a self sustaining reverse ssh tunnel I have tried installing the 'autossh' package with brew. Autossh works alone when ran through the user's prompt, but not with launchctl/launchd. ...
4 votes
1 answer
890 views

How do I check if sound card is in use and, if possible, which process is using it?

I want to know if a program is using my sound card without my knowledge. I thought about building a program that uses low-level device driver code to do the trick, but am now interested in seeing if I ...
4 votes
0 answers
134 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
0 answers
152 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.
  • 141
4 votes
0 answers
3k 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
1 answer
289 views

OSX/Darwin ACL Format

In OS X, if you want to view the ACL information on a file, you can do so with the -e option of `ls. $ ls -lde app/cache drwxrwxr-x+ 7 alanstorm staff 238 Apr 1 10:02 app/cache 0: user:alanstorm ...
  • 1,343
4 votes
1 answer
214 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 ...
4 votes
0 answers
339 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 ...
  • 141
3 votes
0 answers
593 views

How to use OpenGL on Zink, Mesa, MoltenVK, and macOS

I want to play with OpenGL on macOS 11.6. Awhile ago I tried and got something to run but it seemed to be broken so I assume OpenGL doesn’t work on this version of macOS. I’ve read this is expected on ...
3 votes
1 answer
117 views

Same command sequence produces different results in command-line and script

I'm writing a utility script to help me delete Git branches in zsh. Currently, it looks like this: git for-each-ref --format="%(refname:short)" refs/heads/ | while read -r line; do ...
3 votes
1 answer
362 views

shebang on vagrant mount doesn't work: bad interpreter: Invalid argument

I run in a strange problem if I try to execute a file inside vagrant mount, but not outside: $ cat test #!/usr/bin/env node console.log('works!') $ ls -la test -rwxr-xr-x 1 vagrant vagrant 43 May ...
3 votes
0 answers
53 views

Misinterpretation in Terminal window

I have trouble with typing backlash mark in terminal on Mac. When I enter a yen key, which is supposed to input backslash when it is entered, gibberish characters 'ツ・' appeared on terminal window, ...
  • 31
3 votes
0 answers
124 views

find command "finds" file I'm looking for but it doesn't exist

I am searching for a particular file so I use the find command and it finds the file that I'm looking for: $ find / -name connect_power.aif 2>&1 | grep -v "Operation not permitted\|...
  • 964
3 votes
0 answers
66 views

Keep hidden directories hidden when syncing with rsync (on macOS)

I am on macOS, and am making a backup of one of my external drives to another external drive using the following terminal command: rsync -ahbAX --info=progress2 --stats --delete --backup-dir=/...
3 votes
0 answers
104 views

Cannot turn on atrun to use "at" commands

In Mac OS 10.15.5, I can run the command: echo "mkdir foldername" | at now + 1 minute and it "runs" (i.e. it doesn't give me any error), and when I run atq, it lists it in the ...
  • 31
3 votes
0 answers
4k views

Why does this ssh tunnel command give an error on Mac but not Linux?

I was trying to tunnel a psql connection through a remote login server to a postgres database server, and I encountered some kind of difference in the way the arguments are parsed that led to a period ...
  • 181
3 votes
0 answers
376 views

Linux VM in VirtualBox on MacOS Catalina extremely slow

I have a recent MacBook Pro (2018) with 2.6 GH i7 and 16GB RAM, under the latest version of macOS Catalina (10.15.3). For reasons I don't know, I cannot run VirtualBox without having the VM to be ...
  • 155
3 votes
1 answer
1k views

sudo: unable to initialize PAM: No such file or directory after editing pam.d

I was playing around with the pam.d file in nano and for some reason along the way I lost root access. Whenever I try to use the sudo command, I get an error like this: [redacted]@[redacted] ~ % sudo ...
user avatar
3 votes
0 answers
42 views

How to replace osx with Linux

I tried searching for this answer but the only one I would was from 2012 and surely things have changed since then. Anyway, I inherented an iMac from my Dad when he upgraded to a MacBook Air. I'd ...
  • 609
3 votes
0 answers
703 views

Forward iOS Tablet from Linux Desktop to QEMU macOS VM

I am running macOS 15 in a qemu virtual machine on a manjaro Linux machine. Since I want to use it for iOS development/deployment I tried connecting and forwarding an iPad running the latest iPad-OS ...
3 votes
0 answers
1k views

chmod always gives "illegal option" error

No matter what chmod command I run, I am always getting chmod: illegal option -- - usage: chmod [-fhv] [-R [-H | -L | -P]] [-a | +a | =a [i][# [ n]]] mode|entry file ... chmod [-fhv] [-R [-H | -...
3 votes
0 answers
641 views

QEMU: How to convert -net flags into -device & -netdev

I'm trying to emulate Raspberry Pi via QEMU and the following works for me: qemu-system-arm \ -append "root=/dev/sda2 panic=1 rootfstype=ext4 rw" \ -boot c \ -cpu arm1176 \ -drive "...
3 votes
0 answers
3k views

mount: realpath <PATH>: no such file or directory

I'm attempting to mount a NAS drive locally, but am having trouble: mount -t smbfs //user:password@nas/path ./tmp Produces mount: realpath /Users/user/tmp: No such file or directory For context, ...
  • 151
3 votes
1 answer
885 views

How can I use a mac to scroll and copy-paste text on the tmux via ssh?

I always use macos Terminal.app to control my ubuntu servers via ssh, and I need to use tmux to keep my program running in background. Now, I know how to configure the tmux (on my ubuntu servers) to ...
  • 41
3 votes
0 answers
460 views

Do other Unix-like kernels have stable syscall ABIs?

Linux has a stable syscall ABI, but NT doesn't, Windows just ensure Win32 ABI is stable, which will not trap into kernel space immediately. Lower level functions of Windows like nt.dll might change ...
3 votes
0 answers
3k views

Very slow login + very slow response - dbus error? - Ubuntu 18.04.1 LTS - on Virtualbox 5.2.18 r124319 (Qt5.6.3) - on MacOS High Sierra 10.13.6

This looks similar to dbus errors I see reported, but they are supposed to be fixed. The system is extremely slow performance, particularly at logon - even the console logon is very slow. There are ...
3 votes
0 answers
804 views

netstat show a listen port but pid don't exist and can't find it with lsof

I am running macOS(0.13.6) and while trying to test tinc, I get a warning that port 0.0.0.0:655 is already in use. This is the output I get from netstat: $ sudo netstat -anv -p udp Active Internet ...
  • 584
3 votes
0 answers
1k views

osx virtualbox seamless mode

I have been trying to get virtualbox seamless mode working and am not getting adequate results. Background info: host: Mac OS "Kernel Version 17.6.0" virtualbox: "Version 5.2.12 r122591 (Qt5....
  • 251
3 votes
1 answer
693 views

How to resolve a group name to gid both in OSX and Linux?

Is there a [short] piece of code to turn a symbolic group name (e.g. staff) into its numeric group id (e.g. 82) ? The code should work the same in OS X and GNU/Linux.
  • 920
3 votes
0 answers
815 views

Steam In Home Streaming from Ubuntu to macOS over VPN

in my office I have an Ubuntu workstation with a decent gaming GPU. At home, I have only a 13" MacBook Pro which is not that much a gaming machine. Fortunately, Steam has this great feature called In ...
user avatar
3 votes
0 answers
1k views

AFP Client (afpfs-ng) ls: reading directory .: Input/output error, CentOS 7 & MacOS Sierra

I need a Client in CentOS 7 to get access to a shared folder of Mac Sierra using AFP protocol. I installed afpfs-ng-0.8.2, previously fuse-2.9.7 from sources following the fuse-2.9.4 instructions $ ...
3 votes
1 answer
927 views

Block all traffic out except one port with pfctl for macOS

As stated in the question, I need to block all traffic out to internet except for one port on MAC OS X 10.8.x. I just need the commands to run from a shell or edit any conf file?
3 votes
1 answer
124 views

New (login) shells (window) opens at $HOME rather than $PWD (like they used to) on macOS. What gives?

Every time I open a new shell window, I'm brought to my home directory rather than the current directory I was in when I gave the command to open a new Terminal.app window. I am under the impression ...
  • 46

1
2 3 4 5
14