RSS twitter

Posts tagged ‘Google Chrome’

How to install Google Chrome

Setting up your build environment

Set up symlinks (optional)

The rest of this document assumes you have created symlinks in your home directory for the OS and browser (only for the latter if you download the source). You can set these up with (note these directories depend on where you set up your repository or if you downloaded the tarball, where you unzipped it):

ln -s /usr/local/chromiumos/chromiumos.git ~/chromiumos
ln -s /usr/local/chromium/trunk ~/chromium

You don’t have to create the symlinks, but it makes paths much easier to reference. Once the symlinks exists, you should see src in each directory — for example, ~/chromiumos/src and ~/chromium/src should exist.

Make your local repository

All the necessary scripts to build a Chromium OS image are located in ~/chromiumos/src/scripts.  The rest of these instructions assume you have changed your directory to that directory:

cd ~/chromiumos/src/scripts
To get a reproducible build, we check in an exact list of packages to be used for the chroot build environment and image. To make sure debootstrap and apt-get install only those packages, run the following command to construct a local repository in ~/chromiumos/repo:
./make_local_repo.sh
Note: To modify the contents of that local repository, or create a chroot / image with a different set of packages, see Chromium OS Package Management. Note, check the output of this script to ensure that nothing failed.  If something fails you must sudo rm -rf ~/chromiumos/repo before recalling this script.
If you’re running an older Linux release, your version of debootstrap may not be able to install the newer Karmic version of Ubuntu that we use to build Chromium OS. If making the local repository or the chroot fails, here’s a workaround that installs the Karmic version:
# Create a karmic.list which pulls from chromeos-deb
cat >karmic.list <<EOF
deb http://build.chromium.org/buildbot/packages chromeos_dev main restricted
deb-src http://build.chromium.org/buildbot/packages chromeos_dev main restricted

EOF

# Install karmic debootstrap
sudo mv karmic.list /etc/apt/sources.list.d/karmic.list
sudo apt-get update
sudo apt-get install -y –force-yes debootstrap

# Remove temporary sources.list entry, so you don’t upgrade anything else
sudo rm /etc/apt/sources.list.d/karmic.list
sudo apt-get update

If you’re still having trouble, try this instead:
sudo ln -s /usr/share/debootstrap/scripts/gutsy /usr/share/debootstrap/scripts/karmic

Create your build environment

Chromium OS builds only in a chroot environment, so that its build output is less dependent on the particular flavor of Linux you have installed (Hardy or Jaunty, for example). Do the following to set up a chroot environment:

./make_chroot.sh
Note: By default, the setup script configures /etc/apt/sources.list to pull from the local repository you created in the previous step. If you’re pushing the boundaries of development (for example, attempting to compile for a different processor), you may need to get the most recent packages from the repository. In that case, run the following:
./make_chroot.sh --mirror=http://build.chromium.org/buildbot/packages --suite=chromeos_dev

That command pulls packages from the Chromium repository. Note that this is slower than a local repository. Also note you can use any of the official Ubuntu mirrors. You’ll need to specify the same --mirror and --suite options to the build_image.sh script below.

Building Chromium

There are two ways of building Chromium for Chromium OS:
  1. Building Chromium from source (useful if you’re working on Chromium browser for Chromium OS)
  2. Downloading Chromium binary (much simpler and faster)

Method 1: Building Chromium from source (optional)

If you chose to download the source code for the browser, you’ll need to build the browser before you complete the rest of the build process:

./build_chrome.sh --chrome_dir ~/chromium

To build a debug version:

./build_chrome.sh --mode=Debug --chrome_dir ~/chromium

This builds Chromium, zips up the output, and puts it in the right place for build_platform_packages.sh to pick up.

If using distcc, you can override the number of parallel jobs:

./build_chrome.sh --num_jobs=N --chrome_dir ~/chromium

Method 2: Downloading Chromium binary (you MUST do this if you didn’t use the step above)

Download the binary and copy it into ~/chromiumos/src/build/x86/local_assets as chrome-chromeos.zip (you have to create this directory).  This will give you a recent copy of the browser for use with Chromium OS.

Building Chromium OS

Enter the chroot build environment

Run the following to get into the chroot environment:
./enter_chroot.sh

Making development easier

The following steps make development a little easier. These only need to be done once; consult the scripts for information on how to undo these steps if you change your mind later. These steps have to be done before you build the rest of your system to have them take effect.

Enable a local user account

If you are customizing Chromium OS and having trouble logging in due to your customizations, it may be handy to be able to bypass authentication and log yourself in as a test user. This is disabled by default for security reasons, but if you want to enable it for a backdoor user USERNAME:
( cd ../platform/pam_google && ./enable_localaccount.sh USERNAME )

Set the shared user password

For security, the shared user password defaults to a long random string. If you want to be able to sudo from the terminal in Chromium OS (this also includes actually installing the OS on your device), need help debugging networking, or you have some other reason for needing to log on directly as the shared user, you need to set up the password for the shared user:
./set_shared_user_password.sh
This will prompt you for a password. The encrypted password will be stored in ./shared_user_password.txt, so you only need to do this once.

Build the packages (note you can use build_all.sh to run all these steps together)

Do this inside the chroot build environment. We build the platform packages and then the kernel. You can substitute a different config or kernel build number if you know what you are doing.

./build_platform_packages.sh
./build_kernel.sh

Build the image

Do this inside the chroot build environment.

./build_image.sh


The default output location for images is ~/chromiumos/src/build/images.

The output of build_image.sh will create a unique monotonically increasingly numbered subdir under the output location which contains the master boot record (mbr.image) and the root filesystem image (rootfs.image).  Check the output of build_image.sh to find the corresponding directory where your new image has been placed.

Using your image

Check the contents of the image

To check the contents of your image, mount it locally. In this example, SUBDIR is the subdirectory created in the previous step.

cd ~/chromiumos/src/build/images/SUBDIR
sudo mount -o loop rootfs.image rootfs
sudo chroot rootfs

You’re now in the image, and can do things like see how much space is used in the image or what packages were installed:

df
dpkg -l

When done, exit the chroot shell and unmount the image:

exit
sudo umount rootfs

Copy the image to a USB key

Use image_to_usb.sh to copy the image to a USB key. Do this outside the chroot environment. (If your USB key seems blank, you’re probably inside the chroot environment.) Make sure you have a 4GB USB key.
./image_to_usb.sh –from=~/chromiumos/src/build/images/SUBDIR –to=/dev/USBKEYDEV

SUBDIR is the subdirectory created by build_image.sh, and USBKEYDEV is the device for the USB key.

To determine the value for USBKEYDEV, use:

sudo fdisk -l

or

dmesg

What you want is the device for the entire key (for example, /dev/sdb, not /dev/sdb1).

By default, image_to_usb.sh copies from the most recent image you’ve built to /dev/sdb, so you may be able to omit the --from and/or --to options.

Copy image to hard drive (see development hardware)

WARNING: this nukes your hard drive
Boot from the USB image you just burned. (If this is the first time you’ve booted from USB, you may need to go into the BIOS settings and change the boot order so that it’ll boot from the USB drive)
After logging in, use Ctrl+Alt+T to open a terminal window and type:
/usr/sbin/chromeos-install
Note: this will ask you for the password you set in the recommended step earlier. Unplug the USB drive, reboot and you’re there.

convert the image for VMWare

Note: The VMWare image may have missing functionality (e.g. no virtual terminal, slow keyboard response, etc) and will be extremely slow.  We suggest that developers obtain development hardware.


If you want to boot from the image in a vmware session you’ll need to first convert it to a vmware disk. First install qemu:


sudo apt-get install qemu

Then execute these commands:

./image_to_vmware.sh –from=~/chromiumos/src/build/images/SUBDIR \
–to=~/chromiumos/src/build/images/SUBDIR/ide.vmdk
By default, image_to_vmware.sh will convert the most recent image you’ve built to ide.vmdk, so you may be able to omit the --from and/or --to options.
Convert the image for VirtualBoxNote: Just like the VMWare image, the VirtualBox image may have missing functionality. We suggest that developers obtain development hardware.


If you want to boot from the image in a VirtualBox session you’ll need to first convert it to a VirtualBox disk. First install VirtualBox:


sudo apt-get install virtualbox-ose

Then execute these commands:

./image_to_virtualbox.sh –from=~/chromiumos/src/build/images/SUBDIR \
–to=~/chromiumos/src/build/images/SUBDIR/os.vdi
By default, image_to_virtualbox.sh will convert the most recent image you’ve built to os.vdi, so you may be able to omit the --from and/or --to options.

Use the dev server to update a test machine

The dev server can be used to update a test machine via the standard update mechanism.

Delete an old chroot build environment

To delete an old chroot build environment, use:

./make_chroot.sh --delete
Do NOT use rm -rf, since if there are stale bind mounts, you may end up deleting your source tree.

How to Enable Flash in Google Chrome for Fedora 11

o you’ve installed the latest development builds of Chromium for Fedora Linux. The only thing lacking is that youtube is not loading. If not, what are you waiting for? Refer to one of my previous posts.

First make sure you install the Adobe yum repository.

As root:-

rpm -ivh http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm

Then install the flash plugin.

yum install flash-plugin.i386

The flash plugin will be installed in /usr/lib/flash-plugin/libflashplayer.so

Chrome plugins are supposed to be located in /usr/lib/chromium-browser/plugins. So lets create a symbolic link, so that whenever your Adobe flash plugin is updated, your Chrome automatically gets the latest version.

n -sv /usr/lib/mozilla/plugins/libflashplayer.so /usr/lib/chromium-browser/plugins/libflashplayer.so

Now start your Chrome browser from the command line, with the –enable-plugins switch. This will enable the flash plugin.

Here’s a screenshot of me watching a video from youtube on chrome:-

How to install Google Chrome in Fedora

install Google Chrome in Fedora 10 or Fedora 11

Google has its open source version of its Chrome browser, currently under heavy development. The open source version is called Chromium.

Tom ‘Spot’ Callaway, the Fedora Engineering Manager, has created a rpm repository with precompiled versions of the chromium browser.

To install chromium, create a chromium.repo file in your /etc/yum.repos.d directory.

vim /etc/yum.repos.d/chromium.repo

Then fill it up with this:-

[chromium]
name=Chromium Test Packages
baseurl=http://spot.fedorapeople.org/chromium/F$releasever/
enabled=1
gpgcheck=0

After that, just yum install chromium

[root@atreides ~]# yum install chromium
Loaded plugins: fastestmirror, presto, refresh-packagekit
Loading mirror speeds from cached hostfile
* fedora: mirror.oscc.org.my
* rpmfusion-free: mirror.transact.net.au
* rpmfusion-free-updates: mirror.transact.net.au
* rpmfusion-nonfree: mirror.transact.net.au
* rpmfusion-nonfree-updates: mirror.transact.net.au
* updates: ftp.riken.jp
chromium | 1.2 kB 00:00
chromium/primary | 2.4 kB 00:00
chromium 7/7
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package chromium.i586 0:3.0.191.0-0.1.20090628svn19474.fc11 set to be updated
–> Processing Dependency: libv8.so.0 for package: chromium-3.0.191.0-0.1.20090628svn19474.fc11.i586
–> Running transaction check
—> Package v8.i586 0:1.2.9-1.20090626svn2284.fc11 set to be updated
–> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
chromium i586 3.0.191.0-0.1.20090628svn19474.fc11 chromium 11 M
Installing for dependencies:
v8 i586 1.2.9-1.20090626svn2284.fc11 chromium 858 k

Transaction Summary
================================================================================
Install 2 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 12 M
Is this ok [y/N]: y
Downloading Packages:
Setting up and reading Presto delta metadata
Processing delta metadata
Package(s) data still to download: 12 M
(1/2): chromium-3.0.191.0-0.1.20090628svn19474.fc11.i586 | 11 MB 01:11
(2/2): v8-1.2.9-1.20090626svn2284.fc11.i586.rpm | 858 kB 00:06
——————————————————————————–
Total 149 kB/s | 12 MB 01:19
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : v8-1.2.9-1.20090626svn2284.fc11.i586 1/2
Installing : chromium-3.0.191.0-0.1.20090628svn19474.fc11.i586 2/2

Installed:
chromium.i586 0:3.0.191.0-0.1.20090628svn19474.fc11

Dependency Installed:
v8.i586 0:1.2.9-1.20090626svn2284.fc11

Complete!

Chromium for Fedora !!! Here’s a screenshot of Chromium running on my machine:

How To Enable Adobe Flash Player In Google Chrome

How To Enable Adobe’s Flash Player In Google Chrome (Ubuntu 9.04)

This tutorial explains how you can install the Google Chrome browser on Ubuntu 9.04 and how to enable the Adobe Flash plugin in it. Please note that Google Chrome for Ubuntu is still in alpha state and should not be used on production systems.

This document comes without warranty of any kind! I do not issue any guarantee that this will work for you!

Open Firefox and visit http://dev.chromium.org/getting-involved/dev-channel. Scroll down to the Linux section and pick the right .deb package for your architecture (google-chrome-unstable_current_i386.deb or google-chrome-unstable_current_amd64.deb):

Click on the Accept and download button to accept the Google Chrome Terms of Service and to start the download:

In the Firefox download dialogue, select Open with GDebi Package Installer (default):

A Package Installer window opens. Click on Install Package to start the Google Chrome installation:

Type in your password:

Afterwards Google Chrome is being installed:

Click on Close to leave the Package Installer after installation has finished:

2 Enabling The Flash Plugin

Open a terminal (Applications > Accessories > Terminal):

If the Flash plugin is already installed for Firefox, we have to find out where it is located:

sudo updatedb
sudo locate libflashplayer.so

If it is installed, output should be similar to this one…

falko@falko-desktop:~$ sudo locate libflashplayer.so
/opt/Adobe AIR/Versions/1.0/Resources/libflashplayer.so
/usr/lib/flashplugin-installer/libflashplayer.so
falko@falko-desktop:~$

… which means the Flash plugin is located in /usr/lib/flashplugin-installer/libflashplayer.so. If there’s no output, this means that the Flash plugin isn’t installed – you can then install it as follows:

sudo aptitude install flashplugin-installer

Now we create a plugins directory for Google Chrome…

sudo mkdir /opt/google/chrome/plugins

… and copy the Flash plugin to it:

sudo cp /usr/lib/flashplugin-installer/libflashplayer.so /opt/google/chrome/plugins

Finally we have to tell the Google Chrome launcher that it should look out for plugins. To do this, we right-click on Applications and select Edit Menus:

In the Menu Editor, go to Internet > Google Chrome and click on the Properties button:

In the Launcher Properties window, replace the contents of the Command field with this line…

/opt/google/chrome/google-chrome –enable-plugins %U

… and click on Close:

Then leave the Menu Editor.

That’s it! We can now launch Google Chrome (Applications > Internet > Google Chrome):

If you start Google Chrome for the first time, you’ll see this dialogue. Make your choices and click on Start Google Chrome:

Now go to a web site that has Flash videos (e.g. YouTube), and you should be able to watch them which means that the Flash plugin is working:

How to install flash player on Google Chrome

Google chrome browser is very well working in many computers, but still has problems with websites which require authentication, and which requires some new flash players to display their video content. I am talking about flash sites which are not perfectly opening for every person who is using Chrome. Many are getting the message to download the latest version of Adobe flash player to display some content in it.

So here is how you can install the latest version of flash player for your Google Chrome browser -

Download the flash player for windows xpi file.

Rename the file to .zip as its a file which directly interacts with your web browser and changes itself with the extension.
(Or you can directly download this zip file which i renamed and uploaded – Download here)

Then extract it to a new folder through winzip. You will see a couple files flashplayer.xpt and NPSWF32.dll which you have copy.

Then go to the plugins folder of your google chrome browser, which might be at -
C/Documents and settings//Local Settings/Application Data/Google/Chrome/Application/Plugins/

Paste both the files in this plugins folder and then close your Chrome browser and restart it.

Try to check whether the installation is done perfectly, by just watching a video in Youtube which requires the latest version of flash player to play the video.