<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6277994551525631073</id><updated>2011-07-07T16:27:42.718-07:00</updated><title type='text'>TuxAtWork</title><subtitle type='html'>Linux and more...</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://tuxatwork.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6277994551525631073/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://tuxatwork.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Shamail</name><uri>http://www.blogger.com/profile/11393681255977041547</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>17</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6277994551525631073.post-5261771226491007095</id><published>2009-07-27T10:38:00.000-07:00</published><updated>2009-07-27T10:44:09.740-07:00</updated><title type='text'>MPD, a wonderful player.</title><content type='html'>&lt;span style="font-family:Verdana;"&gt;&lt;b&gt;MPD&lt;/b&gt;(media player daemon), though very classic, but indeed is one of the &lt;b&gt;most versatile solution for linux guys and music lovers&lt;/b&gt;. Here I am going to describe how to get MPD up and running and using it...&lt;br /&gt;&lt;br /&gt;&lt;b&gt; Step 1:&lt;/b&gt;&lt;br /&gt; Install mpd. (Ubuntu specific: sudo aptitude install mpd, Fedora specific: #yum install mpd)&lt;br /&gt;&lt;br /&gt;&lt;b&gt; Step 2:&lt;/b&gt;&lt;br /&gt; Now its time to set it up for our requirements, open /etc/mpd.conf in your favorite editor and change the following lines, it takes me quite a while to get everything working...&lt;br /&gt;&lt;/span&gt;&lt;tt&gt;music_directory "/media/Entertainment/Music"&lt;br /&gt;playlist_directory "/media/Entertainment/Music"&lt;br /&gt;db_file "/home/shamail/.mpd/db"&lt;br /&gt;log_file "/home/shamail/.mpd/log.log"&lt;br /&gt;error_file "/home/shamail/.mpd/errors.log"&lt;br /&gt;pid_file "/home/shamail/.mpd/pid"&lt;br /&gt;state_file "/home/shamail/.mpd/state"&lt;br /&gt;user "shamail"&lt;br /&gt;&lt;/tt&gt;&lt;br /&gt;&lt;span style="font-family:Verdana;"&gt;Replace the settings accordingly, and make a directory in home directory&lt;br /&gt;&lt;/span&gt;&lt;tt&gt;$ mkdir ~/.mpd&lt;/tt&gt;&lt;span style="font-family:Verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Verdana;"&gt;&lt;br /&gt;User is very important as this line specifies the user MPD will run as, leave all the options as such.&lt;br /&gt;&lt;br /&gt;&lt;b&gt; Step 3:&lt;/b&gt;&lt;br /&gt; Now run the mpd as, if successful, following output (or similar) should appear.&lt;br /&gt;&lt;/span&gt;&lt;tt&gt;# /etc/init.d/mpd start&lt;br /&gt;shamail@busybox:~$ sudo /etc/init.d/mpd start&lt;br /&gt;* Starting Music Player Daemon mpd                                 No "audio_output" defined in config file&lt;br /&gt;Attempt to detect audio output device&lt;br /&gt;Attempting to detect a alsa audio device&lt;br /&gt;Successfully detected a alsa audio device&lt;br /&gt;&lt;br /&gt;&lt;/tt&gt;&lt;span style="font-family:Verdana;"&gt;We now have our music server running, but no method to play... For that we need a client for mpd to play. There are tons of clients for mpd (&lt;a href="http://mpd.wikia.com/wiki/Clients"&gt;http://mpd.wikia.com/wiki/Clients&lt;/a&gt;), the native client is called as mpc(media player client). To begin we will use this, then move to some very equipped and advanced clients that resembles whole music player and have even more functionalities)&lt;br /&gt;&lt;b&gt;    &lt;blockquote&gt;Imagine multiple clients, one in sys tray showing song change notification, one at gnome panel displaying the song being played, other access from web to do all the music surfing and even a vim client to change the music while coding! All accessing one unified media queue powered by MPD.&lt;/blockquote&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt; Step 4:&lt;/b&gt;&lt;br /&gt; Next step of ours is to install a client. Install mpc in the same way mpd was installed.&lt;br /&gt;&lt;b&gt;Step 5:&lt;/b&gt;&lt;br /&gt; Now we need to add some music to the playlist, but what to?&lt;br /&gt;&lt;/span&gt;&lt;tt&gt;$ mpc listall                 #list all the music in music dir.&lt;br /&gt;$ mpc add &lt;file&gt;             #add file to the playlist&lt;br /&gt;$ mpc listall | mpc add   #add all music&lt;br /&gt;$ mpc play|pause             #play/pause/resume play&lt;br /&gt;$ mpc stop                     #stop playing&lt;br /&gt;$ mpc status                  #show current status&lt;br /&gt;$ mpc volume 80|+1|-5      #increase/decrease volume.&lt;br /&gt;&lt;/file&gt;&lt;/tt&gt;&lt;span style="font-family:Verdana;"&gt;&lt;br /&gt;This is &lt;b&gt;conventional way to access mpd&lt;/b&gt;, while doing work on shell these comes handy though, but this ain't give media player benefits, for this install &lt;b&gt;gnome-musicplayer-client&lt;/b&gt; (a very beautiful media player, backed by mpd) or &lt;b&gt;Sonata&lt;/b&gt; (a fast light way to do things quickly) or both.&lt;br /&gt;Then you can install &lt;b&gt;music-panel &lt;/b&gt;to give you notifications and panel display of the playing tracks. This has a nice UI indeed.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt; &lt;div align="center"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_NvIWbW20LvE/Sm3mX8ffT4I/AAAAAAAADCc/6jMGGUX4wHo/s1600-h/Screenshot-1.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 66px;" src="http://2.bp.blogspot.com/_NvIWbW20LvE/Sm3mX8ffT4I/AAAAAAAADCc/6jMGGUX4wHo/s320/Screenshot-1.png" alt="" id="BLOGGER_PHOTO_ID_5363196030317711234" border="0" /&gt;&lt;/a&gt;&lt;span style="font-family:Verdana;"&gt;(This is what music-panel comes at notification and quick control)&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_NvIWbW20LvE/Sm3miVB9wcI/AAAAAAAADCk/d2ggOqLKau4/s1600-h/Screenshot.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 228px;" src="http://2.bp.blogspot.com/_NvIWbW20LvE/Sm3miVB9wcI/AAAAAAAADCk/d2ggOqLKau4/s320/Screenshot.png" alt="" id="BLOGGER_PHOTO_ID_5363196208703455682" border="0" /&gt;&lt;/a&gt;&lt;span style="font-family:Verdana;"&gt;(Gnome Music Player Client)&lt;br /&gt;&lt;br /&gt;&lt;/span&gt; &lt;div align="left"&gt;&lt;span style="font-family:Verdana;"&gt;For programmers and geeks install client for &lt;b&gt;vim to change and navigate in songs while working!!&lt;/b&gt;&lt;br /&gt;For web freaks you can additionally install one of &lt;b&gt;web based client from 10s of available web clients.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Enjoy with it... :)&lt;br /&gt;&lt;/span&gt;&lt;/div&gt; &lt;/div&gt;  &lt;span style="font-family:Verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6277994551525631073-5261771226491007095?l=tuxatwork.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tuxatwork.blogspot.com/feeds/5261771226491007095/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6277994551525631073&amp;postID=5261771226491007095' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6277994551525631073/posts/default/5261771226491007095'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6277994551525631073/posts/default/5261771226491007095'/><link rel='alternate' type='text/html' href='http://tuxatwork.blogspot.com/2009/07/mpd-wonderful-player.html' title='MPD, a wonderful player.'/><author><name>Shamail</name><uri>http://www.blogger.com/profile/11393681255977041547</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_NvIWbW20LvE/Sm3mX8ffT4I/AAAAAAAADCc/6jMGGUX4wHo/s72-c/Screenshot-1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6277994551525631073.post-5899641561406028012</id><published>2009-07-14T22:59:00.000-07:00</published><updated>2009-07-14T23:00:03.865-07:00</updated><title type='text'>CP with progress bar...</title><content type='html'>We have seen a lot of scripts available that uses combination of cp and du etc to display progress, bet they are basic shell scripts that may not necessarily have all the functionalities of cp, and can even go crazy at times...&lt;br&gt; &amp;nbsp;&amp;nbsp; Lets use rsync for this which is a very powerful and tested application available in GNU's GPL.&lt;br&gt; &lt;br&gt; &lt;tt&gt;shamail@computer16:~$ touch RTest/{a,b,c,new}&lt;br&gt; shamail@computer16:~$ dd if=/dev/zero of=RTest/file.dd bs=1M count=20&lt;br&gt; 20+0 records in&lt;br&gt; 20+0 records out&lt;br&gt; 20971520 bytes (21 MB) copied, 0.076776 s, 273 MB/s&lt;br&gt; &lt;b&gt;shamail@computer16:~$ rsync -r --progress RTest ./Copy/&lt;br&gt; &lt;/b&gt;sending incremental file list&lt;br&gt; RTest/a&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 100%&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00kB/s&amp;nbsp;&amp;nbsp;&amp;nbsp; 0:00:00 (xfer#1, to-check=4/6)&lt;br&gt; RTest/b&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 100%&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00kB/s&amp;nbsp;&amp;nbsp;&amp;nbsp; 0:00:00 (xfer#2, to-check=3/6)&lt;br&gt; RTest/c&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 100%&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00kB/s&amp;nbsp;&amp;nbsp;&amp;nbsp; 0:00:00 (xfer#3, to-check=2/6)&lt;br&gt; RTest/file.dd&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; 20971520 100%&amp;nbsp;&amp;nbsp; 43.79MB/s&amp;nbsp;&amp;nbsp;&amp;nbsp; 0:00:00 (xfer#4, to-check=1/6)&lt;br&gt; RTest/new&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 100%&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00kB/s&amp;nbsp;&amp;nbsp;&amp;nbsp; 0:00:00 (xfer#5, to-check=0/6)&lt;br&gt; &lt;br&gt; sent 20974372 bytes&amp;nbsp; received 108 bytes&amp;nbsp; 41948960.00 bytes/sec&lt;br&gt; total size is 20971520&amp;nbsp; speedup is 1.00&lt;b&gt;&lt;br&gt; &lt;/b&gt;&lt;/tt&gt;&lt;br&gt; Cool, isnt that?&lt;br&gt; You can alias cp='rsync --progress', and the sytanx will remain exactly same as that of cp, except that DO NOT put leading / in the source filenames... Even multiple files can be given.&lt;br&gt; &lt;br&gt; Enjoy...&lt;br&gt; &lt;br&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6277994551525631073-5899641561406028012?l=tuxatwork.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tuxatwork.blogspot.com/feeds/5899641561406028012/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6277994551525631073&amp;postID=5899641561406028012' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6277994551525631073/posts/default/5899641561406028012'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6277994551525631073/posts/default/5899641561406028012'/><link rel='alternate' type='text/html' href='http://tuxatwork.blogspot.com/2009/07/cp-with-progress-bar.html' title='CP with progress bar...'/><author><name>Shamail</name><uri>http://www.blogger.com/profile/11393681255977041547</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6277994551525631073.post-6287104509679833147</id><published>2009-07-08T02:23:00.001-07:00</published><updated>2009-07-08T02:23:09.898-07:00</updated><title type='text'>Delete all tables in MySQL</title><content type='html'>Sometimes we may encounter a problem to delete all tables in a database, where drop database cannot work because you may not have necessary rights to recreate a database.&lt;br&gt;&lt;br&gt;The following command may work very well for that..&lt;br&gt; &lt;br&gt;&lt;blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote"&gt;&lt;font style="font-family: courier new,monospace;" size="3"&gt;mysql -u username -p passwd database -e &amp;quot;show tables&amp;quot; | grep -v Tables | sed s/^/drop\ table\ if\ exists\ /g | sed s/$/\;/g | xargs -0 mysql -u username -p passwd database -e&lt;/font&gt;&lt;/blockquote&gt; &lt;div&gt;&lt;br&gt;Enjoy... &lt;br&gt;&lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6277994551525631073-6287104509679833147?l=tuxatwork.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tuxatwork.blogspot.com/feeds/6287104509679833147/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6277994551525631073&amp;postID=6287104509679833147' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6277994551525631073/posts/default/6287104509679833147'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6277994551525631073/posts/default/6287104509679833147'/><link rel='alternate' type='text/html' href='http://tuxatwork.blogspot.com/2009/07/delete-all-tables-in-mysql.html' title='Delete all tables in MySQL'/><author><name>Shamail</name><uri>http://www.blogger.com/profile/11393681255977041547</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6277994551525631073.post-7418060664582051933</id><published>2009-07-02T11:17:00.001-07:00</published><updated>2009-07-02T11:17:32.598-07:00</updated><title type='text'>Stay Charged</title><content type='html'>&lt;div class="gmail_quote"&gt;&lt;div class="gmail_quote"&gt;Well this post is the description of what i am currently working upon, &lt;a href="http://staycharged.in" target="_blank"&gt;http://staycharged.in&lt;/a&gt;, presently under development @ &lt;a&gt;http://staycharged.co.cc &lt;/a&gt;&lt;br&gt;    &lt;br&gt;&lt;b&gt;To begin, introduction...&lt;/b&gt;&lt;br&gt;   Stay charged is a service that one can use to stay recharged on there cell phones. User can get recharged by either logging onto the web portal or by sending an SMS to our service number.&lt;br&gt;    &lt;br&gt;&lt;b&gt;Who can use staycharged?&lt;/b&gt;&lt;br&gt;   You, if you are a prepaid cell phone user and have a credit/debit card, every 10-15 days you need a recharge, staycharged provides a convenient facility of getting recharged just by sending one sms, Equivalent amount will be deducted from your account.&lt;br&gt;    &lt;br&gt;&lt;b&gt;Benifts?&lt;/b&gt;&lt;br&gt;Of course.. Many&lt;br&gt;&lt;ul&gt;&lt;li&gt;Ease, most important. Comfort of getting recharged just by sending an SMS and in case of emergency.&lt;br&gt;&lt;/li&gt;&lt;li&gt;No extra charge, get 100 rs card @ 100 rs only.&lt;/li&gt;&lt;li&gt;Safe, we do not take cvv number from you(required for transaction), your password is CVV_num+3_digits_of_your_choice, and we use this number only at the time of transaction, and does not save them ever in our database.&lt;/li&gt;    &lt;li&gt;Manage everthing in very simply designed interface on the web, including purchase of the card.&lt;/li&gt;&lt;li&gt;Feature of recharging other mobiles as well and gift coupons.&lt;/li&gt;&lt;li&gt;Supports most of the vendors and cards.&lt;/li&gt;    &lt;/ul&gt;&lt;br&gt;Use it once and you will start loving it... :) So say &amp;quot;hi&amp;quot; to staycharged.&lt;br&gt; &lt;/div&gt;&lt;br&gt; &lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6277994551525631073-7418060664582051933?l=tuxatwork.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tuxatwork.blogspot.com/feeds/7418060664582051933/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6277994551525631073&amp;postID=7418060664582051933' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6277994551525631073/posts/default/7418060664582051933'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6277994551525631073/posts/default/7418060664582051933'/><link rel='alternate' type='text/html' href='http://tuxatwork.blogspot.com/2009/07/stay-charged.html' title='Stay Charged'/><author><name>Shamail</name><uri>http://www.blogger.com/profile/11393681255977041547</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6277994551525631073.post-38818610123866731</id><published>2009-03-26T06:13:00.001-07:00</published><updated>2009-03-26T06:13:15.726-07:00</updated><title type='text'>Making Gmail shortcut</title><content type='html'>Email addict? Tired of logging in each time and opening gmail.com again and again?&lt;br&gt; Try this simple trick..&lt;br&gt; &lt;br&gt; Right Click on the gnome panel -&amp;gt; Add to Panel&lt;br&gt; Select Custom application launcher..&lt;br&gt; &lt;br&gt; In the Create Launcher window, type Name as Gmail&lt;br&gt; Command:&lt;br&gt; &lt;tt&gt;firefox '&lt;a class="moz-txt-link-freetext" href="https://www.google.com/accounts/ServiceLoginAuth"&gt;https://www.google.com/accounts/ServiceLoginAuth&lt;/a&gt;?&lt;br&gt; continue=&lt;a class="moz-txt-link-freetext" href="http://mail.google.com/gmail&amp;service=mail&amp;Email=LOGIN&amp;Passwd=PASSWORD&amp;null=Sign+in"&gt;http://mail.google.com/gmail&amp;amp;service=mail&amp;amp;Email=LOGIN&amp;amp;Passwd=PASSWORD&amp;amp;null=Sign+in&lt;/a&gt;'&lt;br&gt; &lt;/tt&gt;Replace LOGIN and PASSWORD with your username and password.&lt;br&gt; &lt;br&gt; Use whatever comment and icon you want. Or use &lt;a  href="cid:part1.07010709.00000509@inbox.com"&gt;this&lt;/a&gt; standard icon.&lt;br&gt; &lt;br&gt; Whenever you'll click on this launcher, your gmail account will open in your default web browser.&lt;br&gt; &lt;br&gt; Enjoy..&lt;br&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6277994551525631073-38818610123866731?l=tuxatwork.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tuxatwork.blogspot.com/feeds/38818610123866731/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6277994551525631073&amp;postID=38818610123866731' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6277994551525631073/posts/default/38818610123866731'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6277994551525631073/posts/default/38818610123866731'/><link rel='alternate' type='text/html' href='http://tuxatwork.blogspot.com/2009/03/making-gmail-shortcut.html' title='Making Gmail shortcut'/><author><name>Shamail</name><uri>http://www.blogger.com/profile/11393681255977041547</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6277994551525631073.post-4635165567598326383</id><published>2008-12-22T02:06:00.001-08:00</published><updated>2008-12-22T02:06:22.164-08:00</updated><title type='text'>Linux to Hack...</title><content type='html'>Hi,&lt;br&gt; &amp;nbsp; Here is a trick to obtain friends IP and related info using very basic Linux tools...&lt;br&gt; &lt;br&gt; #1) Open Google Talk or Yahoo(pidgin etc works). (Don't know about other protocols, but should work)&lt;br&gt; &lt;br&gt; #2) Run this command: netstat -n&lt;br&gt; It will show something like..&lt;br&gt; Active Internet connections (w/o servers)&lt;br&gt; &lt;tt&gt;Proto Recv-Q Send-Q Local Address&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Foreign Address&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; State&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br&gt; tcp&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 192.168.1.2:44761&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 212.162.2.67:80&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LAST_ACK&amp;nbsp;&amp;nbsp; &lt;br&gt; tcp&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 38&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 192.168.1.2:48178&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 67.228.78.116:443&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CLOSE_WAIT &lt;br&gt; tcp&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 192.168.1.2:44769&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 212.162.2.67:80&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LAST_ACK&amp;nbsp;&amp;nbsp; &lt;br&gt; tcp&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 192.168.1.2:48694&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 195.122.131.22:80&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LAST_ACK&amp;nbsp;&amp;nbsp; &lt;br&gt; tcp&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 192.168.1.2:44766&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 212.162.2.67:80&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LAST_ACK&amp;nbsp;&amp;nbsp; &lt;br&gt; :&lt;br&gt; :&lt;br&gt; &lt;/tt&gt;&lt;br&gt; Try to identify the port, yahoo uses pager port 5050 and google 5222/5223..&lt;br&gt; Also redirect the optput to some temp file,&lt;br&gt; &lt;br&gt; &lt;tt&gt;$ netstat -n 2&amp;gt;&amp;amp;1 &amp;gt; /tmp/out1&lt;/tt&gt;&lt;br&gt; &lt;br&gt; Now the connections with Foreign Address with port 5050/5222 are the outgoing connection to yahoo/google server respectively. &lt;br&gt; &lt;b&gt;&lt;br&gt; Q: So where is friends IP?&lt;/b&gt;&lt;br&gt; &lt;b&gt;A: HACK: Both yahoo and google uses P2P connection for client2client communication..&lt;br&gt; So, a similar connection will appear when you chat with them.&lt;br&gt; P.S if you are sure that your friend is using some Y! messenger &amp;lt; v7.0 then initiate a file request or a web cam request(though you dont have a webcam ;-)), its still P2P.&lt;br&gt; Case of failure: Friend is using a web client, such as gmail, morange etc. So until your friend is using a native messenger(including pidgin) you can use this trick to identify.&lt;br&gt; A certain more manipulations can help you identify whether your friend is invisible or not, using wireshark like tool and reading the packets directly prior to your chat client.&lt;br&gt; &lt;/b&gt;&lt;br&gt; Open a chat window and send a hi, connection will establish. And rerun netstat as&lt;br&gt; &lt;br&gt; &lt;tt&gt;$ netstat 2&amp;gt;&amp;amp;1 &amp;gt; /tmp/out2&lt;/tt&gt;&lt;br&gt; &lt;br&gt; Now perform a diff, as&lt;br&gt; &lt;tt&gt;$ diff /tmp/{out1,out2}&lt;/tt&gt;&lt;br&gt; &lt;br&gt; It will show you something like,&lt;br&gt; &lt;tt&gt;&amp;lt; tcp&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 192.168.1.2:36564&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 66.163.181.188:5050&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TIME_WAIT&amp;nbsp; &lt;br&gt; &amp;gt;&lt;br&gt; ...&lt;br&gt; &lt;br&gt; &lt;/tt&gt;This is the new connection that has taken place.&lt;br&gt; &lt;br&gt; Now to know more about the ip, perform whois and traceroute as&lt;tt&gt;&lt;br&gt; $ whois&amp;nbsp; &lt;/tt&gt;&lt;tt&gt;66.163.181.188&lt;br&gt; # tells you operator info, area info, and provider info.. along with telephone numbers and all&lt;br&gt; $ traceroute &lt;/tt&gt;&lt;tt&gt;66.163.181.188&lt;br&gt; # tell you the route to the friend, you may then whois those hops to know about the path and physical route of the packets being sent.&lt;br&gt; &lt;br&gt; &lt;br&gt; &lt;/tt&gt;:) &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6277994551525631073-4635165567598326383?l=tuxatwork.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tuxatwork.blogspot.com/feeds/4635165567598326383/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6277994551525631073&amp;postID=4635165567598326383' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6277994551525631073/posts/default/4635165567598326383'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6277994551525631073/posts/default/4635165567598326383'/><link rel='alternate' type='text/html' href='http://tuxatwork.blogspot.com/2008/12/linux-to-hack.html' title='Linux to Hack...'/><author><name>Shamail</name><uri>http://www.blogger.com/profile/11393681255977041547</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6277994551525631073.post-2620345787065562424</id><published>2008-07-30T08:39:00.001-07:00</published><updated>2008-07-30T08:39:55.513-07:00</updated><title type='text'>Sun Microsystems, The Campus Ambassador Program..</title><content type='html'>&lt;div align="justify"&gt;&lt;big&gt;&lt;font face="Trebuchet MS"&gt;Writing after a long time, but anyways, its never too late... following post is about my experience at Bangluru in the Campus Ambassador Induction program.&lt;br&gt; &lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; I am one of the lucky 100 Campus Ambassador for Sun Microsystems to get selected from India for the FY09. This time Sun Organized its three day induction program in Bangluru(M.S Ramalla Institute of Technology), Initially is was not filled with so much charm to go there and attend the program, but still, reached there well before and met Ankit on way itself, seldom you find sweet people like him, so polite to everyone. Throughout the time, this guy made us feel like "home away home", as we reached Orchid Inn, the place where we stayed, we started finding people like us, who came from all around India, and interacted with them. Its well said, "Every child is special", and to that i noticed that everyone has got something special in himself/herself, and that is why he/she was there to represent his/her college, community and most important himself/herself amongst the chosen ones.&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font face="Comic Sans MS"&gt;&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;joke&amp;gt;&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; I am still not able to figure out why i was there ;-)&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/joke&amp;gt;&lt;/font&gt;&lt;br&gt; &lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; Well, next day it all started. The time i reached there i met with Ganesh(for CA program, Asia Pacific region) and i was so glad that he recognized me on the first look itself. Actually previous year we at Jamia, New Delhi organized this program for the previous CA batch, and he came there as the mentor and i had interaction with him that time, but it was an year passed. Then the program began and my interest started developing with the energetic talk from Abhishek. Oh man! No terms to define this person. If i am asked to define him in one word.. "Cool"!!&amp;nbsp; Soon they introduced us with Sun Technologies, and i was like knowing all that before so was having fun and good understanding of it. The event organization was again "Cool". Slowly time goes on and we were like knowing each other better. &lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; Among the sessions, the most interesting session that seems to me was the last presentation that we've to give, so exciting and funny :) The hands-on sessions, mostly by Angad were superb, it gave a boost off and set a platform for all of us. Lately at the last day, it was MySQL workshop, and i unfortunately had to leave in the midst, because i had to rush for the flight.&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; To conclude, it was a whole new exposure to technologies, people, resources in a great fun filled way, one thing that i appreciated is the work culture at Sun Microsystems. Finally a heartiest thanks to all of the Sun guys with a BIG simle :-)&lt;br&gt; &lt;br&gt; &lt;br&gt; &lt;/font&gt;&lt;/big&gt;&lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6277994551525631073-2620345787065562424?l=tuxatwork.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tuxatwork.blogspot.com/feeds/2620345787065562424/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6277994551525631073&amp;postID=2620345787065562424' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6277994551525631073/posts/default/2620345787065562424'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6277994551525631073/posts/default/2620345787065562424'/><link rel='alternate' type='text/html' href='http://tuxatwork.blogspot.com/2008/07/sun-microsystems-campus-ambassador.html' title='Sun Microsystems, The Campus Ambassador Program..'/><author><name>Shamail</name><uri>http://www.blogger.com/profile/11393681255977041547</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6277994551525631073.post-8626931008027440410</id><published>2008-02-24T06:38:00.000-08:00</published><updated>2008-02-24T07:38:17.492-08:00</updated><title type='text'>Smartmovie, a movie player for Symbian!</title><content type='html'>&lt;div class="moz-text-html" lang="x-western"&gt; &lt;font  face="Bitstream Vera Sans"&gt;&lt;b&gt;Smartmovie&lt;/b&gt; - A movie player for Symbian OS..&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; True, but what in Smartmovie?&lt;br&gt; &lt;br&gt; We all play movies on Smartmovie taking them from friends over bluetooth or using smartmovie converter to convert our own, but there ain't a single method to convert your own movies to smartmovie playable movie using GNU/Linux. Is it so? NO! Here i'll describe how you can convert all your movies to Smartmovie playable format and get ready to groove on roads!!!&lt;br&gt; &lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; You need:&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; A Symbian based phone with Smartmovie player, and obviously a GNU/Linux machine having mencoder installed. Simple!!&lt;br&gt; &lt;br&gt; How to go about it?&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; Well, why not convert the first movie from within Windows? Good !dea.. But for that you need to have some more stuff.. Smartmovie converter and Windows(r) :(&lt;br&gt; But not a big problem, after all its a click click install...&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; Ok so just open a playable file in smartmovie and with default settings click on encode to get a file with same name in "SmartMovie Converted Files" on the Desktop.&lt;br&gt; &lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; Lets get back to Linux now, else "Linux devta" will get angry (u hell, using windwos!! &lt;span class="moz-smiley-s3"&gt;&lt;span&gt; ;-) &lt;/span&gt;&lt;/span&gt;)&lt;br&gt; &lt;br&gt; Well we converted.. but for what?&lt;br&gt; On Linux navigate to that directory and issue&lt;br&gt; &lt;font face="Bitstream Vera Sans Mono"&gt;&lt;small&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&lt;big&gt;&amp;nbsp; $ file &amp;lt;thatFile.avi&amp;gt;&lt;/big&gt;&lt;/b&gt;&lt;/small&gt;&lt;/font&gt;&lt;br&gt; On my system i got this output,&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; Crawling.avi: RIFF (little-endian) data, AVI, 208 x 154, ~30 fps, video: XviD, audio: MPEG-1 Layer 3 (mono, 22050 Hz)&lt;br&gt; You will also get similar output as the encoding standards are same. So here we got the target to simulate using Linux PC!&lt;br&gt; &lt;br&gt; Now assume that some file&amp;nbsp; UstaadNdDivas.avi is to be converted to this target as test.avi..&lt;br&gt; &lt;small&gt;&lt;font face="Bitstream Vera Sans Mono"&gt;&lt;br&gt; &lt;b&gt;&lt;big&gt;$ mencoder -ovc xvid -xvidencopts bitrate=120 UstaadNdDivas.avi -o test.avi -of avi -vf scale=208:154 -aspect 1.66 -oac mp3lame -lameopts cbr:br=32:mode=3&lt;/big&gt;&lt;/b&gt;&lt;/font&gt;&lt;/small&gt;&lt;br&gt; &lt;br&gt; Oh! that was bouncer... mencoder command line format sucks!!&lt;br&gt; Well, not that much, let me explain the switches..&lt;br&gt; &lt;br&gt; &lt;/font&gt; &lt;font face="Bitstream Vera Sans"&gt;&lt;font face="Bitstream Vera Sans Mono"&gt;mencoder&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # command&lt;br&gt; &amp;nbsp;&amp;nbsp; -ovc xvid&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # we need an xvid output file as told by file.&lt;br&gt; &amp;nbsp;&amp;nbsp; -xvidencopts&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # the xvid encoder options&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bitrate=120&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # bitrate to encode at, usually this does for a phone.&lt;br&gt; &amp;nbsp;&amp;nbsp; UstaadNdDivas.avi&amp;nbsp;&amp;nbsp; # input file&lt;br&gt; &amp;nbsp;&amp;nbsp; -o test.avi&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # output file&lt;br&gt; &amp;nbsp;&amp;nbsp; -of avi&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # output is an avi container&lt;br&gt; &amp;nbsp;&amp;nbsp; -vf scale=208:154&amp;nbsp;&amp;nbsp; # scale the video to the frame size told by file&lt;br&gt; &amp;nbsp;&amp;nbsp; -aspect 1.66&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # sets the aspect ratio to 4:3 = 1.66, as this is the phones aspect ratio&lt;br&gt; &amp;nbsp;&amp;nbsp; -oac mp3lame&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # output audio encoder is mp3lame&lt;br&gt; &amp;nbsp;&amp;nbsp; -lameopts&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # the lame encoder options&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cbr&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # use constant bit rate&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; br=32&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # sets the audio bitrate = 32kbps&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mode=3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # sets the mode to mono rather than stereo(default)&lt;br&gt; &lt;small&gt;&amp;nbsp;&amp;nbsp; &lt;br&gt; &lt;/small&gt;&lt;/font&gt;&lt;br&gt; Now transfer the file using some tool to the phone, and play it in Smartmovie player..&lt;br&gt; &lt;br&gt; Now if i've to give the same command again and again, hell...&lt;br&gt; Better create an alias as,&lt;br&gt; &lt;b&gt;&lt;big&gt;&lt;small&gt;&lt;font face="Bitstream Vera Sans Mono"&gt;$ alias smconvert='mencoder -ovc xvid -xvidencopts bitrate=120 $1 -o $2 -of avi -vf scale=208:154 -aspect 1.66 -oac mp3lame -lameopts cbr:br=32:mode=3'&lt;/font&gt;&lt;/small&gt;&lt;br&gt; &lt;/big&gt;&lt;/b&gt;&lt;br&gt; Now to convert the movie then issue&lt;br&gt; &lt;small&gt;&lt;font face="Bitstream Vera Sans Mono"&gt;&lt;b&gt;&lt;big&gt;$ smconvert &amp;lt;inp&amp;gt; &amp;lt;output&amp;gt;&lt;/big&gt;&lt;/b&gt;&lt;/font&gt;&lt;/small&gt;&lt;br&gt; &lt;br&gt; &lt;span class="moz-smiley-s1"&gt;&lt;span&gt; :-)&amp;nbsp; &lt;/span&gt;&lt;/span&gt;Yo! Target accomplished!!&lt;br&gt; &lt;br&gt; &lt;br&gt; &lt;/font&gt; &lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6277994551525631073-8626931008027440410?l=tuxatwork.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tuxatwork.blogspot.com/feeds/8626931008027440410/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6277994551525631073&amp;postID=8626931008027440410' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6277994551525631073/posts/default/8626931008027440410'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6277994551525631073/posts/default/8626931008027440410'/><link rel='alternate' type='text/html' href='http://tuxatwork.blogspot.com/2008/02/smartmovie-movie-player-for-symbian_24.html' title='Smartmovie, a movie player for Symbian!'/><author><name>Shamail</name><uri>http://www.blogger.com/profile/11393681255977041547</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6277994551525631073.post-6139092430702954138</id><published>2007-12-25T12:19:00.000-08:00</published><updated>2007-12-25T12:18:02.362-08:00</updated><title type='text'>Quotas, a must know for admins...</title><content type='html'>&lt;div class="moz-text-html" lang="x-western"&gt; &lt;font  face="Bitstream Vera Sans Mono"&gt;So this one is a must for sys admins. Here i am going to describe how you can implement the quotas on users and groups.&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; I am assuming that quotas package is installed, if not then install according your distro...&lt;br&gt; &lt;br&gt; To begin, what quotas are?&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; Quotas are basically implemented to enforce limits on users, such as file space, number of files etc. Once enforced, say a policy that a user cannot create no more than 100 file.. a user will then be restricted. The limits can be on size type etc as well. So lets get the hands dirty...&lt;br&gt; &lt;br&gt; &lt;b&gt;What is needed?&lt;/b&gt;&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; A little knowledge of system administration, a slightly more knowledge of GNU/Linux internals, quotas package and root password! &amp;iquest;&amp;iquest;&lt;br&gt; &lt;br&gt; To start.. first create a virtual disk where we will do the alien operations, say create a 20MB disk for ext3...&lt;br&gt; &lt;br&gt; &amp;nbsp;&amp;nbsp;&lt;b&gt;&amp;nbsp; $ dd if=/dev/zero of=$HOME/quotas.img count=40960&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; 40960+0 records in&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; 40960+0 records out&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; 20971520 bytes (21 MB) copied, 1.09387 seconds, 19.2 MB/s&lt;br&gt; &lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; $ ls -lh quotas.img&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; -rw-r--r-- 1 shamail shamail 20M 2007-12-25 21:57 quota.img&lt;/b&gt;&lt;br&gt; &lt;br&gt; Now format the disk as ext3 file system(Ignore the warning if any, or use -F switch).&lt;br&gt; &lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ /sbin/mkfs.ext3 quotas.img&lt;/b&gt;&lt;br&gt; &lt;br&gt; Now make a temporary mount point, say /quotas and mount the disk there. I've done an fstab entry as below, before mounting, this can be skipped...&lt;br&gt; &lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /home/shamail/quota.img&amp;nbsp;&amp;nbsp;&amp;nbsp; /home/shamail/tmp ext3&amp;nbsp;&amp;nbsp;&amp;nbsp; rw,loop,usrquota,grpquota&amp;nbsp; 0 0&lt;/b&gt;&lt;br&gt; &lt;br&gt; Issue this to mount the disk..&lt;br&gt; &lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ sudo mount /quotas&lt;/b&gt;&lt;br&gt; &lt;br&gt; &lt;br&gt; Now we can start operations, my username is "&lt;b&gt;shamail&lt;/b&gt;", group &lt;b&gt;barbie&lt;/b&gt;(&lt;b&gt;change as applicable&lt;/b&gt;)...&lt;br&gt; &lt;br&gt; &lt;br&gt; &lt;b&gt;--------------------------------------------------------------&lt;/b&gt;&lt;br&gt; &lt;b&gt;1. Make a sample directory in the new disk and change ownership and permissions..&lt;br&gt; &lt;br&gt; &lt;/b&gt;&amp;nbsp;&amp;nbsp;&lt;b&gt;&amp;nbsp; $ sudo mkdir /quotas/Debian&lt;br&gt; &lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; $ sudo chown -R root.barbie /quotas/Debian&lt;br&gt; &lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; $ sudo chown 2775 /quotas/Debian&lt;br&gt; &lt;br&gt; &lt;/b&gt;The last command is to set the setgid bit.&lt;br&gt; &lt;b&gt;--------------------------------------------------------------&lt;br&gt; &lt;br&gt; &lt;/b&gt;&lt;b&gt;--------------------------------------------------------------&lt;/b&gt;&lt;br&gt; &lt;b&gt;2. Quota check:&lt;br&gt; &lt;br&gt; &lt;/b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt; $ sudo quotacheck -cug /quotas&lt;br&gt; This command can be taken as the initialization command, the -c option creates the quotas on the disk.&lt;br&gt; &lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; $ ls -lh /quotas&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; total 27K&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; -rw------- 1 root root&amp;nbsp;&amp;nbsp; 7.0K 2007-12-26 00:45 aquota.group&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; -rw------- 1 root root&amp;nbsp;&amp;nbsp; 7.0K 2007-12-26 00:45 aquota.user&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; drwxrwsr-x 2 root barbie 1.0K 2007-12-26 00:45 Debian&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; drwx------ 2 root root&amp;nbsp;&amp;nbsp;&amp;nbsp; 12K 2007-12-25 21:57 lost+found&lt;br&gt; &lt;br&gt; &lt;/b&gt;This creates quotas on the new disk.&lt;br&gt; &lt;b&gt;--------------------------------------------------------------&lt;br&gt; &lt;br&gt; &lt;/b&gt;&lt;b&gt;--------------------------------------------------------------&lt;/b&gt;&lt;br&gt; &lt;b&gt;3. Making new policy..&lt;br&gt; &lt;br&gt; &lt;/b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;$ sudo edquota -f /quotas shamail&lt;br&gt; &lt;br&gt; &lt;/b&gt;This will open a file in default editor, vim in my case.. having contents like this..&lt;br&gt; &lt;b&gt;&amp;nbsp;Disk quotas for user shamail (uid 1000):&lt;/b&gt;&lt;br&gt; &lt;/font&gt; &lt;pre&gt;&lt;font face="Bitstream Vera Sans Mono"&gt;&lt;b&gt;  Filesystem                   blocks       soft       hard     inodes     soft     hard&lt;/b&gt; &lt;b&gt;  /dev/loop0                        0          0          0          0        0        0&lt;/b&gt;  Change it to.. &lt;b&gt;Disk quotas for user shamail (uid 1000):   Filesystem                   blocks       soft       hard     inodes     soft     hard   /dev/loop0                        0        100        200          0       10       20&lt;/b&gt;&lt;/font&gt; &lt;/pre&gt; &lt;font face="Bitstream Vera Sans Mono"&gt;Here, the user shamail is allowed to make 20 files maximum, with a warning after 10th file. and an upper limit of 200*block-size on size. Don't change the values of blocks and inodes, they refer to the presently used values, for reference.&lt;br&gt; &lt;br&gt; The same can also be given as a command:&lt;br&gt; &lt;br&gt; &lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ sudo setquota -u shamail 100 200 10 20 -a /dev/loop0&lt;/b&gt;&lt;br&gt; &lt;br&gt; Finally turn the quotas on..&lt;br&gt; &lt;br&gt; &lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ sudo quotaon /quotas&lt;br&gt; &lt;/b&gt;&lt;b&gt;--------------------------------------------------------------&lt;br&gt; &lt;br&gt; &lt;/b&gt;&lt;b&gt;--------------------------------------------------------------&lt;/b&gt;&lt;br&gt; &lt;b&gt;4. Testing the policy..&lt;br&gt; &lt;br&gt; &lt;/b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; For this, issue as user..&lt;br&gt; &amp;nbsp;&amp;nbsp;&lt;b&gt;&amp;nbsp; $ quota&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; Disk quotas for user shamail (uid 1000):&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; Filesystem&amp;nbsp; blocks&amp;nbsp;&amp;nbsp; quota&amp;nbsp;&amp;nbsp; limit&amp;nbsp;&amp;nbsp; grace&amp;nbsp;&amp;nbsp; files&amp;nbsp;&amp;nbsp; quota&amp;nbsp;&amp;nbsp; limit&amp;nbsp;&amp;nbsp; grace&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /dev/loop0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 200&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20&lt;br&gt; &lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; $ cd /quotas/Debian&lt;br&gt; &lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; $ cat &amp;gt; test.file&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; hello! this is quota test&lt;br&gt; &lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; $ quota&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; Disk quotas for user shamail (uid 1000):&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; Filesystem&amp;nbsp; blocks&amp;nbsp;&amp;nbsp; quota&amp;nbsp;&amp;nbsp; limit&amp;nbsp;&amp;nbsp; grace&amp;nbsp;&amp;nbsp; files&amp;nbsp;&amp;nbsp; quota&amp;nbsp;&amp;nbsp; limit&amp;nbsp;&amp;nbsp; grace&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /dev/loop0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 200&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20&lt;br&gt; &lt;br&gt; &lt;/b&gt;Note that the files and blocks have increased.&lt;br&gt; Now recursively create files more than the specified limit..&lt;br&gt; &lt;br&gt; &lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ for i in `seq 10`; do touch 'file$i'; done&lt;br&gt; &lt;br&gt; &lt;/b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;loop0: warning, group file quota exceeded.&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; loop0: warning, user file quota exceeded.&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; loop0: write failed, group file limit reached.&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; touch: cannot touch `file9': Disk quota exceeded&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; touch: cannot touch `file10': Disk quota exceeded&lt;br&gt; &lt;br&gt; &lt;/b&gt;Ok, so this is because there is group quota also set on my system... Now see this&lt;br&gt; &lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;$ quota&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; Disk quotas for user shamail (uid 1000):&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; Filesystem&amp;nbsp; blocks&amp;nbsp;&amp;nbsp; quota&amp;nbsp;&amp;nbsp; limit&amp;nbsp;&amp;nbsp; grace&amp;nbsp;&amp;nbsp; files&amp;nbsp;&amp;nbsp; quota&amp;nbsp;&amp;nbsp; limit&amp;nbsp;&amp;nbsp; grace&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; /dev/loop0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 200&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20&lt;br&gt; &lt;br&gt; &lt;/b&gt;Since the group quota for my qroup, i.e barbie is 10 max, the files were no more created.&lt;br&gt; Similarly you can test the disk space quota.&lt;br&gt; &lt;b&gt;--------------------------------------------------------------&lt;br&gt; &lt;br&gt; &lt;/b&gt;&lt;b&gt;--------------------------------------------------------------&lt;br&gt; &lt;/b&gt;&lt;b&gt;5. Creating the group quotas.&lt;/b&gt;&lt;br&gt; &lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ edquota -g barbie&lt;/b&gt;&lt;br&gt; And edit the file in the same way.&lt;br&gt; &lt;b&gt;--------------------------------------------------------------&lt;br&gt; &lt;br&gt; &lt;/b&gt;&lt;b&gt;--------------------------------------------------------------&lt;/b&gt;&lt;br&gt; &lt;b&gt;6. For admins, reporting quotas&lt;br&gt; &lt;br&gt; &lt;/b&gt;&amp;nbsp;&amp;nbsp;&lt;b&gt;&amp;nbsp; $ sudo repquota /quotas&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; *** Report for user quotas on device /dev/loop0&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; Block grace time: 7days; Inode grace time: 7days&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Block limits&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; File limits&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; User&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; used&amp;nbsp;&amp;nbsp;&amp;nbsp; soft&amp;nbsp;&amp;nbsp;&amp;nbsp; hard&amp;nbsp; grace&amp;nbsp;&amp;nbsp;&amp;nbsp; used&amp;nbsp; soft&amp;nbsp; hard&amp;nbsp; grace&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; ----------------------------------------------------------------------&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; root&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --&amp;nbsp;&amp;nbsp;&amp;nbsp; 1580&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; shamail&amp;nbsp;&amp;nbsp; --&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 200&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&amp;nbsp;&amp;nbsp;&amp;nbsp; 20&amp;nbsp; 6days&lt;/b&gt;&lt;br&gt; &lt;b&gt;--------------------------------------------------------------&lt;/b&gt;&lt;br&gt; &lt;br&gt; &lt;b&gt;--------------------------------------------------------------&lt;/b&gt;&lt;br&gt; &lt;b&gt;7. Warning for quotas..&lt;/b&gt;&lt;br&gt; &lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ sudo warnquota&lt;/b&gt;&lt;br&gt; Sends mail to all the users who have exceeded the quota.&lt;br&gt; Messages can be customized in &lt;b&gt;/etc/warnquota.conf&lt;br&gt; &lt;/b&gt;&lt;b&gt;--------------------------------------------------------------&lt;/b&gt;&lt;br&gt; &lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; Read more at: &lt;a  href="http://souptonuts.sourceforge.net/quota_tutorial.html"&gt;http://souptonuts.sourceforge.net/quota_tutorial.html&lt;/a&gt;&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; This article is also inspired from here, since i also learned this from here only.&lt;br&gt; &lt;br&gt; Regards..&lt;br&gt; &lt;br&gt; &lt;br&gt; &lt;br&gt; &lt;/font&gt; &lt;/div&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6277994551525631073-6139092430702954138?l=tuxatwork.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tuxatwork.blogspot.com/feeds/6139092430702954138/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6277994551525631073&amp;postID=6139092430702954138' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6277994551525631073/posts/default/6139092430702954138'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6277994551525631073/posts/default/6139092430702954138'/><link rel='alternate' type='text/html' href='http://tuxatwork.blogspot.com/2007/12/quotas-must-know-for-admins_25.html' title='Quotas, a must know for admins...'/><author><name>Shamail</name><uri>http://www.blogger.com/profile/11393681255977041547</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6277994551525631073.post-2783060380152890328</id><published>2007-11-28T10:23:00.001-08:00</published><updated>2007-11-28T10:42:27.719-08:00</updated><title type='text'>Music my fantasy....</title><content type='html'>Though i've always been interested in GNU/Linux and Mobiles, playing around with music and videos around the GNU-box is also among my favorite ones...&lt;br /&gt;&lt;br /&gt;This time its about transcoding any media file to any desired music format..&lt;br /&gt;&lt;b&gt;P.S encoding music interferes in some copyright violations, please make sure that the music you are encoding is legally owned by you, if this the case, then you can transcode any media to even propriety formats like aac, without violating any copyright laws.&lt;/b&gt;&lt;br /&gt;   Legally owned media, as TRAI defines in India is - self composed music/audio track, recorded tracks (be it from fm), purchased music in form of audio CD's / DVD's etc.&lt;br /&gt;&lt;br /&gt;To start with, the following tools are required.&lt;br /&gt;&lt;b&gt;mplayer, an encoder.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Only 2???&lt;/b&gt; Yes! only two...&lt;br /&gt;&lt;br /&gt;&lt;b&gt;So what are encoders?&lt;/b&gt;&lt;br /&gt;   Encoders are a small, usually command line utility, that encodes some raw wave file to its own format. Almost all the encoders have a same, rather similar command line usage.&lt;br /&gt;Mostly on GNU/Linux system you will need these encoders..&lt;br /&gt;&lt;b&gt;MP3&lt;/b&gt; (MPEG-1 layer 3) encoder - lame (lame ain't an mp3 encoder, though it is)&lt;br /&gt;   alternatives: toolame, twolame (fastest mpeg encoder) - encodes to MP2&lt;br /&gt;&lt;b&gt;AAC&lt;/b&gt; (Advanced audio codec) encoder - faac&lt;br /&gt;&lt;b&gt;OGG&lt;/b&gt; (OGG container format, with vorbis audio) - oggenc&lt;br /&gt;&lt;b&gt;FLAC&lt;/b&gt; (Free Lossless Audio Codec) - flac&lt;br /&gt;&lt;b&gt;WMA&lt;/b&gt; (Windows(r) Media audio) - not possible on Linux, if it is, then please leave a commnet!&lt;br /&gt;&lt;b&gt;RA/RM&lt;/b&gt; (Real Audio/Real Media) - producer&lt;br /&gt;&lt;br /&gt;   These are the major popular formats... The choice depends on the user, i prefer OGG container format, because the quality as compared to other formats at same bit-rate is quite better. Then secondly, i'ld like to go with Real Media, because of two reasons.. 1. The fastest encoder available in market, at low bit-rates - impressive quality.&lt;br /&gt;&lt;br /&gt;Then after making a choice, install the encoder..&lt;br /&gt;On debian, the debian-multimedia.org has all the encoders, except the producer(needs to be installed separately from real.com)&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Now comes the encoding part...&lt;/b&gt;&lt;br /&gt;   This is divided into two steps..&lt;br /&gt;1) Decoding of the stream.&lt;br /&gt;2) Encoding of the raw stream to the desired format, here using oggenc to encode..&lt;br /&gt;&lt;br /&gt;&lt;b&gt;#1: Decoding using mplayer..&lt;/b&gt;&lt;br /&gt;   This is not a must to do decoding with mplayer, there is a disk writer plugin in almost all the media players. One may use it. For command line geeks, mplayer and vlc are best suited...&lt;br /&gt;&lt;span style="font-family:monospace;"&gt;$ mplayer -ao pcm:file=/tmp/audio.wav &amp;lt;inputfile&amp;gt;&lt;/span&gt;&lt;br /&gt;   /* Input file is any mplayer playable file, be it a video, fhere /tmp/audio.wav is the temporary wave file */&lt;br /&gt;&lt;br /&gt;&lt;b&gt;#2: Encoding using the desired encoder..&lt;/b&gt;&lt;br /&gt;&lt;span style="font-family:monospace;"&gt;$ oggenc -b 156 /tmp/audio.wav -o music.ogg&lt;/span&gt;&lt;br /&gt;   /* This will encode the file to vorbis, in an ogg container. */&lt;br /&gt;Similarly, lame has format...&lt;br /&gt;&lt;span style="font-family:monospace;"&gt;$ lame -b 156 /tmp/audio.wav -o music.mp3&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;With this, the file music.ogg is the new output file in ogg multimedia format.&lt;br /&gt;Same way can be adopted to RIP an audio CD.&lt;br /&gt;&lt;br /&gt;Here i've created a small python script to convert all files in a folder to aac&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;font-family:courier new;" &gt;#! /usr/bin/env python&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: courier new;font-family:courier new;" &gt;import os&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: courier new;font-family:courier new;" &gt;import sys&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;&lt;span style="font-family: courier new;"&gt;if len ( sys.argv )&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: courier new;font-family:courier new;" &gt;print "Usage:", sys.argv[0], "/target/dir"&lt;/span&gt;&lt;span style="font-family: courier new;font-family:courier new;" &gt;&lt;br /&gt;sys.exit ()&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: courier new;font-family:courier new;" &gt;files = os.listdir ( "." )&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: courier new;font-family:courier new;" &gt;dir = sys.argv[1]&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: courier new;font-family:courier new;" &gt;for i in files:&lt;/span&gt;&lt;span style="font-family: courier new;font-family:courier new;" &gt;&lt;br /&gt;print "Decoding", i, "..."&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;font-family:courier new;" &gt;  cmd = "mplayer -ao pcm:file=/tmp/swav.sona \"" + i + "\" 2&gt; /dev/null &gt; /dev/null"&lt;/span&gt;&lt;span style="font-family: courier new;font-family:courier new;" &gt;&lt;br /&gt;outfile = dir + "/" + i[0:len(i) - 4]&lt;/span&gt;&lt;span style="font-family: courier new;font-family:courier new;" &gt;&lt;br /&gt;os.system ( cmd )&lt;/span&gt;&lt;span style="font-family: courier new;font-family:courier new;" &gt;&lt;br /&gt;print "Encoding to ", outfile, "... @ 192 kbps..."&lt;/span&gt;&lt;span style="font-family: courier new;font-family:courier new;" &gt;&lt;br /&gt;cmd = "faac /tmp/swav.sona -o \"" + outfile + ".aac\""&lt;/span&gt;&lt;span style="font-family: courier new;font-family:courier new;" &gt;&lt;br /&gt;print cmd&lt;/span&gt;&lt;span style="font-family: courier new;font-family:courier new;" &gt;&lt;br /&gt;os.system ( cmd )&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: courier new;font-family:courier new;" &gt;print "Conversion finished!!!"&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Enjoy!&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6277994551525631073-2783060380152890328?l=tuxatwork.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tuxatwork.blogspot.com/feeds/2783060380152890328/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6277994551525631073&amp;postID=2783060380152890328' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6277994551525631073/posts/default/2783060380152890328'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6277994551525631073/posts/default/2783060380152890328'/><link rel='alternate' type='text/html' href='http://tuxatwork.blogspot.com/2007/11/music-my-fantasy.html' title='Music my fantasy....'/><author><name>Shamail</name><uri>http://www.blogger.com/profile/11393681255977041547</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6277994551525631073.post-1948565370957283120</id><published>2007-11-21T03:18:00.001-08:00</published><updated>2007-11-24T02:05:08.414-08:00</updated><title type='text'>Send ad free mails, from ad-supported services...</title><content type='html'>My next writing is about sending ad free mails from ad-supported service...&lt;br /&gt;&lt;br /&gt;&lt;b&gt;So, how is this possible?&lt;/b&gt; This is not a big question if you look at the mail header, and seeing the e-mail send process, the answer is not far...&lt;br /&gt;Here is a sample e-mail header.. ( for more about email: &lt;a href="http://www.bath.ac.uk/bucs/email/anatomy.shtml"&gt;http://www.bath.ac.uk/bucs/email/anatomy.shtml&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/Email"&gt;http://en.wikipedia.org/wiki/Email&lt;/a&gt; )&lt;br /&gt;&lt;pre&gt;&lt;big&gt;&lt;span style="font-family:Courier New,Courier,monospace;"&gt;&lt;strong&gt;Received&lt;/strong&gt;: from kelly.bath.ac.uk ([138.38.32.20])&lt;br /&gt;by serena.bath.ac.uk with esmtp (Exim 3.36 #2)&lt;br /&gt;id 19NkR7-0003g5-00&lt;br /&gt;for &lt;a class="moz-txt-link-abbreviated" href="mailto:ccsxxx@imaps.bath.ac.uk"&gt;ccsxxx@imaps.bath.ac.uk&lt;/a&gt;;&lt;br /&gt;Thu, 05 Jun 2003 03:25:05 +0100 &lt;strong&gt;&lt;br /&gt;Received:&lt;/strong&gt; from mta1.silver.ddc.dartmail.net ([146.82.220.228])&lt;br /&gt;by kelly.bath.ac.uk with smtp id 19NkQa-00008C-4E&lt;br /&gt;for &lt;a class="moz-txt-link-abbreviated" href="mailto:ccsxxx@bath.ac.uk"&gt;ccsxxx@bath.ac.uk&lt;/a&gt;;&lt;br /&gt;Thu, 05 Jun 2003 03:24:32 +0100&lt;br /&gt;&lt;strong&gt;Date:&lt;/strong&gt; Wed, 04 Jun 2003 22:25:43 -0400 (EDT)&lt;/span&gt;&lt;/big&gt;&lt;/pre&gt;&lt;br /&gt;&lt;b&gt;Now three things can be seen here..&lt;/b&gt;&lt;br /&gt;1. Sender is &lt;a class="moz-txt-link-abbreviated" href="mailto:ccsxxx@bath.ac.uk"&gt;ccsxxx@bath.ac.uk&lt;/a&gt;&lt;br /&gt;2. Reciever is &lt;a class="moz-txt-link-abbreviated" href="mailto:ccsxxx@maps.bath.ac.uk"&gt;ccsxxx@maps.bath.ac.uk&lt;/a&gt;&lt;br /&gt;3. Message was sent from smtp server bath.ac.uk&lt;br /&gt;&lt;br /&gt;&lt;b&gt;What in this world this header has to do with ad-free mail?&lt;br /&gt;&lt;/b&gt;    Clearly looking, this is the header that reaches the user...&lt;br /&gt;So by changing this in out email(say &lt;a class="moz-txt-link-abbreviated" href="mailto:ccsxxx@bath.ac.uk"&gt;ccsxxx@bath.ac.uk&lt;/a&gt; to &lt;a class="moz-txt-link-abbreviated" href="mailto:s@ad-supported-mail.com"&gt;s@ad-supported-mail.com&lt;/a&gt;) header, and using a server that is ad-free, we can presume that the mail is sent from &lt;a class="moz-txt-link-abbreviated" href="mailto:s@ad-supported-mail.com"&gt;s@ad-supported-mail.com&lt;/a&gt;&lt;br /&gt;&lt;b&gt;P.S this is the violation of copyright laws, but perfectly o.k if you send the mail from an email id that is owned by you.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;What is needed?&lt;br /&gt;&lt;/b&gt;Just a gmail account, and your old email account i.e &lt;a class="moz-txt-link-abbreviated" href="mailto:s@ad-supported-mail.com"&gt;s@ad-supported-mail.com&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;How to?&lt;br /&gt;&lt;/b&gt;Go to gmail from web interface, go to Settings -&amp;gt; Accounts&lt;br /&gt;Here add another e-mail account, this will be &lt;a class="moz-txt-link-abbreviated" href="mailto:s@ad-supported-mail.com"&gt;s@ad-supported-mail.com&lt;/a&gt;&lt;br /&gt;Gmail will send a confirmation to your account, verify it (gmail is smart, it verifies that the email is owned by you, if you dont do this, gmail will replace the header with its own header)&lt;br /&gt;Set this new email as default.&lt;br /&gt;And use always reply from my default address.&lt;br /&gt;&lt;br /&gt;Now from with in gmail, when you send an email, it will go as &lt;a class="moz-txt-link-abbreviated" href="mailto:s@ad-supported-mail.com"&gt;s@ad-supported-mail.com&lt;/a&gt;&lt;br /&gt;Also, POP users can use thunderbird/other mail client after this to configure the mail client to send mail as this id (without setting these, gmail will not allow sending of mail as some other id)&lt;br /&gt;&lt;br /&gt;Now since, gmail is ad-free the emails sent after these will go as &lt;a class="moz-txt-link-abbreviated" href="mailto:s@ad-supported-mail.com"&gt;s@ad-supported-mail.com&lt;/a&gt; but ad-free!!!&lt;br /&gt;&lt;br /&gt;These settings can also be used, if you use your ISP's SMTP server to send mails, this will then act as portable SMTP server(or what i call as travellers smtp server)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6277994551525631073-1948565370957283120?l=tuxatwork.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tuxatwork.blogspot.com/feeds/1948565370957283120/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6277994551525631073&amp;postID=1948565370957283120' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6277994551525631073/posts/default/1948565370957283120'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6277994551525631073/posts/default/1948565370957283120'/><link rel='alternate' type='text/html' href='http://tuxatwork.blogspot.com/2007/11/send-ad-free-mails-from-ad-supported.html' title='Send ad free mails, from ad-supported services...'/><author><name>Shamail</name><uri>http://www.blogger.com/profile/11393681255977041547</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6277994551525631073.post-6240736068406207982</id><published>2007-11-17T13:21:00.000-08:00</published><updated>2007-11-18T06:37:25.395-08:00</updated><title type='text'>Propriety software v/s Free software -- my experience!</title><content type='html'>&lt;div style="float: right;"&gt;&lt;script src="http://digg.com/tools/diggthis.js" type="text/javascript"&gt;&lt;/script&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms,sans-serif;"&gt;Tough day! But yet tech filled....&lt;/span&gt; &lt;span style="font-family:trebuchet ms,sans-serif;"&gt;We have captured the Kashmir visit on Sony Handycam, but unfortunately the cam was not mine, it was owned by the friends family. And the guy don't have sufficient resources to rip the DVC, like firewire etc. So i got the job. For that, today i got to one of my friend, Kazim(his blog listed on the page).... &lt;/span&gt; &lt;span style="font-family:trebuchet ms,sans-serif;"&gt;   It was a somewhat unexpected experience.... I got there to realize that we can have either two methods of transfer the video to PC viz USB and firewire. So we decided to go USB's way and use sony's bundled software to capture and burn the video to VCD. This annoying software, though flashy, has no option to disk save a ripped video, no option to choose encoding specs etc., more... at some blogs we found that we can use DVD burning only with a sony vio pc(don't know the reason for such a stupidity!)&lt;br /&gt;  But since we were in short of time as semester exams ahead, so we decided to sacrifice some quality, and go for VCD. The next successful attempt to make it more user-friendly and taking off the quality comes up when we realized that in the DVC, there were some gaps(of few seconds at few places)... the software stopped at the first gap, which was seen at around 4 minutes. No matter that it has bothered to give second option, no matter it should have ripped in tracks. Then it encoded and burnt the CD...&lt;br /&gt;so at our first run we got a VCD of length 4 minutes!!! As a solution we thought, we should fill the gaps... so we started doing that, in the mid way we thought it won't work, because the camera timer was still behaving the same way.&lt;br /&gt;&lt;br /&gt;Then comes the bond.... linux&lt;br /&gt;&lt;br /&gt;Among the 3 systems available for us, only one was having firewire port, but this with a linux system that was unbootable. With few unsuccessful attempts to boot it, we decided to go live cd's way. And booted the system into Ubuntu drapper drake.&lt;br /&gt;Installed dvgrab on live machine. Connected the firewire cable and created a test video of 4 and half minutes.&lt;br /&gt;this does the job&lt;br /&gt;&lt;br /&gt;# nice -n 19 dvgrab&lt;br /&gt;// Running dvgrab at almost highest priority&lt;br /&gt;&lt;br /&gt;This gave a a 986MB avi file,  dvgrab-001.avi&lt;br /&gt;I was thrilled when Kazim told me that this is better then the quality produced by that software.&lt;br /&gt;&lt;br /&gt;Then comes my knowledge of linux and videos....&lt;br /&gt;I used mencoder to encode that video at 2000Kbps mpeg4, 128 bit audio to get almost lossless copy of it, and to surprises, the size reduces to 65MB(as expected). This will suffice&lt;br /&gt;&lt;br /&gt;$ mencoder dvgrab-001.avi -oac lavc -ovc lavc -lavcopts -acodec=mp2:abitrate=128:vcodec=mpeg4:vbitrate=2000 -noskip -o myVid.avi&lt;br /&gt;&lt;br /&gt;In almost 2 minutes, it will do the job to give just a replica of the raw video.&lt;br /&gt;&lt;br /&gt;So... the moral of the story, again... the free tools together wins over some propriety softwares, and those which are being shipped with such a widely used appliance.&lt;br /&gt;This time i must say, sony needs to do a lot in providing a software, worth enough to be shipped with a product costing 20000 INR.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6277994551525631073-6240736068406207982?l=tuxatwork.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tuxatwork.blogspot.com/feeds/6240736068406207982/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6277994551525631073&amp;postID=6240736068406207982' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6277994551525631073/posts/default/6240736068406207982'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6277994551525631073/posts/default/6240736068406207982'/><link rel='alternate' type='text/html' href='http://tuxatwork.blogspot.com/2007/11/propriety-software-vs-free-software-my.html' title='Propriety software v/s Free software -- my experience!'/><author><name>Shamail</name><uri>http://www.blogger.com/profile/11393681255977041547</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6277994551525631073.post-2902078544130107116</id><published>2007-11-14T00:12:00.001-08:00</published><updated>2007-11-14T00:12:08.175-08:00</updated><title type='text'>Getting internet up on the roam...</title><content type='html'>&lt;b style="font-family: verdana,sans-serif;"&gt;So... what about accessing internet on the roam?&lt;/b&gt;&lt;br style="font-family: verdana,sans-serif;"&gt;&lt;b style="font-family: verdana,sans-serif;"&gt;Why So? &lt;/b&gt;&lt;span style="font-family: verdana,sans-serif;"&gt; All knows, that the internet lines are static, and the wireless networks are not always present! We find a network if we are in South X area, but is it like, i work only when i am in South X area??? No na...&lt;/span&gt;&lt;br style="font-family: verdana,sans-serif;"&gt; &lt;span style="font-family: verdana,sans-serif;"&gt;The fact is that, in India mobile networks are always there... Checking for the small list of providers giving internet on cell phones, the list seems to be big...&lt;/span&gt;&lt;br style="font-family: verdana,sans-serif;"&gt; &lt;b style="font-family: verdana,sans-serif;"&gt;Idea&lt;/b&gt;&lt;span style="font-family: verdana,sans-serif;"&gt; India Ltd.&lt;/span&gt;&lt;br style="font-family: verdana,sans-serif;"&gt;&lt;b style="font-family: verdana,sans-serif;"&gt;Vodafone&lt;/b&gt;&lt;span style="font-family: verdana,sans-serif;"&gt;  IN&lt;/span&gt;&lt;br style="font-family: verdana,sans-serif;"&gt;&lt;b style="font-family: verdana,sans-serif;"&gt;Orange&lt;/b&gt;&lt;span style="font-family: verdana,sans-serif;"&gt; IN&lt;/span&gt;&lt;br style="font-family: verdana,sans-serif;"&gt;&lt;b style="font-family: verdana,sans-serif;"&gt; Spice&lt;/b&gt;&lt;br style="font-family: verdana,sans-serif;"&gt;&lt;b style="font-family: verdana,sans-serif;"&gt;Airtel&lt;/b&gt;&lt;span style="font-family: verdana,sans-serif;"&gt; - Postpaid&lt;/span&gt;&lt;br style="font-family: verdana,sans-serif;"&gt;&lt;b style="font-family: verdana,sans-serif;"&gt; Tata Indicom&lt;/b&gt;&lt;br style="font-family: verdana,sans-serif;" clear="all"&gt;&lt;b style="font-family: verdana,sans-serif;"&gt;Reliance&lt;/b&gt;&lt;span style="font-family: verdana,sans-serif;"&gt; India&lt;/span&gt;&lt;br style="font-family: verdana,sans-serif;"&gt; &lt;b style="font-family: verdana,sans-serif;"&gt;MTNL&lt;/b&gt;&lt;span style="font-family: verdana,sans-serif;"&gt; Dolphin&lt;/span&gt;&lt;br style="font-family: verdana,sans-serif;"&gt;&lt;b style="font-family: verdana,sans-serif;"&gt;BSNL &lt;/b&gt;&lt;span style="font-family: verdana,sans-serif;"&gt; CellOne&lt;/span&gt;&lt;br style="font-family: verdana,sans-serif;"&gt;&lt;br style="font-family: verdana,sans-serif;"&gt;&lt;b style="font-family: verdana,sans-serif;"&gt;And almost all of them provides support on the roam&lt;/b&gt;&lt;span style="font-family: verdana,sans-serif;"&gt; , some of them even provides support on non home network areas.&lt;/span&gt;&lt;br style="font-family: verdana,sans-serif;"&gt;&lt;span style="font-family: verdana,sans-serif;"&gt;So why not exploiting the resource? But before that there are some pre-requisites... &lt;/span&gt;&lt;br style="font-family: verdana,sans-serif;"&gt;&lt;span style="font-family: verdana,sans-serif;"&gt;1. Check for the &lt;/span&gt;&lt;b style="font-family: verdana,sans-serif;"&gt;GPRS/EDGE&lt;/b&gt;&lt;span style="font-family: verdana,sans-serif;"&gt;  support for the internet... ask you customer care to start the service for you.&lt;/span&gt;&lt;br style="font-family: verdana,sans-serif;"&gt;&lt;span style="font-family: verdana,sans-serif;"&gt;2. Get the &lt;/span&gt;&lt;b style="font-family: verdana,sans-serif;"&gt; access point name&lt;/b&gt;&lt;span style="font-family: verdana,sans-serif;"&gt;.&lt;/span&gt;&lt;br style="font-family: verdana,sans-serif;"&gt;&lt;span style="font-family: verdana,sans-serif;"&gt;3. Get a &lt;/span&gt;&lt;b style="font-family: verdana,sans-serif;"&gt; bluetooth&lt;/b&gt;&lt;span style="font-family: verdana,sans-serif;"&gt; ready for your computer, and certainly you need to have a modem supported phone.&lt;/span&gt;&lt;br style="font-family: verdana,sans-serif;"&gt;&lt;span style="font-family: verdana,sans-serif;"&gt; 4. A PC running GNU/Linux.&lt;/span&gt;&lt;br style="font-family: verdana,sans-serif;"&gt;&lt;b style="font-family: verdana,sans-serif;"&gt;/* Please note, wireless carriers have a high access fee, so its better to ask for data plans from the provider */ &lt;/b&gt;&lt;br style="font-family: verdana,sans-serif;"&gt;&lt;br style="font-family: verdana,sans-serif;"&gt;&lt;span style="font-family: verdana,sans-serif;"&gt;So the method is simple, a 5 min delicious recepie...&lt;/span&gt;&lt;br style="font-family: verdana,sans-serif;"&gt; &lt;span style="font-family: verdana,sans-serif;"&gt;&amp;nbsp;&amp;nbsp; /* Installation of the tools is not the part of this tutorial, however they are available by default in almost all the latest distros */&lt;/span&gt;&lt;br style="font-family: verdana,sans-serif;"&gt; &lt;span style="font-family: verdana,sans-serif;"&gt;&amp;nbsp; /* All commands as&lt;b&gt; root&lt;/b&gt; */&lt;/span&gt;&lt;br style="font-family: verdana,sans-serif;"&gt;&lt;br style="font-family: verdana,sans-serif;"&gt;&lt;span style="font-family: verdana,sans-serif;"&gt; Start by searching your device as:&lt;/span&gt;&lt;br style="font-family: verdana,sans-serif;"&gt;&lt;b&gt;&lt;span style="font-family: courier new,monospace;"&gt;# hcitool scan&lt;/span&gt;&lt;/b&gt;&lt;br style="font-family: verdana,sans-serif;"&gt;&lt;span style="font-family: verdana,sans-serif;"&gt; Note down the MAC address of the device.&lt;/span&gt;&lt;br style="font-family: verdana,sans-serif;"&gt;&lt;br style="font-family: verdana,sans-serif;"&gt;&lt;span style="font-family: verdana,sans-serif;"&gt;Now you need to determine the channel of communication &lt;/span&gt;&lt;br style="font-family: verdana,sans-serif;"&gt;&lt;b style="font-family: courier new,monospace;"&gt;# sdptool browse &amp;lt;mac address&amp;gt;&lt;/b&gt;&lt;br style="font-family: verdana,sans-serif;"&gt;&lt;span style="font-family: verdana,sans-serif;"&gt; This will show you the list of services for the remote device, find the channel number of the dial up networking service.&lt;/span&gt;&lt;br style="font-family: verdana,sans-serif;"&gt;&lt;br style="font-family: verdana,sans-serif;"&gt;&lt;span style="font-family: verdana,sans-serif;"&gt; now edit &lt;b&gt;/etc/bluetooth/rfcomm.conf&lt;/b&gt; and add these lines...&lt;/span&gt;&lt;br style="font-family: verdana,sans-serif;"&gt;&lt;b&gt;&lt;span style="font-family: courier new,monospace;"&gt;rfcomm1 {&lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt; &lt;span style="font-family: courier new,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bind yes;&lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt;&lt;span style="font-family: courier new,monospace;"&gt;# replace mac address in the next line&lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt; &lt;span style="font-family: courier new,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; device 00:16:BC:F1:7D:B3;&lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt;&lt;span style="font-family: courier new,monospace;"&gt;# replace channel number, 2 in my case &lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt;&lt;span style="font-family: courier new,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; channel 2;&lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt;&lt;span style="font-family: courier new,monospace;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; comment &amp;quot;For Internet&amp;quot;;&lt;/span&gt;&lt;br style="font-family: courier new,monospace;"&gt;&lt;span style="font-family: courier new,monospace;"&gt;}&lt;/span&gt;&lt;/b&gt; &lt;br style="font-family: verdana,sans-serif;"&gt;&lt;br style="font-family: verdana,sans-serif;"&gt; &lt;span style="font-family: verdana,sans-serif;"&gt;Now restart bluetooth as&lt;/span&gt;&lt;br style="font-family: verdana,sans-serif;"&gt;&lt;b style="font-family: courier new,monospace;"&gt;# /etc/init.d/bluetooth restart&lt;/b&gt;&lt;br style="font-family: verdana,sans-serif;"&gt; &lt;br style="font-family: verdana,sans-serif;"&gt;&lt;span style="font-family: verdana,sans-serif;"&gt;The final step...&lt;/span&gt;&lt;br style="font-family: verdana,sans-serif;"&gt;&lt;span style="font-family: verdana,sans-serif;"&gt;Edit &lt;b&gt;/etc/wvdial.conf &lt;/b&gt; as:&lt;/span&gt;&lt;br style="font-family: verdana,sans-serif;"&gt;&lt;br style="font-family: verdana,sans-serif;"&gt;&lt;b style="font-family: courier new,monospace;"&gt;[Dialer Defaults]&lt;br&gt;Modem = /dev/rfcomm1&lt;br&gt;; replace internet with the access point name that you got from your provider &lt;br&gt;Init1 = at+cgdcont=1,&amp;quot;ip&amp;quot;,&amp;quot;internet&amp;quot;&lt;br&gt;Phone = *99#&lt;br&gt;Username = ss&lt;br&gt;Password = ss&lt;br&gt;Stupid mode = 1&lt;br&gt;New PPPD = yes&lt;/b&gt;&lt;br style="font-family: verdana,sans-serif;"&gt;&lt;br style="font-family: verdana,sans-serif;"&gt; &lt;span style="font-family: verdana,sans-serif;"&gt;Now to dial the internet, just give this command, the above is a one time process...&lt;/span&gt;&lt;br style="font-family: verdana,sans-serif;"&gt;&lt;b style="font-family: courier new,monospace;"&gt; # wvdial&lt;/b&gt;&lt;br style="font-family: verdana,sans-serif;"&gt;&lt;b&gt;&lt;span style="font-family: verdana,sans-serif;"&gt;&amp;lt;Ctrl + C to disconnect&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;br style="font-family: verdana,sans-serif;"&gt;&lt;span style="font-family: verdana,sans-serif;"&gt; &lt;/span&gt;&lt;span style="font-family: verdana,sans-serif;"&gt;&lt;/span&gt;&lt;br style="font-family: verdana,sans-serif;"&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6277994551525631073-2902078544130107116?l=tuxatwork.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tuxatwork.blogspot.com/feeds/2902078544130107116/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6277994551525631073&amp;postID=2902078544130107116' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6277994551525631073/posts/default/2902078544130107116'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6277994551525631073/posts/default/2902078544130107116'/><link rel='alternate' type='text/html' href='http://tuxatwork.blogspot.com/2007/11/getting-internet-up-on-roam.html' title='Getting internet up on the roam...'/><author><name>Shamail</name><uri>http://www.blogger.com/profile/11393681255977041547</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6277994551525631073.post-4206764301837193406</id><published>2007-11-12T02:21:00.001-08:00</published><updated>2007-11-12T02:21:49.897-08:00</updated><title type='text'>Tech goes non-tech at Kashmir...</title><content type='html'>&lt;font style="font-family: verdana,sans-serif;" face="monospace" size="2"&gt;&lt;span style="color: rgb(255, 255, 0);"&gt;This publication is all about &lt;/span&gt;&lt;b style="color: rgb(255, 255, 0);"&gt;my visit to Kashmir&lt;/b&gt;&lt;span style="color: rgb(255, 255, 0);"&gt; .&lt;/span&gt;&lt;br&gt;A 6 day time-killing trip... So no tech this time. And how can it be, when i was away from my system for that big time, and for sone par suhaga, in Kashmir no mobile network gives support, be it your home network... forget GPRS. Again my keyboard is not working properly, the keys from 1 to 0 are not working. Now dont say how i typed &amp;#39;em, they r there on numpad as well. &lt;font class="moz-smiley-s11"&gt;&lt;font&gt; 8-)&lt;/font&gt;&lt;/font&gt; so no exclamations.&lt;br&gt; Starting from the very beginning, my trip along with my family and one of my fathers friend&amp;#39;s family started our journey from New Delhi Railway Station, boarded the platform at 8:30 in &amp;quot;Jan Sampark Kranti Express&amp;quot; of Northern Railways Network. As expected the train travel ends in the morning at Jammu Tavi Railway Station and the big one started. Fortunately we were 11 together, so we arranged a 14 seater bus from BRO. BRO is Border Road Organisation, Govt. of Jammu and Kashmir. The very first thing anyone may notice is the security. I mean 3 salutes to Indian Army. Just see the fences, walls, gaurd towers. Its NH-1A, ans still so high security, with an Army Base after every 50 KM or so, and eagles eye may notice they are of BSF and CRPF. Now please dont comment that i m praising myself, &lt;b&gt;because i m doing the same&lt;/b&gt;. LOL &lt;font class="moz-smiley-s11"&gt;&lt;font&gt; 8-) &lt;/font&gt;&lt;/font&gt;.&lt;br&gt; 10 1/2 Hrs of Mountainous journey, my recommendation for those who have not been there, prefer flight. Hell will follow. The time the bus took the first stoppage, my condition was really bad, it was like - i was waking drunk. Really believe me, mountainous paths are really difficult to bear. Even though i&amp;#39;ve been on mountains a couple of times, but this time... it was a long journey. Finally after shaking ourselves a lot, we reached Srinagar, fortunately this place is a valley, so all plains. Now a paragraph deserves on the first view of Kashmir.&lt;br&gt; Border comes just after a 2500m tunnel in the late 80 percent of journey. The vally is almost a big city with mountains all around. Sun rises at 9, so u can imagine the view. A lake called as Dul lake is in the middle with a radius of 11 Kms, so a big one. And a whole round highway around the lake. The lake has got something new, house-boats. I&amp;#39;ve seen them on TV&amp;#39;s only, but this time, we were dropped directly to a place having house boats.&lt;br&gt; Now the big night. The first day, as we were dropped by the bus at the AbiGuzar, central market... we noticed an amazing thing. The markets at Kashmir gets closed at 6. Kya, At 6?? Yes. Its true. At Delhi we start at this time. Anyways then we had a houseboat, which starts sinking at 3AM. The worst experience of Kashmir. Think, someone wakes you up at this very time from bed with outside temperature of -2 degree C, that too without the over coats and jackets. Eeeeeeee. So in the morning we shifted to a hotel, Hotel Sheeza. Not because the houseboat sinks, but some of FEMALE persons with us were not satisfied with the feel of house-boat. They had problems with the passage to the boat. And the sinking was not a matter of concern, it happens to the very best of them, 3/10000 ship sinks. So were we lucky that we saw that, or were we nuts that we had to face that. Maybe LUCKY.&lt;br&gt; Then next morning the first thing that we saw was the place, where there was a counter attack with terrorists few days back. Most of must have seen that in the NEWS. This is the city center with a GHANTA-GHAR in the middle. Now what follows is a brief description of the places we&amp;#39;ve seen there.&lt;br&gt;&lt;br&gt;&lt;b&gt;Shalimar Garden:&lt;/b&gt; Everyone has seen this, just turn back an old 10 Rs note, the picture in it is the same. Amazing na.&lt;br&gt;&lt;b&gt;Nishat Baag:&lt;/b&gt; Now this is the first time i&amp;#39;ve realized that Kashmir is correctly known as &amp;quot;Heaven on Earth&amp;quot;. &lt;br&gt;&lt;b&gt;Gulmarg:&lt;/b&gt; Best known for ice-skewing. But since we were there in off-season, no skewing. Again this is the place most of us have seen... where? On the computer, wallpapers. With the first view i realized the place. I&amp;#39;ve myself seen it thousand times, unknowingly, that it is this place.&lt;br&gt;&lt;b&gt;Dul Lake:&lt;/b&gt; The best of Kashmir comes from here. A lake in the middle, with mountains all around. One word... WOW. To add a sense royalty, boats called as &amp;quot;&lt;b&gt;shikara&lt;/b&gt;&amp;quot; ply in it. We had a roam in it, and it lasted for 2 and half hours, again there itself we did water-skewing... just amazing&lt;br&gt;&lt;b&gt;Pari Mahal:&lt;/b&gt; A garden in steps, from where the whole Kashmir seems to be a plate of food. &lt;br&gt;&lt;b&gt;Botanical Garden:&lt;/b&gt; A garden of Pine trees.&lt;br&gt;&lt;b&gt;Chasme Shahi:&lt;/b&gt; This was the first time i had seen a chashma, a chashma is a small opening in the earth from where water comes out continuously. The sweetest water, after aab-e-zam-zam, as i&amp;#39;ve considered. The surroundings were so beautifully designed that... again WOW.&lt;br&gt; And a lot of small things here and there.&lt;br&gt;&lt;br&gt;Then after six days, back to home with same way... but this time... in the mountainous regions, i was so badly ached, that i vomited twice in the way. But this is ok, i felt really good after that. So again a sincere advice... avoid such travel.&lt;br&gt;And this fits perfectly.... &lt;b&gt;&amp;quot;Kashmir - the only heaven on this earth&amp;quot;&lt;/b&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;br style="font-family: verdana,sans-serif;" clear="all"&gt;&lt;br style="font-family: verdana,sans-serif;"&gt; &lt;span style="font-family: verdana,sans-serif;"&gt;-- &lt;/span&gt;&lt;br style="font-family: verdana,sans-serif;"&gt;&lt;span style="font-family: verdana,sans-serif;"&gt;Shamail Tayyab&lt;/span&gt;&lt;br style="font-family: verdana,sans-serif;"&gt;&lt;span style="font-family: verdana,sans-serif;"&gt; shamail [at] &lt;a href="http://inbox.com"&gt;inbox.com&lt;/a&gt;&lt;/span&gt;&lt;br style="font-family: verdana,sans-serif;"&gt;&lt;span style="font-family: verdana,sans-serif;"&gt;4 2 3 2 4 9 9 9 9 9 - 1 9 + (right to left without spaces)&lt;/span&gt;&lt;br style="font-family: verdana,sans-serif;"&gt; &lt;span style="font-family: verdana,sans-serif;"&gt;&amp;lt;&amp;lt;Bringing Linux and Mobiles one step closer&amp;gt;&amp;gt;&lt;/span&gt;&lt;br style="font-family: verdana,sans-serif;"&gt;&lt;span style="font-family: verdana,sans-serif;"&gt;Blog at: &lt;a href="http://tuxatwork.blogspot.com"&gt; http://tuxatwork.blogspot.com&lt;/a&gt;&lt;/span&gt;&lt;br style="font-family: verdana,sans-serif;"&gt;&lt;/font&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6277994551525631073-4206764301837193406?l=tuxatwork.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tuxatwork.blogspot.com/feeds/4206764301837193406/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6277994551525631073&amp;postID=4206764301837193406' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6277994551525631073/posts/default/4206764301837193406'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6277994551525631073/posts/default/4206764301837193406'/><link rel='alternate' type='text/html' href='http://tuxatwork.blogspot.com/2007/11/tech-goes-non-tech-at-kashmir_12.html' title='Tech goes non-tech at Kashmir...'/><author><name>Shamail</name><uri>http://www.blogger.com/profile/11393681255977041547</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6277994551525631073.post-1744416335019924234</id><published>2007-10-29T12:25:00.001-07:00</published><updated>2007-10-29T12:25:49.146-07:00</updated><title type='text'>Mount 3230/s60 phones on Linux</title><content type='html'>Think, if u can mount your symbian series s60 based phone on linux!!&lt;br&gt;Here is a simple way on how to....&lt;br&gt;&amp;gt;&amp;gt; For this exercise i m considering nokia 3230 and connected via bluetooth on Debian GNU/Linux 4.0...&lt;br&gt; // Note: No data-cable connection is available on s60 v2 phones, however other modes can be used.&lt;br&gt;&lt;br&gt;U need:&lt;br&gt;&amp;nbsp;&amp;nbsp; Kernel support for nfs&lt;br&gt;&amp;nbsp;&amp;nbsp; p3nfsd&lt;br&gt;&amp;nbsp;&amp;nbsp; p3nfs sis for mobile phone&lt;br&gt;Get them from &lt;a href="http://www.koeniglich.de/p3nfs.html"&gt; http://www.koeniglich.de/p3nfs.html&lt;/a&gt;&lt;br&gt;Note: Installation is beyond the scope of this tutorial.&lt;br&gt;&lt;br&gt;First find the MAC address of the device, the phone&lt;br&gt;# hcitool scan&lt;br&gt;Scanning ...&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00:16:BC:F1:7D:B3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Shamail &lt;br&gt;&lt;br&gt;Now pair the devices and start the nfs server on the phone.&lt;br&gt;&lt;br&gt;Now edit /etc/bluetooth/rfcomm.conf like this:&lt;br&gt;rfcomm0 {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Automatically bind the device at startup&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bind yes;&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Bluetooth address of the device &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; device 00:16:BC:F1:7D:B3;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # replace the device address here&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # RFCOMM channel for the connection&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; channel 13;&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Description of the connection&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; comment &amp;quot;p3nfsd&amp;quot;; &lt;br&gt;}&lt;br&gt;&lt;br&gt;now 3 more commands and u r through...&lt;br&gt;# rfcomm bind rfcomm0&lt;br&gt;# mkdir /mnt/phone&lt;br&gt;# p3nfsd -series60 -tty /dev/rfcomm0 -dir /mnt/phone&lt;br&gt;p3nfsd: version 5.19, using /dev/rfcomm0 (115200), mounting on /mnt/phone &lt;br&gt;p3nfsd: to stop the server do &amp;quot;ls /mnt/phone/exit&amp;quot;. (pid 14046)&lt;br&gt;&lt;br&gt;# ls /mnt/phone/E\:/&lt;br&gt;Images&amp;nbsp; muvee clips&amp;nbsp; Nokia&amp;nbsp; Others&amp;nbsp; private&amp;nbsp; Sounds&amp;nbsp; System&amp;nbsp; Videos&amp;nbsp; ZipMan&lt;br&gt;&lt;br&gt;Here are the memory card contents, on a mounted filesystem! &lt;br&gt;&lt;br&gt;Enjoy!&lt;br&gt;&lt;br&gt;&lt;br&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6277994551525631073-1744416335019924234?l=tuxatwork.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tuxatwork.blogspot.com/feeds/1744416335019924234/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6277994551525631073&amp;postID=1744416335019924234' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6277994551525631073/posts/default/1744416335019924234'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6277994551525631073/posts/default/1744416335019924234'/><link rel='alternate' type='text/html' href='http://tuxatwork.blogspot.com/2007/10/mount-3230s60-phones-on-linux.html' title='Mount 3230/s60 phones on Linux'/><author><name>Shamail</name><uri>http://www.blogger.com/profile/11393681255977041547</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6277994551525631073.post-3580349374711155156</id><published>2007-10-29T12:21:00.001-07:00</published><updated>2007-10-29T12:21:54.824-07:00</updated><title type='text'>Linux terminal on phone!!!</title><content type='html'>Here is the biggest of all the time, and one of my burnig desire to do so...&lt;br&gt;&lt;br&gt;Can u imagine your phone running a Linux Terminal....&lt;br&gt;Can u furtur imagine, this shell is your own PC&amp;#39;s shell...&lt;br&gt;Can u step furthur and imagine that this shell is not running over GPRS data, instead via BlueTooth. &lt;br&gt;&lt;br&gt;Here is how i achived this on our Nokia 3230&amp;#39;s...&lt;br&gt;(Make sure... this is not only 3230, u can make it work 4 u on ant phone that supports BlueTooth and is capable of running PuTTY)&lt;br&gt;&lt;br&gt;How???&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The trick involved is tunneling of IPv6 connection used by Bluetooth to IPv4 connection and then makin the phone use this conn as the internet access point. This way u not only get the remote access to ur phone but also internet connectivity on phone using your PC&amp;#39;s internet conn and not on the cost of service provider. &lt;br&gt;&lt;br&gt;Bounced???&lt;br&gt;What follows is Symbian special explaination on how to achieve this...&lt;br&gt;&lt;br&gt;What u need?&lt;br&gt;1) A PC Running Linux (Ha ha)&lt;br&gt;2) A SmartPhone&lt;br&gt;3) GnuBox, Bluz, Bluz-Utils, Gnome-bluetooth etc&lt;br&gt;4) PuTTY for you phone ( &lt;a href="http://s2putty.sourceforge.net"&gt;s2putty.sourceforge.net&lt;/a&gt; for s60 devices)&lt;br&gt;&lt;br&gt;A simple How-To (however not so simple if u try to investigate using hit-and-trial):&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Install GNU-BOX and PuTTY on phone &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Dont run it&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Now make a new connection with these specifications:&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Conn Name: Bt&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Bearer: Data Call&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dial-up no: 00000000 (any no that is not dialable) &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Authentication: Secure&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Rest as default&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Pair your phone with Linux and make it authorised.&lt;br&gt;&lt;br&gt;Now PC part (all the commands need root priv.)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Make sure there is no such device /dev/rfcomm0, if yes then: &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # rfcomm release /dev/rfcomm0&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Find the MAC address of the phone as&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # hcitool scan&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Say u got 00:16:BC:F1:7D:B3&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Try pinging your phone over IPv6 to make sure u can communicate as: &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # l2ping 00:16:BC:F1:7D:B3&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Now make a virtual channel of communication as&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # sdptool add --channel=3 SP&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Bind the device as&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # rfcomm bind 3 00:16:BC:F1:7D:B3 2 &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Start the bluetooth dial up networking daemon as&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # dund -n --listen --channel 3 --msdun noauth &lt;a href="http://192.168.1.1:192"&gt;192.168.1.1:192&lt;/a&gt;.168.1.2 crtscts 115200 lock --encrypt&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Where &lt;a href="http://192.168.1.1"&gt;192.168.1.1&lt;/a&gt; is the local IP and &lt;a href="http://192.168.1.2"&gt;192.168.1.2&lt;/a&gt; is the IP that will be assigned to phone&lt;br&gt;&lt;br&gt;Back to phone part:&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Make sure BlueTooth is running. &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Start gnubox.&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - 2box bluetooth -&amp;gt; serial port&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Now it should not disp the phone no as given when defineing the access pt.&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Install -&amp;gt; create records&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Debug -&amp;gt; bring up IF &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - this should start the connection and connect via BT treating PC as server&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - On PC u&amp;#39;ld see something like this:&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dund[2974]: New connection from 00:16:BC:F1:7D:B3&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Using interface ppp0 &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Connect: ppp0 &amp;lt;--&amp;gt; /dev/rfcomm0&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; local&amp;nbsp; IP address &lt;a href="http://192.168.1.1"&gt;192.168.1.1&lt;/a&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; remote IP address &lt;a href="http://192.168.1.2"&gt;192.168.1.2&lt;/a&gt; &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Meaning conn is complete.&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Now u should be able to ping your phone over IPv4 as:&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # ping &lt;a href="http://192.168.1.2"&gt;192.168.1.2&lt;/a&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Now fire PuTTY and open &lt;a href="http://192.168.1.1"&gt; 192.168.1.1&lt;/a&gt; with your local username and enjoy the shell on the phone&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Not only this, using HTTP connection mode u can use the phone to surf the net using PC&amp;#39;s data.&lt;br&gt;&lt;br&gt;&lt;br&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6277994551525631073-3580349374711155156?l=tuxatwork.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tuxatwork.blogspot.com/feeds/3580349374711155156/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6277994551525631073&amp;postID=3580349374711155156' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6277994551525631073/posts/default/3580349374711155156'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6277994551525631073/posts/default/3580349374711155156'/><link rel='alternate' type='text/html' href='http://tuxatwork.blogspot.com/2007/10/linux-terminal-on-phone.html' title='Linux terminal on phone!!!'/><author><name>Shamail</name><uri>http://www.blogger.com/profile/11393681255977041547</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6277994551525631073.post-8815277008382444593</id><published>2007-10-29T11:34:00.001-07:00</published><updated>2007-10-29T11:34:29.262-07:00</updated><title type='text'>My First Blog</title><content type='html'>This is my first blog at blogger, since the blog is all about mobile and linux, so why not writing it from mobile itself!&lt;br&gt;So here it comes from my very own mobile phone....&lt;br&gt;Its easy, just mail it to &lt;a href="mailto:go@blogger.com"&gt; go@blogger.com&lt;/a&gt;&lt;br&gt;Try yourself.... and go mobile!&lt;br clear="all"&gt;&lt;br&gt;-- &lt;br&gt;Shamail Tayyab&lt;br&gt;shamail [at] &lt;a href="http://inbox.com"&gt;inbox.com&lt;/a&gt;&lt;br&gt;4 2 3 2 4 9 9 9 9 9 - 1 9 + (right to left without spaces)&lt;br&gt;&amp;lt;&amp;lt;Bringing Linux and Mobiles one step closer&amp;gt;&amp;gt; &lt;br&gt;Blog at: &lt;a href="http://my.opera.com/pleomax00/blog"&gt;my.opera.com/pleomax00/blog&lt;/a&gt;&lt;br&gt;$1$29M2A$zTS8baerM42dHVaGwxQdW. &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6277994551525631073-8815277008382444593?l=tuxatwork.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tuxatwork.blogspot.com/feeds/8815277008382444593/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6277994551525631073&amp;postID=8815277008382444593' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6277994551525631073/posts/default/8815277008382444593'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6277994551525631073/posts/default/8815277008382444593'/><link rel='alternate' type='text/html' href='http://tuxatwork.blogspot.com/2007/10/my-first-blog.html' title='My First Blog'/><author><name>Shamail</name><uri>http://www.blogger.com/profile/11393681255977041547</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
