Sunday, April 29, 2012

Installing netbeans on Linux


NetBeans 6.5 IDE
NetBeans is one of the best integrated development environment (IDE) for developing with Java, JavaScript, PHP, Python, Groovy, C, C++, Scala, Clojure, as well as object oriented modeling and designs. It is open source and freely available IDE. It comes in a shell package on the internet. Many times we get confused about the installation of NetBeans for Linux OS.
In order to install Java oriented NetBeans, we must have installed JVM on our computer. Following are the steps to install offline NetBeans on the Linux system:

To install NetBeans IDE:

1.  Download the IDE setup file (extension .sh) from http://netbeans.org/downloads/

2.   Open the terminal and navigate to the directory that contains the installer file with .sh extention.

3.   Change the installer file's permissions to make the binary executable by typing from a command prompt:

        $ chmod +x executable_shell_file_name

        This will make your executable_shell_file_name executable. By
typing ‘ ls –a ‘ command, you can check the rwx permissions of the
file.

4.   Launch the installer by typing:

        $ ./executable_shell_file_name

5.   The installer searches for installed JDKs and prompts you to specify which the installer should use. You can also specify which JDK the installer should use from the command line. For example:

  $ ./ executable_shell_file_name -is:javahome path_to_your_jdk

6.   The installer will ask the directory to install. Choose it and press next.
  
Launching NetBeans IDE

To start the IDE:

    Navigate to the bin subdirectory of your installation.
    Execute the launcher script by typing ./netbeans.   

Depending on the Linux distro that you are using, you can find the installed file in the ‘applications’.

Saturday, April 7, 2012

Creating 'root' in Ubuntu


First time, when I used the Ubuntu operating system I found that the setup does not ask for the ‘root’ or its password! It accepts any user name that we want and then we may give any password to it. After installation it shows all accounts that we have created at the startup screen. I was wondered about the ‘root’ and its password also. It was my mistake that I have not searched the process to create the root on internet. I thought the main admin will be our root. But, I know that there is no any Linux distro without ‘root’.

Last month, when I was writing the RPC (Remote Procedure Call) programs on my Ubuntu system, it was not working and refusing the connections again and again. The same program I got executed on Redhat enterprise linux in my college! I tried lot of things and searched on the internet also but I did not find any solution to run the RPC on Ubuntu system. Finally, I mailed this to Prof. Chitrakant Banchhor in SCOE, Pune. He has given me the solution to create the root on Ubuntu. Then, my RPC worked under Ubuntu! We need to have admin (root) rights to run any RPC program under any Ubuntu or Debian distributions!

Here is the process to create it:

1.   Open the terminal in any administrator.
2.   Type:                sudo passwd root
3.   It will ask for your current admin password. After typing it, it will ask to type new root password twice!
4.   After typing it, your root will get established!
5.   We may switch to root temporarily by
su
<typing password>     
6.  In order to login to root, we need to choose the option ‘other’ at user login screen. Type ‘root’ at login name and then password.