December 17, 2009

Creating Application Launcher For Composing Mail

You can create an Application Launcher for composing mail, without opening Gmail (or any other mail). To do this, do the following:

1. Right click on the desktop, and select Create Launcher....

2. You can also create a new item in Applications.

i) Right-click 'Applications', and select Edit Menus.
ii) Select an appropriate menu (Internet in my case) or create a new menu by clicking New Menu, although this isn't necessary. Create an item by clicking New Item.

3. Write firefox mailto:// in the field Command. Give an appropriate name and add a comment if required.

4. Drag the launcher to any of the panels, if required, for the ease of launching.

5. Click the launcher to see your mail editor open up.

You can now compose and send mails.

December 1, 2009

Tata Indicom USB Modem On Ubuntu 9.10

To successfully configure my Tata Indicom Plug2Surf Modem, what I did was,

1. Insert the modem, and then open the terminal and type,

varsha@varsha-laptop:~$ sudo wvdialconf

2. Type,

varsha@varsha-laptop:~$ sudo gedit /etc/wvdial.conf

Edit the file:

Phone = #777
Password = internet
Username = internet

I am not sure if any other username and password would work, because it did not really work for me.

3. Save the file and exit the editor.

In addition to what you have done above, add the name of your modem in the Network connections. For this, right-click the Network Icon on the top panel. Then, do the following.

1. Select the tab Mobile Broadband. Click Add.

2. Click Forward (take the default settings on the first page).

3. Select India and click Forward.

4. Select the appropriate provider (Tata Indicom Plug2Surf in my case). Select I can't find my provider and I wish to enter it manually if you don't find your provider in the list. Click Forward.

5. Click Apply.

6. Take the default #777 in the Number field, and enter internet (as you have edited the /etc/wvdial.conf file) in the Username and Password fields.

7. Connect automatically and Available to all users are optional.

8. Click Apply.

9. Select the name of your connection from the list and you will see that connection is established.

Happy surfing!


November 25, 2009

Download Manager Gwget For Ubuntu

Downloading large files might consume much of your precious time, which is why most people prefer using some download manager. I never felt the need to install one myself, but it just occurred to me that I should try one, because I might need it one day for downloading some large files.

Check out the list of various download managers available at

I installed Gwget, which offers a GNOME front-end to the Wget application.


Open the terminal, and type,

varsha@varsha-laptop:~$ sudo aptitude install gwget


1. Select Gwget Download Manager from Applications-> Internet.

2. Click New. Copy-paste the URL of the file you want to download and browse the directory where you want to save it.

3. Click OK.

November 21, 2009

Rectifying apt-get GPG Error

The following apt-get error is quite common while updating.


W: GPG error: karmic Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 991E6CF92D9A3C5B

Generally, we just try searching for a public key and and adding the key to the apt key-list, which sometimes doesn't work.

There is a better option. Try any one of the following links.




All you have to do is:

1. Copy-paste the key from the error on the terminal to the search-box, preceded by 0x.

2. Click Submit Query.

3. Click on the link next to pub.

4. Add the key to the key-list by typing in the terminal,

varsha@varsha-laptop:~$ wget -q "" -O- | sudo apt-key add -

Note that the server address may vary. So, make changes accordingly in your command.

An OK in the next line tells you that the key has been successfully fetched from the key-server.

You can repeat the above steps if you get the error for more than one key.


November 13, 2009

Backing Up home Directory

A few days back, I suddenly started facing many problems, all at the same time. Many of my software started misbehaving, and eth0 (ethernet) failed to connect (two instances). Later, on booting, an error showed up saying that /home couldn't be found. Thankfully, I had another account. Using that account, I did the following.

1. Open the terminal, and type,

oracle@varsha-laptop:~$ su

Enter the root password, when prompted.

2. Go to your home directory, and list all the files and directories.

root@varsha-laptop:/usr/lib/oracle/xe# cd /home
root@varsha-laptop:/home# ls
lost+found samba varsha varsha1

3. See if directories of your home directory are accessible using cd.

root@varsha-laptop:/home# cd varsha
root@varsha-laptop:/home/varsha# ls

4. Estimate file size.

root@varsha-laptop:/home/varsha# du -sh /home/varsha
12G /home/varsha

5. Copy home directory to another disk having free space.

root@varsha-laptop:/home/varsha# cp -R /home/varsha /media/disk-1

You can now install Linux, and copy the important documents to the home directory.

Giving sudo Privileges To A User

The /etc/sudoers.tmp file must be edited, in order to give sudo access to any user.

1. Open a terminal and type,

varsha@varsha-laptop:~$ EDITOR=gedit sudo visudo

visudo is used for editing the sudoers file. See the manual for more details.

varsha@varsha-laptop:~$ man visudo

2. At the end of the file, append,

system_username ALL=(ALL) ALL

where system_username is the username of the user whom you want to give a sudo privilege.

Graphically, it can be done as given in this tutorial.

Reinstalling GRUB

GRUB is generally lost due to Windows install or if your MBR gets erased. Follow the simple steps given below to restore GRUB.

1. Boot your computer using a Linux live CD.

2. Open a terminal and type,

liveuser@liveuser-laptop:~$ sudo grub

This gives you the grub prompt.

3. To inform the GRUB about the location of the GRUB files, we should know it ourselves first. Generally, it is (hd0,1), which means hda (primary controller master) in the second partition.

If you know where they are, type ,

grub> root (hd0,1)

Else to find out, type,

grub> find /boot/grub/stage1

4. Then install it on hd0 (or any other hard drive in your case), which is the MBR of the first HDD.

grub>setup (hd0)

5. To quit, type

grub> quit

6. Reboot your machine.

liveuser@liveuser-laptop:~$ reboot

The GRUB menu appears on system reboot.

New RSS Feed For Twitter

I have taken up a project (in fact my first ever project) under Shreyank Gupta (of Red Hat) as my mentor for making an RSS feed for Twitter.

The following are the plans for the software.

1. It will be made using Ruby on Rails (RoR).

2. It will accept RSS feeds of Twitter in an xml file.

3. It will have a database for storing the tweets, and additional features can be added later.

4. Any tweet can be clicked to get a conversation if available.

5. I plan to complete the software in 2 months, starting from 28th December 2009. The first fifteen days will be utilized for learning RoR.

6. A testing model will be ready within the third week of February. After any required changes, the final working model will be ready by the last week.

I hope I will be able to complete the software as per the above-laid plans.

November 11, 2009

Installing Flash Player on Ubuntu 9.10

Flash player, useful for watching videos online, can be downloaded and installed as follows, on Ubuntu Karmic.

1. Download the plugin from here.

2. Save the file. I saved it in my 'Setup_Files' directory.

3. Open the terminal, and cd to the directory where you have saved your file.

varsha@varsha-laptop:~$ cd /home/varsha/Setup_Files

4. Uncompress the file.

varsha@varsha-laptop:~/Setup_Files$ sudo tar -xzf install_flash_player_10_linux.tar.gz

5. Copy the extracted file to the 'Mozilla plugins' directory.

varsha@varsha-laptop:~/Setup_Files$ sudo cp /usr/lib/mozilla/plugins/

6. Delete the tar.gz and the extracted file, if you want to, using the rm command.

varsha@varsha-laptop:~/Setup_Files$ rm

October 31, 2009

Restoring Empty Applications Menu in Ubuntu 9.04

Somehow my Applications menu got empty. I wasn't getting the list of applications on clicking it. I did the following, which had it restored.

1. varsha@varsha-laptop:~$ cd /home/varsha/.config/menus/

varsha@varsha-laptop:~$ sudo gedit

If this is blank, this is the reason for your Applications menu being empty.

2. varsha@varsha-laptop:~$ cd /etc/xdg/menus/

varsha@varsha-laptop:~$ sudo gedit

Copy the contents from /etc/xdg/menus/ to /home/varsha/.config/menus/

Save the file, and restart your system.

I hope this solves your problem.

October 20, 2009

Removing Old Kernels In Ubuntu

After upgrading your OS, you will find that there are multiple kernels on your system. This is because, new kernels have been installed, while your old kernels still remain. In order to free your GRUB and system from the old not-needed kernels, you can do the following.

1. Find out your recent and the latest installed kernel.

varsha@varsha-laptop:~$ uname -r

You will get a similar output. This is the latest kernel installed on your system, and the one in use. This one is to be kept. Do not remove this. The kernels to be removed must be older than this.

2. Go to your Synaptic Package Manager via System-> Administration.

3. Hit Ctrl + F, and type linux-image-2, or type it in the Search box, and click Base System on the left pane. You get the list of installed kernels.

4. Carefully remove the old ones, by clicking them and selecting Mark for Removal. Then click Apply. Be careful. Do not remove the current kernel.

At the next system startup, you will see that the old kernels have been removed.

October 11, 2009

New GIMP Brush Sets

Visit the link

Now, I guess you must have already installed these awesome brushes. I tried and really liked the way these new brushes can be used.

I tried them out myself, although I do not know how to use GIMP much.

To use these newly installed brush-sets, select Paintbrush from the Toolbox, and select the required Brush from the lower pane.

Converting jpg files Into pdf

This is really useful for students, as I am one of them too. Converting separate jpg files into a single pdf file is one of the most needed tasks anytime, but especially before the exams. What you have to do is:

1. Install imagemagick.

varsha@varsha-laptop:~$ sudo apt-get install imagemagick

Enter your root password.

imagemagick is installed.

2. Change to the directory where you have your jpg files.

varsha@varsha-laptop:~$ cd /media/disk/Study/Notes/

3. Convert.

varsha@varsha-laptop:/media/disk/Study/Notes$ convert *.jpg Notes-9.10.09.pdf

Happy studying!

Not only jpg to pdf, but imagemagick can also be used to convert image files from one format to another.

October 5, 2009

Sharing On LAN Using Samba

1. Install Samba.

But a few additional changes may be required.

2. Open the file smb.conf.

varsha@varsha-laptop:~$ sudo gedit /etc/samba/smb.conf

3. In the [global] section, add the following line.

netbios name = 'name'
workgroup = 'workgroup'
usershare owner only = false

Rename your workgroup according to your Windows settings, and 'name' identifies you on the network.

Under [MyFiles],

force user = 'name'
force group = 'name'

Choose the 'name' carefully.

4. Then right-click any directory you want to share and select Sharing Options. Then check Share this folder, give an appropriate name to it, and click Create Share.

Notice that you get a small icon near the shared directory.

Hope it works for you!

October 4, 2009

How To Make Firefox Faster

I read the article, and found it really useful. The URL was updated on Twitter by Web Upd8. Here is the link:

I did not try all of the given tips, but my browser is faster than before, I realized. :)

September 11, 2009

Gmail As Default Mail Application on GNOME

Gmail can be used as the default mail application on GNOME desktop.

For Ubuntu, I did:

1. Download the .deb package gnome-gmail_1.2-1_all.deb.

2. Open the terminal and cd to the directory where you have saved the package. I had saved it on my Desktop.

varsha@varsha-laptop:~$ cd ~/Desktop

3. Then install Gnome Gmail.

varsha@varsha-laptop:~/Desktop$ sudo dpkg -i gnome-gmail_1.2-1_all.deb

Another way to install is to double-click the package and click Install Package.

This installs Gnome Gmail on your system.

4. Go to System-> Preferences-> Preferred Applications.

5. Select Gmail under Mail Reader.

[Source: 'Gnome Gmail' Allows Gmail To Be Selected As The Default Mail Application for Gnome [Linux]]

August 27, 2009

Google Chrome On Ubuntu 9.04

Installation of Google Chrome

1. Download this package.

2. Double click the deb package and install it by clicking on Install Package.

You can start Google Chrome from Applications-> Internet-> Google Chrome.

Installation of Flash Plug-in In Google Chrome

1. Follow the steps given here.

2. If step 1 fails, you can try reinstalling your Flash plug-in from Synaptic Package Manager.

I hope it works. It did for me.

August 20, 2009

Oracle on Ubuntu

Installation Steps

1. Add the desired repository.

varsha@varsha-laptop:~$ gksudo gedit /etc/apt/sources.list

Enter the user password when prompted. Go to the last line and enter

deb unstable main non-free

Save and close the file.

2. Open the terminal and type:

varsha@varsha-laptop:~$ wget -O- | sudo apt-key add -

3. Then update using,

varsha@varsha-laptop:~$ sudo apt-get update

4. After updating, install the package.

varsha@varsha-laptop:~$ sudo apt-get install oracle-xe

This may take along time.

5. Next step is to configure the Oracle database.

varsha@varsha-laptop:~$ sudo /etc/init.d/oracle-xe configure

6. When prompted, enter the port for the database application. The default port is 8080. I opted for 3128 (as per the proxy settings of my college).

7. Enter the port for the database listener, which by default is set to 1521. I chose not to change this.

8. The username for logging in is 'system' or 'sys'. Enter a password for this.

9. Enter y or n depending on whether you want the database to run at system startup.

Installation completed!

Starting the Database

There are two ways of doing this.

1.Type in the terminal,

varsha@varsha-laptop:~$ sudo /etc/init.d/oracle-xe start

2. Click Start Database from Applications-> Other.

Stopping the Database

There are two ways for this.

1. Type in the terminal

varsha@varsha-laptop:~$ sudo /etc/init.d/oracle-xe stop

2. Click Stop Database from Applications-> Other.

Logging In

There are two ways for doing this as well.

1. For working in the SQL Plus environment, select Run SQL Command Line from Applications-> Other. Type:

connect username/password

2. Open your browser, and type in the address bar:

Note: Use the port that you specified during configuration, or use the default port if you had opted not to change it.

Then log in using your username 'system' and the password that you created while configuring the database.

Running SQL commands

Select SQL-> SQL Commands-> Enter Command.

Other Features Of Oracle

For using other features, browse about to find out.


1. Make sure you add your username to the 'dba' user-group.
Go to System-> Administration-> Users and Groups. Click Unlock, and provide your user password. Click Manage Groups. Select 'dba'. Click Properties, and check your name under Group Members. Click OK.

2. In my case, I have to switch to user 'oracle', to start the database, and then log in back as a normal user in order to use the database. In case you are not able to connect to server when logged in as a normal user, try doing this. It might help. A second option will be to make 'dba' your main group. Go to System-> Administration-> Users and Groups. Unlock by providing the user password. Select your username, click Properties and under the tab Advanced, select 'dba' from the menu against Main group. Save your changes.

August 18, 2009

Thesaurus On Ubuntu 9.04

Need an excellent thesaurus? Tired of searching the web for every single word? We have this excellent, completely offline and easy-to-use thesaurus named Artha. There may be other thesauruses as well, but I was really enchanted by the simplicity of this WebNet based free English thesaurus.


1. Artha requires three development libraries which are wordnet, glib and gtk+. These have to be installed prior to the installation of the thesaurus. Open the terminal and install each of them one by one.

varsha@varsha-laptop:~$ sudo aptitude install wordnet-dev
varsha@varsha-laptop:~$ sudo aptitude install libnotify-dev
varsha@varsha-laptop:~$ sudo aptitude install libdbus-glib-1-dev

There are some optional requirements, namely notify and dbus-glib. To install them,

varsha@varsha-laptop:~$ sudo aptitude install libnotify-dev
varsha@varsha-laptop:~$ sudo aptitude install libdbus-glib-1-dev

Doing this will install the latest version of these libraries. Note that you can also use apt-get instead of aptitude.

2. Go to the download page and download any of the packages. I chose the artha-0.9.1.tar.gz package.

3. Download the package and save it on your Desktop.

4. Extract the downloaded package.

5. cd into the extracted directory.

varsha@varsha-laptop:~$ cd /home/varsha/Desktop/artha-0.9.1

6. Configure, using the following command.

varsha@varsha-laptop:~/Desktop/artha-0.9.1$ ./configure

To install in some other directory other than the usual /usr/local,

varsha@varsha-laptop:~/Desktop/artha-0.9.1$ ./configure --prefix=/desired_directory

Read the INSTALL file.

7. To compile,

varsha@varsha-laptop:~/Desktop/artha-0.9.1$ make

8. Become a superuser.

varsha@varsha-laptop:~/Desktop/artha-0.9.1$ su

9. Then install,

varsha@varsha-laptop:~/Desktop/artha-0.9.1# make install

This completes the installation.

You will find Artha under Applications-> Accessories.

LAMP Installation On Ubuntu 9.04

An Insight Into LAMP

LAMP is an acronym that is expanded as Linux, Apache, MySQL and PHP/Python/Perl. LAMP is a software bundle that comes to aid when creating dynamic web sites or servers. In other words, LAMP is a popular Open Source web platform that establishes a foundation for development of high performance web applications. It deals with the definition of a web server infrastructure, creation of a programming paradigm and creation of a software distribution.


1. Linux is the Operating System
2. Apache is the Web Server
3. MySQL is the Database Management System
4. PHP/Python/Perl is the scripting language

Installation of LAMP

1. Open a terminal and type

varsha@varsha-laptop:~$ sudo apt-get install lamp-server^

Press Enter. This might take a lot of time, depending on your internet connection speed.

2. When you are prompted to do the package configuration, enter a password of your choice for the user root. Re-enter the password in the confirmation screen. This will take you back to the terminal.

After some time the installation is completed.

But, we need to test whether the installation is indeed successful. For this do the following.

Testing Apache

Type http://localhost in the address bar of your browser. If the page displays a 'It works!', then successful.

Testing PHP

1. Create a file test, or name it whatever you want, by typing in the terminal

varsha@varsha-laptop:~$ gksudo gedit /var/www/test.php

In case you are naming your file something else, be sure to replace it with the name 'test' in the code above.

2. The gedit text editor opens with a new file wherein you are to type

<?php phpinfo(); ?>

3. Save and close the file.

4. Restart Apache.

varsha@varsha-laptop:~$ sudo /etc/init.d/apache2 restart

5. Open your browser and type http://localhost/test.php in the address bar, replacing 'test' with the name of your file. If Apache has been successfully installed, you should be able to see the details of the version of PHP you are using currently, displayed on a page.

Configuring MySQL

1. MySQL has to be binded with the localhost IP address, as we are to deal with web development. Verify your localhost address. For this,

varsha@varsha-laptop:~$ cat /etc/hosts | grep localhost

2. Edit the my.cnf file.

varsha@varsha-laptop:~$ gksudo gedit /etc/mysql/my.cnf

3. Check whether bind-address has your localhost address. In my case it is

Installing phpMyAdmin(Optional)

phpMyAdmin is required to admininster MySQL database with ease.

1. Open a terminal and type

varsha@varsha-laptop:~$ sudo apt-get install libapache2-mod-auth-mysql phpmyadmin

2. When prompted, select the web server apache2 by pressing the spacebar and press enter.

3. In the next screen, you will be asked if you would like to configure the database for phpMyAdmin with dbconfig-common. By default, Yes will be selected, and if not, use arrow keys to select Yes and press enter.

4. Next, you will be asked for the administrator password. Enter the password for the user root that you had entered during installation. Use tab to select OK, and press enter.

5. Next, you will require to enter a password for phpMyAdmin. Enter a password (You may use the same password in case you have the habit of forgetting passwords). Leave it blank if you want a random password to be generated.

6. To verify that your phpMyAdmin works, open your browser and enter http://localhost/phpmyadmin/. You should be able to see the phpMyAdmin welcome page.

7. You can log in using root as your username, and the root password that you had created earlier.

LAMP installation complete!

August 16, 2009

Removing A User Account In Ubuntu

There may be more than one user accounts on a computer. Suppose you just created one, but later on decide to delete it, then you can do the following.

1. Go to System-> Administration-> Users and Groups. Click on the user account to be deleted, then unlock it if necessary providing the administrator password. But in this case, the user's home folder still exists, as it was in my case. To get rid of this, you can follow the second method which is more reliable.

2. Open a terminal and type:

varsha@varsha-laptop:~$ sudo userdel -f username

3. Then to remove the home folder, type:

varsha@varsha-laptop:~$ sudo rm -r /home/username

Check whether the user's folder is gone. It must have.

Getting Youtube Videos To Play In Ubuntu 9.04

I upgraded my Ubuntu from version 8.1 to 9.04, but ever since I had done this, Youtube videos weren't playing. I tried removing and reinstalling Flash, but unfortunately things did not work out. Later I found out that the latest Flash plug-in is required for this. This is the Flash-10 64-bit alpha plugin.

Ubuntu 9.04 (Jaunty Jackalope) is a 64-bit OS. So, in case you are facing the problem that Youtube videos are not playing properly, or not playing at all, then you can do as said below.

1. Go to
2. Save file on your system, preferably on your Desktop.
3. Extract the tar.gz file, on your Desktop.
4. Open up the terminal, and type,

varsha@varsha-laptop:~$ cd /home/varsha/Desktop/flash64
varsha@varsha-laptop:~/Desktop/flash64$ sudo ./

The process will take a few seconds, and then the Flash plugin will get installed on your system.

Now try playing any video on Youtube.

For details, you can go to

Update Your Pidgin Status With The Current Music Track

Your friends are complementing you for your marvelous music collection and choice of songs. Sounds nice? Read on.

There is a plug-in for Pidgin, known as MusicTracker. You can find it in Tools-> Plugins.

1. Search for the desired plug-in.
2. Check the box.
3. Close the window.

There you are. Start playing you favorite music, and let your friends get the updates of the current playing track as your status. You can change your settings from Tools-> MusicTracker.

But, I understand that some of you might be wondering whether this plug-in works with all the media players. Well, no.

You can try out using the player of your choice, but it may not support the plug-in.

We'll just have a brief insight into which players actually support this plug-in. I won't be hitting the topic on Windows, as that is not my area of interest. But on Linux, the following players can be employed for this purpose.

1. Amarok
1. Banshee
1. Feed
4. MPD
5. Rhythmbox

There are many others. You can check them out here.

I personally prefer using the VLC media player, but I installed Banshee for this purpose. I have Rhythmbox too. So, you too can use whichever player you are comfortable with.

August 13, 2009

Installing iptux On Ubuntu 9.04

iptux is an IP messenger client. It is used for the purpose of chatting when you don't have an internet connection (especially for those who are chat-freaks ;)), provided you are connected to the LAN. You will not find it in Add/Remove or Synaptic Package Manager.

Please follow the steps given below:

1. It requires a package to be downloaded (as I had done, but there may be other ways as well). I downloaded the tar.gz file, and extracted it.

2. Next, cd into the directory. Suppose you have the extracted file on your Desktop, then using the terminal,

varsha@varsha-laptop:~$ cd /home/varsha/Desktop/iptux-0.4.5

3. When you are into the directory, type

varsha@varsha-laptop:~/Desktop/iptux-0.4.5$ ./configure

This should do the work in most cases, but in case you face any trouble, do read the INSTALL file in the current directory you are in.
At times, using sh ./configure works.

I had a problem in configuring, as my gtk libraries were out of date. To fix this, I typed in the terminal,

varsha@varsha-laptop:~$ sudo apt-get install gnome-core-devel build-essential

This would ask for your password. Enter your root password. This is a very long and time-consuming process. But also, be sure to update your system using the package manger aptitude after the completion of the process.

varsha@varsha-laptop:~/Desktop/iptux-0.4.5$ sudo apt-get update

If the glib is successfully installed, you will be able to proceed with the iptux installation. The next step is as follows.

To compile the package,

varsha@varsha-laptop:~/Desktop/iptux-0.4.5$ make

Finally, to install,

varsha@varsha-laptop:~/Desktop/iptux-0.4.5$ make

6. Then, although this step is optional, you can remove the binaries which were used during the installation process but are no longer required.

varsha@varsha-laptop:~/Desktop/iptux-0.4.5$ make clean

Following the above steps will install iptux on your Ubuntu. You can start using the application from Applications-> Internet-> iptux.

In my case, after compilation of the package, the make install command wasn't yielding the much awaited and expected result. But I found iptux in Add/Remove Programs, and installed it from there.

August 5, 2009

File Sharing On Linux DC++

Last year, I faced a problem regarding the sharing of files on Linux DC++. I had shared the minimum size of data, and as per my knowledge, met the requirements needed to use the particular hub. But, every time I started the software, the shared size showed zero, much to my surprise and disappointment . :( I had to keep sharing every single time I used Linux DC++.

However, my problem was solved within the next day. :)

Shreyank Gupta helped me solve my problem. I was somewhat new to Linux, and did not even know the basic commands. He asked me to go to my home folder and use pwd to see in which directory I was working in currently. I did the following.

varsha@varsha-laptop:~$ cd /home/varsha
varsha@varsha-laptop:~$ pwd
varsha@varsha-laptop:~$ cd /home/versha/.dc++
bash: cd: /home/versha/.dc++: No such file or directory
varsha@varsha-laptop:~$ mkdir .dc++
mkdir: cannot create directory `.dc++': File exists
varsha@varsha-laptop:~$ cd /home/varsha/.dc++
varsha@varsha-laptop:~/.dc++$ ls
ADLSearch.xml Downloads files.xml.bz2 Incomplete Queue.xml
Certificates Favorites.xml HashData.dat LinuxDC++.xml
DCPlusPlus.xml FileLists HashIndex.xml profile.lck
varsha@varsha-laptop:~/.dc++$ echo "" > files.xml.bz2

But this did not help. I closed Linux DC++ and started it again, but the shared file-list showed all the filed and folders with a 0GB against each of them.

Then, he asked me to start sshd.

varsha@varsha-laptop:~$ service sshd start
$sshd: unrecognized service

Since sshd wasn't working, he asked me to copy-paste the list of files in .dc++ directory once again.

varsha@varsha-laptop:~$ cd /home/varsha/.dc++
varsha@varsha-laptop:~/.dc++$ ls
ADLSearch.xml Downloads files.xml.bz2 Incomplete Queue.xml
Certificates Favorites.xml HashData.dat LinuxDC++.xml
DCPlusPlus.xml FileLists HashIndex.xml profile.lck

After changing directory, he asked me to change the mode of the files shared.

varsha@varsha-laptop:~/.dc++$ chmod -R 777 *

So, changing the mode of the files solved my problem. I removed all the files from the share list and then shared again. Then, on closing and restarting Linux DC++, the size of the shared folders showed up in the list. :)

April 13, 2009

System Proxy In Ubuntu- A Bug?

I faced a problem with Epiphany. After setting the home page as Google, I tried using Epiphany. But, except the home page and a few other sites like Twitter, no other page opened. It showed 'redirecting' for sometime, then showed the following error.

Rangeen Basu helped me out of this thing. He asked me to type about:config in the address bar of the browser. Then I typed network.proxy.ssl in the filter bar. It showed the value 8080, and definitely, this wasn't the correct port, as per the proxy settings of my college. Finally, what we did was uncheck 'Use the same proxy for all protocols', and typed in the proxy for all the boxes shown.

Then I tried opening Gmail and other sites. All were opening! :)

Now, on typing about:config, and (filter) network.proxy.ssl, I get the following screen.

April 11, 2009

Downloading Videos From Youtube

Downloading videos from Youtube becomes necessary at times. There are a number of ways of doing this.

Using UTube Ripper

Please check it out yourselves : Shainky's Blog: UTube Ripper.

Click here to see how to use UTube Ripper.

When I tried using it, the download did take place, but the file was not being saved where it was supposed to be. After downloading, clicking Open Directory button, copying the file from there to some other location, say /home (if necessary) and then converting it into a .flv file by browsing for the file and clicking Convert would have been enough.

I faced many problems:

1. Utube Ripper got hanged for sometime.

2. The downloaded video was not to be found under Open Directory.

If you still want to try, then click this link.

Using DownThemAll

This is actually an addon for Firefox. All you have to do is install it, and right click the URL of the video you want to download, and select one of the two options- Save form target with DownThemAll! and Start saving form target with dTa OneClick! I installed it, to see whether it works or not. I tried both, but in either case, the entire webpage was getting saved on my computer.

Using Keepvid

So, after this, I tried Keepvid. But this did not yield any result. No download!

Using Youtube-dl

Then I came to know about youtube-dl. Thanks to Roshan Singh. I installed it using the sudo apt-get command. Then, for downloading any video,

youtube-dl URL of the video on youtube

For example, for downloading the video from this URL, all you have to do is, open the command prompt, and type:

varsha@varsha-laptop:~$ youtube-dl

[1] 20403
[2] 20404
varsha@varsha-laptop:~$ Retrieving video webpage... done.
Extracting URL "t" parameter... done.
Requesting video file... done.
Video data found at

Retrieving video data: 100.0% ( 2.20M of 2.20M) at 23.95k/s ETA 00:00 done.
Video data saved to kkNxbyp6thM.flv

This really works! It'll take a few minutes, and there you are!

Copy-Paste From Directory /tmp

I got yet another solution, which requires just a simple copy-paste. Click the following link, and enlarge the picture, to have a closer look.

But make sure you buffer the video first.

Conversion Between Document Formats

We sometimes need to convert one format of to
another. This isn't a very tedious
job, when you have a proper
convertor. One such useful tool is
Unoconv. You can install it from
System-> Administration-> Synaptic Manager
. I tried
downloading the package from:

This package can also be installed from Synaptic Package Manager.
After you have installed, you
can start converting between different
file formats, using the command given below:

varsha@varsha-laptop:~$ unoconv -f pdf some-document.odt

You can replace the given formats with the formats you want to

For more information on how to use this conversion tool, refer the
following URLs.