tag:blogger.com,1999:blog-5325171520624598592024-03-08T12:22:04.224+05:30linuxtechie on the net!A techie, a driving buff, all that you can think of... however a dad as well.linuxtechiehttp://www.blogger.com/profile/02898837996825714211noreply@blogger.comBlogger40125tag:blogger.com,1999:blog-532517152062459859.post-842447970239174482011-05-10T22:49:00.003+05:302011-05-10T23:12:16.878+05:30Setting up rsyslogd to get logs from Cisco SPA3102.On Ubuntu Natty, the configuration order is important. Hence in folder /etc/rsyslogd.conf, file 20-ufw.conf takes precedence over 50-default.conf. Hence if one would like to have its configuration take precedence, the filename must be like 30-voip-router.conf.<br /><br />Following content would suffice:<br /><span style="font-family:courier new;">root@delbuntu:/etc/rsyslog.d# cat 30-voip-router.conf </span><br /><span style="font-family:courier new;">$ModLoad imudp</span><br /><span style="font-family:courier new;">$UDPServerRun 514</span><br /><br /><span style="font-family:courier new;">#$ModLoad imtcp</span><br /><span style="font-family:courier new;">#$InputTCPServerRun 514</span><br /><br /><span style="font-family:courier new;">$template DynFile,"/var/log/router-log/%HOSTNAME%/%timegenerated:1:10:date-rfc3339%"</span><br /><span style="font-family:courier new;">:HOSTNAME, !isequal, "localhost" ?DynFile</span><br /><br /><span style="font-family:courier new;">& ~</span>linuxtechiehttp://www.blogger.com/profile/02898837996825714211noreply@blogger.com0tag:blogger.com,1999:blog-532517152062459859.post-48661387971868792122011-04-25T12:46:00.003+05:302011-04-25T12:49:03.713+05:30Moin Moin Migration<ol><li>When moving from one version to another, make sure that the old Cache directories are deleted, else they would cause problem by loading wrong modules.</li><li>For e.g an error as following might be observed:</li></ol><span style="font-size:85%;"><span style="font-family: courier new;">[Mon Apr 18 12:50:32 2011] [error] 2011-04-18 12:50:32,619 WARNING MoinMoin.log:139 using logging configuration read from built-in fallback in MoinMoin.log module!<br /><br />[Mon Apr 18 12:50:33 2011] [error] 2011-04-18 12:50:33,371 INFO MoinMoin.config.multiconfig:127 using wiki config: D:\\xampp\\moinconfig\\wikiconfig.py<br /><br />[Mon Apr 18 12:50:43 2011] [error] 2011-04-18 12:50:43,276 ERROR MoinMoin.wsgiapp:293 An exception has occurred [https://gjm6n1s-706/mm/MyStartingPage].<br /><br />[Mon Apr 18 12:50:43 2011] [error] Traceback (most recent call last):<br /><br />[Mon Apr 18 12:50:43 2011] [error] File "D:/xampp/moincode\\MoinMoin\\wsgiapp.py", line 282, in __call__<br /><br />[Mon Apr 18 12:50:43 2011] [error] response = run(context)<br /><br />[Mon Apr 18 12:50:43 2011] [error] File "D:/xampp/moincode\\MoinMoin\\wsgiapp.py", line 88, in run<br /><br />[Mon Apr 18 12:50:43 2011] [error] response = dispatch(request, context, action_name)<br /><br />[Mon Apr 18 12:50:43 2011] [error] File "D:/xampp/moincode\\MoinMoin\\wsgiapp.py", line 136, in dispatch<br /><br />[Mon Apr 18 12:50:43 2011] [error] response = handle_action(context, pagename, action_name)<br /><br />[Mon Apr 18 12:50:43 2011] [error] File "D:/xampp/moincode\\MoinMoin\\wsgiapp.py", line 195, in handle_action<br /><br />[Mon Apr 18 12:50:43 2011] [error] handler(context.page.page_name, context)<br /><br />[Mon Apr 18 12:50:43 2011] [error] File "D:/xampp/moincode\\MoinMoin\\action\\login.py", line 18, in execute<br /><br />[Mon Apr 18 12:50:43 2011] [error] return LoginHandler(pagename, request).handle()<br /><br />[Mon Apr 18 12:50:43 2011] [error] File "D:/xampp/moincode\\MoinMoin\\action\\login.py", line 70, in handle<br /><br />[Mon Apr 18 12:50:43 2011] [error] return self.page.send_page()<br /><br />[Mon Apr 18 12:50:43 2011] [error] File "D:/xampp/moincode\\MoinMoin\\Page.py", line 1199, in send_page<br /><br />[Mon Apr 18 12:50:43 2011] [error] start_line=pi['lines'])<br /><br />[Mon Apr 18 12:50:43 2011] [error] File "D:/xampp/moincode\\MoinMoin\\Page.py", line 1287, in send_page_content<br /><br />[Mon Apr 18 12:50:43 2011] [error] self.execute(request, parser, code)<br /><br />[Mon Apr 18 12:50:43 2011] [error] File "D:/xampp/moincode\\MoinMoin\\Page.py", line 1318, in execute<br /><br />[Mon Apr 18 12:50:43 2011] [error] exec code<br /><br />[Mon Apr 18 12:50:43 2011] [error] File "MyStartingPage", line 2, in <module><br /><br />[Mon Apr 18 12:50:43 2011] [error] TypeError: 'dict' object is not callable<br /><br />[Mon Apr 18 12:50:43 2011] [error] [client 137.72.255.193] mod_wsgi (pid=1072): Exception occurred processing WSGI script 'D:/xampp/moinconfig/wiki.wsgi'., referer: https://gjm6n1s-706/mm/MyStartingPage?action=login<br /><br />[Mon Apr 18 12:50:43 2011] [error] [client 137.72.255.193] Traceback (most recent call last):, referer: https://gjm6n1s-706/mm/MyStartingPage?action=login<br /><br />[Mon Apr 18 12:50:43 2011] [error] [client 137.72.255.193] File "D:\\xampp\\moincode\\MoinMoin\\support\\werkzeug\\utils.py", line 248, in __call__, referer: https://gjm6n1s-706/mm/MyStartingPage?action=login<br /><br />[Mon Apr 18 12:50:43 2011] [error] [client 137.72.255.193] return self.app(environ, start_response), referer: https://gjm6n1s-706/mm/MyStartingPage?action=login<br /><br />[Mon Apr 18 12:50:43 2011] [error] [client 137.72.255.193] File "D:/xampp/moincode\\MoinMoin\\wsgiapp.py", line 282, in __call__, referer: https://gjm6n1s-706/mm/MyStartingPage?action=login<br /><br />[Mon Apr 18 12:50:43 2011] [error] [client 137.72.255.193] response = run(context), referer: https://gjm6n1s-706/mm/MyStartingPage?action=login<br /><br />[Mon Apr 18 12:50:43 2011] [error] [client 137.72.255.193] File "D:/xampp/moincode\\MoinMoin\\wsgiapp.py", line 88, in run, referer: https://gjm6n1s-706/mm/MyStartingPage?action=login<br /><br />[Mon Apr 18 12:50:43 2011] [error] [client 137.72.255.193] response = dispatch(request, context, action_name), referer: https://gjm6n1s-706/mm/MyStartingPage?action=login<br /><br />[Mon Apr 18 12:50:43 2011] [error] [client 137.72.255.193] File "D:/xampp/moincode\\MoinMoin\\wsgiapp.py", line 136, in dispatch, referer: https://gjm6n1s-706/mm/MyStartingPage?action=login<br /><br />[Mon Apr 18 12:50:43 2011] [error] [client 137.72.255.193] response = handle_action(context, pagename, action_name), referer: https://gjm6n1s-706/mm/MyStartingPage?action=login<br /><br />[Mon Apr 18 12:50:43 2011] [error] [client 137.72.255.193] File "D:/xampp/moincode\\MoinMoin\\wsgiapp.py", line 195, in handle_action, referer: https://gjm6n1s-706/mm/MyStartingPage?action=login<br /><br />[Mon Apr 18 12:50:43 2011] [error] [client 137.72.255.193] handler(context.page.page_name, context), referer: https://gjm6n1s-706/mm/MyStartingPage?action=login<br /><br />[Mon Apr 18 12:50:43 2011] [error] [client 137.72.255.193] File "D:/xampp/moincode\\MoinMoin\\action\\login.py", line 18, in execute, referer: https://gjm6n1s-706/mm/MyStartingPage?action=login<br /><br />[Mon Apr 18 12:50:43 2011] [error] [client 137.72.255.193] return LoginHandler(pagename, request).handle(), referer: https://gjm6n1s-706/mm/MyStartingPage?action=login<br /><br />[Mon Apr 18 12:50:43 2011] [error] [client 137.72.255.193] File "D:/xampp/moincode\\MoinMoin\\action\\login.py", line 70, in handle, referer: https://gjm6n1s-706/mm/MyStartingPage?action=login<br /><br />[Mon Apr 18 12:50:43 2011] [error] [client 137.72.255.193] return self.page.send_page(), referer: https://gjm6n1s-706/mm/MyStartingPage?action=login<br /><br />[Mon Apr 18 12:50:43 2011] [error] [client 137.72.255.193] File "D:/xampp/moincode\\MoinMoin\\Page.py", line 1199, in send_page, referer: https://gjm6n1s-706/mm/MyStartingPage?action=login<br /><br />[Mon Apr 18 12:50:43 2011] [error] [client 137.72.255.193] start_line=pi['lines']), referer: https://gjm6n1s-706/mm/MyStartingPage?action=login<br /><br />[Mon Apr 18 12:50:43 2011] [error] [client 137.72.255.193] File "D:/xampp/moincode\\MoinMoin\\Page.py", line 1287, in send_page_content, referer: https://gjm6n1s-706/mm/MyStartingPage?action=login<br /><br />[Mon Apr 18 12:50:43 2011] [error] [client 137.72.255.193] self.execute(request, parser, code), referer: https://gjm6n1s-706/mm/MyStartingPage?action=login<br /><br />[Mon Apr 18 12:50:43 2011] [error] [client 137.72.255.193] File "D:/xampp/moincode\\MoinMoin\\Page.py", line 1318, in execute, referer: https://gjm6n1s-706/mm/MyStartingPage?action=login<br /><br />[Mon Apr 18 12:50:43 2011] [error] [client 137.72.255.193] exec code, referer: https://gjm6n1s-706/mm/MyStartingPage?action=login<br /><br />[Mon Apr 18 12:50:43 2011] [error] [client 137.72.255.193] File "MyStartingPage", line 2, in <module>, referer: https://gjm6n1s-706/mm/MyStartingPage?action=login<br /><br />[Mon Apr 18 12:50:43 2011] [error] [client 137.72.255.193] TypeError: 'dict' object is not callable, referer: https://gjm6n1s-706/mm/MyStartingPage?action=login<br /><br /></module></module></span></span>linuxtechiehttp://www.blogger.com/profile/02898837996825714211noreply@blogger.com0tag:blogger.com,1999:blog-532517152062459859.post-20523405822616349222010-07-23T14:39:00.001+05:302010-07-23T14:39:15.591+05:30Wubi has no install inside windows option<div xmlns='http://www.w3.org/1999/xhtml'>Err make sure that the USB drive has been plugged out. This option won't popup if the USB drive exist. Copy the iso and wubi.exe on local disk and then try out.<br/></div>linuxtechiehttp://www.blogger.com/profile/02898837996825714211noreply@blogger.com0tag:blogger.com,1999:blog-532517152062459859.post-82128907973533026362010-07-21T11:29:00.001+05:302010-07-21T11:29:37.607+05:30Using WinMerge with GIT<div xmlns='http://www.w3.org/1999/xhtml'><big><u><font face='tahoma'>First set the environment as following</font></u></big><br/><br/><font face='Courier New'>git config --replace --global diff.tool winmerge<br/>git config --replace --global difftool.winmerge.cmd "winmerge.cmd \"$LOCAL\" \"$REMOTE\""<br/>git config --replace --global difftool.prompt false<br/><br/><font face='tahoma'>Prepare winmerge.cmd as following as it will be used by git. Make sure its in a path:<br/><br/></font>cat D:\MyDocs\bin\winmerge.cmd<br/>echo Launching WinMergeU.exe: $1 $2<br/>"C:/Program Files/WinMerge/WinMergeU.exe" -e -ub -dl "Base" -dr "Mine" "$1" "$2"<br/><br/><u><font face='tahoma'>Use git command as :</font></u><br/><br/>git difftool<br/><br/><font face='tahoma'>Thats it! Its all set.</font><br/></font></div>linuxtechiehttp://www.blogger.com/profile/02898837996825714211noreply@blogger.com0tag:blogger.com,1999:blog-532517152062459859.post-67721432831912588142010-06-16T09:39:00.001+05:302010-06-16T09:40:50.092+05:30Ubuntu | Force switch on screen lock and turn off lcd display<code><br />gnome-screensaver-command -l && xset dpms force off <br /></code><br /><br />Does the job, unless you, audience, can please suggest me better.linuxtechiehttp://www.blogger.com/profile/02898837996825714211noreply@blogger.com0tag:blogger.com,1999:blog-532517152062459859.post-3728336032537426802010-06-12T11:18:00.002+05:302010-06-12T11:21:47.574+05:30Calculating time difference for reservations using Python<code><br />import datetime<br /># Since I wish to do reservation on 12 Sept 2010<br />d = datetime.datetime(2010,09,12)<br /># I can do reservation 90 days before<br />b = datetime.timedelta(90)<br /># The day when I can do reservation is<br />print d - b <br /></code>linuxtechiehttp://www.blogger.com/profile/02898837996825714211noreply@blogger.com0tag:blogger.com,1999:blog-532517152062459859.post-88271438229449653942010-05-01T19:41:00.005+05:302010-05-01T19:45:59.837+05:30Timex HRM for SaleFolks,<br /><br />Selling following:<br /><br /><embed type="application/x-shockwave-flash" id="player2" name="player2" src="http://www.veeresh.info/player.swf" allowscriptaccess="always" allowfullscreen="true" flashvars="file=http://www.veeresh.info/linuxtechie/sale/hrm/HRM.mp4" height="240" width="320"></embed><br /><br />URL: http://www.amazon.com/gp/product/B000P8VWRC/ref=cm_cr_rev_prod_title<br /><br />Mail me!linuxtechiehttp://www.blogger.com/profile/02898837996825714211noreply@blogger.com0tag:blogger.com,1999:blog-532517152062459859.post-85400149477918448152010-04-12T22:04:00.001+05:302010-04-12T22:04:54.326+05:30A 3 years old defect!<div xmlns='http://www.w3.org/1999/xhtml'>Just can't believe it! A 3 years old defect lying there in the Python for so many years!<br/><br/>http://bugs.python.org/issue1731717<br/><br/><br/><br/><div class='zemanta-pixie'><img src='http://img.zemanta.com/pixy.gif?x-id=bf7f7f3c-3630-8172-8f8e-d3410b7f087d' alt='' class='zemanta-pixie-img'/></div></div>linuxtechiehttp://www.blogger.com/profile/02898837996825714211noreply@blogger.com0tag:blogger.com,1999:blog-532517152062459859.post-29393035080186577692010-02-28T20:39:00.001+05:302010-02-28T20:39:56.035+05:30Pidgin | libPurple | Python | Motion | Whacking combination to get instant motion alert!<div xmlns='http://www.w3.org/1999/xhtml'>Tried out writing a python snipped to post instant messages whenever a motion is detected by Ubuntu 9.10. I will post in details about the whole recipe latter. However important fact is, its its much much faster then using Twitter!<br/><br/> <br/><br/><div class='zemanta-pixie'><img src='http://img.zemanta.com/pixy.gif?x-id=f1ff9039-6089-8a31-a9d8-b04049a01186' alt='' class='zemanta-pixie-img'/></div></div>linuxtechiehttp://www.blogger.com/profile/02898837996825714211noreply@blogger.com0tag:blogger.com,1999:blog-532517152062459859.post-90240059779864240312010-02-28T20:23:00.001+05:302010-02-28T20:23:16.819+05:30Happy Holi 2010<div xmlns='http://www.w3.org/1999/xhtml'><i><b><font face='trebuchet'><big><big><big><big><small>Happy Holi Folks!<br/><br/><br/>Enjoy the colors!<br/></small><br/><br/><br/></big></big></big></big></font></b></i><img src='http://www.veeresh.info/blog/images/linuxtechie/happy-holi.jpg' style='max-width: 800px;'/><br/><br/><div class='zemanta-pixie'><img src='http://img.zemanta.com/pixy.gif?x-id=16b4cf27-844a-830c-9ec4-9dae3f525204' alt='' class='zemanta-pixie-img'/></div></div>linuxtechiehttp://www.blogger.com/profile/02898837996825714211noreply@blogger.com0tag:blogger.com,1999:blog-532517152062459859.post-19010835563965818692010-02-19T15:55:00.000+05:302010-02-19T15:56:35.825+05:30django and threading :)<div xmlns='http://www.w3.org/1999/xhtml'><font face='trebuchet'>Figured out how to deal threading on django! While there are quite great many argument's and counter arguments, I believe its going to be a great if it doesn't break anything :)<br/><br/>A drop in for the threading:<br/><br/>http://github.com/jaylett/django_concurrent_test_server<br/><br/>Also a proxying solution using django:<br/><br/>http://pypi.python.org/pypi/django-http-proxy/<br/><br/>Looks like I am all set with a desired proxy server :)<br/><br/></font><br/><br/><div class='zemanta-pixie'><img src='http://img.zemanta.com/pixy.gif?x-id=bc818998-d1f8-8722-bfad-7d1d53e6d009' alt='' class='zemanta-pixie-img'/></div></div>linuxtechiehttp://www.blogger.com/profile/02898837996825714211noreply@blogger.com0tag:blogger.com,1999:blog-532517152062459859.post-64017469941436799402010-02-06T23:19:00.002+05:302010-02-06T23:38:12.308+05:30SSH Chrooting on Ubuntu 9.10<div xmlns="http://www.w3.org/1999/xhtml"><big><u>SSH Configuration Section:<br /><br /></u><small>First thing first, setup sshd so that it allows chroot for a given user as following:<br /><br /><span style="font-family:Courier New;"><i>Match User jazz<br /> ChrootDirectory /home/jazz<br /> AllowTCPForwarding yes<br /> X11Forwarding no</i><br /></span><big><br /></big><span style="font-family:tahoma;">Next, make sure the directory /home/jazz is owned explicitly on root and no one else:</span><br /><br /><i><span style="font-family:Courier New;">chown -R root:root /home/jazz</span></i><br /><span style="font-family:tahoma;"><br />Next execute following:</span><br /></small></big><span style="font-family:Courier New, Courier, mono;"><i><span style="font-size:85%;">cd /home/jazz<br /> mkdir etc<br /> mkdir bin<br /> mkdir lib<br /> mkdir usr<br /> mkdir usr/bin<br /> mkdir dev<br /> mknod dev/null c 1 3<br />mknod dev/zero c 1 5<br /><br /></span></i><span style="font-size:85%;"><span style="font-family:tahoma;"><big>Execute following:</big><br /></span></span></span><span style="font-family:Courier New;"><i>APPS="/bin/bash /bin/ls"<br />for prog in $APPS; do<br /> cp $prog ./$prog<br /><br /> # obtain a list of related libraries<br /> ldd $prog > /dev/null<br /> if [ "$?" = 0 ] ; then<br /> LIBS=`ldd $prog | awk '{ print $3 }'`<br /> for l in $LIBS; do<br /> mkdir -p ./`dirname $l` > /dev/null 2>&1<br /> cp $l ./$l<br /> done<br /> fi<br />done</i><br /></span><br /><span style="font-family:Courier New, Courier, mono;"><span style="font-size:85%;"><span style="font-family:tahoma;"><big>Please note apps above can be modified as per needed binaries. In a nutshell all the libraries on which binaries depend must be copied to lib, even those libraries depending on libraries must be copied.<br /><br />Finally copy library as following:<br /><br /><small><i><span style="font-family:Courier New;">cp /lib/ld-linux.so.2 lib</span></i></small><br /><br /></big></span></span></span><span style="font-family:Courier New, Courier, mono;"><span style="font-size:85%;"><span style="font-family:tahoma;"><big>If you would like to share files between chroot and otherwise use following:<br /><br /></big></span></span></span><span style="font-family:Courier New, Courier, mono;"><span style="font-size:85%;"><span style="font-family:tahoma;"><big><small><i><span style="font-family:Courier New;">mount --bind /home/ubuntu/Downloads /home/jazz/Downloads<br /><br /></span></i></small></big></span></span></span><span style="font-family:Courier New, Courier, mono;"><span style="font-size:85%;"><span style="font-family:tahoma;"><big>Ofcourse /home/jazz/Downloads must exist!</big></span></span></span><br /><span style="font-family:Courier New, Courier, mono;"><span style="font-size:85%;"><span style="font-family:tahoma;"><big><small><i><span style="font-family:Courier New;"><br /></span></i></small></big></span></span></span><span style="font-family:Courier New, Courier, mono;"><span style="font-size:85%;"><span style="font-family:tahoma;"><big>There chroot should work!<br /><br /><br /></big></span></span></span><br /><br /><br /><div class="zemanta-pixie"><img src="http://img.zemanta.com/pixy.gif?x-id=436e2e65-5ae5-8dd6-86ba-c075129af50a" alt="" class="zemanta-pixie-img" /></div></div>linuxtechiehttp://www.blogger.com/profile/02898837996825714211noreply@blogger.com0tag:blogger.com,1999:blog-532517152062459859.post-45578961308053061732010-01-28T19:14:00.004+05:302010-01-28T19:52:20.085+05:30Installing Ubuntu without functioning CDROM, Bootable USB Bios<div xmlns='http://www.w3.org/1999/xhtml'>In a nutshell here are the steps to be executed:<br/><br/><ul><li>Assumptions: there is a bootable <a id='aptureLink_LRvHlz4DlL' href='http://en.wikipedia.org/wiki/Master%20boot%20record'>MBR</a> already present, either though Linux or Windows.<br/></li><li>Get a bootable USB drive and the CD image of the ubuntu distribution.</li><li>Install the CD image on the usb drive using software say: <a target='_blank' href='http://www.pendrivelinux.com/'>PendriveLinux.Com</a><br/></li><li>Make sure that software goes fine, else it may crib about some error if the usb drive is not bootable.</li><li>Get a hold of <a target='_blank' href='http://www.plop.at/'>plop boot loader</a>. This guy allows you to boot to USB drive through its boot loader.</li><li>Reboot into plop boot loader and you are good to go!</li></ul>Here is the screenshot of plop that should be visible:<br/><br/><img width='483' height='362' style='max-width: 800px;' src='http://www.veeresh.info/blog/images/linuxtechie/bootmngr5_1.jpg'/><br/><br/><br/><div class='zemanta-pixie'><img src='http://img.zemanta.com/pixy.gif?x-id=df1fefad-e91b-8071-b077-8de29bced59e' alt='' class='zemanta-pixie-img'/></div></div>linuxtechiehttp://www.blogger.com/profile/02898837996825714211noreply@blogger.com0tag:blogger.com,1999:blog-532517152062459859.post-70693264512509579212010-01-28T19:05:00.004+05:302011-03-06T21:37:03.981+05:30Smooth, eye catching fonts on linux - using Ubuntu 9.10 - Karmic<div xmlns="http://www.w3.org/1999/xhtml"><span >First thing firs</span>t, let the screen shots do the talk:<br /><br /><img src="http://www.veeresh.info/blog/images/linuxtechie/Fonts1.gif" style="max-width: 800px;" /><br /><br /><br /><img src="http://www.veeresh.info/blog/images/linuxtechie/Fonts2.gif" style="max-width: 800px;" /><br /><br /><img src="http://www.veeresh.info/blog/images/linuxtechie/Screenshot-1.png" style="max-width: 800px;" /><br /><br />Thats pretty good looking font ;)<br /><br />+LT<br /><br /><div class="zemanta-pixie"><img src="http://img.zemanta.com/pixy.gif?x-id=84029fab-db25-88a0-a24c-b92187a8154e" alt="" class="zemanta-pixie-img" /></div></div>linuxtechiehttp://www.blogger.com/profile/02898837996825714211noreply@blogger.com0tag:blogger.com,1999:blog-532517152062459859.post-16619809125525895962010-01-14T09:34:00.002+05:302010-01-14T09:37:18.295+05:30|| प्रार्थना ||<div style="text-align: center;"><span style="font-size:180%;">आवाहनं ना जानामि न जानामि तवार्चनम् |<br /><br /></span><span style="font-size:180%;">पूजांचैव न </span><span style="font-size:180%;">जानामि क्षम्यतां जगदीश्वर |<br /><br /></span><span style="font-size:180%;">अपराध सहस्त्राणि क्रियन्तेऽहर्निशं मया |<br /><br /></span><span style="font-size:180%;">दासोऽयमिति मां मत्वा क्षमस्व परमेश्वर |<br /><br /></span><span style="font-size:180%;">पापोऽहं कर्माऽहं पापात्मा पाप संभवः |<br /><br /></span><span style="font-size:180%;">त्राहिमां कृपया देव शरणागत वत्सल ||<br /><br /><br /><br /></span><span style="font-size:180%;">गतं पापं गतं दुःखं गतं दारिद्रयमेवच |<br /><br /></span><span style="font-size:180%;">आगता सुखसंपतीः | पुण्याच्च श्री दर्शनात् ||</span></div>linuxtechiehttp://www.blogger.com/profile/02898837996825714211noreply@blogger.com0tag:blogger.com,1999:blog-532517152062459859.post-70108787376887111432010-01-13T17:27:00.001+05:302010-01-13T17:27:48.499+05:30Android theme on Ubuntu.<div xmlns='http://www.w3.org/1999/xhtml'>Looks pretty cool :P<br/><br/><img src='http://www.gnome-look.org/CONTENT/content-pre1/114825-1.png' style='max-width: 800px;'/></div>linuxtechiehttp://www.blogger.com/profile/02898837996825714211noreply@blogger.com0tag:blogger.com,1999:blog-532517152062459859.post-8872701783249368982010-01-13T14:58:00.002+05:302010-01-14T11:33:25.978+05:30Accessing X11 through VNC<div xmlns="http://www.w3.org/1999/xhtml"><span style="font-family:trebuchet;">Tested in </span><a id="aptureLink_nu468YOlX9" href="http://en.wikipedia.org/wiki/Ubuntu%20%28operating%20system%29">Ubuntu</a><span style="font-family:trebuchet;"> Karmic 9.10<br /><br />Create following file <span style="font-family:Courier New;">/etc/xinet.d/x11vnc <span style="font-family:trebuchet;">as following:<br /><br /><span style="font-family:Courier New;">service x11vnc<br />{<br /> port = 5900<br /> type = UNLISTED<br /> socket_type = stream<br /> protocol = tcp<br /> wait = no<br /> user = root<br /> server = /usr/bin/x11vnc<br /> server_args = -inetd -o /var/log/x11vnc.log -display :0 -passwd yourpassword -many -bg<br /> disable = no<br />}<br /><br /><br /><span style="font-family:trebuchet;">Make sure it has permission set to 600 for security sake. Restart the xinetd daemon and you are good to go.<br /><br /><br /></span></span><br /></span></span></span><br /><br /><div class="zemanta-pixie"><img src="http://img.zemanta.com/pixy.gif?x-id=d8e0aaf4-3cce-8004-aa03-d653d66d8a89" alt="" class="zemanta-pixie-img" /></div></div>linuxtechiehttp://www.blogger.com/profile/02898837996825714211noreply@blogger.com0tag:blogger.com,1999:blog-532517152062459859.post-77127667099079350752009-11-30T15:11:00.004+05:302010-01-13T17:41:39.900+05:30VNC vs X11 Forwarding<div xmlns='http://www.w3.org/1999/xhtml'><div style='float: right;' class='zemanta-image'><a title='Non-free, could qualify as fair use' href='http://en.wikipedia.org/wiki/Image:Vnc_logo.png'><img src='http://upload.wikimedia.org/wikipedia/en/b/b5/Vnc_logo.png'/></a><br/><small>Image via <a href='http://en.wikipedia.org/wiki/Image:Vnc_logo.png'>Wikipedia</a></small></div><span style='font-family: lucida grande;'>Did some research around and compiled following, they are pretty interesting:</span><br/><br/><ul><li style='font-family: lucida grande;'>VNC typically uses fewer round-trips than X, particularly as an application starts up. Your link is quite high bandwidth, but if the latency is high, you may find things appear more quickly if you use VNC than if you use X.</li><li style='font-family: lucida grande;'>X, however, generally requires much less bandwidth once the application is up and running. This is because it makes more use of resources at the terminal (fonts, cursors, etc). With VNC these are all rendered at the server and copied over the network. So X will often be faster, but VNC works across more platforms and is less dependent on the facilities at the terminal.</li><li><span style='font-family: lucida grande;'>X applications will die when the connection is broken, whereas a VNC viewer can disconnect and reconnect as many times as it likes and the applications keep running. This is particularly useful if you have long-running apps, or if you wish to connect from more than one place.</span></li><li>People seem to be forgetting one of the more important factors - normally when you run an X server (such as XWin32 for Windoze) the heavy memory usage is at the user's end. The applications you start on the server and that connect to your X server are relatively light-weight. With VNC you reverse that role again, not only will you most likely run your apps on your server, but also the X server itself will then be on that server. With a few users running (VNC) X servers memory usage could be significant.</li><li>Previously I used XWin32 at work, but everytime the machine (or just XWin32) crashed I would lose all my sessions. Also, XWin32 can be quite heavy for your PC - depends a bit on how much memory you have and all that. Nowadays (ever since I learned of VNC) I and several colleagues run VNC X servers on our admin server and connect there with the VNC clients. With SSH and port forwarding we're also able to pick up our sessions from home (mostly through dial-up ISDN, usable but not fast) as well.</li><li>I also use VNC at home to access the VNC server on my Linux box. Speed is good (would be better even with 100Mbit ethernet instead of 10Mbit) and again it doesn't matter whether my W98 box crashes, the server will stay up.</li><li>I've used VNC a long time ago too when I first tested it over a 2Mbit connection, and I recall that as very usable. X connections over that connection are slow anyway. :) Your mileage may vary - what window manager and the like you use matters a lot too. The simpler the graphics the less data, etc. It can't be put as simple as you think.<br/></li></ul>Source: http://www.realvnc.com/pipermail/vnc-list/1999-October/010265.html<div><br/></div><div>Updates: VNC is much much faster than X forwarding, as observed from the testing.</div></div>linuxtechiehttp://www.blogger.com/profile/02898837996825714211noreply@blogger.com0tag:blogger.com,1999:blog-532517152062459859.post-32136916057658134382009-09-16T00:39:00.001+05:302010-01-13T17:33:42.239+05:30Converting FLV to Creative Zen<div xmlns='http://www.w3.org/1999/xhtml'>Only command:<br/><font face='Courier New'>ffmpeg -i 1.mp4 -mbd -f avi -vcodec mpeg4 -maxrate 1000k -b 700k -qmin 3 -qmax 5 -bufsize 4096k -g 300 -acodec libmp3lame -ab 192k -s 320x240 -aspect 4:3 -r 25 -vtag DIVX op1.avi</font><br/><br/><div class='zemanta-pixie'><img src='http://img.zemanta.com/pixy.gif?x-id=b23f1458-688e-8f02-b944-2ae53c2b11ff' alt='' class='zemanta-pixie-img'/></div></div>linuxtechiehttp://www.blogger.com/profile/02898837996825714211noreply@blogger.com0tag:blogger.com,1999:blog-532517152062459859.post-60702147816503813492009-08-18T01:02:00.001+05:302009-08-18T01:04:24.579+05:30Command to check service running on linux<span style="font-family: courier new;"><verbatim><br />veeresh@ubuntu:~$ sudo netstat -tulpn<br />Active Internet connections (only servers)<br />Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name<br />tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 18108/sshd <br />tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 2738/cupsd <br />tcp6 0 0 :::22 :::* LISTEN 18108/sshd <br />tcp6 0 0 ::1:631 :::* LISTEN 2738/cupsd <br />udp 0 0 0.0.0.0:68 0.0.0.0:* 3069/dhclient <br />udp 0 0 0.0.0.0:51406 0.0.0.0:* 2710/avahi-daemon:<br />udp 0 0 0.0.0.0:5353 0.0.0.0:* 2710/avahi-daemon:<br /></span><span style="font-family: courier new;"></verbatim></span>linuxtechiehttp://www.blogger.com/profile/02898837996825714211noreply@blogger.com0tag:blogger.com,1999:blog-532517152062459859.post-6541010381631644342009-06-17T00:39:00.002+05:302009-06-17T00:42:28.561+05:30Best Setting for Samsung LCD 550Mode = Movie<br />Backlight = 4<br />Contrast = 90<br />Brightness = 51<br />Sharpness = 0<br />Color = 48<br />Tint = G54/R46<br /><br /><i>DETAILED SETTINGS</i><br />Black Adjust = Off<br />Dynamic Contrast = Off<br />Gamma = 0<br />Color Space = Custom<br />Red: R41 - G0 - B0<br />Green: R21 - G52 - B0<br />Blue: R8 - G0 - B57<br />Yellow: R52 - G52 - B0<br />Cyan: R27 - G48 - B48<br />Magenta: R33 - G0 - B50<br /><br />Flesh Tone = 0<br />Edge Enhancement = Off<br />Xycc = Off<br /><br /><i>WHITE BALANCE</i><br />R-Offset = 26<br />G-Offset = 25<br />B-Offset = 24<br />R-Gain = 33<br />G-Gain = 25<br />B-Gain = 25<br /><br /><i>PICTURE OPTIONS</i><br />Color Tone = Warm 2<br />Size = Just Scan<br />Digital N/R = Off<br />HDMI Black Level = Set to your device, may be grayed out. Usually "low" unless using PC or expanded levels on PS3/xbox360, in which case set to "Normal".<br />Film Mode = off (or auto depending on your source)<br />Blue Mode = Off<br /><br />Energy Saving = Off<br />Entertainment modes = Off<br /><br /><b>Things to consider changing:</b><ul><li>Backlight - adjust for your environment, higher if you think the picture is too dim, lower if too bright</li><li>Brightness - depending on your set, you may have to adjust it lower. You should set it with some sort of pattern, if you don't have one, then find a black screen and lower the brightness until you can't see it getting any darker, then go up one.</li><li>Sharpness - depends on your preference and source. I wouldn't go past about 20 or so on a high-def source though</li><li>HDMI Black level - it's OK if it's grayed out! If it's not, you need to set it to whatever your device is outputting (in most cases, it's going to be "Low" unless you're using a PC in which case it should be "Normal", or a game console with RGB set to "Full" or "Expanded"</li></ul><br /><b>Troubleshooting: "I tried your settings but..."</b><ul><li>I can't select the warm 2 color tone -- make sure you change the picture mode to "Movie"</li><li>They're too yellow/reddish/dull -- try setting the color tone to warm 1 or normal</li><li>Blacks are tinted some color -- adjust R-, G-, and B-offsets in the white balance menu</li><li>Bright whites have a color tint -- adjust R-, G-, and B-gain</li><li>Color X looks wrong -- you need to figure out which color it is, then adjust it in the "custom" color space menu. Or just set it to "Auto" and reset color to 50 and tint to G50/R50</li></ul>Source: http://www.avsforum.com/avs-vb/showpost.php?p=15251316&postcount=2040linuxtechiehttp://www.blogger.com/profile/02898837996825714211noreply@blogger.com0tag:blogger.com,1999:blog-532517152062459859.post-73835679110374156262009-06-05T09:17:00.001+05:302009-06-05T09:21:33.055+05:30Tips for maintaining inverter battery.<ol style="font-family: trebuchet ms;"><li> <span style=";font-size:100%;" >Charging cutout should be between 13.9 V to 14.2 V depending on Battery</span></li><li> <span style=";font-size:100%;" >Specific Gravity between 1190 - 1210</span></li><li> <span style=";font-size:100%;" >No salt [lead sulphate] deposited on terminals</span></li><li> <span style=";font-size:100%;" >Battery is kept clean</span></li><li> <span style=";font-size:100%;" >Jelly be applied on terminals</span></li></ol><span style="font-size:100%;">Also came across this: VX-6, a battery additive to remove sulphate.</span>linuxtechiehttp://www.blogger.com/profile/02898837996825714211noreply@blogger.com0tag:blogger.com,1999:blog-532517152062459859.post-6501384558605528082009-06-04T12:09:00.005+05:302009-06-04T12:24:55.221+05:30How to chat with Google Custom Domain using GodaddyTrick is simple, need to create following <a class="zem_slink" href="http://en.wikipedia.org/wiki/SRV_record" title="SRV record" rel="wikipedia">SRV records</a> in the domain settings:<br /><br /><table str="" style="border-collapse: collapse; table-layout: fixed; width: 537pt;" border="0" cellpadding="0" cellspacing="0" width="714"><tbody><tr style="height: 12.75pt;" height="17"><td class="xl246404" style="height: 12.75pt; width: 90pt;" height="17" width="120">Service</td> <td class="xl246404" style="width: 56pt;" width="74">Protocol</td> <td class="xl246404" style="width: 92pt;" width="123">Name</td> <td class="xl246404" style="width: 46pt;" width="61">Priority</td> <td class="xl246404" style="width: 50pt;" width="66">Weight</td> <td class="xl246404" style="width: 54pt;" width="72">Port</td> <td class="xl246404" style="width: 149pt;" width="198">Target</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl156404" style="height: 12.75pt;" height="17">_xmpp-server</td> <td class="xl156404">_tcp</td> <td class="xl156404">linuxtechie.net</td> <td class="xl256404" num="">5</td> <td class="xl256404" num="">0</td> <td class="xl256404" num="">5269</td> <td class="xl156404">xmpp-server.l.google.com</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl156404" style="height: 12.75pt;" height="17">_xmpp-server</td> <td class="xl156404">_tcp</td> <td class="xl156404">linuxtechie.net</td> <td class="xl256404" num="">20</td> <td class="xl256404" num="">0</td> <td class="xl256404" num="">5269</td> <td class="xl156404">xmpp-server1.l.google.com</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl156404" style="height: 12.75pt;" height="17">_xmpp-server</td> <td class="xl156404">_tcp</td> <td class="xl156404">linuxtechie.net</td> <td class="xl256404" num="">20</td> <td class="xl256404" num="">0</td> <td class="xl256404" num="">5269</td> <td class="xl156404">xmpp-server2.l.google.com</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl156404" style="height: 12.75pt;" height="17">_xmpp-server</td> <td class="xl156404">_tcp</td> <td class="xl156404">linuxtechie.net</td> <td class="xl256404" num="">20</td> <td class="xl256404" num="">0</td> <td class="xl256404" num="">5269</td> <td class="xl156404">xmpp-server3.l.google.com</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl156404" style="height: 12.75pt;" height="17">_xmpp-server</td> <td class="xl156404">_tcp</td> <td class="xl156404">linuxtechie.net</td> <td class="xl256404" num="">20</td> <td class="xl256404" num="">0</td> <td class="xl256404" num="">5269</td> <td class="xl156404">xmpp-server4.l.google.com</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl156404" style="height: 12.75pt;" height="17">_jabber</td> <td class="xl156404">_tcp</td> <td class="xl156404">linuxtechie.net</td> <td class="xl256404" num="">5</td> <td class="xl256404" num="">0</td> <td class="xl256404" num="">5269</td> <td class="xl156404">xmpp-server.l.google.com</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl156404" style="height: 12.75pt;" height="17">_jabber</td> <td class="xl156404">_tcp</td> <td class="xl156404">linuxtechie.net</td> <td class="xl256404" num="">20</td> <td class="xl256404" num="">0</td> <td class="xl256404" num="">5269</td> <td class="xl156404">xmpp-server1.l.google.com</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl156404" style="height: 12.75pt;" height="17">_jabber</td> <td class="xl156404">_tcp</td> <td class="xl156404">linuxtechie.net</td> <td class="xl256404" num="">20</td> <td class="xl256404" num="">0</td> <td class="xl256404" num="">5269</td> <td class="xl156404">xmpp-server2.l.google.com</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl156404" style="height: 12.75pt;" height="17">_jabber</td> <td class="xl156404">_tcp</td> <td class="xl156404">linuxtechie.net</td> <td class="xl256404" num="">20</td> <td class="xl256404" num="">0</td> <td class="xl256404" num="">5269</td> <td class="xl156404">xmpp-server3.l.google.com</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl156404" style="height: 12.75pt;" height="17">_jabber</td> <td class="xl156404">_tcp</td> <td class="xl156404">linuxtechie.net</td> <td class="xl256404" num="">20</td> <td class="xl256404" num="">0</td> <td class="xl256404" num="">5269</td> <td class="xl156404">xmpp-server4.l.google.com</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl156404" style="height: 12.75pt;" height="17">_xmpp-client</td> <td class="xl156404">_tcp</td> <td class="xl156404">linuxtechie.net</td> <td class="xl256404" num="">5</td> <td class="xl256404" num="">0</td> <td class="xl256404" num="">5222</td> <td class="xl156404">talk.l.google.com</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl156404" style="height: 12.75pt;" height="17">_xmpp-client</td> <td class="xl156404">_tcp</td> <td class="xl156404">linuxtechie.net</td> <td class="xl256404" num="">20</td> <td class="xl256404" num="">0</td> <td class="xl256404" num="">5222</td> <td class="xl156404">talk1.l.google.com</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl156404" style="height: 12.75pt;" height="17">_xmpp-client</td> <td class="xl156404">_tcp</td> <td class="xl156404">linuxtechie.net</td> <td class="xl256404" num="">20</td> <td class="xl256404" num="">0</td> <td class="xl256404" num="">5222</td> <td class="xl156404">talk2.l.google.com</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl156404" style="height: 12.75pt;" height="17">_xmpp-client</td> <td class="xl156404">_tcp</td> <td class="xl156404">linuxtechie.net</td> <td class="xl256404" num="">20</td> <td class="xl256404" num="">0</td> <td class="xl256404" num="">5222</td> <td class="xl156404">talk3.l.google.com</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl156404" style="height: 12.75pt;" height="17">_xmpp-client</td> <td class="xl156404">_tcp</td> <td class="xl156404">linuxtechie.net</td> <td class="xl256404" num="">20</td> <td class="xl256404" num="">0</td> <td class="xl256404" num="">5222</td> <td class="xl156404">talk4.l.google.com</td></tr></tbody></table>linuxtechiehttp://www.blogger.com/profile/02898837996825714211noreply@blogger.com0tag:blogger.com,1999:blog-532517152062459859.post-83323228724929044052009-05-12T14:06:00.005+05:302009-05-12T14:26:34.548+05:30HTPC Showoff<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.imgx.org/files/36093_dmqzu/IMG_2231.JPG"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 800px; height: 600px;" src="http://www.imgx.org/files/36093_dmqzu/IMG_2231.JPG" alt="" border="0" /></a><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.imgx.org/files/36094_dvch3/IMG_2232.JPG"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 800px; height: 600px;" src="http://www.imgx.org/files/36094_dvch3/IMG_2232.JPG" alt="" border="0" /></a><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.imgx.org/files/36095_rut8y/IMG_2233.JPG"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 800px; height: 600px;" src="http://www.imgx.org/files/36095_rut8y/IMG_2233.JPG" alt="" border="0" /></a><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.imgx.org/files/36096_gjoro/IMG_2234.JPG"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 600px; height: 800px;" src="http://www.imgx.org/files/36096_gjoro/IMG_2234.JPG" alt="" border="0" /></a><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.imgx.org/files/36097_c6ji2/IMG_2235.JPG"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 800px; height: 600px;" src="http://www.imgx.org/files/36097_c6ji2/IMG_2235.JPG" alt="" border="0" /></a><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.imgx.org/files/36098_4yzkk/IMG_2236.JPG"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 600px; height: 800px;" src="http://www.imgx.org/files/36098_4yzkk/IMG_2236.JPG" alt="" border="0" /></a><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.imgx.org/files/36099_gkpc7/IMG_2237.JPG"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 800px; height: 600px;" src="http://www.imgx.org/files/36099_gkpc7/IMG_2237.JPG" alt="" border="0" /></a><br /><br />The right side cabinet is the guy that holds HTPC and does ventilation. I am right now in the process of investigating a good 5.1. I am inclined towards yamaha, once done they will fall in place where the wires are left out. The 2.1 is temporary and will leave the place soon. Only Disht TV STB and the remote receiver of HTPC is exposed.<br /><br />My belief: Only stuff that matter should be exposed, rest all should be hidden from the user. <br /><br />Mine WFA: 10/10 <br /><br /><a href"http://eirikso.com/2005/02/06/how-to-build-a-cabinet-for-your-htpc/">Inspiration</a><br /><br /><a href="http://www.techenclave.com/show-off/my-htpc-setup-humble-one-but-116927.html">HTPC cabinet</a>linuxtechiehttp://www.blogger.com/profile/02898837996825714211noreply@blogger.com2tag:blogger.com,1999:blog-532517152062459859.post-32880989467825421132009-05-02T11:36:00.002+05:302009-05-02T11:38:32.194+05:30How to measure cycle seat hight.<a href="http://www.bikeszone.com/forum/viewtopic.php?f=13&t=2827">Source</a>.<br /><br /><ol><li>In-seam measuring: stand erect. insert a book approximately 5 cm width in the groin (in between the thighs) touching the groin. measure the distance from the closed end of the book touching the groin to the floor.</li><li>Center to top measurement: Multiply the figure in step1 by .88 (Point 88).<br /></li></ol><br />This tells you the exact Seat height.<br /><br />This method was first adopted by an American cyclist Greg Le Mond.linuxtechiehttp://www.blogger.com/profile/02898837996825714211noreply@blogger.com0