Posts Tagged “macosxhints”

Wie ja bereits erwà¤hnt kann VMware Fusion 2 Beta2 zum ersten mal legal Mac OS X virtualisieren. Dies ist jedoch rechtlich auf 10.5 Server beschrà¤nkt….. danke Apple fà¼r soviel Klugheit & Weitsichtigkeit *grummel*

Nun lese ich heute auf Mac OS X Hints einen kleinen Tip wie man diese Client VS. Server Abgrenzung leicht umschiffen kann.

Read the rest of this entry »

Comments No Comments »

Raw copy/quote from macosxhints.com:

If you don’t want to manage server lists for tab completion with ssh, put the following line in your .bash_profile file in your home directory:

complete -W “$(echo `cat ~/.ssh/known_hosts | cut -f 1 -d ‘ ‘ | sed -e s/,.*//g | uniq | grep -v “\["`;)" ssh

This will allow you to tab complete any hostname you've previously ssh'd to.

[robg adds: This worked as described for me. The complete command is a built-in bash function that lets you specify lists of options to be used with tab completion on a given command. The version above parses your known_hosts to create the list of options. You can read more about the complete built-in function in the bash man pages -- man bash, then search for the section titled Programmable Completion.]

Comments No Comments »

This is a raw copy from macosxhints.com:

Assume you want to do some work on a remote Mac via 10.5’s Screen Sharing, but you forgot to enable Screen Sharing before you left the remote Mac. You’re now a good distance away, and apparently stuck. Fortunately, because the screen sharing system uses launchd to monitor its state, enabling and disabling is as simple as adding a file in the remote Mac’s /Libary/Preferences folder. (Note that you’ll need to be able to login to the remote Mac via ssh to run these commands on that Mac.)

$ cd /Library/Preferences
$ echo -n enabled > com.apple.ScreenSharing.launchd

To disable screen sharing:

$ cd /Library/Preferences
$ rm com.apple.ScreenSharing.launchd

If you have a Finder window open with the remote Mac selected in the Shared section, you’ll even note the icon for Screen Sharing coming and going as you do this.

Comments No Comments »

1