Create a gist now

Instantly share code, notes, and snippets.

@rikels /README.md
Last active Aug 20, 2017

What would you like to do?
chromium os plugins

this scripts installs: Flash, PDF, for some Chromium OS builds. (confirmed on Vanilla build 3389 Built on 12th December 2012!) Carputers confirmed that it also works on ArnoldTheBat's Cx86OS-20130423010101 build!

Sadly enough the Hangouts stopped working! i don't know about Netflix, since i can't test it. and since ~4-08-2013 MP3/Mp4 stopped working?

if you want to use this script on ArnoldTheBat's Chromium OS build, keep in mind that he uses the password: "password" instead of "facepunch". (without the quotes ;))

all credits go to dz0ny, his script can be found here: https://gist.github.com/3065781 but this script didn't work for me and some more people. so i tried to do what his script did, but a little different. And also a big thanks to Jamison Lofthouse and Steve Pirk, as they got the Google Hangout plugin to work.

in the latest builds, Python is included again! this makes Dz0ny's script work again, if bandwith and time isn't a concern, please use his script!

because bandwith is a concern for some people (i guesss no-one using Chromium Os will face that problem though;), i kept this package as small as possible. (it'll probably also be a little bit faster, but i haven't compared the scripts)

If anyone knows how to install more stuff or got anything to ask, you can contact me at: knakel2+chromium@gmail.com I would still like to add Java so if you've got this working please contact me.

how to install?

  1. start Chromium OS.

  2. log in.

  3. press alt+ctrl+F2.

  4. log in as user: chronos password: facepunch.

  5. enter the command: sudo su, and log in with the password: facepunch.

  6. enter the following: curl -L http://goo.gl/JL1An5 | bash

  7. wait for it to finish, you will automatically be taken back to the login screen and everything should be working.

fixing audio (there's a change in the new builds, for me audio was working so i don't know what to do if it doesn't. you can try to restart your audio driver with alsaucm or alsactl):

  1. start Chromium OS.

  2. log in.

  3. press alt+ctrl+F2.

  4. log in as user: chronos password: facepunch.

  5. enter the command: sudo su, and log in with password: facepunch.

  6. enter the following command: mount -o remount, rw /

  7. enter the following command: alsaconf, and press enter till you come back to the terminal.

  8. enter the following command: mount -o remount, r /

  9. enter the following command: reboot. it should work now.

Thanks to Arnold The Bat, some touchpad's that aren't working with a default setup can now be fixed! he also got a broadcom wifi card working! go to his page (http://arnoldthebat.co.uk/) to find out how to set it up. zhaostu made a script that can automaticaly detect and set-up your touchpad, you can find it here: https://gist.github.com/zhaostu/4552236

#!/bin/bash
#based on https://gist.github.com/3065781 which is based on https://wiki.archlinux.org/index.php/Chromium
#mounting the filesystem as writable
mount -o remount, rw /
cd /opt/
echo "Downloading important data"
wget --no-check-certificate -O "data.tar" "https://googledrive.com/host/0B78S5hOqFxkOOGpDSHp4YWt0REU/addons.tar"
echo "extracting the very important data!"
tar -xf data.tar
mkdir -p /usr/lib/mozilla/plugins/
#Flash, pdf
#mp3,mp4, stopped working...
cp /opt/data/libffmpegsumo.so /usr/lib/cromo/ -f
cp /opt/data/libffmpegsumo.so /usr/lib/mozilla/plugins/ -f
#pdf
cp /opt/data/libpdf.so /opt/google/chrome/ -f
#flash
cp /opt/data/libpepflashplayer.so /opt/google/chrome/pepper/ -f
cp /opt/data/manifest.json /opt/google/chrome/pepper/ -f
cp /opt/data/pepper-flash.info /opt/google/chrome/pepper/ -f
echo "deleting downloaded crap"
rm -rf /opt/data/
rm /opt/data.tar
restart ui
Owner

rikels commented Nov 26, 2012

thanks for the reply! i've got absolutely no idea to be honest. i just saw that python didn't work, so the steps that Dz0ny did using python, i did on a different computer and uploaded the files in a tar.gz which Chromium OS can unpack. so i'm actually also a kind of NOOB :(... but i'm learning and trying! and sharing my knowledge and making it possible for people with almost no knowledge of Linux to do it.

but i'll look into it, and hope we can find a way around to get it working!

Owner

rikels commented Nov 28, 2012

i did some searching... but i couldn't find the solution. i found a lot of sites explaining it for Chrome OS, but the package they provide isn't available =(. so i found this: http://rpm.pbone.net/index.php3/stat/4/idpl/18541036/dir/fedora_17/com/google-talkplugin-3.5.1.0-1.i386.rpm.html , and i copied the mozilla and talkplugin folders to the same paths they are in the RPM file. but it didn't work. when i go to chrome://plugins i see it recognizes the plugin libnpgoogletalk.so, but as told earlier, it didn't work =(.

Owner

rikels commented Nov 28, 2012

i started my ubuntu machine, and downloaded the .deb file, made it in to a tar file, uploaded it to dropbox. downloaded it on the chromium machine, unpacked it, moved all the folders to the root of the filesystem, and created a link "“ln -s /opt/google/talkplugin/libnpgoogletalk.so /opt/google/chrome/plugins/”. but this also didn't work.

you can download the tar (the deb file from https://www.google.com/chat/video) file here: https://dl.dropbox.com/s/2doqpezokme87qz/Talk.tar?dl=1
unpack it with: tar -xvf Talk.tar

OpakAlex commented Dec 4, 2012

alsaconf command not found =(((

OpakAlex commented Dec 4, 2012

And mp3 don't play

Owner

rikels commented Dec 4, 2012

hm... i haven't tried the latsted builds... alsaconf is a "program" that should be in the builds, but don't know if Hexxeh now took that out the builds. mp3's didn't play for me too... but someone else confirmed that it did work... so i'm not sure what to do with it. i will try to install the latest chromium os build from Hexxeh tomorrow if i have got the time to.

OpakAlex commented Dec 4, 2012

That would be great! Support MP3 is very important. I want to put capistrano task to build from clean ChromiumOS couchdb and kanso.
And to add to the script mp3 support would be great!

Owner

rikels commented Dec 5, 2012

it seems hexxeh indeed did remove alsaconf (alsaconf is used to configure the soundcard in a ui, so if sound works missing it is no problem:) ). for me sound worked directly! i started chromium and went to youtube, and using the HTML5 player it played just fine...

but if it doesn't work in a fresh installation, you could try to use alsaucm, or alsactl to restart your soundcard driver. with alsamixer you can change the volume.

in the Vanilla build (Build 3342.0.r7a40158f, 4 december 2012) i was also able to play mp3 and mp4 files which were stored on my Google Drive.

can you give me more details about how you try to open mp3's?

OpakAlex commented Dec 5, 2012

When I wont play .mp3 for link, cromium download this .mp3 and play then, but I want play this in browser. mp4 video don't play in browser,
I install ChromiumOS on VirtualBox from LionOS. For more see https://github.com/datahogs/chromium-os-couchdb-recipes. My script in capistrano recipes.

Owner

rikels commented Dec 7, 2012

I didn't put this together, Dz0ny did... and i've seen that in the new builds Python is back! so his script is working again! but an the google Talk plugin aren't working, but still downloads them.

Alsaconf is only used to configure your sound card,so it isn't needed for the Google talk plugin as far as i know. sadly enough i'm still a noob as it comes to Linux, but i'm doing my best to figure a lot out. i'm going to try and install it on Ubuntu to see if the plugin works there.

Owner

rikels commented Dec 7, 2012

  • but Java and the google Talk plugin aren't working, but still downloads them. which is a waste of bandwith if that's a concern.
Owner

rikels commented Dec 12, 2012

great to hear that! does Dz0ny's script work there too? it would be nice to tell him if it does!

Owner

rikels commented Dec 14, 2012

i did make some local update script for Windows (7) today (yes, i use Windows)... I'm going to change a few things to the script so i only have to execute a .bat file to update everything.

If anyone knows how to extract a .deb file from CMD/.BAT file please send me an e-mail (i made a autoit script to do it via 7zip gui). if you want to know how it works, you can find the script(s) here: https://www.dropbox.com/sh/fguvydm8iew1fco/2uZvLPBnSx

it would be nice to let the script show when the file was updated for the last time... going to look for something to do that.

nonself commented Jan 15, 2013

I updated my vanilla build on my desktop through this:
http://arnoldthebat.co.uk/wordpress/2012/12/28/dev-server-updates-now-available/

and then I installed your scripts again. Everything works fine except flash, which will keep loading and won't play at all.

Owner

rikels commented Jan 16, 2013

i just installed arnold the bat's chrome build (Cx86OS-20130116030101), ran my script, and everything seems to run fine. i tried to do a update, and re-ran my script, and it still seems to run fine...

did you fully update it?
(sudo su
update_engine_client --update --omaha_url=http://chromebld.arnoldthebat.co.uk:8080/update
reboot
sudo stateful_update
curl -L http://goo.gl/R4Amj | bash)
or try re-running my script (this doesn't give any errors as far as i know, did it a few times)

nonself commented Jan 16, 2013

Yes. Re-running your script do fix the flash. Thank you very much!

Owner

rikels commented Jan 17, 2013

great to hear that it works now!

ok so im a veeeery confused, new chromium os user...
after installing chromium os, the first thing i looked for was flash support. obviously, the first google search result led me to dz0ny's script: https://gist.github.com/3065781
after running that, i tried running youtube, which said 'couldnt load plugin' and flash didnt work anywhere. ALSO, the html5 player on youtube was showing yellow snowflakes/dots all over the player.
so then i found this: http://robertcoroianu.eu/chromium-os-enable-fash-player/2013/01/
which showed your script (rikels).
NOW... this is what i wrote on the comments on robertcoroianu.eu's website:
"
so i dont really know how to check for what version of chromium os im on, but im pretty sure that its the two lines that are on the top right when i turn on the computer. they say:

Chromium 27.0.1419.1 (Platform 3745.0.2013_02_22_1619 (Developer Build – Hexxeh) vanilla x86-generic

so im pretty sure thats the version..
oh and by the way, when i first installed chromium os, i tried to get java, flash, mp3, mp4 from this website: https://gist.github.com/dz0ny/3065781 (dz0ny)
but then when i went on youtube (or any other site for flash) it said ‘couldn’t load plugin’ (for youtube), and showed nothing for other websites.
so thats when i tried your script and lo-and-behold, pdfs are running, flash is working, BUT just that youtube’s player (flash and html5) show weird yellow snowflakes on their player.
oh and one other thing, i just realized that all html5 players across the web show the yellow dots/snowflakes, AND SO DO MOVIES…
"
by movies i meant the movies on my pen drive.
so basically, HOW DO I GET RID OF THE YELLOW SNOWFLAKES?!
the funny part is, now youre (rikels) saying that this is dz0ny's script, which didnt work at all in the first place, and sending me full circle! lol
sorry for the long ass post, but any help would be greatly appreciated! thanks!

Owner

rikels commented Feb 28, 2013

hello,
at my internship they had a HP laptop, which also showed some confetti (colored dots over video's) but on most other computers (with different video cards/cpu's and so on...) it didn't, so i know it's not flash-player itself. but i couldn't figure out what it was. so sadly enough i can't help you... and it only does that on YouTube right? Vimeo didn't show me those behaviors.

I guess YouTube video's are transferred in mp4 format, which also showed those snowflakes/dots on downloaded media indeed.

Hello, im running linux (picuntu) on my Minix Neo X5 device. I did managed somehow for the wifi work but my problem now it the google plugin. All the time i try to install (32&64) it shows it shows wrong architecture 'i386'. I need to use hangout for my project, but i still cant find a way to download the plugin. I did tried your script but it didnt work. and i also tried with sudo dpkg --force-architecture -i but still nothing.

p.s: I also tried this http://jfabianpe.wordpress.com/2012/08/06/google-talk-plugin-en-arch-linux/

but in the link of the first package 'libpng12 1.2.49-1', the page was not found. So i tried to find from other sources but this command doesnt work for me makepkg-s dont know why:(

I think its because of the arm architecture. So, can somebody help me please to find a solution.

THankss and i appreciate your help.

thanks so much rikels
everything work fine
play mp3,flash smooth i not try pdf yet but it enough for me
I try this ´´curl -L http://goo.gl/Ue6VQ | bash´´ first time not work but i reboot several time and try again finally it work
maybe my internet not good
Anyway, it´s work
thanks again rikels

rbclark commented May 26, 2013

Have been messing around all day trying to get flash going on chromium os. Your guide seemed to be the most simple and promising however your dropbox link is broken due to too much traffic. Is there any chance of getting another mirror of the zip you are using?

Owner

rikels commented May 26, 2013

haha, i got a message that i had been making too much bandwidth indeed :P. which means i have to find another host, or something... i'm going to try it...

rbclark commented May 26, 2013

Thanks for the fix! Just tried it on the updated address and all is working well now.

Owner

rikels commented May 26, 2013

okay, i moved to Google Drive (finaly found a way to download files from Drive using wget/curl. that was the main reason to use dropbox). so lets see how this holds up! the new links in the readme should do it.

Edit: haha, nice that you already figured out it was updated! and thanks for letting me know that it works now. i had a few problems with my older build... so i downloaded the new VirtualBox image from Arnold the Bat, and tried the script. to report that it is now updated and working!

so I just installed arnoldthebat's chrome build, ran the script mentioned above and...wait for it...wait for it...what the.......?
Excacly what is the Widevine Content Decryption Module plugin?

Owner

rikels commented Jul 9, 2013

hmmm... it seems to be a new feature of Chrome OS that enables HTML audio/video. you can find more about it here: https://plus.google.com/u/0/100132233764003563318/posts/6QW8TLtV6q3 . it isn't added with the script, so maybe i can now pull mp3/mp4 support out of this script? but to be sure i keep it in, to support the older versions (i guess it doesn't give any problems on the newer builds to install it). if it does give problems, please report it (maybe via mail for faster replies) so i can create a new version without the mp3/mp4 plugin.

Not sure what the problem is, but with the last few builds from Arnoldthebat.co.uk Chrome keeps flashing the loginscreen after running the script and even reboots :(

Owner

rikels commented Aug 4, 2013

i just answered you on Google+. my Windows installation is a bit corrupt, so I'm going to re-install it now, and hoping to get it up and running by tonight, so i can figure out what's going on.

Owner

rikels commented Aug 5, 2013

this is the temporary fix for the error that you might've gotten (MP3/MP4 don't work anymore....):

type this in the developer console (ctrl+alt+F2)
login with the user chronos
password: password or facepunch
sudo su
password: password or facepunch (again)
curl -L "http://goo.gl/2KBlzr" | bash
reboot

Hello.
youtube was able to see safely, thanks to you.
Although I am a Japanese, in seeing the animation of the site of TED with a Japanese subtitle, I think that he would like to install 10.3 of flashplayer of a previous version.
I am glad if you develop the patch into which both of old and new flashplayer(s) are put.
since I am creating this text by the automatic translation function -- the case of strange English -- I am sorry!

Is this script still working? Last time I used it it crashed my Chromium install...

This script worked fine for me: https://gist.github.com/shagr4th/6178203

anyone got offline audio working??

Only able to play songs in browser using flash player... Songs under files section are not utterring a single word..

@ghost

ghost commented May 13, 2014

For flash, mp3, mp4 and PDF, you can check my script : https://github.com/MrVaykadji/misc/tree/master/ChromiumOS/mp3-flash-pdf

@ghost

ghost commented Aug 28, 2014

Had some problems with this on a newly updated 64-bit system - the script would fail when trying to create the /pepper subdirectory. So, I manually created it and reran - this time the flash files got there with no problem, but when trying to run youtube, it just shows a big black box. Any suggestions???

hetzbh commented Sep 5, 2014

The flash plugin seems really old in this package, so I packed the Flash 14.0.0.177 which comes with Chrome OS and here is a link to a zip file. Could you replace the Flash that you have with this? I just checked it on Chromium OS from today (64 bit) and it works perfectly.
Link: http://hetz.me/l36hj

You should use a
'''mkdir -p /opt/google/chrome/pepper/'''
before pasting stuff into it; I had to create the folder manually :P

Owner

rikels commented Nov 6, 2014

A lot changed since I used Chromium OS the last time, it was a project at an internship. I'll be glad to change the script and update Pepper Flash. I'll try to use Chromiums OS in VirtualBox tomorrow to update the script. But I'm not an expert in Linux, I just rewrote the original script to avoid use of Python (as that's why the original script didn't work at the time i used it).
EDIT 16-11-2014:
Sorry, I had a little less time past weekend than i expected. But I seem to have some problems with Chromium OS on virtual box... I have updated all the dependencies, you can still use the same link. (libpepflashplayer.so version 15.0.0.223, libffmpegsumo.so, libpdf.so. I don't know if the last two got updated)

Do look into that, as hetzbh's link seems to have gone under.

Owner

rikels commented Nov 16, 2014

Can anyone test if this works (I don't have any hardware that can run Chromium OS :S, and VirtualBox seems to have a hard time with it too...):
in step 6 use : http://goo.gl/FrT7Q6 instead of http://goo.gl/JL1An5.

ppeppe commented Nov 17, 2014

I have flash player now ...but geting ,can not load plugin ...

ppeppe commented Nov 17, 2014

i installed http://goo.gl/FrT7Q6...

Addvilz commented Nov 19, 2014

What everyone fails to notice, THIS is a i386 build of pepflash! Therefore, if you have x64 Chromium OS build, this WILL NOT work.

Owner

rikels commented Nov 20, 2014

it indeed is for x86/i386/32 bit. I can also create a script for the 64 bit version. (I might do that this weekend) But does the current flash plugin work on 32 bit version of Chromium OS? As i can't seem to get recent versions of Chromium OS to work to test it myself...

I can confirm http://goo.gl/FrT7Q6 works for flash upgrade (for me from 11.0.xxx.) to 15.0.0.223.
I am using arnolds Cx86OS_R34-5196_Multi on a lenovo edge 11 x86 (broadcom wireless).

Has anyone been able to get mp3/mp4 working??? I can't get mp4/3 working from any of arnolds x86 builds, from any script here or google searched. I have installed the plugins with no errors. Has google blocked mp3/mp4 plugin on chromim os?

Owner

rikels commented Nov 25, 2014

I have updated the script to download different packages for 64bit and 32bit. Use the old new url ;P in step 6 : http://goo.gl/FrT7Q6 instead of http://goo.gl/JL1An5. And please report back if it works, or also broke it for 32 bit =)

Can confirm that MP4/MP3 fails to work. Plex says "This Browser doesn't support video streaming".

I also FAIL on with http://goo.gl/FrT7Q6 script. I am now unable to start terminal with ctrl+alt+t. ctrl+alt+f2 works. None of my plugin seem to work now. Flash definetly not working.
I am running Camd64OS-20141128010102.img, from an USB stick

Confirming http://goo.gl/FrT7Q6 worked- well, at minimum Amazon's Flash based Cloudplayer is working- with a 2013 Dell XPS 13 (Developer Edition) running:

Broke crosh here as well but flash seems to work though, Camd64OS-20141221010101

sorenh commented Feb 3, 2015

Does anyone have any idea why this would cause crosh to not work?

Can confirm that flash does work with curl -L http://goo.gl/FrT7Q6 | bash
Arnold the bat Camd64OS-20150120010101.img.7z
Version 42.0.2292.0 (64-bit)
Platform 6744.0.2015_02_01_0244 (Developer Build - buildbot) developer-build amd64-generic
it however broke crosh but I can live with it.

Okay, so I didn't notice the new script

I got flash and HTML5 video working on my x64 install

The key is that libffmpegsamo.so needs to me from almost the same build of Chrome. I used Chrome Dev 44.0.x 64bit for Debian. Download it on Windows (Hint, when you're on the Chrome Dev Linux download page, add &standalone=1 to the URL...not sure if it's needed, but it was when I pilled the dlls for Node-Webkit back a few months ago.

7zip is capable opening the data.tar, and you need most of the opt folder.

data.tar/./opt/google/chrome-unstable/PepperFlash/ -> /opt/google/chrome/pepper/

data.tar/./opt/google/chrome/libffmpegsamo.so -> /opt/google/chrome/libffmpegsamo.so, and I think it needs to be in /usr/lib/mozilla/plugins/, I didn't make /usr/lib/cromo/ and it didn't exist sooooooo..

Not sure if the 32bit version of libpdf.so from the original script worked, or if Chromium has native PDF support now...I think it does..Chrome Dev doesn't have the .so and I was able to use PDFs...didn't try before the 32 bit .so was in my 64 bit install, but they work now so I don't know.

Now to fix my audio card!

erichdp commented May 8, 2015

Hey rikels. Thanks for your previous work! I'm working tech at a public school and am in the process of updating our old computers from 2006 to Chromium OS. I'm currently using ArnoldTheBats Special Build - R42-6813 (http://arnoldthebat.co.uk/wordpress/2015/02/22/chromiumos-special-build-r42-6813/). Is it possible you could update your script so it will be compatible with ATB's build? It would greatly help increase the logevity of our computers. Thanks!

asafyat commented May 10, 2015

Nice, iPonyRadio it working perfectly.

I suggest copy PepperFlash directory to the Chromium OS pepper flash directory my Flash games start working.

Were you able to fix your audio ? It seems to be working on my Chromium now

For me Flash worked with curl -L http://goo.gl/FrT7Q6 | bash, but the replacement libffmpegsumo.so completely broke any media at all.

@iPonyRadio's suggestion worked, though!

I am running chromiumOS on my Tosh Chromebook2, but cannot copy anything to the /opt/.../... because its read only. tried sudo, su but still no luck.

Thoughts?

edit: nevermind had to run through the rw-rootfs script :)

that said, I still cant get flash working after iPonys instructions. I dont want to break crosh, so i am worried about the script.

Coburn commented Aug 29, 2016

Since support for Flash, mp3, Java, etc. in Chromium OS is now practically unmaintained, please tell the community how to provide self-support. Where does one find the compatible codecs? How are they extracted, built, and installed? What are the issues with proprietary code, and what might be some of the security obstacles put up to avoid improper use of the codecs? Thanks

lorby commented Oct 21, 2016

Hey guys, a bit of a thread dig. I've used this stuff in the past to try and get flash working on chromium for the support students at the school I work at and it's been good but I've just tried again recently and the repositories seem to be down, specifically the https://googledrive.com/host/0B78S5hOqFxkOOGpDSHp4YWt0REU/chromium.sh stuff. Is there any chance it could be rehosted please? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment