Monday, September 1, 2014

How to install Java in Linux

http://kaliinfo.blogspot.in/












Download , Installation and Configuration of jdk on Kali Linux

Download

1)              Open the URL

2)                 Download the file jdk-6u24-linux-i586.bin
(so this file is stored in Home folder otherwise place it in Home folder)
  

Installation
         1)                  Open terminal
<user that logged in>@<computer's hostname>:~#

What you see here is called the prompt. It signifies that the computer is ready and awaiting user input. ~ is the current directory (the user's home directory).

2)              For example you are login as
root@localhost:~#

3)              Run the command as
              root@localhost:~#bash ../ jdk-6u24-linux-i586.bin
           
                           Bash is a sh-compatible command language interpreter that    executes commands read from the standard input or from a file.
                    
          4)             Run the command as
root@localhost:~# exit
 

Configuration

5)           Open terminal

6)       Run the command as
            root@localhost:~# ln –s jdk1.6.0_24  jdk

The ln –s shell command normally uses the symlink system call, 
which creates a symbolic link. jdk1.6.0_24[target_path] 
is the relative or absolute path to which the symbolic link should point. 
Usually the target will exist, although symbolic links may be 
created to non-existent targets. jdk [link_path] is the path of the symbolic link.
 
7)                 Run the command as
               root@localhost:~# ls –l

8)                 Run the command as
               root@localhost:~# cd ..


9)                 Run the command as
               root@localhost:~# nautilus .
 
 Redirect to the current directory console.

10)             Click on view⟶show hidden files

11)             Right click on file bashrc & open with Text Editor.

12)                 Set the environment variables with following lines type in last.
  
  export JAVA_HOME=$HOME/jdk
  export PATH=.:$JAVA_HOME/bin:$PATH
 
13)                 Save it.

14)                 Run the command as
     root@localhost:~# exit

            15)                 Open terminal

              16)                Run the command as
 root@localhost:~# java -version
These commands display what version of java (the interpreter that runs Java programs) and javac (the compiler that creates them) you have installed.

You are getting screen as below.
 
http://kaliinfo.blogspot.in/

Friday, April 25, 2014

How to remove error: Your intltool is too old You need intltool 0.35.0 or later


Kali Linux









First download intltool 0.35.0 or later from here -> Gotodownloadaddress

Now just follow following steps:
  • Place the downloaded file in Home directory.
  • Open terminal
  • Type following command
 tar xvf intltool-0.35.5.tar.gz 
(It will extract files and create a folder in home directory)
I had downloaded intltool-0.35.5.tar.gz file so, you can change name as per your downloaded version of file.

 Follow given steps to install this package :

  1. `cd intltool-0.35.5' 
       to move the directory containing the package's source code and type
     `./configure' to configure the package for your system.  If you're
     using `csh' on an old version of System V, you might need to type
     `sh ./configure' instead to prevent `csh' from trying to execute
     `configure' itself.

     Running `configure' takes awhile.  While running, it prints some
     messages telling which features it is checking for.

  2. Type `make' to compile the package.

  3. Optionally, type `make check' to run any self-tests that come with
     the package.

  4. Type `make install' to install the programs and any data files and
     documentation.

  5. You can remove the program binaries and object files from the
      source code directory by typing `make clean'.  

      To also remove the files that `configure' created 
      (so you can compile the package for a different kind of computer), 
      type `make distclean'.  There is also a `make maintainer-clean' target, 
      but that is intended mainly for the package's developers.  
      If you use it, you may have to get all sorts of other programs in 
      order to regenerate files that came with the distribution.  

NOTE-If you are still facing any problem then please comment below.

How to install OpenOffice in Kali Linux

 Kali Info








First download Apache OpenOffice and place its downloaded file in home directory.

Now open terminal and write command
tar xvf filename.tar.gz 
(It will extract files and create a folder in home directory)
In my case I got folder named en-US

Now move to that folder by typing command
cd en-US

Now move to another sub-folder by typing command
cd  DEBS

Now write following command
sudo dpkg -i *.deb

Now move to another sub-folder by typing command
cd desktop-integration

Now write following command
sudo dpkg -i *.deb

Done...!!!

Now go and check your installation :
Go to Applications->Ofice->OpenOffice

NOTE-If you are still facing any problem then please comment below.