20061122

Permission denied (publickey).

00:53:52 ssh myuser@my.domain.net
Permission denied (publickey).


If this happen, set value for ChallengeResponseAuthentication to yes.

ChallengeResponseAuthentication yes

20061121

Upgrade debian

To upgrade, change references in /etc/apt/sources.list from stable to unstable:

deb http://debian.crosslink.net/debian/ unstable main non-free contrib
deb-src http://debian.crosslink.net/debian/ unstable main non-free contrib


Then run:

# apt-get update
Get:1 http://debian.crosslink.net unstable/main Packages [1931kB]
Get:2 http://debian.crosslink.net unstable/main Release [82B]
....


Then you can upgrade by:

apt-get -u dist-upgrade

source http://www.linuxmigration.com/quickref/debian/gen.html

osx : change sshd service port

sudo perl -pi -e 's!^(ssh\s+) \d+/!$1 2200/!' /etc/services # changes it to port 2200

credit to the author.

mount linux nfs server on mac

Linux:
--------
add an export entry to /etc/exports
/local *(ro,insecure)

export the filesystems
# exportfs -r (optional: remove entries deleted from /etc/exports)
# exportfs -a

Darwin (OS X) :
-------------------
Add an entry to netinfo. This can be done from the command line or from netinfo. See http://deaddog.duch.udel.edu/~frey/...arwinAndNFS.pdf

In netinfo, under the /mounts directory, add the following:



name remoteServer:/remoteMountPoint (this is the directory under /mounts)
vfstype nfs
dir /mount_point
opts -b net -P -s

After saving netinfo, restart NFS:

sudo killall -HUP nfsiod nfsd mountd automount

from bsdforums.org

20061117

Search files for spesific string

grep -rH [string] [dir_to_search]

eg: grep -rH WebKitHistoryAgeInDaysLimit ~/Library