Saturday, June 16, 2012

[windows] reset network connection

ref: http://ttcshelbyville.wordpress.com/tag/winsock-reset/


Every have that laptop or netbook that connects to your computer but won’t go online at another location? You can quickly rebuild the IP stack and force the computer to get online at another location by typing the following command:
netsh int ip reset C:iplog.txt
Of course if you have a computer that won’t get online even if it has an ip address, do several things -
  • Click Start Menu, type cmd in the search box or run box ( Hold down Ctrl + Shift and hit Enter)Type the following commands, each followed by pressing enter.
  • ipconfig /flushdns
  • nbtstat -R
  • nbtstat -RR
  • netsh int reset all
  • netsh int ipv4 reset
  • netsh winsock reset catalog
This will rebuild the tcp/ip protocol stack (fully)
After rebooting, run a command prompt as an administrator and type:
  • netsh interface tcp set global autotuninglevel=disabled
Reboot

Tuesday, June 05, 2012

keychain activation

ref:  http://www.gentoo.org/doc/en/keychain-guide.xml


[FIXED] this is missing instruction
$ exec /usr/bin/ssh-agent $SHELL
$ ssh-add


ref: http://www.cyberciti.biz/faq/ssh-password-less-login-with-dsa-publickey-authentication/

Code Listing 3.6: Enabling keychain in .bash_profile
keychain ~/.ssh/id_dsa
. ~/.keychain/$HOSTNAME-sh
. ~/.keychain/$HOSTNAME-sh-gpg


load keychain before rsync

source $HOME/.keychain/$HOSTNAME-sh
rsync -avrtz root@hostname.com:/path/from /path/destination

problem [solved]
Related Posts Plugin for WordPress, Blogger...