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
0answers
17 views

Can't use built-in Macbook keyboard when dual booting linux

So I've decided to dual boot Kali Linux on my 2019 MacBook Pro. I followed the installation process on the Kali Linux website. When I select the live USB disk, I have to hook up an external keyboard ...
0
votes
0answers
18 views

syntax error near unexpected token newline [closed]

I am trying to install GitLab server into mu ubuntu server but I got the following error
0
votes
1answer
10 views

sshfs under autofs from Debian 10.9 to macOS 11.0 fails, but sshfs without autofs from and to same works fine

I am attempting to set up autofs to spawn an sshfs. The autofs is on a Debian 10.9 system. The remote sshd I want it to connect to is on a mac running Big Sur. When I try to ls the intended (auto)...
1
vote
1answer
36 views

Is it possible to limit ps column output to a specified length starting from the back?

Can you limit the size of the COMMAND column field output by ps by removing chgaracters from the end. Or only show certain fields when executing ps aux. So, I'd like to only display the first 10 ...
0
votes
0answers
20 views

How do I boot a mid-2015 15 inch MacBook Pro with Mac OS High Sierra, Mac OS Big Sur, Ubuntu 20.04, and Windows 10?

The first thing I tried was dual booting Sierra and Big Sur and then installing Ubuntu, but I couldn't figure out a way to install Windows 10. Bootcamp wouldn't let me boot in to windows because I had ...
0
votes
0answers
27 views

Fix Mac sed script

Starting from this solution, I created a modified version of the sed script as: sed -e s/CREDIT/DEBIT/g -e t -e s/DEBIT/CREDIT/g -i "" transactions.OFX However, I don't seem to be getting ...
0
votes
2answers
80 views

rsync 3.2.3 keeps crashing on Mac mini M1

Trying to use rsync on a Mac mini M1 to backup from an external hard drive(formatted as APFS) to a NAS (shared as smb/cifs). I've tried a number of rsync commands but this was the most recent rsync -...
0
votes
0answers
13 views

Display problem when using Xquartz for ssh to a remote server

I see this black and white display for Matlab when is ssh -X remoteuser@ip to my remote server. Server runs with ubuntu 18. If I ssh using other OS, like windows or ubuntu, it runs fine. Only issue is ...
0
votes
0answers
38 views

How to run gnome-terminal (MacPorts) gtk-doc error

I have installed gnome-terminal via Mac Ports following this post: Is there anyway to use GNOME terminal on macOS? However, I can't seem to find information on how to run the the terminal? Any ideas. ...
0
votes
0answers
76 views

on MacOS BigSur while adding iso file to Ubuntu VM in the virtualbox seeing error VM session was aborted. Result Code: NS_ERROR_FAILURE (0x80004005)

My System information: Macbook Pro macOS Big Sur VirtualBox-6.1.22 version What I'm trying to do ? Trying to run Ubuntu 20.04 VM on top of VirtualBox-6.1.22 and while adding the Iso Image facing this ...
-1
votes
1answer
50 views

How to get all GNU tools on MacOS 11?

I already know about binutils brew install binutils, but it is missing a specific command I need: ld, as mentioned in this other question of mine: MacOS equivalent for Ubuntu Linker (ld) command? I am ...
2
votes
1answer
55 views

Converting an APFS volume (and it's partitions) to HFS+(non-J) without needing to migrate data

After moving from macOS to a Linux-based distribution, I benefit from deciding to have most of my backups on HFS+ partitions (with journaling disabled using a program that changes the value of ...
2
votes
1answer
71 views

Logging into a macOS system from a Linux system gives a locale-related warning

I'm logging into a Mac laptop from a Linux laptop over ssh - so I have an ssh daemon on the Mac side, and I'm using the /usr/bin/ssh client on the Linux side. I consistently get: -bash: warning: ...
1
vote
0answers
48 views

Unable to reinstall macOS on MacBook Pro after installing Ubuntu

In the process of installing Ubuntu 20.04 on my Mac Book Pro (Retina, 15-inch, Mid 2015), I formatted the whole disk and installed Ubuntu 20.04. Now I am unable to install macOS back, previously ...
1
vote
0answers
19 views

Edit lots of profiles in iTerm2

A longtime user of Terminal on the Mac, a colleague recently recommended iTerm2. I had a play around with it, and the same colleague gave me his Profiles JSON file. In vim, I was able to do a ...
-1
votes
1answer
49 views

What are the benefits of XNU using Mach features compared to a full FreeBSD kernel? [closed]

The Darwin kernel is a hybrid of Mach and FreeBSD. What are the benefits of using such a hybrid architecture compared to a full FreeBSD kernel? I'm not looking for subjective opinions of why this ...
0
votes
0answers
25 views

Can't solve 'passwd: Authentication token manipulation error' error

I'm trying to SSH into a Hills server for my local junior college. The system asks for my (current) UNIX password, however, when I enter the password I get the following error: (current) UNIX password:...
0
votes
0answers
56 views

Is it possible to install Ubuntu on an external SSD on the 2019 16 inch MacBook Pro?

I'm considering buying the 16 inch 2019 MacBook Pro because I need a powerful x86 machine that can run macOS, but I would also be interested in running other operating systems on this computer. I know ...
0
votes
0answers
15 views

Cannot boot into macOS

A while ago, I installed Ubuntu along with the macOS on my MacBook. Yesterday, I decided I should uninstall Ubuntu. I read a post on how to uninstall Ubuntu. What I did was, in Disk Utility on macOS I ...
1
vote
0answers
24 views

How do I stream Linux audio to Mac computer?

Basically the reverse of this question: How do I stream Mac audio to Linux computer? How do I stream my linux audio (PopOS) to my Mac
-1
votes
1answer
34 views

List of Linux programs which are not in macOS

I know the following programs are in Linux but not in macOS. Are there more? Where can I find the list? Please ignore BSD counterparts. tree watch wget wdiff gdb autoconf
0
votes
0answers
26 views

du reports subdirectory sizes which add up to more than the total disk size

My total physical drive space is 256GB and i am not connected to any remote storage. When i run du -sxh ./* 2>/dev/null in zsh shell on macOS Big Sur 11.2.3, i get the following results: 39G ./...
0
votes
0answers
37 views

Cycle Through MacOS Terminal Profiles From the Command Line

How can I change my Terminal's profile with commands? Let's say I wanted to switch from my custom terminal profile to the "basic" terminal profile, how would I do that with commands instead ...
1
vote
1answer
109 views

Only Transmission traffic through VPN

I would like to use my favourite torrent client, Transmission, over a VPN service but at the same time I do not want to direct any other traffic therethrough. That is, I want to use my VPN service ...
1
vote
0answers
55 views

Remotely access Mac from Linux using krdc

Following up on Can I remotely access my Mac from Linux using screen sharing? I've set up the Mac to be Accessed Remotely via VNC I am trying to remotely access it from Linux using krdc which I am ...
0
votes
0answers
112 views

Ubuntu on Mac: Executing 'grub-install /dev/nvme0n1' failed

I know this is a super common issue, but if I am here it means I have already searched and tried many roads: unsuccessfully. I am trying to install Ubuntu on a MacBookPro 13" 2019, running MacOS ...
0
votes
1answer
84 views

I get an error sed: 1: “1~2d”: invalid command code ~ when I use sed '1~2d' sample.txt

On macOS version 11.2.2. $ which sed /usr/bin/sed sed version: 4.8 SED(1) When I run this code on Ubuntu, it works. $ sed '1~2d' sample.txt two four six But when I run this on macOS, both in zsh and ...
0
votes
0answers
37 views

How does Big Sur determine execute permissions

In trying to add programs to the Full Disk Access list it is not clear how Big Sur determines which files are executable and thus addable to the Full Disk Access list. For instance I have files in /...
0
votes
1answer
193 views

Extract some IPA from iPhone to USB Memory without jailbroken/download from App Store without iOS Device

How can I copy an IPA (iOS App Store Package) from my iPhone to a USB memory, using Linux, macOS, or Windows OS? Alternatively, How to download IPA directly to my Laptop from App Store without iOS ...
1
vote
1answer
170 views

Kali Linux bootable USB not showing up in boot menu

I am using a 2018 MBA running Big Sur I wanted to create a persistent bootable USB with Kali Linux and have followed the exact instructions as given in this article: https://medium.com/macoclock/...
0
votes
1answer
34 views

Share / view files betweek Mac OS X and Linux (Ubuntu) using sshfs and GUI

I just want to access file from Mac OS X (Big Sur / 11.2.1) on my Linux (Ubuntu 20.04.2 machine) and vice versa. I did not like the idea using SMB - or should I really do it?? What I did OS X : ...
0
votes
1answer
159 views

How to remap Mac keyboard with Xmodmap

I was trying to remap my Mac's keyboard with Xmodmap, but it was only somewhat successful. The remapping works when I look for the keycodes with the event tester, but when I actually type the keyboard ...
0
votes
2answers
92 views

macOS Cannot Create Valid Symlink From Terminal Using Relative Paths

Using the following snippet it creates an invalid symlink. But according to other answers it should work fine. # make a temp dir and save path to var. # set dir (mktemp -d) # fish shell only! dir=$(...
1
vote
1answer
74 views

How can I find the PTUUID of a partition in a Linux IMG file on macOS

I need to find out the PTUUID of a partition on an IMG file. This can be easily done in Linux by using the following command: user@ubuntu:~$ sudo blkid /mnt/hgfs/Downloads/RPi/2021-01-11-raspios-...
0
votes
1answer
53 views

How can you open a video on your desktop at a specific time using terminal?

I wanted to know if it was possible to open a mp4 file located on my desktop right at a specific time of the video (e.g. 1 hour 10 minutes 30 seconds) using the terminal? $ open /Volumes/USERNAME/...
1
vote
1answer
140 views

Why isn't Startup Manager showing Ubuntu Netboot USB - mid 2010 imac 21.5"

Apologies if this question is inappropriate for this forum I am not sure whether I should be on the Apple or Ubuntu StackExchange. I am trying to turn an iMac mid 2010 21.5" into a home server by ...
0
votes
0answers
44 views

How can I protect lock down the hosts file under SIP

I want to prevent myself from modifying the hosts file. I tried to do what was answered here: Protect hosts file , which was: -disable sip by booting into recovery mode and reboot -run: chflags ...
1
vote
1answer
76 views

move grub from sd-card to win partition?

i'm not the first one with this kind of problem, but my specific nuance, i did not yet encounter: i have a 2014 macbook pro with os x plus a windows 10 bootcamp partition. now i wanted to have a look ...
1
vote
0answers
46 views

Late 2007 MacBook: can't boot from USB/DVD to install Windows 7

I have a late 2007 MacBook with Ubuntu. I want to install Windows 7, but can't even reach the installation. I've tried to boot from a USB and DVD. Both don't work. When the computer starts, I hold the ...
1
vote
0answers
173 views

Can’t install 64 bit linux distros on A1176 2006 Mac Mini?

I am trying to install a linux distribution called Ubuntu MATE onto a 2006 Mac Mini. I can’t get 64 bit install media to boot but I can with 32 bit. The Core 2 Duo in the computer is a 64 bit CPU so ...
2
votes
1answer
60 views

Why are load averages on macOS always over 1.0

My load average on a bunch of Macs running Catalina and Big Sur is always over 1 (1.2 -> 1.5), with just finder open, or safari idle... On my other linux boxes raspberry pi etc, I usually see close ...
2
votes
1answer
137 views

Network scan shows several linux-related security vulnerabilities on a Mac. Do I need to wory?

One of my company computers - a Macbook Air, was shown to have security vulnerability as part of a recent external network scan. The issues are related to Linux 4.0. Mac OS is a UNIX flavor, not Linux ...
0
votes
1answer
51 views

How do I make Terminal/UNIX tools to start the week on Sunday?

I can't quite make this happen. Setting LC_TIME seems to work, but the locales are broken or whatever? How do I force this onto my system? $ for i in (locale -a); bash -c "LC_TIME=$i date -j -f '%...
1
vote
2answers
292 views

Newly installed Debian stuck on loading on MacBook Pro “Core 2 Duo” 2.16

I made a successful installation of Debian 10.6 32 bits on my 2007 MacBook Pro "Core Duo" 2.16 GHz (T2600). 2007 MacBook Pro 15-Inch "Core 2 Duo" 2.16 2.16 GHz Core 2 Duo (T7400) ...
1
vote
0answers
87 views

How use 'expect' to runing 'openconnect VPN' in background?

I'm a newbie to write bash script,I was using macOS catalina, and I write a bash script which use expect to run openconnect, #!/usr/bin/expect ... spawn sudo openconnect --user xxx --protocol=...
0
votes
0answers
337 views

Dual Boot Catalina and Pop!-OS with Data-Sharing Partition

I want to dual boot both an up-to-date version of macOS and an up-to-date version of Pop!-OS on my MacBook Pro 2016 without T2 chip. I am currently running macOS Catalina. Can somebody comment on the ...
1
vote
1answer
86 views

Best file system for external hard drive, to be used on both Linux and macOS?

What's the best file system that I can use for an external HD which I want to use on both a macOS system, and a linux system? I can transfer files using sneaker-net much faster than through an AFP or ...
1
vote
1answer
124 views

Macbook Pro main volume not accessible - filesystem type FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF

Preface: I know there are lots of other questions about this on here, but they do not exactly match my situation and/or I do not have the technical knowledge to apply the answers to my situation. ...
7
votes
3answers
918 views

Is it possible to compile UNIX command line program for Apple Silicon architecture on Intel-based Mac?

I have a GUI wrapper of UNIX command line program. I noticed that Apple announced Apple Silicon Mac. Sooner or later I need to build Universal Binary of my GUI wrapper. But at first, I need to ...
0
votes
0answers
23 views

running macos Desktop with broken display on Linux laptop

is there an opportunity to run the Macos Desktop from my Macbook air laptop on an ASUS Laptop with a Linux enviroment on it .The problem here is,the display of my Macbook air is broken, so i cannot ...

1
2 3 4 5
20