Archive for October, 2011

“Send To” script for Nautilus in Ubuntu

So for all those people who have always been Windows users and now want to move to Linux, there are some things which we miss a lot in Linux or want in Linux.

The “Send To” menu is one of them. I used to miss it a lot as well, but not anymore. I wrote a Nautilus Script to add the “Send To” menu to my Nautilus right click menu.

Here’s the steps to get your own custom “Send To” menu item in Nautilus :

First of all move to the following folder

                                $cd ~/.gnome2/nautilus-scripts

Then create a file in this folder and name the file whatever you want your menu item to be

                                $touch “Send To”

Add the execute permission for this file

                                $chmod +x “Send To

Edit this file and add the following code in this file

                                ## Authur : Sushant Bhosale <>
                                cd ~/
                                gnome-terminal –command=’./’
                                exit 0

Now go to the home directory and create a file named “” and add execute permission to it

                                $cd ~/


                                $chmod +x

Edit “” and add the following code in the file

                                ## Author : Sushant Bhosale <>
                                cd /media/
                                while [ $i -lt $len ]; do
                                                                echo “$i: ${array[$i]}”
                                                                let i++
                                echo “Enter the folder to copy: “
                                read ch
                                for FILENAME in $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
                                                                cp $FILENAME /media/${array[$ch]}
                                exit 0

Just save and copy with just few clicks. . .

Another good feature of this script is that it asks the user for the drive to copy file to, so you can use it to copy file to any mounted drive.

The reason for using two scripts is that nauitilus-script runs in background instead of in a terminal, but we needed the user input in this case so had to use two scripts.

I’ll upload the files here for downloading, link at the bottom of the post.

"Send To" in Right Click

Enter the Drive to copy the file into.

Note : WordPress won’t allow me to upload .txt or .sh file so I changed the extension to .doc, just change it back to .sh prior to downloading.

Here’s the link for “Send To” file. Rename this file from “Send To.doc” to “Send To”

Here’s the link for “list” file. Rename this file from “list.doc” to “”.


“Add To Playlist” in Ubuntu

For a long time now I have been using Ubuntu 11.04 (with Unity) as my primary OS. I like to listen to music and I use Audacious as my default audio media player whose official website is here, but the website is not informative so you can find more information about it here on wikipedia.

One issue in Unity is that drag and drop is not easy (or maybe it is!!! in the stable release. but since am using alpha release it doesn’t really work for me). So whenever I want to listen to songs and want to add them to my Audacious playlist I have to do a lot of minimizing and maximizing. I was an Windows user so I always used Winamp on windows, which by the way allows to add songs into the playlist just by right clicking on them. I always wanted this feature on Linux. But no software supported this.

So I decided to take issues in my own hands. I found a script about adding the menu item when you right click on a file. And I used it to execute a script which adds that file to the current playlist in Audacious :).

Here’s the steps to get your own custom “Add to Playlist” menu item in Nautilus :

First of all move to the following folder

                                #cd ~/.gnome2/nautilus-scripts

Then create a file in this folder and name the file whatever you want your menu item to be

                                #touch “Add to Playlist”

Add the execute permission for this file

                                #chmod +x “Add to Playlist”

Edit this file and add the following code in this file


                                ## Sushant Bhosale <>
                                ## The code is Free and Open Source

                                IFS=$’\n’                                                                ##IFS(Internal Field Separator), Google for more info.

                                for FILENAME in $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
                                                                audacious2 -e “$FILENAME”

                                exit 0

Save and enjoy!!!

Add To Playlist

Peb (Vikatgad)

Some of my classmates went to Peb (Vikatgad) in July and when I saw their pics on facebook, I (actually we all) felt  like doing this trek.

Team :

Sushant Bhosale (Me),
Prashant Chaudhari,
Aditya Shelar,
Tushar Tapkir and
Amogh Lale

Date : 21st Aug 2011

Place : Neral, Karjat, Raigad

Peb (Vikatgad)

Route : Pune Station(via Train) -> Neral -> Fanaswadi(via Rickshaw).

Time from base village : 2 hours.

Difficulty : Medium

History :

Not much is known about the history of this fort.

So here goes. . .

Me and Prashant left for Pune Station early this time because we were supposed to catch the 7 am Sahyadri Express to Neral. Neral is small town just 2 stations ahead of Karjat and surprisingly Sahyadri Express is the only train that halts at the Neral Station. We reached Pune Station by 6:35 and took the tickets for 5 of us.

This time Amogh had agreed to bless us with his company. We bought the tickets and called Amogh only to hear that the boy was still sleeping. The train also halts at ShivajiNagar Station, so we told him to board the train at ShivajiNagar. The train was delayed by 20 mins at Pune Station itself. So Amogh easily boarded the train at ShivajiNagar station.

It was pleasant ride from Pune to Neral, train took about 3 hours to reach Neral, By 10:30 am we were in Neral. We had a little breakfast and then took a rickshaw to Fanaswadi, its a 10 mins drive about 2-3 kms, you can even take a walk.

View of the fort!!!

The trek kicks off from Fanaswadi. The start is a little confusing or at least it was to us, because of thick vegetation the road wasn’t visible. Just remember to follow the big electric poles.

Wrong Way along side the stream.

Electric Poles

The climb is tiring but very beautiful. It has dense vegetation and being the rainy season we had to walk through some patches of dense forest. Upon walking further we came across an hollow tree, classic creation of nature. JUST AMAZING!!!

Hollow Tree

Further ahead again there is a confusing turn, either you go straight or turn right. The correct way is to go straight. It gets confusing because of small waterfalls on both straight and right side and its hard to tell which path to take.

What awaits further is long but easy rock patch. The patch is very easy to climb and you’ll be on top in no time.

View from the rock patch.

After here we had to cross some small rock patches where water were flowing but steps were engraved on the rocks to make it easier to cross. In 10-15 mins we reached the cave on top. We met Mr. Athalle (known as Athalle sir), we had heard about him from our friends who visited the fort just last month. Athalle sir has been living on the fort itself from last 30 years. He is an IIT alumna and has done specialization in plumbing. He is the guy responsible for the beautiful cave and temple on the top of the fort. Very interesting guy to meet.

Cave on the fort.

Me and Athalle Sir

The cave has been maintained in a very nice manner. The walls have various shlokas painted in Sanskrit.

Inside the cave

Effigy of Shivaji Maharaj


We sat there in the cave for some time and then started our walk further. Up ahead we noticed an square opening in the wall, we were told that there is a 5ft*5ft room ahead through that opening. The opening was very small so none of us ventured in there.

Opening in the mountain.

And from the cave only you can see the steel steps built ahead to climb the wall. These are the steps which you would see pop up in Google image search if you search for Peb trek.


Water Cistern

There is an eating place on the top, where you can order and get food.

Eating Place

There are two sets of steel steps you need to climb down on your way towards the railway track. Yes railway track, there is a toy train which runs between Neral and Matheran. This train has a stop for Vikatgad. On our way back we had to reach this track at point NM158 and walk on the track to the point NM134. NM134 is the point where road to Matheran meets the railway tracks, from where we could get a ride back to Neral.

Steps Again!!

View from the top of the steps

We spotted a snake.

Once you reach the tracks you have to take a left. If you take right you’ll reach Matheran.

Train Tracks

Walk on the track is a very pleasant one, we got to see some of the best creations of the nature.

View from the tracks

View from the tracks

There are quite a few waterfalls as well on the way to NM134.

Water The Fall

And finally NM134 came and we saw the road. We took a trax back to Neral.


From Neral we took a local to Karjat and from Karjat boarded a train to Pune. The ride back from Karjat to Pune was hell. The train was jam packed and we came standing all the way from Karjat to Pune, its a 3 hour train ride, after a whole day of walking.