Friday, October 18, 2013

Manual Installation of Oracle Java (JDK) on Ubuntu

This method describes manual installation of Oracle Java (JDK) on Ubuntu 12.04.3 64-bit.

1. Download the Oracle Java JDK from:
http://www.oracle.com/technetwork/java/javase/downloads/index.html
Current version, at the moment of writing this post, is 1.7.0_45. If your version differs it will not be the problem because the procedure is the same.

2. Click on download button
























3. In the next screen click on radio button "Accept License Agreement"












4. Now click on the link with tar.gz archive. If you need 32-bit version (Linux x86) only the name of the archive differs but the procedure is the same.

















5. Now open the terminal and go to your Download folder (this is an example with default download folder location)








6. Unpack the tar.gz file











7. Move unpacked folder







8. Now install Oracle JDK



9. Configure current alternative for Oracle JDK (javac and java) by entering the command and number for current version from the list. If no other version is installed you will not be able to configure alternative, and there will be no list.






















10. Configure Firefox for Oracle Java. Create plugins folder if u don't have it already





11. Create symbolic link for libnpjp2.so in the plugins folder.
For 64-bit version:



For 32-bit version:



12. Restart Firefox and visit page:
http://www.java.com/en/download/installed.jsp
and click the "Verify Java version" button
















Accept any Java security questions and if everything went fine you should something like this


Monday, March 4, 2013

Fix Low Resolution on Boot/Splash Screen with nVidia driver (Ubuntu 12.04.2 / 12.04.3 / 12.04.4 / 13.04 / 14.04 / Mint 15)

I currently use Ubuntu 13.04 64bit, but it worked fine with 12.04.2 64bit, 12.04.3 64bit, 13.04 32bit and Mint 15 64bit ( ** additional tasks should be done with 12.04.4 64bit and nVidia 331.20 and with 14.04 64bit and nVidia 331.38)

Easiest way to solve this problem is to:

1. check supported resolutions is by typing in terminal
sudo apt-get install hwinfo
after that you type
sudo hwinfo --framebuffer
(hwinfo package does not exist in 14.04, you can use resolutions:

GRUB_GFXMODE=1280x1024        # is best solution for 4:3 displays
GRUB_GFXMODE=1280x1024x32  # this one works best for me at the moment
GRUB_GFXMODE=1280x800          # is good solution for 16:9 and 16:10 displays )

2. in terminal type
sudo gedit /etc/default/grub

find these lines
...

# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480
...

change it to look like this

...
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=1280x1024
GRUB_GFXPAYLOAD_LINUX=keep
...

close gedit and save changes
after that type in terminal
sudo update-grub

3. after next reboot the boot/splash screen should be with some better resolution


GRUB_GFXMODE=1280x1024   # is best solution for 4:3 displays
GRUB_GFXMODE=1280x800     # is good solution for 16:9 and 16:10 displays

**  additional tasks with 12.04.4 64bit and nVidia 331.20 and with 14.04 64bit and nVidia 331.38

create/edit file /etc/initramfs-tools/conf.d/splash
add one line in /etc/initramfs-tools/conf.d/splash
FRAMEBUFFER=y
save file and execute both
sudo update-initramfs -u
sudo update-grub2

Adobe Flash and Steam for Linux (Ubuntu 12.04.2 64bit)


I'm using Ubuntu 12.04.2 x64

first of all
1. after OS install check and install all official updates
2. if you have nVidia based GPU activate "NVIDIA accelerated graphics driver (**experimental** beta) (version experimental-310)" in "Additional Drivers" application which can be easily found with ubuntu dash (12.04 versions only, for 12.10 it's a bit different)
3. reboot
4. open terminal and type:
wget http://repo.steampowered.com/steam/signature.gpg && sudo apt-key add signature.gpg
5. also type:
sudo gedit /etc/apt/sources.list
at the end of file add two lines:
## steam
deb http://repo.steampowered.com/steam/ precise steam

save the file and close gedit
6. in terminal type:
sudo apt-get update
sudo apt-get install steam

if u get some dependency error mentioning libgl... (this comes with early version of ubuntu 12.04.2 x64)
type:
sudo apt-get install libgl1-mesa-dri
and after that you should be able to install steam
sudo apt-get install steam

after installing steam start it from desktop or from ubuntu dash
it will start some download from repo
after that you will be prompted to type steam username and pass.
7. after successful loging in steam quit steam application

8. download latest 32-bit tar.gz package of adobe flash for linux from adobe official download location

9. extract only one file from tar.gz
libflashplayer.so
copy it to
/home/<username>/.steam/steam/ubuntu12_32/plugins/

<username> is your home directory

10. start steam again and you should have videos in steam store.
if you have some problem with sound in steam store first check if these videos are muted if its not you will have to quit steam again and in terminal type:
sudo apt-get install libasound2-plugins:i386

11. start steam again and you should have videos with sound in steam store.

hope this will help anyone :)