Page 3 of 4

Re: Chromium for Raspberry Pi BETA

Posted: Thu Jul 26, 2012 9:43 pm
by Hexxeh
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.

Re: Chromium for Raspberry Pi BETA

Posted: Sat Jul 28, 2012 8:31 am
by alchemistdagger
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

Re: Chromium for Raspberry Pi BETA

Posted: Sat Jul 28, 2012 11:15 am
by AndrewS
alchemistdagger wrote:So I installed Raspbian “wheezy”, but found out it didn't support Flash.
http://www.raspberrypi.org/phpBB3/viewt ... 47#p123047

Re: Chromium for Raspberry Pi BETA

Posted: Sat Jul 28, 2012 4:41 pm
by jeremyckahn
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.

Re: Chromium for Raspberry Pi BETA

Posted: Thu Aug 02, 2012 4:49 am
by egrep
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!

Re: Chromium for Raspberry Pi BETA

Posted: Thu Aug 02, 2012 7:29 pm
by jerrylamos
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

Re: Chromium for Raspberry Pi BETA

Posted: Fri Aug 03, 2012 1:23 am
by Ray_GTI-R
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:

Re: Chromium for Raspberry Pi BETA

Posted: Sat Aug 04, 2012 3:00 am
by Jat421
Hi is it possible to in install extensions?. For example revolver-tab

Re: Chromium for Raspberry Pi BETA

Posted: Sat Aug 04, 2012 10:25 pm
by CaptainMark
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

Re: Chromium for Raspberry Pi BETA

Posted: Sun Aug 05, 2012 12:25 am
by Lob0426
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.

Re: Chromium for Raspberry Pi BETA

Posted: Sun Aug 05, 2012 11:46 am
by CaptainMark
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???

Re: Chromium for Raspberry Pi BETA

Posted: Tue Aug 07, 2012 11:00 am
by JollyRoger
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.

Re: Chromium for Raspberry Pi BETA

Posted: Tue Aug 14, 2012 12:38 pm
by dorijan
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

Re: Chromium for Raspberry Pi BETA

Posted: Wed Aug 15, 2012 2:20 am
by Wendo
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

Re: Chromium for Raspberry Pi BETA

Posted: Mon Aug 27, 2012 2:32 am
by lenovox201
Hi
How long should it take after I enter bash <(curl -sL http://goo.gl/go5yx into the command prompt?

Re: Chromium for Raspberry Pi BETA

Posted: Tue Aug 28, 2012 2:51 am
by niftyhacking
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.......)

Re: Chromium for Raspberry Pi BETA

Posted: Wed Aug 29, 2012 8:41 pm
by terrycarlin
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.......)

Re: Chromium for Raspberry Pi BETA

Posted: Fri Sep 21, 2012 6:24 am
by Earlofevil
works instantly! thanks and keep up the good work.

Re: Chromium for Raspberry Pi BETA

Posted: Sat Sep 22, 2012 3:16 pm
by Hexxeh
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.

Re: Chromium for Raspberry Pi BETA

Posted: Sun Oct 07, 2012 8:41 pm
by ng28
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

Re: Chromium for Raspberry Pi BETA

Posted: Sun Oct 07, 2012 9:13 pm
by Cloudcentric
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

Re: Chromium for Raspberry Pi BETA

Posted: Tue Oct 16, 2012 3:10 pm
by panguitou
Thank you Hexxeh !
The install script worked as a breeze and the browser is pretty fast !
I'm very pleased again thank you ! :D

Re: Chromium for Raspberry Pi BETA

Posted: Tue Oct 16, 2012 7:23 pm
by cheery
Any info about how Chromium works for 512M systems? I thought it was memory constrained anyway.

Re: Chromium for Raspberry Pi BETA

Posted: Wed Oct 24, 2012 6:15 am
by Danoo
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...

Re: Chromium for Raspberry Pi BETA

Posted: Wed Oct 24, 2012 12:34 pm
by Hexxeh
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.