| |||
2005 2004 2003 2002 June
| 2002-06-12 15:31 / os version & sed »
To get the version of OS X from the command line, type - dave@marnie - Wed 12 Jun 2002 13:56 BST - OSX 10.1.5/darwin5.2.2 - - 784/%:~- sw_vers ProductName: Mac OS X ProductVersion: 10.1.5 BuildVersion: 5S60 To extract from that the string '10.1.5', for use, e.g. in a prompt like the one above: sw_vers | sed -n '/\([0-9]\.\)/s/.*: //p' That's a tab after the colon, and you'll have to type it manually rather than just copy and paste from this page. 2002-06-10 16:41 / changing your shell »
It's also by messing about with the NetInfo commands that you can set up OS X to run NFS as a server. You'll probably have a /exports NetINfo path already. I can't remember how to do it -- but you don't need the shareware GUI that's kicking about. 2002-06-07 16:26 / ssh tunnels »
ssh tunnels are yummy. Currently #!/bin/sh # licensed under the GNU GPL (http://www.fsf.org/licenses/gpl.html) final=marnie gw=thornhill local_dir=/mnt/w2kdave/ remote_dir=/usr/local/share/mp3/ port=7778 function setup_tunnel() { echo "Password on $gw"; ssh -f -C -L $port:$final:22 $gw sleep 10; } function sync_marnie() { sync_from; sync_to; } function sync_from() { echo "Syncing from $final to local"; setup_tunnel; echo "Local password"; sudo rsync -vr --size-only -e "ssh -p $port" \ dave@localhost:$remote_dir $local_dir; } function sync_to() { echo "Syncing from local to $final"; setup_tunnel; echo "Password on $final"; rsync -vr --size-only -e "ssh -p $port" \ $local_dir dave@localhost:$remote_dir; } sync_marnie; 2002-06-07 16:51 / best X11 windowmanager?? »From my brief play last night, oroborosx is by far the best X11 windowmanager to use with OS X. Given that you want your X11 environment to look and feel as much like Aqua as possible. | ||