0
votes
1answer
17 views

user-name@dest-host for MACbookpro

I have a directory at a unix machine which I want to copy to my macbook. I login to unix machine using a VPN connection and then try to copy the directory using the following standard command scp ...
1
vote
2answers
66 views

how to set mac desktop background as working terminal

I would like to set my background to a working Terminal window even when I minimize all applications. I would like to be able to write commands on desktop but I don't know if it is even possible. I ...
1
vote
0answers
37 views

Terminal wraps at 80 chars even if window is wider

Problem description If I increase the width of a Terminal version 2.3 (309) window, and then use less (or some command invoking less, like man) in that window, I often get garbled output, since the ...
2
votes
3answers
96 views

How to stop being logged out of SSH sessions when locking the screen in OS X 10.9.1?

Every time I lock my screen I get logged out of any active SSH sessions. I've added the following to my ~/.ssh/config file, but I still get logged out: Host * ServerAliveInterval 60 How can I ...
1
vote
1answer
617 views

Purge command - Unable to purge disk buffers, error #-2?

When I attempt to run the purge command, I get the same error every time. [ERROR] <CPDevice.c:3816> Unable to create new counter client. [ERROR] <CPOSX.c:1172> Unable to get user ...
1
vote
0answers
127 views

Building netgen on Mac OS 10.9 - problem with tcl and tk

I am a very beginner in building from source on Mac. (It's my first request here...) I am trying to build netgen and ngsolve. Mac OS 10.9, Xcode 5.0.2, macports version 2.2.1 After installing tcl ...
1
vote
1answer
127 views

How to undo “sudo rm -rf /etc/apache2/other/+php-osx.conf”

After I did this: sudo unlink /usr/local/php5 sudo rm -rf /usr/local/php5-* To remove the supplemental configuration file that was installed with the updated PHP software, you may be able to remove ...
1
vote
1answer
320 views

How to patch a file that resides in /Applications (patch can't find file to patch at input line)?

I am trying to patch 5 files within an Mac application bundle using the Terminal patch command. The files to be patch are specified using an absolute file path (the file name and path start with a ...
0
votes
1answer
31 views

install libsoup on macbook pro

I have a shell script from a open source project, when I run it in terminal, I get the following error: ./configure: line 17678: syntax error near unexpected token `soup,' ./configure: line 17678: ` ...
2
votes
1answer
570 views

How do I re-enable the Press and Hold character picker on OS X Lion?

I disabled the character picker by reading this other question, but I want to remove that change and restore the picker. When I type -g ApplePressAndHoldEnabled -bool true into Terminal, it does not ...
2
votes
1answer
1k views

How to fix multiple errors when installing Homebrew on OSX Lion (mainly OSXFUSE and Mono related)

I'm trying to install Homebrew but I'm getting multiple errors when brew doctor is run. I'm a complete noob at this and I've tried uninstalling Homebrew and re-installing, but still not working. ...
2
votes
2answers
831 views

What build flags are available for brew install of gcc?

I'm curious as to what build flags are available to me when installing gcc 4.8 using brew. This question explains how to install gcc 4.8 using brew, but only specifies two possible flags i.e ...
0
votes
0answers
225 views

Which mail daemon does OS X 10.8.4 run by default?

I'm debugging some mail related stuff on my Mac, and not quite sure how my system is even sending mail. I can run a simple command like date | mail -s test myemail@mydomain.com and receive an email ...
5
votes
1answer
109 views

Launching certain programs on startup in their own fullscreen space

When I login I want a blank desktop in my first space, sublime text in my second space, chrome in my third, and terminal in my fourth space like so:
0
votes
1answer
283 views

Understanding install of mod_wsgi on apache terminal commands

I'm installing a django development environment on OSX. Apache is, of course, installed by default. From my (very limited) understanding of Macs, I don't believe there is preconfigured functionality ...
0
votes
2answers
82 views

Terminal has gone weird after screen sharing

I used screen sharing on my Macbook Pro to remote control my friend's iMac. Unfortunately, now my Terminal now says: kellys-iphone-2:~ James$ Why is it now saying this all of a sudden? Where has ...
0
votes
1answer
332 views

How to Reset Full-Screen Terminal.app Preferences to Factory Defaults

On an iMac running Mac OS X version 10.7.5 I have accidentally resized Terminal.app to full-screen (272 x 76) and am unable to resize Terminal.app to a smaller size. How do I resize Terminal.app to ...
2
votes
1answer
4k views

SSH request timeout every time

I am trying to access a storage space we have at work via ssh but I get a timeout every single time (Mac OS 10.7.5 - Terminal). I checked firewalls, settings, even turned off Little Snitch, and port ...
2
votes
1answer
31 views

How do I get the terminals in terminal.app to go to the right directory after restart with tcsh?

The terminal.app keeps the tabs after a restart and it even shows the content of the buffers. But all open tabs are at the home directory rather than the working directory they were in at shutdown. I ...
0
votes
1answer
50 views

Weird Output in terminal

I am using the terminal for some debugging and I noticed that it has stopped displaying my user before the path. Now its displaying (null) like so: (null):mspgcc-examples dean$ Whats changed? As ...
1
vote
0answers
140 views

Is there a console interface for the Client Monitor on OSX?

I'm writing a bash-script at work for controlling our Mac-computers (OS X Mountain Lion) remotely. Since we use FileWave in our Company we just have to remove an Application and restart the computer. ...
3
votes
1answer
188 views

Within Terminal, `date` command outputs a curious prefix where it should'n

I am using a Mac Mini running Lion (10.7.5) and zsh 4.3.12 (i386-apple-darwin11.0.1) with oh-my-zsh installed. In the Terminal.app I retrieve the UNIX timestamp using the following command date +%s ...
4
votes
1answer
221 views

declare -x messages appear in my terminal. How can I get rid of it?

declare -x Apple_PubSub_Socket_Render="/tmp/launch-qoybJQ/Render" declare -x Apple_Ubiquity_Message="/tmp/launch-DWchNf/Apple_Ubiquity_Message" declare -x COMMAND_MODE="unix2003" declare -x ...
1
vote
1answer
506 views

How do I make terminal sessions resume on Lion with iterm2 and tcshrc

My understanding is that with Lion my terminal windows should restore their state. However, this does not happen for me. I wonder if this is because I use tcsh instead of bash? Is there something I ...
1
vote
1answer
313 views

How to start an app in the foreground?

For some reason, gitk always starts under all other apps. How to make it start on top of all other apps, like a normal program? Start it from the terminal with the gitk command, which lives in ...
5
votes
1answer
837 views

Completely clear all output from a Terminal window

I would like to clear all output from a Terminal window (including all historical output) to get it back to a clean state as if you had just opened a new Terminal window, or a new Terminal tab. I can ...
2
votes
2answers
146 views

How to have ctrl-left/ctrl-right move over words in Lion

Had a quick question about having emacs-like word skipping in my terminal. I had set this up pre-upgrade to Lion and had ctrl-left & ctrl-right set to \033b & \033f respectively. ...
2
votes
0answers
131 views

mdfind query on kMDItemFSTypeCode can't find some type codes

I just upgraded to a new MacBook with Lion, and having discovered that some of my old apps can't come with, I'm scouring my files for certain types that will need to be converted to future-proof ...
1
vote
1answer
195 views

Terminal won't choose new window settings at startup

I've been running into an odd behavior on 10.7 where editing Terminal preferences to launch a new window setting via "On startup, open" doesn't result in the changed terminal after a quit/launch. ...
1
vote
1answer
814 views

“Too many open files” - how can I set the ulimit -n value for emacs on Lion?

I've seen other questions covering the topic of how to set the file limit on Leopard/Lion. For example: How to properly increase ulimit -n on Lion? Too Many Open Files But after reading ...
7
votes
3answers
15k views

How do I check the download progress of Mountain Lion through the terminal?

I am downloading Mountain Lion, I know I can monitor download progress through the Mac App Store purchases screen but I want to know if I can monitor progress through Terminal.app using a shell ...
2
votes
2answers
152 views

How to get + metacharacter for sed in Terminal?

It looks like sed that comes with Mac OS 1.7.4 is the original one, without the + metacharacter. Can I get the + metacharacter functionality?
4
votes
1answer
6k views

How can I move Dashboard widgets to the desktop in Lion?

In the OS X Terminal, there is a command that allows me to drag Dashboard widgets onto my desktop. In OS X Lion, the Dashboard became a Space. I am no longer able to use this command. What is a ...
2
votes
1answer
1k views

Is there a way to get gnome-terminal on Lion?

Is there a port of gnome-terminal, or a way to compile it, or some other program that is typographically comparable, under Lion? There is a typographic difference, and I can't duplicate it in ...
1
vote
2answers
90 views

Hold Terminal open

Sometimes I'm working on something in the terminal, and then go away. When I come back, I want to resume what I was working on, but sometimes I forget, and hit command-Q, which closes all the terminal ...
0
votes
1answer
944 views

How can I have Qt Creator to recognize my environment variables?

I use Qt Creator as my main IDE for cross-platform C++ application development. In doing so I had set it up so that it depends on a set of environment variables that I define in .bashrc. On Linux ...
2
votes
2answers
683 views

What is the equivalent terminal command to findsmb on Lion

The findsmb command present in SnowLeopard and older, is not available from terminal in Lion. Is there an equivalent?
1
vote
1answer
1k views

How do I get a Unix Executable File to run from anywhere, like Java or Git?

I've just created my first Command Line Tool in Xcode. What do I have to do, or where do I have to put the final output file, so that I can run it from anywhere from within terminal, without having ...
0
votes
2answers
3k views

Built-in text editor in Terminal

Is there a built-in text editor in the terminal on Lion? (Like, for example, nano on Linux.)
3
votes
1answer
350 views

How do I find where an environmental variable got set?

I installed a program to try it out, and decided I didn't like it so I moved the app to the trash. Today, in my shell, I noticed that there are a couple of PROGRAMNAME_BLAHBLAH environmental ...
4
votes
2answers
7k views

Can I create a Desktop Shortcut/Alias to a Folder from the Terminal?

I'd like to create a desktop shortcut to a specific folder, buried deep within ~/Library/. Library is Hidden by default in Lion, and I'd like to keep it that way, for a variety of reasons. Is there a ...
3
votes
0answers
639 views

SSH, passphrases, keychains, Could not open a connection to your authentication agent

I will be very surprised if anyone has the answer to this. I have googled for a long time but no luck. As an iOS developer who will shortly be welcoming a new team member I want to set up a ...
1
vote
2answers
2k views

How can I use Automator to generate a kerberos ticket using KINIT?

I need to be able to generate a kerberos ticket for my MacBook Pro each time the machine restarts. I can manually run KINIT with my credentials to generate a ticket. What is the best way to automate ...
0
votes
1answer
72 views

Text unselected when clicking to activate Terminal window (OS X Lion)

I've noticed this behavior in Lion's Terminal.app: Let's say I have some text selected in a non-active terminal window. Meaning, another window is active - it could be another terminal window, or ...
3
votes
1answer
715 views

-bash: Applications/mvim: /bin/sh: bad interpreter: Operation not permitted

I am getting a weird error with the mvim script that is supposed to start the MacVim interface. See below for the issue. /bin/sh is just fine, mvim was chmod +x'd, other /bin/sh scripts run fine... ...
0
votes
1answer
394 views

Allow the Terminal.app to pass command key based keystrokes to terminal programs

I want to allow programs running in the terminal the ability to interpret the keyboard short cut Cmd + S I have already Remapped the Terminals' default binding of Cmd + S to Ctrl + S via the ...
2
votes
1answer
114 views

Mercurial command line client not found

I have the latest version of Mercurial installed on a fully patched Lion and the Mercurial client cannot be accessed from the terminal ("command not found"). The command line client is installed in ...
1
vote
0answers
331 views

How to include the failing username on saslauthd failure in a log file in Lion?

How can the verbosity of logging be increased for SASL authentication failures? To be more precise, to include the failing user name in a log file on Mac OS X 10.7 (Lion) Server? Linux hosts have ...
0
votes
1answer
49 views

cmd + [num] doesn't change screen to go to app in fullscreen mode

Consider the situation where I have two spaces screens. From the second screen I open a terminal and make it fullscreen. By doing so I expected cmd+3 to take me to the terminal app, but it doesn't ...
6
votes
3answers
5k views

How do I run VI with colors on Lion?

I'm looking to enable color syntax highlighting in vi. I just enabled colors in Terminal via here. Any ideas on how to enable this? NOTE: Usually on Linux when I open vi with vi file.txt and it opens ...