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 http://oss.oracle.com/debian unstable main non-free


Save and close the file.

2. Open the terminal and type:

varsha@varsha-laptop:~$ wget http://oss.oracle.com/el4/RPM-GPG-KEY-oracle -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:

http://127.0.0.1:3128/apex

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.



Note:

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.

Installation

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
Password:


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.

Here,

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 127.0.0.1.


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 http://aifcanada.com/flash64.tar.gz.
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 ./flash.sh

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 http://ubuntuforums.org/showthread.php?t=1233235.




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. Last.fm 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.


4.
To compile the package,

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

5.
Finally, to install,

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

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
/home/varsha
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
varsha@varsha-laptop:~/.dc++$


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
varsha@varsha-laptop:~/.dc++$


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

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


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. :)