Skip to main content

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
0 votes
0 answers
23 views

merging of csv files has changed the date format of date column

I am using a below script to combine several files into one. awk '(NR == 1) || (FNR > 1)' InterfaceStatistics*.csv > /home/vikrant_singh_rana/nfv/merge/InterfaceStatistics_merge_file.csv files ...
vikrant rana's user avatar
1 vote
5 answers
283 views

Where to install folder of a command-line app in macOS, to be available by default in my shell? [duplicate]

tl;dr Goal: Easily download zip file with a console app (and other files), execute it, and later replace it with updated version. Details When I want to download a console app, with a command-line ...
Basil Bourque's user avatar
3 votes
1 answer
54 views

How to fix script which requires EFI System Partition (ESP) to be disk0s1 in macOS?

I see a post which is 12 years old: How to fix broken EFI partition? System: Macbook Pro 2019 with Intel & T2, upgraded to Sonoma. Objective: Dual boot with T2Linux Fedora using https://t2linux....
tom_kp's user avatar
  • 71
0 votes
0 answers
22 views

Macbook Pro (late 2016) reboots during boot but Ubuntu is fine, need help troubleshooting to get to boot into MacOS

We're trying to identify why a macbook won't boot into any MacOS or Mac related recovery mechanism and what we can do to correct this. The answer we've gotten so far is that it's the logic board, but ...
Fennema's user avatar
-1 votes
1 answer
59 views

ubuntu 22.04 on iMac 2012 - 27" - external screen and nvidia drivers [closed]

I am running Ubuntu 22.04 on an iMac 2012 fusion drive - to my great satisfaction. (Dual boot with OSX / MacOs Catalina) The only problem I had was that I could not get an external 27" monitor to ...
TheGlasses's user avatar
0 votes
0 answers
68 views

How to install Linux Mint on a Mac Pro 1,1

I have a 2006/2007 Mac Pro 1,1 on which I want to install Linux Mint. As I understand it, the main roadblock to doing so is the fact that the 1,1 has a 32-bit EFI and the Linux distributions no longer ...
Dave's user avatar
  • 1
1 vote
0 answers
42 views

Unknown proccess listening on udp port 53

I was trying to start dnscrypy-proxy on my local machine to listen on its private ip address for use in my homenetwork, but it fails to start saying listen udp 192.168.0.2:53: bind: address already in ...
unbeatable101's user avatar
2 votes
1 answer
131 views

Attempt to fix macOS startup volume after dual-boot Linux partition removal

I have attempted to install Linux on my MacBook Pro 15" alongside macOS (Catalina) for a team project. Since I needed the space reserved for the Linux partition back, I have decided to remove it ...
TylerDurden's user avatar
1 vote
1 answer
251 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

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
  • 113
0 votes
0 answers
78 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
82 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
152 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
142 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
0 answers
1k 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
264 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
20 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
232 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
47 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
31 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
353 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
73 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
4k 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
1 vote
1 answer
314 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
241 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-...
upontu's user avatar
  • 33
0 votes
0 answers
274 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 Hamilton's user avatar
3 votes
2 answers
394 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
  • 165
0 votes
1 answer
601 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
1k 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
90 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
  • 582
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,115
1 vote
0 answers
367 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
139 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
304 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
373 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
90 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
208 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
133 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
240 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
168 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
18 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
273 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
752 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
100 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
206 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
1 answer
6k 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
3 votes
0 answers
517 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
181 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
  • 525
1 vote
1 answer
320 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
1k 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

1
2 3 4 5
22