Tag Info

New answers tagged

0

FileVault (and OS X in general) does not check /etc/passwd, so a script using it as a trigger will not work. FileVault uses DirectoryServices, so any interception of what is being entered has to be through Apple's OpenDirectory implementation (see documentation on DirectoryService). How to do that is beyond me, but reading up on ...


0

You could also save a new file that overwrites .bash_profile. Sublime Text allowed saving a file with a . in front of the name (albeit, with a few warnings).


1

Quick answer: Install bash-completion Source bash_completion on Bash startup Add your compspec on Bash startup Don't overwrite sudo compspec with complete -cf sudo I suppose that you use MacOSX with brew. Try: brew update brew install bash-completion brew info bash-completion # bash-completion: stable 1.3 . $(brew --prefix)/etc/bash_completion complete ...


0

Can anything be smaller than damn small linux at 50Mbytes. It has vim and can persist data if you add a partition to your usb key.


0

As a suggestion, you can always download a Gentoo minimal install ISO image to copy onto a USB key. It contains everything to access the network anyway. If you fancy some exploration you can still trim it down to disable or remove networking (i.e. emerge openrc without netifrc and newnet USE flags) but you'll have to rebuild an entire system.


0

Adding this line to /etc/ssh/sshd_config fixed it for me: X11UseLocalhost yes


2

Your second problem seems to be an issue with tmux and the evaluation of certain AppleScripts through osascript. There's a wrapper you can install which should fix the problem. You'll want to install reattach-to-user-namespace through Homebrew or MacPorts and wrap the call to osascript: reattach-to-user-namespace osascript -e 'display notification "Hello, ...


0

I use oh-my-zsh, with the ys theme and it does what I need.


20

You either have trailing whitespace, or a corrupt filesystem. Try for i in tftp.plist* do echo "'$i'" done That should output something like 'tftp.plist' 'tftp.plist ' note the quotes and the extra space. If it outputs the exact same thing twice, you likely have a corrupt filesystem. Try ls -i tftp.plist* this will give you the inode numbers ...


5

On OS/X, like on all systems where they are supported except Linux, opening /dev/fd/x is like doing a dup(x), the resulting fd more or less points to the same open file description as on fd x and in particular will have the same offset within the file. Linux is the exception here. On Linux, /dev/fd/x is a symlink to /proc/self/fd/x and /proc/self/fd/x is a ...


3

You could do: find . -name '*.png' | awk -F/ '{print tolower($NF)}' | sort -u > ~/tmp/png-files && grep -IhFriof ~/tmp/png-files --exclude-dir=".svn" . | awk '{print tolower($0)}' | sort -u | comm -23 ~/tmp/png-files - That would give you the lower-case names of the png files that are never referenced. The first pipeline builds a sorted ...


4

Actually your resolved command isn't right. It's really this: ssh -i "~/Keypairs/jadam-macbookpro-ec2-1.pem" "ec2-user@12.3.4.567" The double quotes stop the shell expanding ~ and it's treated as a literal. Replace it with the environment variable $HOME and the problem will resolve itself: KEYPAIR="$HOME/Keypairs/jadam-macbookpro-ec2-1.pem" sudo ssh -i ...


0

I think that you can't prevent this crash, if you don't change operating system or computer(related to memory) on which you executed your program(mdworker). In practice, allocatable memory is equal to RAM+(SWAP SPACE), but I guess that your program, mdworker, is over limitation (RAM+SWAP SPACE). Did you allocate too large data(array, etc...)?


0

I'm so used to the Linux version of cal, that I went ahead and ported the Debian version of bsdmainutils which include the cal and ncal executables to a Homebrew formula, which you can find here. Ironically, these utilities actually come from the FreeBSD upstream source code, but Apple hasn't bothered updated them in many years.


1

Use git fetch --quiet. In order to implement progress meter git uses setitimer() which in turn causes frequent SIGALRMs to be delivered. sshfs doesn't handle them very well, causing either Interrupted system call or File exists errors depending on the timing and command. The problem is timing-dependent and gets worse with larger repositories.


0

It looks like you're submitting the public version of your key instead of your private. Try changing: /Users/jay/.ssh/id_rsa.pub to /Users/jay/.ssh/id_rsa I hope this helps.


0

OSX 10.10.3 1.open the Console 2.Expand the /var/log/ on the left panel 3.Click on accountpolicy.log You'll see something like AuthenticationAllowed completed: record "xx", result: Success (0).. It seems like this log record all the login history,include failing ones. How to differentiate it? Success ones have two lines, when failing ones have ...


0

Since @taliezin does notpost his answer, I'll do it. That fixed the issue for me, in Xubuntu. You need to make the file /Pythong/2.7/site-packages/python_dateutil-2.2-py2.7.egg/EGG-INFO/requires.txt readable not only by root, but also by other users. So, in a terminal, type each command followed by Enter: sudo -s cd ...


0

I tried the steps below, which should work, but does not work on Mac (forwards port 20 UDP text messages to port 29), but you might want to try it anyway: cd /tmp mkfifo backpipe sudo nc -ulk 20 0<backpipe |sudo nc -ulk 29 | tee backpipe On another terminal - test it with echo -n “this is a test” | sudo nc -4u -w1 localhost 20 It's possible the usage ...


0

Use the '/private/etc/hosts' file. Example (works in place of a DNS resolver): xxx.xxx.xxx.xxx hostname.domain hostname xxx.xxx.xxx.xxx hostname2.domain2 hostname2 xxx.xxx.xxx.xxx hostname3.domain3 hostname3


1

If you think the problem might be an idle connection getting closed, you might be able to work around the problem by using a --timeout option (newer rsyncs send keep-alive messages during lulls). You can also configure ssh to send keep-alive messages when using Protocol 2 (look for KeepAlive, ServerAliveInterval, ClientAliveInterval, ServerAliveCountMax, and ...


6

The ls version in Mac OS X is based on BSD ls, and doesn't support long-format options including --help. See the ls manpage or man ls on your system for details.


3

Apple's package management system is often subject to criticism. The utility pkgutil can be used to list and query the package receipts. List all the packages installed with Apple's installer pkgutil --pkgs Regex for a package id pkgutil --pkgs=.\+Xcode.\+ List all the files in a package id pkgutil --only-files --files ...


0

The first thing that comes to mind is system_profiler: system_profiler SPSoftwareDataType The output of the above command will look similar to a yum info There are plenty of other options to throw at this utility. man system_profiler should get you on the right track. This blog entry will provide you with a little more information.


2

Since you're installing in non-standard locations, you'll need to tell each configure script where to find things. ./configure --help should give an indication of the appropriate option; for libgcrypt you'd run ./configure --prefix=/local/gpg2 --with-libgpg-error-prefix=/local/gpg2 Except that because of a bug in libgcrypt's configure script, only ...



Top 50 recent answers are included