If you have troubles when reinstallning systems with the same ip you get different SSH host keys Then you can disable strict checking of host keys on a certain IP-range by adding the following setting to your ~/.ssh/config file.
Host 10.0.0.*
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
6/2/09
5/8/09
How to store an executable script in SVN
If you want that subversion to mark a file as executable when you check it out, you can tell it by setting a property in SVN: (Link)
$ svn propset svn:executable ON somescript
property 'svn:executable' set on 'somescript'
4/22/09
sshfs
sshfs can be used to mount directory located on a remote server using ssh
sudo apt-get install sshfs
Command line usage:
sudo apt-get install sshfs
Command line usage:
sshfs remoteuser@remotehost:/path/to/remote_dir local_mountpointsshfs johan@192.168.169.100:/ localmnt
umount local_mountpoint
Example (on my connection):
umount localmnt
4/14/09
Create a patch with diff
To create a patch for a single file, use the form:
diff -u original.c new.c > original.patch
To create a patch for an entire source tree, make a copy of the tree:
cp -R original new
Make any changes required in the directory new/. Then create a patch with the following command:
diff -rupN original/ new/ > original.patch
Subscribe to:
Posts (Atom)