Archive

Archive for the ‘Uncategorized’ Category

Flock 2013 – Fedora at Yahoo

August 29, 2013 Leave a comment

This is kind of a late post. I spoke at Flock. It was about “Fedora At Yahoo!” – How we use Fedora in desktops and laptops at Yahoo!

Here is the presentation http://sagarun.fedorapeople.org/misc/FedoraAtYahoo.pdf

Categories: Uncategorized Tags: , , ,

Barcamp chennai 3

April 14, 2010 1 comment

For those who don’t know what a barcamp is “BarCamp is an unconference born from the desire for people to share and learn in an open environment. It is an intense event with discussions, demos and interaction from attendees.

As usual i switched on my notebook to check tweets in the morning. People were tweeting about something called “Barcamp”. I decided to go and check it out. I added my name to the wiki and registered myself. Then i made a call to my biker pal @sup3kiddo to check whether he is coming so that i can get a lift :-) .

We entered the SRM vadapalani campus by 11 in the morning. We were given with a participant kit. We wrote our name and twitter handle on a sticker and pasted on our t-shirts.

I spent some time with people i already know in FOSS circles. By 12.30 prakash of ethics technologies started his talk on Android mobile platform, he explained how openness of android helps developer community. I was surprised to learn that android is being ported to set-of boxes, refrigerators. Then we had a yummy free lunch :D, thanks to generous sponsors.

In the afternoon social media enthusiast Kiruba Shankar joined us, he made the crowd sit in circles. While shivasubramanian was preparing for his talk on ‘Free and open internet’, Vivek a young internet entrepreneur volunteered to give a lightening talk. He owns a start up which creates and maintains mock interview website http://interviewstreet.com/ . Being new to entrepreneurship he was trying to get some ideas about how to get things done in a start up from the audience. I must mention his business card was way too cool, it got one of my favorite xkcd comic on its back :-)

Shivasubramanian was talking about how Governments and corporations trying to control/restrict internet in the name of protecting children. He is part internet society an independent international nonprofit organization founded in 1992.

Then senthilnayagam CTO of rails factory a Ruby on Rails application development and consulting company, started a discussion on today’s movies. He later revealed about a software named ‘screenplay editor’ which his company is developing to help create screen plays for movies . Punch lines like “You can fix a bug in production, but cannot do the same in movies” popped up from the audience :-). Definitely talk on movies brought lot of people into the discussion.

Himanshu Sheth shared his views on how to use the professional networking website linkedin effectively. He explained how he got jobs in tough times with the help of linkedin. Then he revealed how he met the love his life via his blog. That was a good story :-) .

Ramasubramanian pulled lot of young audience with his talk on “Entrepreneurship and love” . It was one of the coolest presentations of the barcamp. He interestingly compared entrepreneurship and falling in love. kiruba made the crowd blast with his comment “You can sell a successful venture but you can’t do that with your girlfriend”.

When some one was talking about ‘what makes a good marketer?’ i went out to get some coffee with vasanth . When i was back, shyamala of netlink technologies started her talk on drupal a popular open source content management system which powers whitehouse.gov. She made nambitious a non tech guy to create a website in minutes.

Anand a third year computer science student from VIT, shared his ideas on “collaborative mindmap“. He showed us a four minute screencast of his webapp. We clapped when he said php sucks and replaced it with python-django in a mindmap :D .

Magesh was unable to demo his RoR stuff because of his laptop graphics problem . We came to an end by 5.30pm . Barcamp organizer yuvi panda (yuvraj pandian) got bumps on his back in the end :-). Pepsi was served instead of booze :( .

The whole event was live tweeted with the tag #bcc3 by the participants. You can track it using http://twitter.com/search?q=bcc3

Categories: Uncategorized

Pushed my first package in Fedora repository

December 10, 2009 1 comment

Yesterday, i pushed my first  package in Fedora repository. I have been working to package emacs-irsim-mode for couple of days. It was reviewed by chitlesh . Here is the  bugzilla review request . Irsim mode is one of the next release target for FEL (fedora electronics laboratory) . According to this ticket Irsim mode for emacs will add value the  digital/FPGA designer.

I have following packages needs to be reviewed in bugzilla

Any one wish to start with packaging for Fedora can start with this excellent article by shakthi. Now back to work :-) .

Categories: Uncategorized Tags: ,

Why i use GNU/Linux and Free software?

February 3, 2009 2 comments

I thought it will be nice to list the reasons for me to use GNU/linux and Free software!

1. First It works!

2. I don’t have money to buy software [:P] (well free software doesn’t need to be free of cost but most of them do)

3. I love the ethics and philosophy involved in free software.

4. I don’t like cracking software.

5. I hate searching for cracks and keygens on that nasty website

6. I don’t want to be called as a pirate by morons

7. I don’t like installing antivirus (It doesn’t mean that GNU/linux dont have viruses)

8. I hate updating them

9. I hate installing device drivers in windows (As they come along with GNU/linux, i dont have to)

10. I hate installing additional generic software separately which i use in day to day business (GNU/linux has most of the generic software inbuilt with the default installation like pdf readers,browsers, media players,instant messenger,cd/dvd writing software,office productivity software,archiver )

11. I dont have to fear of viruses and pendrives anymore.I hate using buggy IE.

12. I hate using mouse (a culprit which will make you tired and sick), I have become a command freak [:P] (you can control each and every part of GNU/linux using commands)

13. GNU/Linux helps me saving battery power of my laptop.

(how? i made my GNU/linux notebook to start in runlevel 3, which never starts the GUI by default, i used to listen songs by creating mplayer playlist and start playing files in runlevel 3 [:D] that is command line. you know what i get 4.5 hours of battery life :) )

14. I have lot of interest in security.

15. I want to be in control of my computer and don’t want the computer to control me [:)]

16. I like sharing free copies of GNU/linux with others.which proprietary software forbids me to.

17. Finally i hate monopoly!

note:points 15 and 16 are added as lajpat’s recommendation :)

Categories: Uncategorized

Google Marked Every site as Harmfull last evening!

February 1, 2009 Leave a comment

Last evening google marked its every search result as harmful [:D] …

Edit: Google says sorry! [:P]

If you did a Google search between 6:30 a.m. PST and 7:25 a.m. PST this morning, you likely saw that the message “This site may harm your computer” accompanied each and every search result. This was clearly an error, and we are very sorry for the inconvenience caused to our users.

What happened? Very simply, human error. Google flags search results with the message “This site may harm your computer” if the site is known to install malicious software in the background or otherwise surreptitiously. We do this to protect our users against visiting sites that could harm their computers. We maintain a list of such sites through both manual and automated methods. We work with a non-profit called StopBadware.org to come up with criteria for maintaining this list, and to provide simple processes for webmasters to remove their site from the list.

We periodically update that list and released one such update to the site this morning. Unfortunately (and here’s the human error), the URL of ‘/’ was mistakenly checked in as a value to the file and ‘/’ expands to all URLs. Fortunately, our on-call site reliability team found the problem quickly and reverted the file. Since we push these updates in a staggered and rolling fashion, the errors began appearing between 6:27 a.m. and 6:40 a.m. and began disappearing between 7:10 and 7:25 a.m., so the duration of the problem for any particular user was approximately 40 minutes.

Thanks to our team for their quick work in finding this. And again, our apologies to any of you who were inconvenienced this morning, and to site owners whose pages were incorrectly labelled. We will carefully investigate this incident and put more robust file checks in place to prevent it from happening again.

Thanks for your understanding.

Here is another explanation :http://blog.stopbadware.org/2009/01/31/google-glitch-causes-confusion

Categories: Uncategorized

Making Udev to work for you

January 15, 2009 1 comment

What is Udev?

Whenever you plug a device in your linux box,the node(device file) corresponding to the device is created in /dev directory.Udev is daemon which manages dynamic creation of these files.udev not only provides dynamic device management but also creation of user chosen device names,running a script or program when a device node is created.
The above functionality of udev is controlled by rules.The default rules are kept in /etc/udev/rules.d/ directory.The sweet part of udev is that we can write our own rules and make udev work for us :).

Well how i made udev to work for me?

I have no broadband connection :( (fighting with my dad to get one :P).I use my nokia 3110c mobile phone to connect Airtel GPRS/EDGE.To connect the internet i plug my mobile using a usb connector the usbmodem(well mobile acts as usbmodem) will be detected as /dev/ttyACM0.Then i open terminal use wvdial command to connect the internet,its really a boring task to open the terminal and issue wvdial command each time.

How to write a rule so that it automatically connects me to the internet when i plug-in my mobile:

To write a rule we should identify and match the device uniquely, in my case the device is my usb modem.
There are several matching keys available so that you can precisely finger point your device to udev and make udev to take appropriate action defined by you.

Here are some matching keys:
* KERNELS – match against the kernel name for the device, or the kernel name for any of the parent devices
* SUBSYSTEMS – match against the subsystem of the device, or the subsystem of any of the parent devices
* DRIVERS – match against the name of the driver backing the device, or the name of the driver backing any of the parent devices
* ATTRS – match a sysfs attribute of the device, or a sysfs attribute of any of the parent devices

For example to pinpoint my hard drive to udev the rule will be like this:

KERNEL==”sda”,SUBSYSTEM==”block”,ATTR{size}==”312581808″,NAME=”my_hard_drive”

The above rule specifies udev if the kernel name for the disk is ‘sda’, if its a block device and the size of it is 312581808 then name it as my_hard_drive..so you can see /dev/my_hard_drive device file created when the rule is parsed by udev.

Well one might wonder how did i get these information? Here comes udevinfo in handy.

[root@localhost ~]# udevinfo -a -p /sys/block/sda/

The above command will give you the detailed information about the device(hard drive in this case) which is something like this.

looking at device ‘/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda':
KERNEL==”sda”
SUBSYSTEM==”block”
DRIVER==””
ATTR{range}==”16″
ATTR{removable}==”0″
ATTR{size}==”312581808″
ATTR{capability}==”12″
ATTR{stat}==” 60259 55701 1692944 1457888 342794 1393752 13915984 186839073 0 1982886 188349105″

looking at parent device ‘/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block':
KERNELS==”block”
SUBSYSTEMS==””
DRIVERS==””

looking at parent device ‘/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0′:
KERNELS==”0:0:0:0″
SUBSYSTEMS==”scsi”
DRIVERS==”sd”
ATTRS{device_blocked}==”0″
ATTRS{type}==”0″
ATTRS{scsi_level}==”6″
ATTRS{vendor}==”ATA “
ATTRS{model}==”ST9160823ASG “
ATTRS{rev}==”3.AD”
ATTRS{state}==”running”
ATTRS{timeout}==”60″
ATTRS{iocounterbits}==”32″
The output is truncated….

when writing rules you cannot combine and mix-up attribute of diffrent parent devices.

The above method might be easy if you can find where your device is in sysfs file system (i.e /sys ).But its really difficult(atleast for the firsttimer ) to find out exactly the desired device in /sys folder.To get around this problem just plug-in your device and use the below command.

udevinfo -a -p $(udevinfo -q path -n /dev/)

To list the attributes details about usb modem(mobile) use the below command:

udevinfo -a -p $(udevinfo -q path -n /dev/ttyACM0)

well ttyACM0 is the usb modem i just inserted.The output will be something like….

looking at device ‘/devices/pci0000:00/0000:00:1d.1/usb6/6-2/6-2:1.1/tty/ttyACM0′:
KERNEL==”ttyACM0″
SUBSYSTEM==”tty”
DRIVER==””

looking at parent device ‘/devices/pci0000:00/0000:00:1d.1/usb6/6-2/6-2:1.1/tty':
KERNELS==”tty”
SUBSYSTEMS==””
DRIVERS==””

looking at parent device ‘/devices/pci0000:00/0000:00:1d.1/usb6/6-2/6-2:1.1′:
KERNELS==”6-2:1.1″
SUBSYSTEMS==”usb”
DRIVERS==”cdc_acm”
ATTRS{bInterfaceNumber}==”01″
ATTRS{bAlternateSetting}==” 0″
ATTRS{bNumEndpoints}==”01″
ATTRS{bInterfaceClass}==”02″
ATTRS{bInterfaceSubClass}==”02″
ATTRS{bInterfaceProtocol}==”01″
ATTRS{modalias}==”usb:v0421p005Ed0491dc02dsc00dp00ic02isc02ip01″
ATTRS{bmCapabilities}==”6″

looking at parent device ‘/devices/pci0000:00/0000:00:1d.1/usb6/6-2′:
KERNELS==”6-2″
SUBSYSTEMS==”usb”
DRIVERS==”usb”
ATTRS{configuration}==””
ATTRS{bNumInterfaces}==”15″
ATTRS{bConfigurationValue}==”1″
ATTRS{bmAttributes}==”e0″
ATTRS{bMaxPower}==”100mA”
ATTRS{urbnum}==”13625″
ATTRS{idVendor}==”0421″
ATTRS{idProduct}==”005e”
ATTRS{bcdDevice}==”0491″
ATTRS{bDeviceClass}==”02″
ATTRS{bDeviceSubClass}==”00″
ATTRS{bDeviceProtocol}==”00″
ATTRS{bNumConfigurations}==”1″
ATTRS{bMaxPacketSize0}==”64″
ATTRS{speed}==”12″
ATTRS{busnum}==”6″
ATTRS{devnum}==”5″
ATTRS{version}==” 2.00″
ATTRS{maxchild}==”0″
ATTRS{quirks}==”0x0″
ATTRS{authorized}==”1″
ATTRS{manufacturer}==”Nokia”
ATTRS{product}==”Nokia 3110c”

[The output is truncated...]
And here is the rule:

KERNEL==”ttyACM0″,SUBSYSTEM==”tty”,ATTRS{manufacturer}==”Nokia”,ATTRS{product}==”Nokia 3110c”,RUN+=”/usr/bin/wvdial”

RUN+=”/usr/bin/wvdial” calls the wvdial to dial the internet (my case airtel :)) when the modem is detected by udev in /dev/ttyACM0 according to the rule written it will automatically call wvdial to connect :)

Create a new file something called 10-local.rules inside /etc/udev/rules.d/ directory, write your own rules and save it.Remember don’t mess with the existing rule files!

Custom rules can be written to handle any device like digital camera,pendrive,external harddrive,etc that you plug-in into your linux box…

So lets start writing rules…… :) i guess does windows have such feature? or do they allow users to do these type of things without a third-party software?


References and Further reading:


http://reactivated.net/writing_udev_rules.html
-Good documentation on writing udev rules

http://kernel.org/pub/linux/utils/kernel/hotplug/udev_vs_devfs –Udev vs devfs

http://www.kernel.org/pub/linux/docs/device-list/devices.txt — list of devices and their corresponding device names in /dev folder helps you to find your device file names :)

Categories: Uncategorized

Having Fun in IRC

January 12, 2009 Leave a comment

Well it was fun monday……Just logged into irc-channel created by Mr.lawgon (he has some other name)
Have a Look @ the conversations………
zer0c00l its me…. :P ;)

–> You are now talking on #nrc-foss-edu
— Topic for #nrc-foss-edu is Welcome to #nrc-foss-edu a channel to discuss FOSS in higher education in India || Channel rules: http://nrcfosshelpline.in/code/wiki/NrcFossEdu || http://nrcfosshelpline.in/code/ || mailing list: nrcfossconsult@googlegroups.com || FOSS certification: http://nrcfosshelpline.in/syllabus/FossWebDeploymentEngineer
Topic for #nrc-foss-edu set by lawgon at Tue Dec 2 17:34:19 2008
#nrc-foss-edu :[freenode-info] please register your nickname…don’t forget to auto-identify! http://freenode.net/faq.shtml#nicksetup
zer0c00l-> so when will anna university give more importance to foss?
>nickserv< register ******(ma passwd) sagarun[at]gmail.com
lawgon-> who knows?
zer0c00l-> well i guess you know
why dont you people push
a student in government school uses open office in his lab..but when he comes to anna university affiliated engineering college he is forced use Microsoft office in his first semester
why is this gap?
may be its not your question lawgon
some moron from 218.75.53.68
sshd my computer
:(
how can i kick him
well its some Chinese moron
http://218.75.53.68/sp/wp_webuser.sp he is running http as well
let me send an abuse email
–> HDB (i=3b5dac22@gateway/web/ajax/mibbit.com/x-41d70ce0f3234a0e) has joined #nrc-foss-edu
HDB-> yoohoo
lawgon: see my reply on why a license is needed?
HDB-> zer0c00l: hello
zer0c00l-> hello HDB
HDB-> zer0c00l: who you sending abuse email to?
zer0c00l-> somebody from 218.75.53.68 made ssh connections to my computer
this morning
its seems like a Chinese government website
http://218.75.53.68/sp/wp_webuser.sp
HDB-> wow. chinese govt is doing hacking??
zer0c00l-> may be somebody hacked the Chinese government servers
and using that server to hide himself
government servers are soft targets
well i want to inform them
that their server is compromised
how can i do that
any idea?
HDB-> zer0c00l: buy a ticket to beijing
zer0c00l-> http://www.cooleasy.com/whois.php?ip=218.75.53.68
thats a good idea
well buy me a ticket
HDB-> ask Lap_64 uncle
zer0c00l-> oh
Lap_64 uncle are you there?
knock knock uncle
let me ask in binrev
http://www.binrev.com/forums
i wonder how he got my ip address
HDB-> zer0c00l: maybe random try. what’s your ip??
zer0c00l-> i dont want to tell that
hehehe
why you need thaty
?
ask the operator
probably he knows it
HDB-> oprater??
no he doesnt
zer0c00l-> oh
HDB-> freenode knows it
zer0c00l-> yeah
HDB-> oops, you are not protected. your ip is visible on doing /whois zer0c00l
zer0c00l-> too bad
then i have to use a strong password
and disable unnecessary vulnerable service
omg i am running hell lot of services
HDB-> you are on windows xp
?
zer0c00l-> no
i hate windows shit
HDB-> Lap_64 uncle is windows fan
zer0c00l-> hahaha
o
HDB-> never upgraded from Windows 98
zer0c00l-> i have bad opinion about people using windows
HDB-> no, Lap_64 is fine
zer0c00l-> your ip is 59.93.*.* (edited :P)
:D
HDB-> yeah I don’t hide it. what’s the point
zer0c00l-> why cant i port scan your computer?
* HDB is small fish
zer0c00l-> using windows vista or something?
iptables up and running?
HDB-> zer0c00l: don’t do that stuff. it is illegal. and if you are in India, you can be arrested :-(
HDB-> laws are very tough
zer0c00l-> oh really
HDB-> yep
where are you? chennai?
zer0c00l-> btw i am using neighbors wifi
hehehe
yep
HDB-> then he will get arrested. what city?
zer0c00l-> omg
thats bad
HDB-> what?
zer0c00l-> arrested
:O
HDB-> IT Act 2000 (Amendment 2006)
zer0c00l-> oh
HDB-> btw, amendment 2006 was really passed in 2008
zer0c00l-> i read about that
its baad
HDB-> took them 2 yrs
brb…
<– HDB has quit ("http://www.mibbit.com ajax IRC Client")
zer0c00l-> zer0c00l wonders: HDB a police officer or lawyer
does any one knows how to prevent ssh logins from the internet
how can i make sshd to ignore logins from the internet
well google search will help me i guess
:)

————

But really i wasn’t using my neighbours ip address at that time. [:P]

Categories: Uncategorized
Follow

Get every new post delivered to your Inbox.

Join 837 other followers