Mac OS X is a series of Unix-based operating systems and graphical user interfaces developed, marketed, and sold by Apple Inc. Named Darwin, it has a Mach kernel and FreeBSD heritage.
0
votes
0answers
20 views
I can't seem to remove a file even after changing ownership and permissions
Haven't been here much. Mostly Stackoverflow. Anyway, I have a file that I can't remove.
I tried sudo rm files.db and got
Operation not permitted
Did sudo chown me: files.db
Then sudo chmod 777 ...
2
votes
0answers
14 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 ...
0
votes
2answers
43 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
25 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
0answers
24 views
+100
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
77 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
0answers
45 views
Verbose option not working as intended [closed]
When I'm in terminal(OSX 10.8.3) and I wish to create a structured directory using the -v or -vp option, it does not verbose the new directory structures. For example:
$ mkdir -vp ...
0
votes
1answer
52 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
51 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 ...
2
votes
1answer
54 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
43 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
44 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
61 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
39 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
31 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 ...
2
votes
3answers
101 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 ...
1
vote
2answers
79 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
50 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
35 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
43 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 ...
1
vote
2answers
45 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
41 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
146 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 ...
4
votes
1answer
84 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
32 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
21 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 ...
1
vote
1answer
25 views
mpg321 doesn't autoplay songs
I'm using mpg321 on OSX and I just try to play my songs with mpg321 *.mp3. It plays fine but doesn't play the next song automatically. I have to press some key for it to play which is kind of ...
1
vote
2answers
34 views
How to troubleshoot failed X11 forwarding with ssh?
When I try to establish an X11-forwarding connection to myserver, I get the following error:
% ssh -X myserver xlogo
X11 connection rejected because of wrong authentication.
X11 connection rejected ...
0
votes
0answers
48 views
Rsync seems to back up files that haven't been opened or changed
I have started using rsync to back some data on my mac to an external HD. It works really well, but I have noticed something odd. Every time I run the command, I get a list of files that haven't been ...
0
votes
0answers
35 views
programming an Atmel Board with a USB to Serial converter, in Eclipse
I am actually trying to program an Atmel Evk1100 board directly from Mac OSX.
My MCU is UC3A0512
I used to use Atmel32 Studio on Windows, but It looks like there no Mac Version.
So, from what I've ...
2
votes
1answer
56 views
A real non-“better touch tools” solution for select-to-copy on Mac OS X
I recently moved to Mac. I am missing my X11 copy-paste style.
I can't find a way to exactly emulate X11 behavior "select-to-copy", "middle-click-to-paste" globally on Mac OS X.
I am aware that this ...
4
votes
2answers
117 views
remove duplicate files
On my Mac OS X 10.6.7, iTunes duplicated every single file in my music library. Now I have 3,840 files instead of 1,920. The problem is that iTunes didn't simply duplicate the whole folder, but each ...
1
vote
3answers
95 views
Unix mail command not sending email
I'm having trouble trying to send email with the unix mail command.
Currently I'm trying this:
echo "something" | mail -s "test mail" [email protected]
But when I check my email, I haven't received ...
0
votes
1answer
52 views
Keep the ssh session
I am using Macbook developing a client application.
I want to access server logs, so I opened a shell terminal and established a ssh connection to the server and access the log file there by ...
1
vote
1answer
159 views
Transferring Files SSH SCP Error Message: 'Stdin: is not a tty'
I am using a Macbook SSH terminal and generated RSA key pairs and uploaded remote id_rsa.pub with approved permissions. I can connect with remote Apache web server. I can create, open, move, modify ...
0
votes
0answers
40 views
MPD error on OSX: “problems setting volume”
Getting this error when trying to set volume with MPC on OSX:
error: problems setting volume
Here's a snippet of my .mpdconf:
audio_output {
type "osx"
name "OSX"
mixer_type "software"
}
...
-1
votes
1answer
59 views
Why is ./filename required to run executable script? [duplicate]
After creating a Python script file, test.py, in my home directory, and running chmod +x test.py to make it executable, and placing #!usr/bin/env as the file header, I expected to be able to run the ...
0
votes
1answer
35 views
Can't use peewee on Mac OS X Mountain Lion
I am getting an error when I run Python programs that imports peewee:
ImportError: No module named peewee
The same program works fine under Ubuntu 12.04.
I used pip to install peewee, and it ...
2
votes
1answer
63 views
Find out where $PATH got corrupted
I'm using OSX Mountain Lion 10.8.2
$echo $PATH prints this:
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/Users/myusername/.rvm/bin
I've commented out everything in ~/.bash_profile ...
0
votes
0answers
38 views
rsync a mac on linux box, --delete not working
I have a mac Darwin Kernel Version 10.8.0. One of its folders is called source. I want to back it up on a remote linux folder called destination.
My problem: whatever I try, I cannot make the rsync ...
0
votes
0answers
19 views
Make Mac executable with MonoDevelop
I am on Ubuntu, using MonoDevelop and I would like to port my applications to Mac OS X. I have found mkbundle on this question, but that only makes Linux executables I believe.
I would also like to ...
1
vote
2answers
109 views
A bunch of files have 777 permissions
I have been learning Python and Bash scripting, and I up to now I have given my scripts 777 permissions. Having learned more about how to set permissions, and knowing this is a bad idea, I ran the ...
0
votes
0answers
443 views
Replacing Ubuntu 12.04 with Backtrack 5 R3 dual boot with Mac OSX Mountain Lion
I installed ubuntu 12.04 to run alongside my osx on my 2011 macbook air and would like to remove ubuntu completely to boot replace it with backtrack. I deleted the partition where ubuntu was located ...
0
votes
1answer
396 views
Cannot execute binary file on Mac OS X Lion 10.7.5
I want to execute phylocon on a mac OS X lion but after changing the path and making the file executable, I get the error 'cannot execute binary file'. But the steps that I took to running the command ...
1
vote
2answers
133 views
OS X setting environment variables
I have OSX 10.8.2 with ZSH as my shell and iTerm as a terminal (don't know if the last thing is relevant). I have to mention that I'm relatively new to OSX.
I'm trying to set up some environment ...
1
vote
1answer
48 views
zsh completion: getting file names from a specific directory
OK, a little background: I use a Mac, and I do as much as possible in the CLI.
In particular, I frequently pop in a USB stick, cp or mv a file over, and then immediately wish to eject (unmount and ...
2
votes
1answer
104 views
git diff displays colors incorrectly
In order to get coloured output from all git commands, I set the following:
git config --global color.ui true
However, this produces an output like this for git diff, git log
whereas commands ...
3
votes
0answers
129 views
IPFW Port Forwarding
This is my situation: I want to connect to an OpenVPN server from my office (we're using a proxy, only ports 80 and 443 are allowed).
Server IP address is: 176.31.250.232:843
My static IP address ...
1
vote
1answer
42 views
How to revert to the original config files in OS X?
How can I revert config files in OS X 10.8.2 to their original state? I want to discard any changes made to /etc/hosts, /etc/sshd_config, etc.