0
votes
1answer
58 views

All steps to set up and resolve subdomain.localhost to 127.0.0.1?

I suddenly feel stubborn about my subdomain on localhost not working. My /etc/hosts file looks like this: 127.0.0.1 localhost 255.255.255.255 broadcasthost ::1 localhost fe80::1%lo0 ...
0
votes
0answers
30 views

Can't build using MacPorts in OS X

I've submitted a ticket here, but I am pretty pessimistic it'll be addressed. As I say, there, I'm running MacPorts 2.3.1 on OS X 10.9.3. In trying to install llvm-3.2, I get the following error: ...
0
votes
1answer
16 views

Switch from ZSH to default OS X

http://stackoverflow.com/questions/13476232/make-iterm2-launch-with-zsh I used chsh -s /bin/zsh as described above to set zsh as default. I'd like to switch back to default standard terminal that ...
0
votes
2answers
29 views

Mac addresses of devices on network

I'm on OSX Mavericks. I'm connected via wifi to my network. How can I find the mac addresses of all other devices on the network?
0
votes
0answers
6 views

Homebrew App Not Using Python Package

I installed duply using Homebrew and tried to create a backup to Google Drive. Doing so results in the following error: BackendException: Google Docs backend requires Google Data APIs Python ...
0
votes
0answers
11 views

How can I browse through Homebrew's formulae according to popularity (# downloads all time)?

Though I can easily find an alphabetical list of all available formulae, there seems to be no resource online, including at Brew's Github, or seemingly anywhere where I'm able to browse through ...
1
vote
1answer
21 views

How to get tree -a to ignore .git directories?

I love using tree to list directories, and I have a git repository with all my dotfiles. For me to be able to see them I need to do tree -a, but that will also list the contents inside the .git ...
2
votes
3answers
83 views

rm -rf doesn't work for an empty directory [closed]

In terminal I try to delete a directory but that doesn't work: myuser$ rm -rf foo/ rm: foo/: Directory not empty In my main directory I have only foo : myuser$ ls foo I haven't any problem with ...
1
vote
3answers
68 views

Is it possible to TFTP files via shell script in OS X?

I'm working on migrating my development environment from Windows to OS X and have run across a problem with TFTP. I use TFTP to upload files to an embedded network device, this is the only option to ...
0
votes
0answers
40 views

How does one install this mcrypt package?

I'm using MAC os x Mavericks, so after dlownload mcrypt-2.6.8, I decided to to configure ( per the recommendation of a dozen blogs ) like so : MACOSX_DEPLOYMENT_TARGET=10.9 CFLAGS='-O3 -fno-common ...
0
votes
5answers
124 views

Little clarity needed about: PC and Mac and Unix

I've always thought that a PC and A Mac were two different computing platforms, not just with in their operating systems (Windows & Mac OS) but different from hardware to thier respective internal ...
0
votes
2answers
55 views

cat wc -l count lines line with defined line endings (e.g Mac OS X specific)

As any command-line user I sometimes want to count lines in text file with well known command: cat some_text_file | wc -l I face the problem on Mac OS X, which as far I have it studied is connected ...
1
vote
1answer
115 views

Does rsync delete files, folders at destination by default?

Files Suppose that /foo/src contains only A.c and that /foo/dest contains both A.c and B.c. And suppose I run the following command: rsync /foo/src/ /foo/dest Will rsync erase B.c? Folders Now ...
0
votes
0answers
30 views

Exporting Variables – Reading Them Returns Blank?

Hi – I'm using Mac OS X (Mavericks), which should be UNIX compliant. In my .bash_login, I'm exporting variables for Cocos2D-X. I know this is executing, as I have a 'echo Test' line that executes ...
0
votes
1answer
43 views

Start tmux session with only one window but several panes

I'm trying to configure tmux so it starts creating a new session with three panes. One big pane on the left und two small panes on the right side. I set set -g default-terminal "screen-256color" ...
0
votes
2answers
68 views

Connect to the right serial port in Unix

Background I'm trying to connect to a device using UART though a micro-USB cable and GNU screen from Ubuntu and OSX. On both Ubuntu and OSX I can get the most recent serial connection with the ...
0
votes
0answers
122 views

Irritating GitHub Conduit dialog opening up whenever I visit a GitHub link — can I get rid of it?

X-Post from a [closed] StackOverflow question. I have a problem that sprang up out of nowhere in the past two or three days. Whenever I'm using Git in Terminal (which is pretty much always), if I ...
1
vote
1answer
35 views

What does man [-acdfFhkKtwW] mean?

I am fairly new to using the OSX terminal, so before I move forward, I want to get good at finding information out for myself. So, I was reading about the manpages about manpages, and I saw that I ...
0
votes
0answers
242 views

Cannot connect to local ip address OSX (Mavericks)

Here is the situation: I can ping and connect to localhost / 127.0.0.1 I can resolve hostname (dig / nslookup) I can ping my ip local ip address (10.63.66.185) and hostname from another machine I ...
0
votes
1answer
78 views

Print to file using enscript

I want to print to file using the unix command enscript. I've looked in the man pages but can't figure out how to get it to print to file without it going straight to the printer. Thanks
0
votes
1answer
40 views

Remove all traces of emacs and start over

I've been trying to install PolyML in Emacs on my Mac in OSX but I can't get that or SML-mode to work. I've tried the builtin emacs, the gui version and the one from homebrew. Neither poly or sml ...
0
votes
1answer
183 views

Remove question mark “?” from file names OSX

My music library contains many .flac files that need the "?" removed from the filename as my current music player (Sonos) cannot for some reason see those files. Is there a command or script that ...
1
vote
2answers
66 views

How do I search for a string in a group of files when some of those files contain spaces?

I'm running Mac 10.7.5. In a terminal, I'll use this command for finding files with strings find src/main -name "*" | xargs grep -i 'mystring' However when the files contain spaces, I'll get ...
0
votes
1answer
98 views

Eject all disks and dmg's with Automator script in Mac OS X

I have created an Automator Service to eject all disks in Mac OS X. find /dev -name "disk[1-9]" -exec diskutil eject {} \; This works, but I still receive an error message afterwords: "The action ...
1
vote
4answers
65 views

Remove all folders that does not contain a specific name in UNIX

I'm trying to figure out my old skill in *nix. What I'm trying to achieve is to remove every folders that does not contain a specific word. This is the listing ➜ myfolder: pwd /user/myfolder ➜ ...
0
votes
3answers
74 views

Cannot find where this colorscheme setting is being set for vim on OS X

A long time ago I was farting around with color schemes for vim and I remember setting a line somewhere colorscheme sonofobsidian. I did this before I knew what I was doing with vim, unix, OS X, etc. ...
0
votes
0answers
50 views

Exposing one network interface through another on Mac OS X

I have a network interface, as specified by ifconfig inet0: flags=8842<BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1400 ether 44:44:44:44:44:44 inet 20.23.10.51 netmask ...
0
votes
0answers
39 views

Live rsync directory monitor

While developing websites locally on my Mac I would like it to sync with my remote server on changes to the files inside the x directory. I have looked around and found lsyncd which almost does what ...
1
vote
1answer
88 views

How to create an operating system on top of Ubuntu 13.10

I want create an operating system the way Mac did, building a program on top of a Unix operating system. I am planning to make a small operating system with a small amount of functions using C. I do ...
2
votes
0answers
63 views

ag (the_silver_searcher) not searching entire file - does it have an implicit maximum input size?

I have a very large plain text file (multiple gigabytes in size) which I need to search for certain strings. When using grep, I get over 11,000 matches of a string but with ag I get roughly 1,500. The ...
1
vote
0answers
29 views

Retaining creation date with unison

Is there a way to retain creation dates using unison? I can preserve the modification times, but I also need creation dates. Edit: OS in use are BusyBox (EXT4) and OS X (Extended Journal)
2
votes
1answer
177 views

Move all files in sub-directories to current directory while renaming duplicates

I have a number of subdirectories and I would like to move any files contained therein to the current directory using a one line Terminal command on the Mac. I know that my file names are not all ...
1
vote
3answers
167 views

What happens to the unix/mac file ownership/group/permissions when it is copied or moved to a different system

Talking about Mac specifically or perhaps Unix I am bit confused about how file ownership/group when a file is moved from one system to another. For example On my mac if I create a file I am the ...
1
vote
0answers
218 views

Enable ssh service from command line (single user mode)

How can i enable the ssh service in the single user mode? I know how to do it in Terminal: systemsetup -setremotelogin on How can i do it in the single user mode? And if i reboot the system that ...
2
votes
2answers
583 views

Understanding homebrew 'no-sudo' philosophy and questioning FAQ

Having fresh install of OS X, I decided to install python package manager in proper way. So I started googling and found homebrew is the best way. Now I got two questions: from homebrew FAQ: ...
0
votes
0answers
114 views

Numpy Module not working…wrong architecture

My Bash profile looks like this : export PYTHONPATH=/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages My error looks like this import numpy Traceback (most recent call ...
0
votes
1answer
217 views

IOError: invalid Python installation …/config/Makefile (No such file or directory)

After updating from OS X 10.8.3 to 10.8.5 and XCode my python installation stopped working. This is the output when I try to execute python. Traceback (most recent call last): File ...
0
votes
2answers
109 views

cd shortcuts: symbolic link to CDPATH dir

I found a solution to another question and posted here and wanted to implement it. On OSX, in order to create cd shortcuts, it advised creating a hidden folder with symbolic links, and then adding ...
0
votes
4answers
183 views

bash - directories ending in . and whitespace cannot be removed

On my external hard drive are two directories, Fun. and Complex_, where that _ is a whitespace. I cannot empty from my trash or remove them with rm -rf and I want to. Neither show up in Finder on ...
1
vote
2answers
1k views

Recursively chown all files that are owned by a specific user

Is it possible to find and chown all files that a specific user owns? I did a bunch of things as the wrong user and need to give the correct user ownership of the files. Is there a recursive and ...
0
votes
0answers
100 views

Printer Deploy with and custom preset profiles to Mac OS X workstations

How would I go about deploying a network printer (Sharp MX-2600N) to Mac OS X machines that would include a custom printer preset profile (Embedded Printer User Authentication Code)? I am newbie when ...
0
votes
1answer
140 views

kill command working despite error

after running this command kill -9 <PID> for ./sc_serv. I am getting this output below: -bash: kill: for: arguments must be process or job IDs -bash: kill: ./sc_serv: arguments must be process ...
3
votes
1answer
87 views

Setting the $SHELL environment variable

For some reason, when I run chsh -s /bin/zsh, my $SHELL environment variable isn't getting set. When I run: echo $SHELL It outputs: /bin/bash
2
votes
2answers
179 views

Find and remove common words in filenames automatically

I'm using Mac OS 10.8.4, and want to do some batch renaming using the Terminal which is a bash shell I think. I have a large number of folders of large number of files. The filenames have words ...
0
votes
2answers
56 views

Can I use `which` command for partial match?

I want to find all programs with name like "gcc", "gcc-4.2", "gcc-4.9" and so on. To find all binaries I tried with which -a gcc*. But "*" is not recognized as 'any' with which command. Is there ...
1
vote
2answers
95 views

Using a Unix terminal to encrypt a disk under OS X

I'm interested in knowing whether there are any native utilities (possibly under diskutil) to encrypt a disk via the command line in OS X 10.8.4. I can use FileVault or Mac OS's Disk Utility Erase ...
0
votes
1answer
111 views

Are SSH remote connection passwords encrypted?

When I try to connect to my SSH remotely, will the password I send to authenticate my user account be encrypted when it's transferred over the internet?
0
votes
2answers
306 views

I want to open up my default SSH port (22) to see how many unauthorized access attempts I receive

I thought this would be a good place to ask this question: I want to open up my default SSH port (enable remote management in system settings and port forward my router) to see how many unauthorized ...
3
votes
1answer
5k views

How to run a DHCP server on an ethernet port of a MacBook successfully?

I aim to have an ethernet switch on my MacBook ethernet port from which I will have several Raspberry Pi's connected getting their IP via DHCP, each will have a VNC server running on them for remote ...
0
votes
1answer
88 views

What will * in bash do?

My question is quite simple, if I am to enter these two line in OS X Terminal, what should happen? xupengjunde-iMac:Shane Shane$ cd /Volumes/External xupengjunde-iMac:External Shane$ sudo chmod -RN * ...