Monday, April 27, 2015

Creating a multi hop SSH tunnel by chaining SSH commands and using a intermediate host

$ ssh -A -t -l wb0c rp.mdns.org -p 42121 ssh -A -t -l ora 10.1.1.21

rp.mdns.org is intermediate host here

Thursday, April 23, 2015

syntax highlighting in nano

1. create a .nanorc file in $HOME
2. Sample contents
include /usr/share/nano/asm.nanorc
include /usr/share/nano/c.nanorc
include /usr/share/nano/groff.nanorc
include /usr/share/nano/html.nanorc
include /usr/share/nano/java.nanorc
include /usr/share/nano/man.nanorc
include /usr/share/nano/mutt.nanorc
include /usr/share/nano/nanorc.nanorc
include /usr/share/nano/patch.nanorc
include /usr/share/nano/perl.nanorc
include /usr/share/nano/pov.nanorc
include /usr/share/nano/python.nanorc
include /usr/share/nano/ruby.nanorc
include /usr/share/nano/sh.nanorc
include /usr/share/nano/tex.nanorc
include /home/rprajapa/bin/ks.nanorc
include /home/rprajapa/bin/ksh.nanorc



the syntax highlighting files are in /usr/share/nano

It did not have files for .ks and .ksh   , so I copied the sh.nanorc to ksh.nanorc and ks.nanorc

and edited its contents.. ie also replace sh with ksh and .ks respectively.

(for some reason it does not like $HOME so had to put absolute path /home/rprajapa)

Thats all.. Enjoy.

Wednesday, April 22, 2015

Setting font in gvim - windows 7

Open vim editor

:echo $HOME

at the $HOME location

create a file _vimrc with the following contents
:set gfn=Consolas:h11:cANSI
:syn on

:set was optional for the gfn variable above.

Followers

About Me

Torrance, CA, United States