Saturday, June 23, 2012
Thursday, June 21, 2012
grub2 - Grub Error in Ubuntu 12.04 after upgrade from 11.10
Boot into the Ubuntu Live Cd and open terminal.
1. Identify Ubuntu partition:
2. Mount it ( replace sda1 with the Ubuntu partition number):
3.Reinstall grub:
1. Identify Ubuntu partition:
sudo fdisk -l
2. Mount it ( replace sda1 with the Ubuntu partition number):
sudo mount /dev/sda1 /mnt
3.Reinstall grub:
sudo grub-install --root-directory=/mnt /dev/sda sudo update-grub
Solution from: grub2 - Ubuntu 11.10 not showing up in GRUB bootloader after update and restart :( - Ask Ubuntu.
Wednesday, June 20, 2012
Friday, June 15, 2012
Installing Oracle-JDK in Ubuntu
Download JDK from ORacle. Run Terminal:
#Next line will add java to symlink
Or, better if you can set environment variable by adding the following lines at the bottom of .bashrc by "gedit ~/.bashrc":
You can now check if the java is installed properly in terminal:
These will return the version of java and javac.
chmod u+x jdk-6u31-linux-i586.bin ./jdk-6u31-linux-i586.bin sudo mv jdk1.6.0_31 /usr/lib/jvm/
#Next line will add java to symlink
sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.6.0_31/bin/java" 1 sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.6.0_31/bin/javac" 1
Or, better if you can set environment variable by adding the following lines at the bottom of .bashrc by "gedit ~/.bashrc":
export JAVA_HOME=/usr/lib/jvm/jdk1.7.0_03 export PATH=$PATH:$JAVA_HOME/bin
You can now check if the java is installed properly in terminal:
java -version javac -version
These will return the version of java and javac.
Subscribe to:
Posts (Atom)