Sunday, February 3, 2013

How To install java in Ubuntu


To install Propriety Java in Linux Box.so first Download Jdk from Oracle java site and Downlaod jdk-7.x.x.tar,gz file.
    and extract tar.gz file using tar command
        tar -xvzf jdk.7.x.x.tar.gz
    Now Setup class path.update-alternatives command is used set a symbolic link easily.
     
      sudo update-alternatives --install "/usr/bin/java" "java" "/opt/jdk1.7.0_05/bin/java" 20000
      sudo update-alternatives --install "/usr/bin/javac" "javac" "/opt/jdk1.7.0_05/bin/javac" 20000
      sudo update-alternatives --install "/usr/bin/javap" "javap" "/opt/jdk1.7.0_05/bin/javap" 20000
      sudo update-alternatives --install "/usr/bin/appletviewer" "appletviewer" "/opt/jdk1.7.0_05/bin/appletviewer" 20000 
      after executing following command check the java version using following command .
       $ java -version
         java version "1.7.0_05"
         Java(TM) SE Runtime Environment (build 1.7.0_05-b06)
         Java HotSpot(TM) Server VM (build 23.1-b03, mixed mode)


Firefox java plugin
sudo update-alternatives --install "/usr/lib/mozilla/plugins/libjavaplugin.so" "libjavaplugin.so" "/opt/jdk1.7.0_05/jre/lib/i386/libnpjp2.so" 1
             restart Firefox And Type about:plugins in the Location bar to confirm that the Java Plugin is loaded. You can also click the Tools menu to confirm that Java Console is there.

Stream Video

                                                              Today When i read a tutorial of streaming video from computer to Sony TV On Sony Website (Window$ Tutorial).

                                                             Sony Wifi Direct
.So I Thought What About Linux. How To Stream Video in Linux. So Little Googling it I Found The Solution. 
   install Two Software
      1) gupnp
      2) rygel:-    https://live.gnome.org/Rygel/
     
   first install rygel in Ubuntu using apt-get :-)
                                  
  ->sudo apt-get install rygel pavucontrol paprefs
  ->sudo apt-get install gupnp-tools

 
after installing the tools run the rygel from the terminal. after that run the gupnp-av-cp select your appropriate upnp or dlna server (like serviio,MediaTomb and many more) and play the video or stram the video to your Upnp or Dlna supported TV. this is it easy and simple :-)