Hexxeh
Posts: 91
Joined: Thu Apr 05, 2012 3:07 pm
Contact: Website

Re: Chromium for Raspberry Pi BETA

Thu Jul 26, 2012 9:43 pm

jeremyckahn wrote:Hexxeh, this is really awesome. Thanks for your hard work on bringing Chromium to the RPi. Is there any chance that you'll publish how you built the custom Chromium binary? Maybe just some tips or pointers? I'm building an HTML 5 game console based on your Chromium builds. I'd love to learn from your source code or any secret sauce that you're using.

Thanks!
A few patches which are making their way upstream.

Cross-compiling is somewhat of a black art though, and the way I actually build this is by using the Chromium OS build system but with the ebuild modified so that the Raspbian image is used as a sysroot.

alchemistdagger
Posts: 6
Joined: Sat Jul 28, 2012 8:20 am

Re: Chromium for Raspberry Pi BETA

Sat Jul 28, 2012 8:31 am

hi all,
I am completely new to linux , Just received my Raspberry pi. Originally intended it to be used with XBMC, which i got up and running but found out it didn't have a web browser, at least that i could find. So I installed Raspbian “wheezy”, but found out it didn't support Flash. I came across this forum, got it installed and working with out problem, but still won't run Flash supported sites. I was hoping to be able to access the cartoon episodes on pbskids.org so my kids could watch their cartoons on the big screen vs. on my computer. Is this possible or is it beyond the ability of RPi to do. pbs redirects me to adobe site to install flash but not sure if i should do that (also adobe page says flash comes as part of chrome but maybe disabled).

Thanks in advance for any help,
Alchemist Dagger

User avatar
AndrewS
Posts: 3625
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
Contact: Website

Re: Chromium for Raspberry Pi BETA

Sat Jul 28, 2012 11:15 am

alchemistdagger wrote:So I installed Raspbian “wheezy”, but found out it didn't support Flash.
http://www.raspberrypi.org/phpBB3/viewt ... 47#p123047

jeremyckahn
Posts: 4
Joined: Sat Jul 21, 2012 4:11 pm

Re: Chromium for Raspberry Pi BETA

Sat Jul 28, 2012 4:41 pm

Hexxeh wrote:A few patches which are making their way upstream.

Cross-compiling is somewhat of a black art though, and the way I actually build this is by using the Chromium OS build system but with the ebuild modified so that the Raspbian image is used as a sysroot.
Good to hear about your changes going into mainline development. I'll check out Chromium OS's build system to see if I can reverse-engineer it.

egrep
Posts: 1
Joined: Thu Aug 02, 2012 4:41 am

Re: Chromium for Raspberry Pi BETA

Thu Aug 02, 2012 4:49 am

Nice work Hexxeh! I was wondering if you were going to be messing with these devices... I just got the three I ordered, and should be firing one up tomorrow. I think it might have been a mistake to try and save the boot image to my Google Drive, as I am not sure it made it before my Chromebook went into sleep mode...

My first task is to build a Google Cloud Print server on the device. Having a Chromium browser available means users could actually use the print server to log in and auth the queued print jobs. Shiny!

jerrylamos
Posts: 27
Joined: Sun Jul 15, 2012 8:33 pm

Re: Chromium for Raspberry Pi BETA

Thu Aug 02, 2012 7:29 pm

To each their own favorite browser. On Ubuntu/Debian I find Chrome and Chromium big, fat, slow, more disk space, more keystrokes/mouse clicks than Firefox for example to handle a couple hundred bookmarks etc.

Actually I'm quite happy with what I do using Debian LXDE and Midori on RasPi. Now as usual, Debian is a -huge- .iso or image must be tons of packages I don't ever touch. I've tried minimal install more work than I want to do putting together the bits and pieces so I just use the Raspberry Debian image.

Kind of like Ubuntu Lubuntu which I haven't found for RasPi yet - if ever. Ubuntu's prime focus is on bigger faster pc's, although they do keep on Xubuntu and Lubuntu for now.

Jerry

User avatar
Ray_GTI-R
Posts: 96
Joined: Fri Mar 09, 2012 1:21 am
Contact: Website

Re: Chromium for Raspberry Pi BETA

Fri Aug 03, 2012 1:23 am

Summary of various instructions supplied by Hexxeh (legend) and the demigods of RPi ...
Use the 224MB memory split (OK, in LXterminal type sudo cp /boot/arm224_start.elf /boot/start.elf)
Overclock your Pi (OK, 800 via edit the config.txt - I used a Windows PC/Notepad for that)
Use a fast SD card (OK, C4)

type this into a shell: bash <(curl -sL http://goo.gl/5vuJI) as I'm in the UK
then type in the same shell: chrome -disable-ipv6

Worked FIRST TIME.

Proper Job.
NB I had previously updated Raspbian via ...update & ... upgrade
NB2 Please instruct me how to create a desktop shortcut in order to avoid opening a shell & typing chrome -disable-ipv6 everytime :mrgreen:

Jat421
Posts: 3
Joined: Sat Aug 04, 2012 2:57 am

Re: Chromium for Raspberry Pi BETA

Sat Aug 04, 2012 3:00 am

Hi is it possible to in install extensions?. For example revolver-tab

CaptainMark
Posts: 39
Joined: Wed Aug 01, 2012 7:17 pm

Re: Chromium for Raspberry Pi BETA

Sat Aug 04, 2012 10:25 pm

I just get this error,
[code]
[email protected] ~ $ bash <(curl -sL http://goo.gl/5vuJI)
curl: option -sL http://goo.gl/5vuJI: is unknown
curl: try 'curl --help' or 'curl --manual' for more information
[/code]
I tried about a week ago and no problem

User avatar
Lob0426
Posts: 2198
Joined: Fri Aug 05, 2011 4:30 pm
Location: Susanville CA.
Contact: Website

Re: Chromium for Raspberry Pi BETA

Sun Aug 05, 2012 12:25 am

CaptainMark wrote:I just get this error,

Code: Select all

[email protected] ~ $ bash <(curl -sL http://goo.gl/5vuJI)
curl: option -sL http://goo.gl/5vuJI: is unknown
curl: try 'curl --help' or 'curl --manual' for more information
I tried about a week ago and no problem
The problem is the last letter It is a small L or an I (eye) cannot remember which.
512MB version 2.0 as WordPress Server
Motorola Lapdock with Pi2B
Modded Rev 1.0 with pin headers at USB

http://rich1.dyndns.tv/
(RS)Allied ships old stock to reward its Customers for long wait!

CaptainMark
Posts: 39
Joined: Wed Aug 01, 2012 7:17 pm

Re: Chromium for Raspberry Pi BETA

Sun Aug 05, 2012 11:46 am

I copy and pasted it straight from the web, I still double checked both just incaseof a typo on the site and neither work, its not finding the repo

edit: I also just tried the US mirror and get the same error???

JollyRoger
Posts: 154
Joined: Wed Feb 01, 2012 9:48 am

Re: Chromium for Raspberry Pi BETA

Tue Aug 07, 2012 11:00 am

Ray-GTI-R asked:
NB2 Please instruct me how to create a desktop shortcut in order to avoid opening a shell & typing chrome -disable-ipv6 everytime

You could create a hotkey to do this by editing the .config/openbox/lxde-rc.xml file (start from your home directory). Scroll down to the key bindings section of lxde-rc.xml (almost halfway through the file), examine the syntax, and add the command to do what you want. E.g. this would set up the windows key + c to execute it:

<keybind key="W-c">
<action name="Execute">
<command>chrome -disable-ipv6</command>
</action>
</keybind>

Alternatively, if you wish to see the command execute in a terminal window:

<keybind key="W-c">
<action name="Execute">
<command>lxterminal -e "chrome -disable-ipv6"</command>
</action>
</keybind>

You will have to reboot your Pi to test it.

Note that although I have set up a number of hotkeys for my own use, I haven't set up this particular one (I don't have Chromium installed) so I haven't tested it.

dorijan
Posts: 6
Joined: Tue Aug 14, 2012 12:31 pm

Re: Chromium for Raspberry Pi BETA

Tue Aug 14, 2012 12:38 pm

Hi to all..
Does anyone know does chrome apps work under this chromium?

I am planing to make some app that will use usb direct access with chrome.experimental.usb.findDevice
described here: https://github.com/GoogleChrome/chrome- ... ob/knob.js

So will it work?

thank you

Wendo
Posts: 142
Joined: Sun Jun 10, 2012 8:27 pm

Re: Chromium for Raspberry Pi BETA

Wed Aug 15, 2012 2:20 am

CaptainMark wrote:I just get this error,

Code: Select all

[email protected] ~ $ bash <(curl -sL http://goo.gl/5vuJI)
curl: option -sL http://goo.gl/5vuJI: is unknown
curl: try 'curl --help' or 'curl --manual' for more information
I tried about a week ago and no problem
Try typing it manually, you're probably having conversion issues between the character encoding

lenovox201
Posts: 3
Joined: Mon Aug 27, 2012 2:21 am

Re: Chromium for Raspberry Pi BETA

Mon Aug 27, 2012 2:32 am

Hi
How long should it take after I enter bash <(curl -sL http://goo.gl/go5yx into the command prompt?

niftyhacking
Posts: 13
Joined: Thu Jul 19, 2012 8:48 pm

Re: Chromium for Raspberry Pi BETA

Tue Aug 28, 2012 2:51 am

It can take a while.... but not a long time.

You are running a bash shell script.
Each step can take a while depending on
your system and connecton.

Always run the latest install script -- as it may change
to fix some important detail.

Do not forget the closing ")".

The script currently looks like:

Code: Select all

#!/bin/bash
sudo apt-get install -y --force-yes libnss3 libxrender1 libxss1 libgtk2.0-0 libgconf2-4
sudo mkdir -p /opt/google/
cd /opt/google
sudo wget http://distribution-us.hexxeh.net/chromium-rpi/chromium-rpi-r22.tar.gz -O chromium-rpi.tar.gz
sudo tar xvf chromium-rpi.tar.gz
sudo chown root:root chrome/chrome-sandbox
sudo chmod 4755 chrome/chrome-sandbox
sudo rm -rf /usr/bin/chrome
sudo ln -s /opt/google/chrome/chrome /usr/bin/chrome
The apt-get can take a while to run. In fact just checking to see
if the package downloads are needed can take a while.
Then the compressed tar file download can take some time
since it is about 36MB and uncompresses to 90 MB. All
of this can take some time. The sizes are important if you are
using a small SD card. First 36MB then 36+90MB, then 90MB,
then 2x90 MB just for the chrome bits.

One trick is to run bash with the -x flag. sudo bash -x < ( etc.......)

User avatar
terrycarlin
Posts: 70
Joined: Thu Jun 14, 2012 10:42 pm

Re: Chromium for Raspberry Pi BETA

Wed Aug 29, 2012 8:41 pm

Does anyone but me think it is kind of risky to have a browser run as root? That is what the script below does. "sudo chown root:root chrome/chrome-sandbox" changes the owner and the group of the browser to root. "sudo chmod 4755 chrome/chrome-sandbox" says run the browser as the owner. (root in this case).
niftyhacking wrote:It can take a while.... but not a long time.

You are running a bash shell script.
Each step can take a while depending on
your system and connecton.

Always run the latest install script -- as it may change
to fix some important detail.

Do not forget the closing ")".

The script currently looks like:

Code: Select all

#!/bin/bash
sudo apt-get install -y --force-yes libnss3 libxrender1 libxss1 libgtk2.0-0 libgconf2-4
sudo mkdir -p /opt/google/
cd /opt/google
sudo wget http://distribution-us.hexxeh.net/chromium-rpi/chromium-rpi-r22.tar.gz -O chromium-rpi.tar.gz
sudo tar xvf chromium-rpi.tar.gz
sudo chown root:root chrome/chrome-sandbox
sudo chmod 4755 chrome/chrome-sandbox
sudo rm -rf /usr/bin/chrome
sudo ln -s /opt/google/chrome/chrome /usr/bin/chrome
The apt-get can take a while to run. In fact just checking to see
if the package downloads are needed can take a while.
Then the compressed tar file download can take some time
since it is about 36MB and uncompresses to 90 MB. All
of this can take some time. The sizes are important if you are
using a small SD card. First 36MB then 36+90MB, then 90MB,
then 2x90 MB just for the chrome bits.

One trick is to run bash with the -x flag. sudo bash -x < ( etc.......)
If it ain't broke, take it apart and see how it works.

Earlofevil
Posts: 6
Joined: Sat Sep 15, 2012 4:19 pm

Re: Chromium for Raspberry Pi BETA

Fri Sep 21, 2012 6:24 am

works instantly! thanks and keep up the good work.

Hexxeh
Posts: 91
Joined: Thu Apr 05, 2012 3:07 pm
Contact: Website

Re: Chromium for Raspberry Pi BETA

Sat Sep 22, 2012 3:16 pm

terrycarlin wrote:Does anyone but me think it is kind of risky to have a browser run as root? That is what the script below does. "sudo chown root:root chrome/chrome-sandbox" changes the owner and the group of the browser to root. "sudo chmod 4755 chrome/chrome-sandbox" says run the browser as the owner. (root in this case).
It's only the sandbox binary you're doing it for, not the browser binary itself. Part of it's sandboxing model.

ng28
Posts: 10
Joined: Sat Sep 08, 2012 9:45 pm

Re: Chromium for Raspberry Pi BETA

Sun Oct 07, 2012 8:41 pm

Just installed the chromium on Pi running latest wheezy img. it run like a charm but while playing youtube, it is reporting below message

you need flash player or html5 browser

it is there a plan to add html5 support?

thanks
-nilesh

Cloudcentric
Posts: 982
Joined: Fri Sep 14, 2012 9:13 am

Re: Chromium for Raspberry Pi BETA

Sun Oct 07, 2012 9:13 pm

ng28 wrote:Just installed the chromium on Pi running latest wheezy img. it run like a charm but while playing youtube, it is reporting below message

you need flash player or html5 browser

it is there a plan to add html5 support?

thanks
-nilesh
Flash alternative is Gnash, available via apt-get. http://www.gnu.org/software/gnash
I know everything about nothing"

panguitou
Posts: 1
Joined: Fri Sep 28, 2012 10:53 am

Re: Chromium for Raspberry Pi BETA

Tue Oct 16, 2012 3:10 pm

Thank you Hexxeh !
The install script worked as a breeze and the browser is pretty fast !
I'm very pleased again thank you ! :D

User avatar
cheery
Posts: 219
Joined: Wed Jan 25, 2012 9:39 pm

Re: Chromium for Raspberry Pi BETA

Tue Oct 16, 2012 7:23 pm

Any info about how Chromium works for 512M systems? I thought it was memory constrained anyway.

Danoo
Posts: 3
Joined: Wed Oct 24, 2012 6:10 am

Re: Chromium for Raspberry Pi BETA

Wed Oct 24, 2012 6:15 am

Hi all

I'm really interested in having Chromium run with HTML5 (and videos) aswell, for a digital signage solution.
@Hexxeh: if you need support for porting parts of Chromium (aura), let me know. I'd be glad if we could push this...

Hexxeh
Posts: 91
Joined: Thu Apr 05, 2012 3:07 pm
Contact: Website

Re: Chromium for Raspberry Pi BETA

Wed Oct 24, 2012 12:34 pm

We basically need any one of a number of things, either:

An X.org driver that allows EGL context creation within an X window
To modify Chromium such that it runs on bare-metal, ie without X
To use some other solution that provides a an emulation layer for X, like DirectFB

However, none of these solutions are in a workable state yet. If you're interested, please do chip away at this. Options 1 and 2 are the most preferable.

Return to “General discussion”