Questions tagged [unix]

UNIX is both the underlying code and architecture that makes up Mac OS X / iOS as well as a way of interacting with a Mac using the terminal app, X11 app, and various shells like `bash` or `zsh`. Whether you're logging into a mac using `ssh`, using `mdfind` or `tmutil` or using other open source software, you are doing things very much in common with other UNIX operating systems and toolsets such as Linux, GNU, and many, many others too numerous to list.

Filter by
Sorted by
Tagged with
1 vote
1 answer
96 views

How do I remove Ubuntu from my MacBook?

My MacBook has three OSs at the same time: macOS, Boot Camp Windows 10, and Ubuntu. It will display Windows, Macintosh HD, and EFI Boot (going to Ubuntu) when pressing the option when booting. I split ...
whaleboss's user avatar
0 votes
0 answers
20 views

Macbook freezing

My MacBook Air (2014) keeps freezing shortly after boot. When it was off a day or so I might be able to use it for 10-15 minutes. After a few boots however the time gets shorter and it might not even ...
user1785730's user avatar
0 votes
0 answers
13 views

Mouse and keyboard input and audio output doesn't work in X11 window

Through some form of dark magic, I was able to make a Linux X11 QT/GTK2 (I don't know which one) application compile and run on my 2021 MacBook Pro running macOS 14.1. All the windows open fine, but ...
AcinonX's user avatar
  • 13
0 votes
0 answers
24 views

Can I flash Linux on Apple TV A1469? [duplicate]

I'm looking for a way to flash Linux (pihole to be more specific) on my old Apple TV Model A1469. Searched a lot but only found a way to do in the 1st gen. Any way I can do this?
Gabriel Dercílio's user avatar
1 vote
1 answer
53 views

Run Windows 11 under Linux on an iMac 2012

I am booting in Linux on an iMac 27" from 2012. I wanted to install Windows 11 in VirtualBox, but that does not work. I gave it 2 CPU's, 8 GB mem and 80 GB hdd space. In VirtualBox I get the ...
TheGlasses's user avatar
0 votes
0 answers
48 views

How to synchronize iphone pictures to a linux laptop?

Last year I purchased an iphone 8 which I connect through USB to my Linux laptop (Debian 12 bookworm). Now I need to change it because the screen is broken. Before doing that I would like to save the ...
Paul Rougieux's user avatar
1 vote
1 answer
69 views

Dual-Boot MacBook Pro 2015 stuck loading into GNU GRUB version 2.04

a while ago I decided to dual boot Ubuntu onto my Macbook but recently decided to remove the partition. This has caused the Mac to only boot into GNU GRUB version 2.04. While I know internet recovery ...
cb98's user avatar
  • 11
1 vote
1 answer
353 views

Telegram takes up a lot of space on macbook

There is a folder on my macbook (mac os Monterey): Library/Group containers/Telegram/stable/account-.../postbox/db/db_sqlite and it contains a 4.3 GB db_sqlite file. There are not so many groups and ...
Kirill Sereda's user avatar
0 votes
0 answers
124 views

Secondary DNS server preferred over primary on iOS

I have created a local DNS server using BIND9. It is just a simple DNS server that forwards queries to 1.1.1.1. When I use this as the only manual DNS server on my iOS device, it works fine. However ...
M9A's user avatar
  • 141
1 vote
0 answers
19 views

Repartitioned 1TB APFS SSD to MSDOS 120GB for Linux. Linux installer sees wrong slice names, though cfdisk reports correctly

model: macbook pro (2016) 3.5G Intel 1TB SSD Ventura 13.5 Attempt 1) Resized a 120GB partition for Ubuntu. Big mistake, lost all data. Attempt 2) Reinstalled Ventura 13.5, partitioned 120GB for EXT4 ...
queryman2000's user avatar
1 vote
1 answer
176 views

X ssh forwarding not working from a macOS 13.4.1 to Debian Linux 11

I have currently an issue about trying to get a SSH X forwarding connection from a macOS Ventura to a Debian Linux 11. I am using XQuartz 2.8.4 (2.8.5 failed in installation). I don't know where the ...
guizmo133's user avatar
0 votes
1 answer
28 views

XFCE Build Error xdt-csource.1

I'm trying to build xfce4-dev-tools on macOS Monetary. to build and install xfce4 desktop environment. im a total noob when it comes to building c/c++ programs. Following the steps - cloned the repo, ...
janithcooray's user avatar
0 votes
0 answers
23 views

Mac no longer connects to samba drive after samba is reinstalled

I have a ubuntu server running locally with samba. It was corrupted during the Ubuntu upgrade and I just reinstall ubuntu on it and call it a day. On my Mac Mini, it appears it no longer connects to ...
ylhtravis's user avatar
1 vote
1 answer
146 views

Upgrading Linux Distro on 2006 MacBook 2,1

I used the link below to install Ubuntu 16 on my 2006 MacBook 2,1. It worked great, props to the contributors. I am interested in upgrading or switching distros on this machine. Will the config on ...
cdyno4's user avatar
  • 11
0 votes
0 answers
48 views

MacBook reboots during Debian installation

I'm trying to install Debian on my MacBook Pro (late 2013): prepare a bootable usb: $ sudo dd if=path_to/debian-live-12.0.0-amd64-xfce.iso of=/dev/sda plug in usb drive and reboot MacBook: The ...
Rahn's user avatar
  • 151
3 votes
0 answers
1k views

Install a Linux distrubution on Apple TV Model A1469

So, recently, I found an Apple TV at my house. Since it no longer supports Youtube and I don't really have a use for it, I want to make a little makeshift computer for browsing the web. Problem? ...
EXJudgement's user avatar
0 votes
1 answer
146 views

Apple accessing Samba Share on Linux The operation can't be completed because the original item can't be found

I'm trying to connect to samba shares on a debian machine in the same network from a Mac running Ventura 13.4.1. It all works perfectly fine if I do CMD+K, and input the credentials there (like smb://...
MuchToKnow's user avatar
3 votes
3 answers
204 views

How to SSH when current user cannot access identity file?

I wish to find a shell one-liner on macOS that runs a command on a remote machine via SSH with a different non-root user (say, joe), using an identity file that only joe can access. The following one-...
Kartik Pontula's user avatar
0 votes
0 answers
193 views

How can I install Agda on iSH?

I want to use Agda in iSH. Agda seems to suggest you need cabal to install it. I don’t know why (as in, if you could build it from source, without Cabal). Perhaps Agda is written in Haskell. https://...
Julius H.'s user avatar
  • 303
3 votes
2 answers
382 views

What are the directories I see when I hit tab on `cd ~` that are not seen in `ls ~`

When I hit tab on cd ~, I see a lost of directories starting with _ so something like _dirName which are not see when I list ls ~. I also see myUsername, root, daemon, nobody, Guest directories. What ...
darthV's user avatar
  • 145
0 votes
1 answer
390 views

Multipass fails to launch an instance on OSX BigSur 11.7

After installing Multipass using brew install multipass or directly from the Canonical website, a persistent error occurs when starting an instance: multipass shell start failed: The following errors ...
coterobarros's user avatar
2 votes
1 answer
416 views

how to let `clear` command just clears the current screen

I use iTerm2 apps as my terminal option on my Mac computers. On my 1st Mac, when I type clear, it just clears out the current screen, and when I scroll up, it could still show the previous contents on ...
Fisher Coder's user avatar
0 votes
1 answer
65 views

Using sed to replace line results in two lines for each one replaced

I have been trying to automate something, using sed in a loop I wanted to do this: while IFS= read -r line; do sed -r -i '' "\"s|::set-output name=(.*)::(.*)\"|\"\1=\2\" >...
Rumbles's user avatar
  • 492
3 votes
2 answers
2k views

Why didn't reverse grep work to filter out "Operation not permitted" from find results?

When I want to reverse grep the words in macOS 13.2 like this: $ sudo find / -name "libpq.dylib" | grep -v "Operation not permitted" find: /Library/Application Support/com.apple....
Dolphin's user avatar
  • 1,011
1 vote
0 answers
244 views

How to bless boot partition for Ubuntu 22.04 on an Intel (2009) MacBookPro

I asked this on the Ubuntu exchange where I personally think it belongs, but they directed me here so please don't close this and tell me to ask there. I'm booting from the Mac OS X Lion installation ...
user3700562's user avatar
2 votes
0 answers
112 views

File permission problem updating a .swift file on macOS from Windows 10 on same LAN

On MacOS 13.2.1 in my work folder I execute: sudo chmod -R a=rwx * Finder > file's Get Info > Permissions become: Name "myMacAccount" Privilege "read & write) Name staff ...
Doug Null's user avatar
  • 165
0 votes
0 answers
200 views

How to improve performance for MacOS Screen sharing to Ubuntu vino-server?

I'm using MacOS Screensharing client to connect to the built-in vino-server on Ubuntu 20.04 LTS all on my local gigabit LAN. It connects reliably, however performance is pretty bad, almost unusable. ...
Dhiraj Gupta's user avatar
0 votes
0 answers
321 views

VMware Fusion Ubuntu is stuck on black screen and can't load anything

I am using VMware Fusion to open up an Ubuntu VM on my Mac. The screen currently just shows up as a black screen and doesn't load anything. I have access to VMware Preferences but can't access the ...
ksdicecream's user avatar
1 vote
1 answer
59 views

How to save input of `less` to file as explained in the man doc?

I'm trying to save the piped input to less to a file as explained in the man doc: s filename Save the input to a file. This only works if the input is a pipe, not an ordinary file. However, ...
Cornelius Roemer's user avatar
0 votes
0 answers
156 views

Mac won't accept SSH traffic despite being set to allow remote access to all users

I am trying to ssh -v user_name@host_address from Linux to a Mac and I get this output: OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /...
purpleglaciers's user avatar
0 votes
2 answers
119 views

Encrypt PDF on Linux, decrypt on Mac? (in 2023)

There are many tools available for the Linux user to encrypt a file: Encrypting/Decrypting a single file in Ubuntu 12.04 LTS. I want to… encrypt a single PDF on my Linux OS, email it to a non-...
Hunter's user avatar
  • 1
1 vote
1 answer
184 views

I was trying to delete Ubuntu from my MacBook Air and now I can't access macOS

I had installed Ubuntu on my MacBook, but I don't need it anymore so I was trying to delete the parts of Ubuntu. When I entered Disk Utility the minus button was greyed out, so I checked some videos ...
Omar15's user avatar
  • 13
0 votes
1 answer
125 views

Why is b0VIM 9.0 is in my Mac Terminal PATH

I recently noticed that this is in my mac $PATH variable. Does anyone know why or what it is? A little googling indicated that the name b0VIM is a VIM swap file. Why would it be in my mac path? Is ...
dev101's user avatar
  • 103
0 votes
0 answers
24 views

Can I connect my Mac Pro laptop's keyboard and touch pad to my other linux laptop? [duplicate]

This would seem weird but is it possible to connect my macbook pro's keyboard and touch pad so that I can switch between laptops easily ?
Chirag Baghasingh's user avatar
0 votes
0 answers
16 views

How to programmatically change audio output to built in speakers ALWAYS [duplicate]

I've seen answers like these but what I'm trying to do is programmatically ALWAYS set the audio output to built-in speakers regardless of which row item the Mac is currently tuned to. In the code ...
Mansidak's user avatar
0 votes
0 answers
197 views

Run Linux system in bootable USB but very slow on Mac laptop

I install the Linux (Ubuntu 22.04) in the USB 3.0 drive by my MacBook Pro (Retina Early 2015 13"), but when I open Linux, everything is slow. For example, when I open Firefox, I need to wait 5 ...
Simon's user avatar
  • 1
1 vote
1 answer
389 views

how to transfer a directory from a macbook using rsync to a windows wsl ubuntu directory

I have an updated copy of my home directory on my Macbook that I would like to replicate in my Windows 11 WSL Ubuntu machine (in its ext4 file system). I would like to use rsync to do so, if possible....
intel_chris's user avatar
3 votes
0 answers
89 views

how to recover from chmod 777 -R /

So I ran sudo chmod 777 -R / on my iMac. Now it won't boot, and around 2 hours ago I restarted the system hoping to gain access to recovery mode, but the loading bar is stuck in the exact middle and ...
Mark Wilson's user avatar
2 votes
2 answers
168 views

Macos not searching Ubuntu file share

I have a ubuntu server 22.04 setup and it is sharing files using samba. The mac computer can connect to it and use the files just fine. My problem comes in when i try and search for a file or folder ...
Kevin Mc Clintock's user avatar
0 votes
0 answers
46 views

If statement not working properly in automator

I can run 2 separate chmod commands (1 for files & 1 for multiple folders) that work correctly in Apple's Automator, but when I introduce an if statement to run both commands, it doesn't include ...
cucaracha's user avatar
0 votes
1 answer
4k views

How to install Ubuntu terminal on macOS? [closed]

I am new to macOS, and I was using Ubuntu for more than a decade. Now, I switched to macOS and I am wondering how to get Ubuntu terminal on macOS? Does anyone here know how to convert macOS terminal ...
1n4ho12's user avatar
2 votes
0 answers
325 views

Is there a suitable alternative to mlocate for macOS?

I would like to replicate the functionality of mlocate (not findutils) from Linux in macOS. I've tried the following alternatives, but each has its own downside: findutils: only world-readable files ...
Ben Davis's user avatar
0 votes
0 answers
49 views

How to come out of screen session on a remote server?

I am not able to recall I used to do it in past. I am connecting to a remote linux machine from my MacOS. I could create the session by running screen S sessionname but unable to come out of it ...
Volatil3's user avatar
  • 515
1 vote
1 answer
277 views

hdiutil within "darling" can't do anything but "attach" and "detach". Can it be improved or something else?

When I run hdiutil within Darling I get: Darling [/Volumes/SystemRoot/home/user]$ hdiutil Usage: hdiutil <action> Possible actions: attach [options] <file> Mounts a .dmg file &...
Сергей Попков's user avatar
0 votes
1 answer
878 views

MacBook Air M1 dual boot from external SSD

I have a MacBook Air M1 512 Gb and I want to be able to use Linux (Asahi), since it's necessary for my university. However, I don't want to use internal space and I thought that I could maybe use an ...
Giacomo Paltri's user avatar
0 votes
1 answer
156 views

2019 T2 I9 MacBookPro - linux boot external drive

I have a triple boot set up on T2 Macbook Pro. macOS, Windows 10, Arch Linux boot off of the internal NVMe drive, which works fine. I also have an external TB enclosure Orico with a NVMe drive set up ...
MB.'s user avatar
  • 141
1 vote
1 answer
583 views

How do you turn on write blocking to USBs on a Mac?

I'm trying to capture a forensic image of a USB stick using Linux dd on my Macbook. I'm having trouble turning on write blocking to the USB stick before taking the image. In Windows you use a ...
Sydney E's user avatar
0 votes
1 answer
105 views

Apple Watch app to trigger shell scripts on remote UNIX box

I've finally switched from a Pebble Smartwatch to an Apple Watch, and I need a replacement for this app: https://store-beta.rebble.io/app/568a4cfa496916a93f00004e The watch displays a list of shell ...
Wowfunhappy's user avatar
  • 7,323
1 vote
0 answers
60 views

Fusion Drive split after removing the SSD and HDD from a iMac with a broken power supply / logicboard

Recently, my iMac just turned off and did not start anymore. After countless tries, I opened the iMac and removed the SSD and HHD (Fusion Drive) in the iMac in order to rescue my data. I am not really ...
user10802841's user avatar
0 votes
1 answer
463 views

Dual boot MacBook Pro 14.1 w/ Mojave/Ubuntu 22.04 won't set permanently macOS as default boot option after each Ubuntu session

I just installed Ubuntu 22.04 on a partition. I'd like macOS 10.14.6 to be the default system to boot and having the possibility to choose Ubuntu only if I hold option key to get into the Mac startup ...
SilenceDeisgner's user avatar

1
2 3 4 5
22