domingo, fevereiro 17, 2013

Project 8 - Raspberry Pi - Enabling Java and Flashplayer-look-alike

OpenJDK 6 is only around 100Mb.

Due to the fact that my SD Card on which I installed the Raspbian OS is only 4Gb and I've already installed lots of other stuff, this is the Java of choice for me at the moment. Maybe later on after I'll install my OS on another bigger SD Card (don't forget that the Oracle JVM 7 is not installable on the hard-float Raspian OS, which is the one that I've got installed on my SD Card. To be able to install this JVM I'll have to use a soft-float OS, probably Debian).
  1. SSH/VNC to the Pi, logging in as 'pi'
  2. Run "ln -s /mnt/projects" to create a projects folder in my home directory that's actually safely tucked away on my Synology.
  3. Then I installed the OpenJDK version 6 (as stated above, I'll save JDK 7 for another post as that's a whole different theme): run "sudo apt-get install openjdk-6-jdk"
  4. It took a while, but when it was done, "which java" gave me:
    1
    2
    pi@raspberrypi:/$ which java
    /usr/bin/java
  5. and "java -version" gave:

    pi@raspberrypi:/$ java -version
    java version "1.6.0_27"
    OpenJDK Runtime Environment (IcedTea6 1.12.1) (6b27-1.12.1-1+rpi1)
    OpenJDK Zero VM (build 20.0-b12, mixed mode)

    On a terminal window I got the following:

    Which confirmed what I had obtained when I had the Pi connected via hdmi.

  6. Afterwards I run "sudo apt-get clean", to remove the cached installation files from the various tools I had installed - I found this saved about 50Mb of space, so a not inconsiderable saving on such a small file system.
 To make a real test, I loaded the X-Windows and run the acid3 test on the Midori browser:


Everything went real smooth. No problems there. Now only the flashplayer had to be installed. Unfortunately Adobe does not support it for the ARM processors. There is absolutely no way of getting Flash for RasPi. Adobe is a closed-source developer and the only version they made for ARM CPUs is the Android one, which requires ARMv7 CPU with NEON extension. That makes RasPi unable to run it even if someone ports Android. Bastards...


Instead I installed an old friend of mine: GNASH, which is a flashplayer look-alike, ie, it allows flash pages to work on any kind of browser without having installed the flashplayer plug-in.

Installation of the Gnash plugin using:

1) Type “apt-get install gnash” and accept anything you’re maybe missing;
2) Now type “apt-get install browser-plugin-gnash”.

 Now the standard test using the site http://ce.uwex.edu/techsupport/flashtest.aspx on midori:




Done! Flash pages can now be used.
I also installed Iceweasel (Firefox for Linux...), because it's a more powerful browser than the Midori:
sudo apt-get install iceweasel browser-plugin-gnash

Now I need to overclock the Pi, in order to improve the performance, but that's for another post.

And that's that.

Happy hacking. You don’t learn to hack – you hack to learn…

MAAntão

2 comentários:

Anónimo disse...

Warum hast du das JDK7-Packete nicht installiert? Nur Speicherprobleme?

Ich muss es probieren.

tschuss,

Wolfgang

Anónimo disse...


Gucci's renowned representations [URL=http://www.okay2shoes.net][b]gucci shoes for men[/b][/URL] involving style

An alternative celebrated substance involved with gucci develop is without a doubt bamboo sheets.First include with gucci designs at the time of the second world war, bamboo sprouts has been included on gucci's parts outside of requirement.These artisans had been challenged if we have to make items, which will realized gucci's excellent expectations, although moments have been really hard.Adding bamboo sheets of their stuff outstanding in addition to revealed anywhere int he planet, exactly how capable all these french tradesmen were being.Your bamboo bedding and sheets bring together had been extracted from tackles recommended to their handbags through the late 1940s to be able to staying an important part of his or her's delightfully paper jewelry.This approach glimpse offers quite possibly constructed looks within their relax and watch ranges.All the bamboo bedding and sheets bangle pendant enjoy is truly gucci's almost all well known variations.
In conclusion, undoubtedly one of gucci's a large number of old-Fashioned versions enters in are a gucci horsebit.Typically the horsebit factor was blessed inside the fifties.In the beginning this horsebit could be noticed about heave moist cloth product or service, which usually gucci generated.That horsebit trend came out around the buckskin moccasins, of which gucci manufactured in 1853.The actual pattern am trendy that running without shoes was in fact damaged by just the show [URL=http://www.okay2shoes.net/nikeairmaxnikeairmax97womens-c-3_58.html][b]Cheap Womens Nike Air Max[/b][/URL] biz industry figures, similar to john astaire, bob john, and even clark gable.These horsebit ingredient show up in quite a lot of gucci see design, designed in to specific and chic observe connectors.