Tuesday, January 06, 2009

SSH Tunnels How-to?

From the comments in http://ask.slashdot.org/article.pl?sid=06/01/19/2218226

by Anonymous Coward on Thursday January 19 2006, @06:23PM (#14514191)
1. Set up usual SSH session settings in Putty
2. Go to Connection -> SSH -> Tunnels
3. Add new forwarded port. Source Port: 1080, Destination: [blank], DYNAMIC (this is important), Auto. Click on Add.
4. In Firefox or any other program that supports a SOCKS proxy, enter host 127.0.0.1 (localhost) with port 1080.


by Chris Pimlott (16212) on Thursday January 19 2006, @11:30PM (#14516257)
To do the same with the command line OpenSSH client:

ssh -N -f -D 1080

-D 1080 does the dynamic socks forwarding.
-N says don't run any command on the remote machine
-f says go into the background after asking for password
_______________
See also http://souptonuts.sourceforge.net/sshtips.htm

Monday, August 27, 2007

Some codes for IR remotes for Nikon SLR Trigger.

Mainly collected from http://forums.dpreview.com Nikon D80/D70/D50/D40 Forum
  • With rca universal: tv code 011, vol, ch, and power buttons worked. with tv code 066, only vol down worked.
  • Tihao-E10in1 universal remote control. Code 163 (Sanyo TV). Key 7.
  • GlobalPlus Global8 (probably also Global4): Code 1024; trigger with '7'
  • Lifetec (Aldi) LT3615: Code 004; trigger with 'on/off'
  • Medion MD 41169: Code 313; trigger with 'Play'
  • NSE URC22D-8: Code Sanyo TV - 028; trigger with '3'
  • Medion MD 3386: Code 008 (SAISHO) on VCR; trigger with 'Stop'
  • Medion MD 41666: Code 313 on VCR; trigger with 'Play'
  • Medion/Tevion MD 4686: Code 361; trigger with 'CHAN+'
  • A Chinese-made TV Remotes 'Red'. Code is 1028 trigger with key 3 (5,7 and 9 also work)
  • Sainsbury's Red remote control works with 1028 (that's 10,2,8) and triggers with 3,5,7 and 9
  • ADW BC510 5in1 universal remote, VCR mode, code = 298, PLAY button will activate Nikon D50 shutter, Reach: >5 meters
  • Evidence Universal Remote Control (URC22B), works with following codes: #028 release with: 3,4,5,7,>> (rewind) and two teletxt red and yellow buttons; and, #298 work with play, and ~> (next) buttons
  • The RCA Universal Remote model 403 or 404 will apparently fire the shutter of a Nikon D50, D70, D70s or a D80. Probably a D40 and D40x, too. Set your manufacturer code to 066, use the TV function and hit VOL+ to fire.
  • Supertech RC-10-1 (URC-V10 Universal Remote Controller). Set it to TV and use "182" for the D50.

Wednesday, July 12, 2006

Copying a CD to a file in Cygwin (using dd or cat command)

Here are couple of methods for copying a CD to a file in *nix: ( from http://www.cpqlinux.com/cdrw.html )
[root@server /root]# dd if=/dev/cdrom of=image.iso
[root@server /root]# cat /dev/cdrom >image.iso
A guide to use of special filename in Cygwin is available at http://www.cygwin.com/cygwin-ug-net/using-specialnames.html.
On my computer, I replace /dev/cdrom by /dev/scd0