Skip to content

Instantly share code, notes, and snippets.

@rikels
Last active February 6, 2022 23:25
Show Gist options
  • Save rikels/4031126 to your computer and use it in GitHub Desktop.
Save rikels/4031126 to your computer and use it in GitHub Desktop.
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: [email protected] 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
@PixPMusic
Copy link

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
Copy link

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
Copy link

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

@SilverEzhik
Copy link

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!

@splllllitz
Copy link

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
Copy link

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
Copy link

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!

@rviprksh0707
Copy link

I am getting incorrect login by using chronos and password: facepunch

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