user-avatar
Today is Friday
March 13, 2026

Archives: March 2010

March 24, 2010

Custom icons to your script

by viggy — Categories: tech — Tags: , , , Leave a comment

I have to use VNC many times for my work. Everytime to invoke vncviewer, I had to press -F2 and then type “vncviewer”. I didnt want to do this and hence I thought I will write a simple shell script which I can use to run whenever I needed vncviewer. Hence I wrote following two lines in a shell script.

#!/bin/bash
vncviewer

This I saved on my desktop and used to double click it whenever I needed to run it. However even this used to ask me if I wanted to run it or display it. Also the script had a default icon which I didnt want and wanted it to have the icon of vnc. Also I didnt like it to occupy my desktop area and wanted to keep it on my panel. Hence i searched on google for answers. i found the following mail which gave me a clear idea of how to do it.

http://linux.derkeiler.com/Mailing-Lists/KDE/2009-04/msg00131.html

You can create your own icons by creating a textfile and giving it a .desktop
extension. That’s all an icon is. Go to /usr/share/applications and have a look.
Anyone of those files can be dragged into you ~/Desktop folder if you use that for
desktop icons or else directly onto your desktop.

The format of the .desktop file is fairly simple to follow I have made them for
url as well as script icons and keep them in /usr/local/share/applications. Once
you have created the file the “icon” can be used like any other icon, e.g. adding
to Quicklaunch. Use anything for an icon. Here is what one of mine looks like.

[root@localhost ~]# cat /usr/local/share/vncviewer.desktop
[Desktop Entry]
Name=Vncviewer
Comment = runs vncviewer script
Exec=/usr/local/bin/vncviewer.sh
Icon=/usr/share/icons/vncviewer.jpeg
Terminal=0
Type=Application
Categories=Application;Internet;

Hence now I could drag this icon on my panel and launch vncviewer in just one click.
šŸ™‚

March 23, 2010

Fatal: Module fuseĀ notĀ found

by viggy — Categories: linux, tech — Tags: , , Leave a comment

This was the error that I was getting when I tried to mount my NTFS partition in CentOS5.3 final. I tried to search for a solution for one full day but I couldnt find a solution. Finally I got a forum where it was suggested that this is basically a mismatch of kernel-headers and kernel modules. So I tried to find the kernel-modules which matched my kernel-headers version. However even after I tried to install the correct version of kernel-modules, I still faced the same issue. Hence I finally gave up and decided to upgrade my kernel to the latest stable version.

So when I updated my kernel to 2.6.18-164.15.1.el5, and I rebooted, I could easily mount the NTFS partion.

March 15, 2010

FSMKĀ weekend

by viggy — Categories: experience, Fun — Tags: , , Leave a comment

It has been one of the most useful weekends I have spent. Not only did I enjoy the weekend to its fullest, I could also make sure that it was fruitful. The weekend started right from Friday evening. I left office at around 7 and met Naveen and went with him to FSMK office. There while watching the opening match of IPL season 3, KKR vs DC, we planned the events for the weekend. We discussed for around 2 hours and divided the tasks among all the FSMK volunteers. We had planned few run-up events before the National Conference on Open Source which is going to be held on 20-21 March. Two of the main events that we had planned were a freedom walk of 2 groups of students on Garuda Mall and Jayanagar on Saturday and the release of “namma debian” and a photo gallery of Mani’s art in AC3 on Sunday.

So as decided during the meeting, early morning on Saturday, me and Naveen went to 3 different engineering colleges on Bannerghatta Road and met the concerned authorities over there and asked their permission to stick posters on the notice boards and also asked if during the weekend we could talk personally to students and get some on-the-spot registrations for the conference. Luckily we got positive response from all the 3 engineering colleges but unfortunately since all the colleges had holiday on Saturday we could not directly talk to students. However I am sure we will follow it up during this week. We finished visiting the colleges in the afternoon and then we geared up for the Freedom walk on Jayangar. We had decided to meet YDIT students at 4:00 at Jayangar 4th Block bus stand. So at around 4:30 we, around group of 10, started our Freedom Walk carrying the banner of National Conference and distributing pamphlet. We tried to explain to anyone who showed even little interest in discussing with us about the event. I am pretty sure we were able to distribute pamphlets to around 200 people and also explain to around 50-75 people personally and in detail about the conference. The group at Garuda Mall which was a much bigger group of around 35 students must have had a much more impact on people and must have really caught a lot of attention. The Freedom Walk stopped at around 7 after which I went back to my aunt’s house where in I again enjoyed a lot and celebrated the birthday of Meghna with other PG girls at midnight.

On Sunday, I met other FSMK volenteers at AC3 in the evening and we started preparing for the event. There was lot of excitement among the slum people. They helped us in all the ways they could in organizing the stage and cleaning up the venue. By around 5:30 we had around a group 75 people other than FSMK volenteers with atleast 30-40 children. The event started with a inspiring speech by G Ramakrishna, Editor of Hosatu. He told people how they could change their lives by working hard and giving education to their children instead of leaving everything for the fate to decide for them and complaining about all the problems in their life. After that, a small boy gave a wonderful speech about Mr. B.R. Ambedkar’s life and also how all the holy-books of different religions regards the gift of knowledge and education much higher than any other worldly gifts. He explained these facts by reciting specific examples from Bhagvad Gita and Kuraan. This was followed by the main event of the program which was the release of “Namma Debain” cd. It is a flavor of debian in Kannada language which we plan to distribute in villages throughout Karnataka so that people who are only literate in Kannada language can also use computers for their day-to-day life without any hassle. This was followed by a brief demo of the Namma Debian where in we tried to explain to the slum people how easy it was now for them to use computers now. This was followed by a display of different pictures made by Mani using the GIMP software. Then we had few cultural activities by the slum children. It was a great event and I was proud to be a part of it. I could see the impact that AC3 was having in the slum and this made us more determined to start such centers through out the city.

March 1, 2010

Why I did not subscribe to Google Adsense?

by viggy — Categories: tech — Tags: , , Leave a comment

Around 4-5 months ago I had an idea of starting a portal dedicated only to all the errors faced by GNU/Linux users. I had thought that if there is one portal where every user can post and search for the error message that he got while using GNU/Linux, sooner or later these portal will become a good database of all the commonly found errors faced while using GNU/Linux. And then I had thought of using Adsense to generate money to maintain portal and if possible make some profit myself.

However the main question that I asked to myself before using Adsense was “Can I restrict the Ads that are displayed through Adsense?” Because I didnt want the portal to end up promote any proprietary softwares through google adsense? I knew about Adbard then, but I did not believe using Adbard would help me earn as much as Adsense. Anyways I thought that google must have some way through which I can restrict some ads or allow only a category of ads. So when I asked this question in the Google Adsense help forum they told me that unfortunately they did not have any category for proprietary softwares. Anyways I figured out Adbard was the only solution for my problem.

I remembered the situation after all these days when I opened a blog by a core developer of Ubuntu Server and I see MIcrosoft Online Services ad, sad isnt it?
Why Open source enthusiasts should not use Google Adsense?