Tag Info

New answers tagged

0

According to OS X Man pages you can reset privacy for apps to use your address book. I did not try it since I do not want to revoke my settings, but it is safe to say it works on 10.9 according to Apple. DESCRIPTION The tccutil command manages the privacy database, which stores decisions the user has made about whether apps may access personal data. One ...


0

Maybe I'm off but ... Another approach would be simply to replace mac aliases by regular unix links via "ln -s ..". It has many advantages as Finder shows links as aliases but many applications works as if links were their target. Mac aliases are not always seen by applications as their target so that's also a good reason to prefer regular links… especially ...


0

To enable cd'ing into an Folder Alias I've found the following at Mac OS X Hints. Don't know if it still works. Here is the bash function I include in .bashrc. Note that the second elif requires double brackets for the test, because it include the logical operator or (||): function cd { if [ ${#1} == 0 ]; then builtin cd elif [ -d ...


0

Please try running the following command. xcode-select --install This should prompt you to install the "command line developer tools". I don't think they are distributed by default with Xcode.


0

Could you just create a local web proxy to run it through? You could create one using something like this command in the terminal: networksetup -setwebproxy "Network Service 1 Name" proxy2.domain.com 3000


0

Spoofing a MAC address in OSX isn't as simple as it is in Linux so you may want to try using a python script such as SpoofMAC. Another way to configure/get info about network services in OSX is with the networksetup command.


1

For all it's worth, I have ran the command line in Terminal with a few devices. iPhone 4: iPhone: Version: 3.20 iPad 2: iPad: Version: 2.10 I have a 3GS somewhere but I can't find right now. I'll edit my answer if/when I find it. My wife has a iPhone 4S and a friend has a 5, I will try to also update once I get to run it.


1

This can be done using AppleScript, like in the question you linked to. Watch out, this is not the same as Automator. Example script: osascript -e 'tell application (path to frontmost application as text) set myFile to choose file POSIX path of myFile end' This uses the simplest form of the choose file command, and puts the result in the variable myFile. ...


0

You could set up a folder action item that monitors the relevant folders and runs an Applescript that copies the relevant preference files to the Dropbox folder when the folder changes. Another (similar) approach would be writing a launch agent: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" ...


0

Two things: Try placing your <string>/Library/Preferences/SystemConfiguration</string> inside an <array> </array> Additionally you may be able to watch to see when the change actually happens with the below command. sudo fs_usage -f filesys | grep /Library/Preferences/SystemConfiguration


2

You can type ~. which ends the SSH connection. Normally it works immediately, but sometimes you may need to do it a few times.


1

Not necessarily a fix, but I use this to refresh Finder windows - works after changing file visibility too, rather than killing the Finder. tell application "Finder" set theWindows to every window repeat with i from 1 to number of items in theWindows set this_item to item i of theWindows set theView to current view of this_item ...


0

Bah... the party at fault was the SSH server. Don't know why and could not find a place to disable the behavior (except for going full dumb terminal which had its own issues), but plain old openssh gets the job done.


0

Adding to what Mike wrote above, I've taken it a bit further and found a way to define your own collation rules. The locale definitions are located in /usr/share/locale/. Each folder is a locale and has a file (or a link) LC_COLLATE, which defines which symbols are "same" (for example, that U, u and ü should be considered the same when ordering). You can ...


-2

Opaque secret encoded format string, '\e]7;%s\a'. Suspect. local PWD_URL="file://$HOSTNAME${PWD//$SEARCH/$REPLACE}" From what I gather, "file://$HOSTNAME" is masked out so you can't see remote protocol:host espionage. We woke up in a fascist (corporate police) state, US of Apple. Media lockdown, outlaw, completely disgusting.


0

I feel silly for not figuring this out myself, but I'll post it here in case anyone else is having a similar issue. In Terminal, I can simply type this command and it works: wemo switch Myswitchname toggle But with the Execute Terminal Command in BetterTouchTool, it needed to be entered this way in order to work: /usr/local/bin/wemo switch Myswitchname ...


1

Looking at your .bash_profile, this seems to be the most suspicious line: trap 'printf "${OPENTITLEBAR} `history 1 | cut -b8-` - `pwd` ${CLOSETITLEBAR}"' DEBUG It is doing a printf on the history (which will contain your % character). I have no idea what that is intended to do (update window title with last command?), but I would guess if you comment it ...


0

I couldn't trash Crashplan, either. And when I did option/click, revealing the Package Contents, the uninstaller wouldn't work. What worked for me was redownloading & reinstalling Crashplan. Then I did the option/click thing, ran the new uninstaller, and this seems to have completely removed Crashplan, including the pre-existing app that I couldn't get ...


1

Analyzing these kind of problems is always tricky. I usually create a new account without any bash configuration to start from a clean slate (assuming the problem doesn't show up there) and then work upwards from there by adding config file by config file (or line by line if necessary). Besides the usual suspects (.bash_profile, .profile, or .bashrc) you ...


1

You don't need the braces. This should work just fine: echo $1 ls "$1" You don't want to use backslashes and quotes in the directory name. One or the other should be fine.


0

If you want to perm a route in 10.10 Yosemite. here You should create a quick script with "#!/bin/bash" sudo /sbin/route add -net x.x.x.0/24 xxx.xxx.xxx.xxx save it in a path chmod a+x the file Then type this,.. sudo defaults write com.apple.loginwindow LoginHook /Path/To/Your/Script POW .. Yosemite perm route with edit file .


1

opentracker.net is a service provider that offers analytics. My guess is that your redirection happens when you are connected to a network provider that internally uses opentracker.net. I suggest you try again from another network provider.


2

When you want to connect to an unroutable address like link-local you need to specify the interface. This is because for unroutable addresses your system can't determine the outgoing interface by looking at the routing table. Unroutable destinations include link-local addresses (fe80::) and link-local multicast (ff02::) and more.


0

You can also schedule your system to reboot at certain times of the day using options within System Preferences, or by use of a bash script that will handle this when the symptoms you described above are detected. When you notice this happening, have your monitors also gone into standby mode r shutdown from inactivity?


2

chmod 700 /path/to/folder should do the trick for you. This allows execute (1), write (2), and read (4) for the owner, and no access for everyone else.


0

Your error in Terminal happened because you didn’t escape the space. It read /System/Library/Input as one thing, and Methods/PressAndHold.app as another separate thing. And if you don’t tell it to open the app, it’ll just complain that the app bundle is a directory. What you needed to do was either type a backslash \ before the space (this is done ...


2

I'm sorry but I could fix it myself. In Cmake GUI WITH, I just enabled WITH_OPENMP. I'm leaving this question here though just in case someone else faces the same issue later on.


1

From man bash [[ expression ]] Return a status of 0 or 1 depending on the evaluation of the conditional expression expression. Expressions are composed of the primaries described below under CONDITIONAL EXPRESSIONS. Word splitting and pathname expansion are not performed on the words between the [[ and ]]; tilde ...


3

That line is called command prompt. dhcp-74-148 is you hostname that you received from dhcp server. ~ is where you currently are (which directory) - tilda means you are in your home folder, /Users/[username] : just separates hostname from current directory. You can change format of command prompt by changing $PS1 variable. And - if you're interested - ...


0

I've got the same situation: a server with log files and my local machine I want to be notified on on errors and warnings. What I do is to fetch the log files periodically to my local machine and watch them with a tool called Logistic (www.logtastic.net). The command fetching my log files from the server is: while true ; do FONTDEFDEFAULT='\033[0m' ; ...


0

Terminal only defaqltly supports 16 colors. I would recommend using a different terminal client, like iTerm2. Another way to to use this program to make terminal show all colors. [In iTerm 2] The recommended way is to set your terminal type to xterm-256color in Preferences->Profiles->Terminal->Report Terminal Type. You may also need to put set ...


0

Not sure if this is what you're referring to but I prefer a more distinct border around icons in Safari and found this works for me in Yosemite. System prefs>Accessibility>select "Increase contrast" & set Display contrast to Normal. (note that this selection automatically selects "Reduce transparency) While this does not change color,it does ...


1

I assume (via the name) that this is a Weblogic environment setting script. It is usually called via the weblogic main script to set paths before starting/stopping the server - but you're trying to set paths within your own shell for whatever reason. I think your problem lays with the way you execute the script: ./setWLSEnv.sh # will execute the script and ...


0

I'm pretty sure I understand what you are trying to accomplish, but saying "I want to forward a computer to port 22" does not make any sense. You are trying to forward incoming packets addressed for port 22 from your router to your Mac, is what you mean to say (I am assuming). In any event, port forwarding is done in your router's settings, not your Mac's. ...


3

You can't run a script to set the path in your current shell. In your case this does not seem to be necessary anyway because all the script does is to set up the correct variables to run the java process at the end. So inside this process all environment variables should be set correctly. To set variables in the current shell, either set them in ...


1

I had this same exact problem and no amount of "uninstalling" would get this pesky application file to DELETE. I even connected this Mac in Thunderbolt Target Mode to another Mac and tried to delete it that way. No go. I was at my wit's end, almost ready for a complete system backup, wipe and re-install. Fortunately before getting that far, I was able to ...


0

In your file, replace PATH= with PATH=$PATH:. This takes the actual PATH variable and add all your new PATHs. Add export PATH at the end of the file. This export the previous PATH with your changes. #!/bin/bash ...


0

If you are copying large files or directories using cp, you can open up 'Activity Monitor', go to the 'Disk' tab and look for the process 'cp'. Here you can keep track of how many bytes have been written since the last boot, giving you a rough idea of the progress. (OS X 10.10). Hope that helps!


0

One way of doing it would be assigning the script a launchd service: Create the shell script as usual. Then you can make a launchd service to run it at startup. Those are located at /Library/LaunchDaemons. These are in the XML-like property list format. Create another and populate it with something like this: <?xml version="1.0" encoding="UTF-8"?> ...


2

This can be done with a bit of hacking. ;) Before proceeding, you should backup your Terminal’s preferences file: cp "Library/Preferences/com.apple.Terminal.plist" "Library/Preferences/com.apple.Terminal_OLD.plist" Check to see if the file was copied successfully: ls "Library/Preferences/com.apple.Terminal_OLD.plist" If it prints ...


0

yes I used networksetup -setmanual and it did not work for setting interface configuration at start up. I still had to configure it manually via terminal with ifconfig. I will ask a separate question regarding running shell scripts at startup.


0

I have figured out the I need to use SFTP to connect. That is in the remote login preferences of file sharing preferences.


0

In the most current version of Iterm2, navigate to Preferences > Profiles > Keys. Select the + sign and add new key shortcut. Then scroll to the bottom and select Send Escape Sequence. Do this twice and after you select escape sequence simply put a b in the text box for left and an f for right. More information found here: ...


0

For the manual addressing, have you tried using the networksetup command? These settings can be set using the following command: networksetup -setmanual <networkservice> <ip> <subnet> <router>


0

You don't need to tell Terminal to run the script (unless you just want to lay eyes on it). But also you'll want to use a posix path escaped to prevent errors. You could do it like ... set myRes to alias (path to me as text) & "Contents:Resources:" tell application "Finder" make new alias to folder (myRes & "Pass-Through Drive") at desktop ...


0

As I just removed oh my zsh I had to change terminal settings a little: Terminal -> Preferences -> Startup tab, and change "Shell Opens With:" from "Default login shell" to Command and value /bin/bash. Now string export PS1='\u@\H:\w$' works correct.


0

For requirement 2 you can choose to make the keyboard an Australian one. The only difference between UK and Australian i alt3 and shift3. For UK they give # and £ and vice versa for Australian. This means that for an Australian keyboard # is shift3 as it is for a US or under Windows or Linux. To change the keyboard layout (under Yosemite) got System ...


1

Did you try to do run Terminator with Fink: To install Terminator on Mac OS X you will need to be using the Fink project, and have it configured to allow unstable software. With those requirements satisfied, in a terminal run: fink install terminator http://gnometerminator.blogspot.no/p/introduction.html Although iTerm2 works great for me ...


2

iTerm 2 can be configured to only use one option key as meta:


0

Order of execution is based on PATH order - locations put first are searched first, if match is found it is executed, HOWEVER, programs mapping are cached so you need to refresh the cache before changes will take place (if you've used that app before). See http://www.thegeekstuff.com/2010/08/bash-shell-builtin-commands/ (point 3.): hash command maintains ...



Top 50 recent answers are included