Questions about the command line and other Unix-like aspects of Mac OS X, including the Mach/BSD-based kernel and FreeBSD-based userland. You may want to consider using Ask Different instead.

learn more… | top users | synonyms (1)

0
votes
1answer
328 views

SSH hangs forever?

I'm trying to SSH into a remote VM, and the command hangs forever. Before, when I was trying to get some stuff set up on it, I edited /etc/hosts and /etc/init.d, and I'm worried I might have messed ...
1
vote
1answer
117 views

How to install wine via brew?

I am trying to install wine via homebrew on Mac OS Mountain Lion 10.8.4. $ brew install wine Error: wine dependency jpeg not installed with: --universal How do I resolve this?
0
votes
1answer
57 views

SSH from osx to osx and then use agent

I have a mac at home and a mac at work. The work mac is setup for ssh to all work related servers. Sometimes I have to connect from my home mac and access the servers which are setup on my work mac. ...
0
votes
2answers
150 views

How to fix weird vim polluting the terminal behaviour on arrow keys and on delete in insert mode?

My terminal gets polluted by B, C,A,D when I try to navigate within vim using arrow keys and on delete using backspace it only scrolls back without deleting the characters on screen while the ...
1
vote
0answers
107 views

Scheduling cronjobs at specified time

I have scheduled some jobs in crontab which are to be run one by one, at some specific time. My script for crontab is : 15 10 * * * /Users/sri/files/BatchFF.sh 45 11 * * * /Users/sri/files/BatchGC.sh ...
11
votes
2answers
437 views

How to keep dotfiles system-agnostic?

Due to work I have recently started using OS X and have set it up using homebrew in order to get a similar experience as with Linux. However, there are quite a few differences in their settings. Some ...
0
votes
2answers
164 views

Recover Linux ext4 partition formatted to hfs+

I have a Linux partition formatted to ext4 and I accidentally formatted it with Mac OS X Disk Utility to HFS+ (Mac OS X Extended Journaled). I tried to recover it with http://www.r-studio.com/ on ...
1
vote
2answers
98 views

mlbackup / rsync / hard links data size

I am new to mlbackup/rsync and the concept of hard links, so I am a little confused after creating a backup data set via mlbackup. So here's the scenario: I am backing up "folder A" to "folder B". ...
1
vote
1answer
209 views

Bash script to hide/show files

I prepared a little bash script to toggle the visibility of my hidden OS X files. if (defaults write com.apple.finder AppleShowAllFiles FALSE); then defaults write com.apple.finder ...
2
votes
1answer
216 views

Sending raw video stream over network to an encoder

I'm trying to build a setup using OS X machines for streaming live video. Currently I use Flash Media Live Encoder on the same machine that is handling the video input unfortunately because FMLE uses ...
1
vote
1answer
103 views

Where would I find where an .htaccess file is located and being used on a Mac OS X Lion server that sets Basic Auth on an Apache server?

I've installed some software, namely, a continuous integration (CI) server (Jenkins) on a Mac Mini running Lion Server. The server, by default, runs from port 8080 on local host via the url: ...
14
votes
5answers
933 views

Bash in Linux v.s Mac OS

I am buying an iMac. I've been working on Linux for a long time and I do a bunch of bash scripting. I was wondering if all the bash commands and features are available on Mac OS ? Anyone has any ...
2
votes
1answer
314 views

How can I create a shortcut to resize panes in a tmux window?

I am having lots of issues with tmux in mac. Another problem I have is that I can not bind a key in my tmux.conf to be able to resize my panes. What I need is the CTRL-b: resize-pane -U 10 I currently ...
0
votes
2answers
93 views

Learning Ubuntu - Testing on Mac OS 10.7?

I'm a beginner in learning Linux. I know that there are many different distributions of Linux including Ubuntu. I consider Mac OS as a distribution of Linux, is that right? My goal in learning Linux ...
0
votes
0answers
153 views

lrzsz doesn't working in my Mac OS X

When I was used secureCRT in Windows, I often used sz and rz to transfer files between my linux server and client machine. But I can't use that way in iterm2 in MacOS X. lrzsz package has installed ...
1
vote
4answers
5k views

How can I page up or down in tmux with Terminal.app?

I have tmux installed. But I can not scroll up or down. I.e. as soon as I tmux I get only a portion of the screen and can not scroll up. crtl-b + Page Up does not work since I am in Mac and I can not ...
0
votes
2answers
611 views

Show human readable file size in du [duplicate]

I'm using this command to determine which directory is eating my disk. du -sk * | sort -n How can I get human readable result form du for file sizes? I've checked man and all it have is -k flag ...
0
votes
1answer
714 views

Trying to open a GUI from a remote server using Mac but not succesfully

I'm brand new user in MacOSX. I'm using ssh to connect to some Linux servers. I'm trying to open a GUI locally for a process running in the remote Linux server. So I read that I should install ...
-1
votes
1answer
99 views

How to use colors/colorschemes/fonts in vim effectively so that the text is as readable as possible

I am trying to be more productive in vim and as part of this I am trying to make the text presentation i.e. colors etc as nice to the eyesight as possible. Although I managed to change the default ...
2
votes
2answers
421 views

Key mappings in Linux

What do people mean when they point out that the "keys are not properly mapped" in a Linux installation when working on the command line? Isn't the default installation OK? What extra/specific ...
0
votes
2answers
25k views

How to install apt-get or YUM on Mac OS X

I am new to Mac OS command line, I want to use either of apt-get or yum. Can anyone help me to install them and make them successful running?
2
votes
1answer
116 views

Is it alright to have two PATH variables in .bash_profile

I am trying to setup Metasploit on osx 10.7, but I need to edit my .bash_profile and I noticed something unusual to me. I have been reading about setting the environment variable on ...
1
vote
1answer
100 views

ipfw on Mac OS X 10.8

I'm trying to setup local transparent proxy with ipfw and squid and ran into some problems. I have a single rule 00100 fwd 127.0.0.1,3128 log tcp from any to any dst-port 80 but it either gets into ...
0
votes
1answer
158 views

MAC bash commands stop working properly

I was trying to install some stuff for scala development on my MAC, and probably I managed broke the shell/terminal while I was mindlessly running some scripts that I don't know. Now when I start the ...
2
votes
0answers
84 views

Shorter timeout on I/O errors MacOS X

How do you set a shorter timeout value for read/write I/O errors on MacOSX? We tend to get a few semicrashed disks and want to rsync the contents to a secure location, but when the file subsystem ...
1
vote
2answers
290 views

A simpler way of comparing md5 checksum?

After downloading a file that has a md5 checksum available I currently check it with md5 *file* | grep *given_checksum* e.g. md5 file.zip | grep -i B4460802B5853B7BB257FBF071EE4AE2 but it seemed ...
0
votes
2answers
349 views

Defragment a USB flash drive on Mac OS X

I frequently create bootable flash drives and many a time large files need to be defragmented in order to boot. On Windows I'd used Contig/WinContig, but I must use OS X for the same purpose now. Are ...
0
votes
1answer
177 views

Errors building XScreensaver for X11 (and dependencies) on Mac

I'm building XScreensaver (the X11 version) on Mac OSX and I get the following errors while building/compiling it and its deps. XScreensaver terences-imac:xscreensaver-5.21 MAU$ make gcc -pedantic ...
1
vote
2answers
528 views

Moving compiled assembly code to the boot sector of a USB device

I have written a simple operating system and I am trying to test it. I have VirtualBox installed and an eight GB flash drive, so I thought I would just use those. I am not sure how to make the USB ...
0
votes
1answer
178 views

Problem building GPG

I'm having a problem building GPG on my system; when I try to run make it fairly well before it suddenly bails out with an error. Here's my latest result from running it: make all-recursive Making ...
1
vote
1answer
117 views

Is Mac OS X really SUS compliant?

Internet says that Mac OS X 10.8 has achieved certification to The Open Group UNIX® 03 standard and that it is a compliant system. But a simple test with echo seems to indicate otherwise:  a) The ...
3
votes
1answer
460 views

sudo: unable to initialize PAM: No such file or directory

While trying to build the NumPy Python math module with Intel's Math Kernel Library (MKL) on OSX 10.8.3, I was running into some problems with the Accelerate and vecLib frameworks overriding the MKL. ...
3
votes
1answer
64 views

stat on an encrypted volume in osx takes a long time

My workstation is a MacBook Pro with an SSD. For security reasons, my main volume is encrypted. I ran this command on a folder: time find . -exec stat {} + >/dev/null real 0m5.205s user ...
0
votes
0answers
17 views

System Proxy Settings [duplicate]

I'm troubled by many types of proxies setting. Currently I configure proxy on many places, and if I switch environment I have to unset proxies on same places. What I have to change Environment ...
1
vote
0answers
233 views

Convert ASCII-8BIT to UTF-8 using OSX' .bash_profile

When running certain rails scripts in OSX' Terminal, I get warnings such as the following: unable to convert "\xA9" from ASCII-8BIT to UTF-8 for ...
1
vote
2answers
2k views

Checking if I can reach some ports from my computer

Is there a terminal command or something on OSX that I can use to test if I can reach some ports on a remote server? I know these ports are reachable on that server, because I can access them from ...
1
vote
1answer
616 views

Safe to change owner of OS X system folders?

I'm trying to get Homebrew to work. That program's diagnosis tool gives me these suggestions: You should probably chown /usr/local/etc ... You should probably chown them: ...
0
votes
0answers
194 views

Why does my Mountain Lion computer have Apache 2.2.22 shut down almost as soon as it starts?

[Sun Apr 21 17:29:00 2013] [notice] caught SIGTERM, shutting down [Sun Apr 21 17:30:15 2013] [warn] Init: Session Cache is not configured [hint: SSLSessionCache] httpd: Could not reliably determine ...
3
votes
3answers
321 views

default wordsize in UNIX/Linux

I was inspecting the preprocessed output of my C program and happened to look at the header file wordsize.h It is located in /usr/include/i386-linux-gnu/bits/wordsize.h the file contains only one ...
2
votes
2answers
2k views

How to install tar file (jhead) on Mac or Linux machine

I'm new to Linux and tar balls and was wondering how to properly install them on a Mac or Linux machine. I would prefer to know how to install on a mac but I just need some help understanding them. I ...
0
votes
2answers
202 views

Calendar.vim E492: Not an editor command: Calendar

I am trying to install the calendar.vim plugin on mac osx snow leopard running gvim. I have pathogen.vim installed, so I followed the instructions on github to install calendar.vim from the terminal: ...
0
votes
0answers
111 views

Installing required libs/frameworks/packages for compilation on OSX

I'm trying to compile SmartSim for OSX Lion, and at the moment I'm at the ./configure stage. Here is a dump of what I've managed to get so far: $ ./configure checking for a BSD-compatible install... ...
1
vote
1answer
75 views

Losing smtp/pop3/imap access

I have a server running OS X. This server connects to another server, this other one CentOS 6.3, from times to times to collect mail messages over POP3/IMAP and also to send mails using SMTP (exim, on ...
2
votes
2answers
68 views

“or” in shell glob

I want to ls the files containing the substring "s1r", "s2r", "s3r" or "s19r" in their filenames. I'm almost there! Botched attempts: ls *s[123][9?]r* The above gives me only files including the ...
0
votes
1answer
169 views

How to map terminal shortcut from CTRL-M to another combination

I read in another post that you can type CtrlJ or CtrlM instead of the Return key in the terminal, which is great. But what I want to be able to do, is change that to another combination, for example: ...
1
vote
3answers
2k views

Unix vs Mac OS X, Notable Difference

I was searching Unix vs OS X. I found a notable difference at From http://www.unix.com/unix-dummies-questions-answers/919-mac-osx-vs-unix.html OS X is a evolutionary kernel from the MACH and BSD ...
5
votes
1answer
163 views

Execute multiple bash commands on the output of find

I want to execute some commands using the find -exec option, but I'm not sure what' wrong with this code. Currently, it's only processing the first find result, then getting stuck. I'm using bash in ...
0
votes
0answers
63 views

How to mimic bash tab completion behavior on OS X when using Linux

I'm an OS X user who's used to ssh'ing into various Linux machines. Recently, I installed Ubuntu on one of our servers and have noticed very different tab completion behavior in bash. Among other ...
0
votes
1answer
53 views

Files replaced with Finder on Mac creating a copy on Samba's .recycle

Scenario: Ad Agency with Samba Server and multiple Mac users, 0 Windows users. vfs objects = recycle recycle:keeptree = yes recycle:repository = /storage/files/.recycle/%U Workflow: Before start ...
0
votes
0answers
148 views

Recompile a binary installation? (problems installing ejabberd XMPP server)

This is either a basic unix problem or one specific to ejabberd - I don't know enough to know which it is. So I've installed ejabberd XMPP server using an OSX installer version 2.1.11 -- ...