Put your favorite music as startup sound in ubuntu 10.04.

scope: This article was written for ubuntu 10.04 but it should be equally useful for versions 9 to 11.04

Ubuntu requires system sounds to be in .ogg audio format. If you have in ither format like mp3 then you need to download some audio editor like audacity (my favorite) to do the work.

Now lets assume you have selected your favorite music and chopped it  to proper length and converted to .ogg format using audacity. like below.

This was the difficult part now comes the easy part :-)

Continue reading

Adding a directory to the PATH variable in ubuntu

a. For current user (only for current use)

PATH=/usr/java/jdk1.5.0_08/bin:${PATH}
export PATH

b. For current user (daily use)
Edit .bashrc file in your home directory.

sudo vi ~/.bashrc
PATH=/usr/java/jdk1.5.0_08/bin:${PATH}
export PATH

restart the terminal.

b. For all users one has to edit /etc/profile file.

sudo vi /etc/profile
PATH=${PATH}:/opt/jdk1.5.0_04/bin/;
export PATH

How to easily set default operating system in ubuntu 10.04

I am writing this post for ubuntu 10.04 but it should be applicable to other versions as well. If you find some problem please report me.

If you want finer control on boot configurations you can read this post.

I would provide a simple way of choosing default operating system.

1. goto Terminal (Applications –> Accessories –> Terminal) and type ‘startupmanager’ without quotes.

(If startup manager is not installed write ‘sudo apt-get install startupmanager’ to install it.)

Continue reading

Syncronize everything with Google chrome

I always loved Google chrome, mainly because the way we can install applications in it.

And one good thing about all applications, bookmarks, passwords is that they can be synchronized across computers and operating system with Google sync.

I have lots of applications installed in my chromium in Ubuntu 10.04. So to get all this setting in Windows 7 chrome I do as follows.

1. I goto preferences in google chrome.  icon.

2. Click on setup chrome sync.

3. Enter your Google ID and password. And voila !! your bookamarks and applications will appear in other computers – Of course you need to setup sync in other chrome too.

common tasks in ubuntu

I will be putting some tasks which we need to perform quite frequently in ubuntu (Or any other linux distribution). It will be greatly helpful for ubuntu beginners and good reference for experienced guys. (I have tested all hacks in ubuntu 10.04)

1. Adding a directory to the PATH variable (useful when installing Java).

2. Performing tasks as a system root.

3. Adding/enabling trash icon in ubuntu 10.04.

4. Checking the version of ubuntu installed.

goto terminal (Applications -> Accessories -> Terminal or press Ctrl + Alt + T)

Type

lsb_release -a

5. How to easily set default operating system in ubuntu 10.04

6. Put your favorite music as startup sound in ubuntu 10.04.

Getting the information of installed packages in Ubuntu 10.04

Many times it is necessary to get the path of the package u have installed in ubuntu (e.g. Java). To get that use following commands in terminal.

dpkg --get-selections | grep jdk

output:

 default-jdk  install
 openjdk-6-jdk  install
 openjdk-6-jre  install
 openjdk-6-jre-headless  install
 openjdk-6-jre-lib  install

You can get the files references by the package by giving -L option. e.g.

dpkg -L openjdk-6-jdk

Output should be something like this.

/usr/lib/jvm/java-6-openjdk/bin/jar
/usr/lib/jvm/java-6-openjdk/bin/jarsigner
/usr/lib/jvm/java-6-openjdk/bin/javac
/usr/lib/jvm/java-6-openjdk/bin/javadoc
/usr/lib/jvm/java-6-openjdk/bin/javah
/usr/lib/jvm/java-6-openjdk/bin/javap

It clearly shows that java is installed in /usr/lib/jvm/java-6-openjdk/bin/ .

Installing Android in PC using virtualbox

Hi friends,

I was configuring network for my project then I came to know that there is a version of android – Live android – which we can install on our PC. I decided to give it a try using virtual Box in ubuntu 10.04. Same procedure should be applicable if you are using virtual box in windows.I will demonstrate the steps below.

1. download and install virtual box from this link.

2.  download Live android from here . The sould be two files .001 and .002 download them both and join using HJsplit. you will get liveandroid iso file.

3. In VirtualBox, create an new disk of about 2 GB size and minimun 256 MB of RAM.

Continue reading

starting with building a cloud?

Hi friends,

Now a days I am doing an summer internship project on building a private cloud. I went through many options and finalized on eucalyptus. It looks promising.

There is an introduction video on cloud computing worth watching.

Introduction to private cloud computing

Title: Introduction to Private Cloud Computing

By: martin Mickos – CEO eukalyptus

Topics Covered:

  • Cloud Computing Layers
  • Deployment Models (Public, Private & Hybrid)

 

One thing I liked most about eucalyptus is community cloud where you can try your cloud options for no cost.. !

Will update you on my progress. C u till then.

My presentation regarding Mini project on Data mining

I have recently given a seminar on my Data mining mini project.

Topic for my mini project is ‘Proactive Detection of Software Aging Mechanisms in Performance’

Summary:

Software aging is a phenomenon in which the state of the software system degrades with time. It happens due to many reasons such as  unreleased file locks, accumulation of un terminated threads, fragmentation etc.

This project aims to implement a tool which will determine the possible crisis due to software aging beforehand.

Link to presentation.

Function to shuffle N numbers starting from zero in c#

In my implementation of genetic algorithm I needed to shuffle N numbers randomly.

I wrote the following code for the same. It works just fine for any value of N.

Code is quite self explanatory.One can extend the code to start from any number or shuffle an array quite easily.

Sample input: 10

sample output: 5,3,6,8,1,4,0,2,9,7

Continue reading

Follow

Get every new post delivered to your Inbox.