0
votes
1answer
16 views

Exit status of commands before last command

On OS X, Linux, and other systems, you can use $? to get the exit code of the last command. Is there any way to exit codes of older commands? Either by saying "give me the exit code of the nth ...
0
votes
1answer
29 views

Sharing files between ubuntu and mac using parallel desktop

I'm using parallel desktop on OS X 10.9.4 with an ubuntu 14.04 installed on. I want to share folders between these two operating system but I can not find any method doing it. I tried to change the ...
-1
votes
0answers
26 views

Is there a 'plugin' or preferences file that I can use to make curl output formatted (i.e. HTML, javascript, JSON blobs, etc)?

When I type curl www.google.com I get an unintelligible mess. Is there a way to output this formatted and in color? I have seen someone do this before and they said they had a 'plugin'. If you don't ...
0
votes
0answers
9 views

Adding more than one image as album art to mp3 via command line

I want to add two images (front and back cover) to my converted mp3s. At this time I convert all my WAVs with lame, then I convert the ID3 tag version from 2.3 to 2.4 via eyeD3 and then I will add two ...
0
votes
0answers
14 views

How to truncate large file on osx?

I have a 500mb file. I want to keep only the first 5 mb. How can I truncate it on osx where the 'truncate' command isn't available (and can't be installed by homebrew)?
0
votes
3answers
42 views

*nix virtual environment

I used python-virtualenv previously for python tools, but now I've found a new remote job which needs a lot of native tools to be installed into my system. The question is how can I separate my ...
1
vote
0answers
32 views

Dual booting Kali linux on Macbook Air (Late 2010 model) booting into OS

There is a problem that occurs when I attempt to boot into the Kali linux OS on my macbook air, in which the screen turns into a jumble of disfigured ascii characters and random coloured pixels. I ...
-1
votes
1answer
13 views

How send tmux prefixer to remote server using iterm2

This is my first time using tmux and I have a problem. I have a remote server that I am connecting to it using ssh(using iterm2). Since opened, when I try to send commands like ctrl+b+c command+b+c ...
1
vote
1answer
71 views

What is the difference between OS X and Linux filesystem? [closed]

When I go to the terminal in a Mac running OS X 10.something, which is everything now, the file hierarchy and naming scheme, especially when I cd to the root of the hierarchy it looks identical to ...
0
votes
0answers
42 views

problems dual booting Linux on OSX using rEFIt/rEFInd

Firstly let me start off by saying that I am a novice at this type of thing, so any help/advice is appreciated. I'm having problems dual booting on my MacBook with OSX Lion (10.7.5). Trying to ...
0
votes
0answers
14 views

Mount encfs volume created by encfs4win on OS X or Linux

I created a few encfs volumes on Windows 7 using encfs4win. One is on Dropbox others are elswhere. I am not able to mount these volumes on Linux or OS X. On Linux Mint I use the frontend Cryptkeeper ...
0
votes
0answers
32 views

Is there a way to update SMB protocols on legacy Synology products like USB Station 2?

I have been using a Synology USB Station 2 for some time. It was working fine with my Mac until I upgraded to Mac OS X 10.7 (Lion) & Mac OS X 10.9 (Mavericks). After that upgrade, there's always ...
0
votes
1answer
24 views

socat as argument to ssh: “bash: socat: command not found”

If I ssh into an osx box from a linux box, issuing socat works fine. However, if I give the socat command as argument to ssh it fails. socat was installed in osx using brew. Any idea why this is ...
0
votes
1answer
103 views

How to ssh from Linux client to OS X host without error message “ssh_exchange_identification: Connection closed by remote host”?

My LAN comprises a desktop computer running Linux (Debian Wheezy), a MacBook with OS X Mavericks, and a modem-router; ssh with Linux host and OS X client functions well - no problems connecting from ...
0
votes
1answer
27 views

Setting access rights when using shared folders with vmware fusion

I have CentOS 6.5 minimal guest, and OSX Mavericks 10.9 host. The player is VMWare Fusion. I want to edit files on host and run them on guest. I am trying to use shared folders to achieve this. A ...
0
votes
1answer
84 views

VirtualBox on SSD - Macbook Air

I have a MacBook Air with a 256GB SSD. I want to use VirtualBox to run a Linux distribution alongside with OS X. If I create, say a 20GB virtual hard disk in which to install the Linux distribution, ...
0
votes
0answers
18 views

How to use 'Keychain Access.app' to manage ssh keys with a single ssh-agent?

I don't want to type the passphrase to decrypt my private ssh key every time I use it, but I do want to type it occasionally so I won't forget it. The first time I'm using ssh since restarting or ...
0
votes
1answer
21 views

Rsync: Mirror only certain directories based on presence of dotfile

I have a large amount of files on a server and I have a partial mirror of these files on my Mac (i.e. only some folders exist in the mirror). I would like to have a sync from the Mac to server using ...
0
votes
0answers
2 views

Is it possible to modify the system-wide opacity of non-selected windows in os-x, or must this be done on a specific basis?

~50% or even lower opacity on can be very useful sometimes when you have lots of clutter in the background blocking your view. The Terminal application has this nice capability in preferences -- ...
0
votes
0answers
35 views

How can I get “ldd” on Mac OS X?

"ldd" is a Unix/Linux utility that allows you to determine "dylib" references within an executable file, typically created by gcc or g++. There is an Apple equivalent called "otool" that uses a -L ...
0
votes
2answers
59 views

Move and rename files based on their parent's directory

I have a collection of directories that all contain a particular file that is named the same in all the directories. dir1/dirA/file.txt dir1/dirB/file.txt dir1/dirC/file.txt .... dir4/dirX/file.txt ...
2
votes
3answers
32 views

Is there a way to do concatenated copying of text in os-x or linux?

Say you are copying snippets of a word document into textedit. It is a waste of time to go back and forth for each snippet when you can do it once using concatenation into a copy-queue. Is there a ...
0
votes
1answer
61 views

mac how to run a command in a different tab/window of a terminal

In Windows, I can run any program from the command prompt by typing c:> start startup.sh and windows will run the startup.sh in a different command prompt(terminal) window. How can I do the ...
0
votes
0answers
17 views

Setting up a small SSD

I've decided to improve my Swiss-Army knife laptop by buying a mSATA SSD to give me the flexibility to access multiple operating systems. My question is, do the following seem reasonable? Windows 7 ...
0
votes
0answers
93 views

How do I safely change primary group in OSX Mavericks?

I'm trying to implement consistent UIDs and a GID for OSX and Linux, so that I can easily share user data between the systems. I picked a UID of 1001, and a GID of 1001 to get started, as these appear ...
1
vote
1answer
27 views

Dual partition Linux Mint/OS X. Mint booted fine at first and now fails.

I'm attempting to dual boot my MacBook Air (1.3 ghz intel core i5) into OS X (v 10.8.5) and Linux Mint ("Quiana", Xfce edition). I installed rEFInd, rebooted and installed Mint from a USB, and ...
0
votes
0answers
17 views

bootable usb linux for macbook 2009

I have an old 2009 macbook. Ive been trying to install a linux distro on it. I formatted the drive as a mac os journaled and did the whole turn iso into disk img.dmg and the sudo dd. Still doesnt work ...
0
votes
0answers
35 views

Power user switching between Windows, Linux, and OSX - Need easier way to map Keyboard

Alright, I know this question has similar questions. I went ahead and copied some below. I am not interested in why I should learn Mac instead of Windows nor how to remap keys (It doesn't work very ...
0
votes
2answers
46 views

Create bootable Linux pendrive that can be booted on Windows and Mac

How do I create a bootable linux pendrive that can be booted on a PC (windows) and iMac (Mac) using the same usb? installing linux with unetbootin doesn't work for imacs...
0
votes
0answers
13 views

Mac Terminal - Color Co-ordinated

I would like to create a couple of short cuts on my iMac which ssh on to my dev box and on to my prod box. I would like my dev connection to use the settings something similar to home-brew (green text ...
1
vote
1answer
175 views

Installing Linux alongside Mac + Windows AFTER Bootcamp

I'm looking to set up triple-booting on my Macbook Pro, running OSX, Windows 7, and something Linux (probably Ubuntu 14.04) Ordinarily, I don't think this would be too hard, but most of what I've ...
1
vote
2answers
32 views

What's the Ideal Way to Swap Entries in the $PATH environment variable?

In Linux and/or Mac OSX, what is the best way to automate moving an entry in the $PATH environment variable to the front of the value like this: /foo/bar:/one/two/three:/opt/local/bin:/home/user/bin ...
1
vote
1answer
121 views

VirtualBox: Cannot connect to Linux guest from OSX host

I'm trying to ssh into my linux guest from my osx host. There seems to be some trouble with the networking, I can ping the guest, but cannot ssh to it. I am using a host-only connection on the guest: ...
0
votes
3answers
105 views

Howto start an application remotely, so that GUI is shown locally

This is a beginners question, I know... but I have searched and I'm getting frustrated. I know my way around Lunux pretty well, but I have never had to deal with XServer. Question 1: I SSH from OSX ...
4
votes
2answers
313 views

How to configure dual boot NixOS with Mac OS X on an (U)EFI MacBook?

I could not find any description of configuring dual boot of NixOS and Mac OS X on an (U)EFI MacBook. I am willing to experiment, but i would like to know at least that what i will try is supposed to ...
2
votes
2answers
38 views

Is there a way to output the status of dd (on OS X) during the copy process?

I am using dd to copy iso images to a thumb drive. Is there a way to output the status of dd during the copy process?
0
votes
1answer
34 views

Can I mount my local (OSX) directory to a remote linux host during my SSH session?

I spend a lot of time using SSH. While using Vagrant, I've found that having a shared folder between my local machine and the guest that I can access from the guest really makes life easier. Is ...
0
votes
3answers
65 views

use windows version of cisco vpn client on linux and osx

I have tried wine, but it crashes before finishing the installation. So I switched to virtualbox, installed the cisco vpn client there, and ssh into the guest win7 os. My question is: Is there a ...
0
votes
0answers
93 views

Converting a MBR partition table to a GPT on a HFS+ hard drive

I have a HFS+ 2TB drive that I used to use with my Mac. I wanted to read its contents from Linux (Ubuntu server 14.04) too, so I plugged the drive and played around with gdisk, fdisk, parted and so ...
0
votes
2answers
65 views

What is the Linux terminal ctrl+c to exit a running program in a Mac terminal

In Linux terminal if I run a command like: $ node httserver.js The command runs and by doing ctrl + c the program is terminated and new line comes in terminal for us to enter a command. I felt cmd ...
0
votes
0answers
38 views

Trying to change Default Terminal Home/Path, getting 'eDSAttributeNotFound' error

Found this nice tutorial here on how to change your default path in terminal via stackoverflow. Steps followed: become root with sudo su -. Now fire up dscl by typing dscl localhost. Inside dscl, ...
1
vote
3answers
71 views

cat clipboard text into a terminal?

I have text in the clipboard. I want to cat it in a terminal a pipe it into another command. The exact use case is a PEM encoded X509 certificate on a website presented as text (-----BEGIN ...
0
votes
1answer
102 views

Mavericks startup script

I am trying to write a small script to launch when user logs on. I have searched and got the script to work but unable to run at log on with .plist We have active directory setup. When the user logs ...
2
votes
0answers
93 views

LC_LOCALE settings interactions between Mac OSX and LINUX via SSH

I have been struggling with the following problem for years now. I have never been able to solve it, and I adopted several workarounds to keep being able to work. However now I can't stand it anymore, ...
0
votes
1answer
44 views

Need help converting some linux commands to OSX

I want to convert some linux commands into OSX. (Mavericks 10.9.4) root@bt:/# /etc/init.d/apache2 start (will "sudo apachectl start" do the same?) root@bt:/# echo “some Site Goes Here!” > ...
0
votes
1answer
49 views

synergy interprets a 'space' for a 'slash'

My setup is : Linux Server OSX Client Every time I use the space on my Linux box keyboard (and the pointer/focus is in a window on my OSX machine), I get a slash '/' instead. How do I fix this?
0
votes
1answer
148 views

How to share my Linux home directory with Mac OS X

I have an internal development server running Debian Testing. Some times, I find I'd like to do some "on the box" development. I can (have) setup a VNC server and do development that way, but some ...
0
votes
1answer
59 views

can not load private key using ssh-add

I tried to create a ssh key by doing following command: ssh-keygen -t dsa then it prompts me to enter store path: Enter file in which to save the key (/Users/KesongXie/.ssh/id_dsa): id_dsa after ...
0
votes
0answers
42 views

Run Linux applications on OSX (like wine)?

Is there a solution to run native Linux ELFs on top of OSX through some wine-like system? To be clear I'm not talking about compiling posix sources for Darwin or emulating through a VM. Similarly, is ...
0
votes
1answer
66 views

Access dual booted OS from VirtualBox

I have a LinuxKali/OSX dual boot. I have to install some packages in the linux system but as the Wifi drivers do not work without those packages (Mac air has NO ethernet) I would like to access the ...